@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-elevated: #ffffff;
    --bg-well: rgba(47, 47, 49, 0.04);

    --text-primary: #2f2f31;
    --text-secondary: #5c5c62;
    --text-muted: #8a8a92;

    /* Orange from the wordmark */
    --brand: #f26622;
    --brand-hover: #d95516;
    --brand-glow: rgba(242, 102, 34, 0.18);
    --brand-ink: #ffffff;

    --border: rgba(47, 47, 49, 0.1);
    --border-strong: rgba(47, 47, 49, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --font-display: 'Outfit', 'Avenir Next', 'Helvetica Neue', sans-serif;
    --font-sans: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --space-section: clamp(5.5rem, 11vw, 9rem);
    --container: 1180px;
    --header-h: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.page-home {
    background:
        radial-gradient(ellipse 55% 40% at 100% 0%, rgba(47, 47, 49, 0.05), transparent 58%),
        var(--bg-primary);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(242, 102, 34, 0.55);
    outline-offset: 3px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2rem);
}

section {
    padding: var(--space-section) 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

/* ========== Site nav ========== */
.site-header,
body > header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.65rem;
    position: relative;
    z-index: 2;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.site-header nav,
body > header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.nav-mobile-cta {
    display: none;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    border: none;
    color: inherit;
}

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--brand);
    color: var(--brand-ink);
    box-shadow: 0 4px 18px 0 var(--brand-glow);
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: #f7f7f8;
    border-color: rgba(47, 47, 49, 0.28);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
    padding-bottom: clamp(1rem, 3vw, 2rem);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    left: 0;
    right: 0;
    top: var(--header-h);
    height: min(84%, 880px);
    background:
        radial-gradient(ellipse 92% 72% at 50% 36%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.38) 50%, transparent 78%),
        radial-gradient(ellipse 46% 52% at 88% 6%, rgba(242, 102, 34, 0.11), transparent 70%),
        radial-gradient(ellipse 34% 40% at 6% 64%, rgba(242, 102, 34, 0.08), transparent 72%),
        radial-gradient(ellipse 38% 34% at 16% 18%, rgba(255, 255, 255, 0.75), transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    left: 0;
    right: 0;
    top: var(--header-h);
    height: min(84%, 880px);
    background-image:
        linear-gradient(rgba(47, 47, 49, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 47, 49, 0.045) 1px, transparent 1px),
        radial-gradient(ellipse 130% 20% at 12% 40%, rgba(47, 47, 49, 0.04), transparent 62%),
        radial-gradient(ellipse 120% 16% at 82% 62%, rgba(242, 102, 34, 0.04), transparent 64%);
    background-size:
        clamp(52px, 6.5vw, 84px) clamp(52px, 6.5vw, 84px),
        clamp(52px, 6.5vw, 84px) clamp(52px, 6.5vw, 84px),
        100% 100%,
        100% 100%;
    -webkit-mask-image:
        linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.22) 36%, rgba(0, 0, 0, 0.22) 64%, #000 100%),
        linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.22) 36%, rgba(0, 0, 0, 0.22) 64%, #000 100%),
        linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
    mask-composite: intersect;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 100%;
    text-align: center;
    animation: rise 0.75s ease-out both;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(2.15rem, 3.7vw, 3.45rem);
    margin-bottom: 1.15rem;
    letter-spacing: -0.045em;
    line-height: 1.2;
}

.hero-lead {
    white-space: nowrap;
}

.hero-rotate {
    display: block;
    position: relative;
    height: 1.2em;
    overflow: clip;
    color: var(--brand);
    line-height: 1.2;
    text-align: center;
}

.hero-rotate-window {
    display: block;
    will-change: transform;
}

.hero-rotate-word {
    display: block;
    height: 1.2em;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

.hero-support {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    max-width: 28em;
    margin: 0 auto 2rem;
    line-height: 1.55;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

@media (max-width: 1180px) {
    .hero-title {
        font-size: clamp(2.15rem, 5.4vw, 3.35rem);
    }
}

.diagram {
    margin: clamp(2.75rem, 6vw, 4.5rem) 0 0;
    animation: rise 0.9s ease-out 0.08s both;
}

.diagram img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* ========== Platform ========== */
.section-platform {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0 0;
}

.platform-head h2 {
    font-size: clamp(2.1rem, 4.4vw, 3.25rem);
    max-width: 16ch;
    margin: 0 0 1rem;
    text-wrap: balance;
}

.platform-lede {
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    line-height: 1.55;
    max-width: 62ch;
    margin: 0;
}

.scrolly {
    position: relative;
}

.pin {
    position: sticky;
    top: var(--header-h);
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 1.25rem 0 0;
}

.pin > .container {
    width: 100%;
    min-width: 0;
}

.drill {
    display: grid;
    grid-template-columns: clamp(17.5rem, 32vw, 24.375rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    width: 100%;
}

.drill > *,
.drill-stage,
.panel,
.panel-body,
.list,
.row,
.row > * {
    min-width: 0;
}

.drill-stage {
    width: 100%;
    overflow: hidden;
}

.steps {
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 22px;
    bottom: 22px;
    border-left: 1px dashed #2a2927;
    opacity: 0.45;
}

.step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0.7rem 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    position: relative;
}

.step .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1.5px solid #2a2927;
    margin: 5px 0 0 10px;
    transition: 0.2s;
}

.step .name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.2s;
}

.step .line {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: none;
}

.step[aria-selected="true"] .dot {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 5px var(--brand-glow);
}

.step[aria-selected="true"] .name {
    color: var(--text-primary);
}

.step[aria-selected="true"] .line {
    display: block;
}

.step-detail {
    display: none;
    margin: 1rem 0 0 2.85rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

@media (min-width: 901px) {
    .step[aria-selected="true"] .line {
        display: none;
    }

    .step-detail {
        display: block;
        min-height: 8.75rem;
    }
}

.step:hover .name {
    color: var(--text-primary);
}

.step:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
    border-radius: 6px;
}

.panel {
    background: #fff;
    border: 1px solid #e7e4df;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(47, 47, 49, 0.06);
    width: 100%;
    height: 440px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    border-bottom: 1px solid #e7e4df;
    height: 38px;
    flex: none;
}

.chrome i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e7e4df;
}

.crumbs {
    margin-left: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crumbs b {
    color: var(--text-primary);
    font-weight: 600;
}

.panel-body {
    padding: 1.15rem 1.2rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    min-height: 0;
}

.q {
    margin: 0;
    height: 1.2em;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list {
    border: 1px solid #e7e4df;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    flex: 1;
    min-height: 0;
}

.list h4 {
    margin: 0 0 0.25rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.row {
    display: grid;
    grid-template-columns: 7.4rem minmax(0, 1fr) 4.6rem minmax(0, 8.5rem);
    gap: 0.75rem;
    align-items: center;
    height: 40px;
    border-top: 1px solid #f3f1ed;
}

.row:first-of-type {
    border-top: 0;
}

.row .nm {
    font-size: 0.84rem;
    font-weight: 550;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row .track {
    height: 6px;
    border-radius: 3px;
    background: #f3f1ed;
    overflow: hidden;
}

.row .fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #cfcbc4;
    transition: width 0.35s;
}

.row .val {
    font-size: 0.82rem;
    text-align: right;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tag {
    justify-self: end;
    max-width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 99px;
    padding: 0.25rem 0.6rem;
    border: 1px solid #e7e4df;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag.flag {
    background: #fdebdd;
    border-color: transparent;
    color: #b4480c;
}

.tag.good {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}

.row.flag .fill {
    background: var(--brand);
}

.insight {
    border-radius: 8px;
    background: #f3f1ed;
    padding: 0 0.9rem;
    font-size: 0.84rem;
    line-height: 1.4;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: none;
}

.insight .txt {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight b {
    color: var(--brand);
    font-weight: 600;
    margin-right: 0.25rem;
}

.insight .act {
    flex: none;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.6rem 0.15rem 0;
    text-align: right;
}

.reasons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.reason {
    background: #fff;
    border: 1px solid #e7e4df;
    border-radius: 12px;
    padding: 1.6rem 1.45rem;
}

.reason .mark {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand);
    margin-bottom: 1.1rem;
}

.reason h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.reason p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.55;
}

.platform-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding: 2rem 0 clamp(4rem, 8vw, 6rem);
    border-top: 1px solid #e7e4df;
    flex-wrap: wrap;
}

.platform-cta p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .scrolly {
        height: auto !important;
    }

    .pin {
        position: static;
        height: auto;
        min-height: 0;
        padding: 2.5rem 0 0.5rem;
    }

    .drill {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reasons {
        grid-template-columns: 1fr;
    }

    .panel {
        height: auto;
    }

    .q {
        height: auto;
        white-space: normal;
    }

    .row {
        grid-template-columns: 6rem minmax(0, 1fr) 6.5rem;
        height: 44px;
    }

    .row .val {
        display: none;
    }

    .insight {
        height: auto;
        padding: 0.7rem 0.9rem;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .insight .txt {
        display: block;
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step .dot,
    .step .name,
    .row .fill {
        transition: none;
    }
}

/* ========== Footer + contact form ========== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.25rem;
    background: #fff;
    scroll-margin-top: var(--header-h);
}

.footer-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.footer-copy h2 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    margin-bottom: 1rem;
}

.footer-copy > p {
    font-size: 1.05rem;
    max-width: 34ch;
    margin-bottom: 0;
}

.footer-brand {
    margin: 0;
}

.footer-form-panel {
    background: var(--bg-primary);
    border: 2px solid var(--brand);
    border-radius: calc(var(--radius-lg) + 2px);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 16px 40px rgba(47, 47, 49, 0.06);
    position: relative;
}

.footer-form-panel h3 {
    font-size: 1.25rem;
    margin: 0.35rem 0 1.35rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.78rem 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color-scheme: light;
}

.form-field textarea {
    resize: vertical;
    min-height: 6.5rem;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(242, 102, 34, 0.55);
    box-shadow: 0 0 0 3px rgba(242, 102, 34, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-field {
    margin-bottom: 1rem;
}

.form-message {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-form-panel button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: 1.35rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* ========== Mobile menu ========== */
.menu-toggle {
    display: none;
    appearance: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.35rem;
    margin: 0;
    line-height: 0;
    border-radius: 6px;
}

.menu-toggle:hover {
    background: rgba(47, 47, 49, 0.05);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-copy,
    .diagram,
    .hero-rotate { animation: none; transition: none; }
    .hero-rotate-window { transition: none !important; }
    .btn-primary:hover { transform: none; }
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: block;
    }

    .header-demo-btn {
        display: none;
    }

    .site-header nav,
    body > header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 16px 40px rgba(47, 47, 49, 0.08);
        flex-direction: column;
        padding: 1.25rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 1.1rem;
        align-items: flex-start;
        justify-content: flex-start;
        z-index: 3;
        white-space: normal;
    }

    .site-header nav.mobile-active,
    body > header nav.mobile-active {
        display: flex;
    }

    .site-header nav a,
    body > header nav a {
        font-size: 1rem;
        width: 100%;
        padding: 0.35rem 0;
    }

    .nav-mobile-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 0.35rem;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
        background: var(--brand);
        color: var(--brand-ink);
        font-weight: 700;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-mobile-cta:hover {
        color: var(--brand-ink);
        background: var(--brand-hover);
    }

    .footer-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
