/* ==========================================================================
   Nextrobic Technologies — website stylesheet
   Light, technical, enterprise. The brand's dark carbon appears only as
   small "chips" that carry the logo, so the logo never fights the page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Ink & paper */
    --ink: #0a1020;
    --ink-2: #46536b;
    --ink-3: #77839a;
    --paper: #ffffff;
    --mist: #f2f6fb;
    --mist-2: #e9f0f9;
    --line: #dde6f2;
    --carbon: #0a0e17;

    /* Brand gradient, lifted straight off the logo */
    --cyan: #00b7d4;
    --blue: #2f6bff;
    --violet: #7a3cf0;
    --grad: linear-gradient(105deg, var(--cyan) 0%, var(--blue) 48%, var(--violet) 100%);
    --grad-soft: linear-gradient(105deg, rgba(0, 183, 212, .12), rgba(122, 60, 240, .12));

    /* Status */
    --ok: #12a150;
    --warn: #c77700;

    /* Type */
    --display: "Sora", "Segoe UI", system-ui, sans-serif;
    --body: "Inter", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Space & shape */
    --wrap: 1180px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(10, 16, 32, .05), 0 6px 18px -10px rgba(19, 47, 96, .18);
    --shadow-md: 0 2px 6px rgba(10, 16, 32, .05), 0 24px 48px -24px rgba(19, 47, 96, .28);
    --shadow-lg: 0 40px 80px -40px rgba(19, 47, 96, .38);

    --header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: rgba(47, 107, 255, .16); }

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.022em;
    margin: 0 0 .5em;
    color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.02rem; letter-spacing: -.01em; }

p { margin: 0 0 1.05em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: clamp(1.06rem, 1.5vw, 1.22rem);
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 62ch;
}

/* Mono eyebrow — always carries a real fact, never decoration */
.eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding-block: clamp(64px, 8vw, 108px); position: relative; }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(48px, 5vw, 68px); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 54px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .82rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--display);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(47, 107, 255, .65);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(47, 107, 255, .6); }

.btn--ghost {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: #c4d4ea; }

.btn--dark { background: var(--carbon); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); }

.btn--sm { padding: .58rem 1.05rem; font-size: .88rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.textlink {
    font-family: var(--display);
    font-weight: 600;
    font-size: .93rem;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.textlink span { transition: transform .18s ease; }
.textlink:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px -20px rgba(19, 47, 96, .5);
}

.nav {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: var(--carbon);
    object-fit: cover;
    box-shadow: 0 6px 16px -8px rgba(10, 14, 23, .8);
}
.brand__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -.03em;
    line-height: 1;
}
.brand__sub {
    display: block;
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__link {
    padding: .5rem .78rem;
    border-radius: 8px;
    font-size: .94rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .16s ease, background-color .16s ease;
}
.nav__link:hover { color: var(--ink); background: var(--mist); }
.nav__link.is-active { color: var(--ink); font-weight: 600; }

.nav__spacer { margin-left: auto; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Products dropdown */
.has-menu { position: relative; }
.menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -20px;
    width: min(660px, 78vw);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu:hover .menu,
.has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }

.menu__item {
    display: flex;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    transition: background-color .15s ease;
}
.menu__item:hover { background: var(--mist); }
.menu__title { font-family: var(--display); font-weight: 600; font-size: .93rem; }
.menu__desc { font-size: .8rem; color: var(--ink-3); line-height: 1.45; }
.menu__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-top: 8px; flex-shrink: 0; }
.menu__foot {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding: 14px 12px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .86rem;
    color: var(--ink-3);
}

.nav__toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav__toggle span { display: block; width: 17px; height: 1.6px; background: var(--ink); position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: var(--ink); }
.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after { top: 5.5px; }

/* --------------------------------------------------------------------------
   7. Hero — the signature moment
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: clamp(48px, 6vw, 92px) clamp(56px, 7vw, 104px);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 720px;
    background:
        radial-gradient(48% 52% at 78% 22%, rgba(122, 60, 240, .13), transparent 70%),
        radial-gradient(46% 48% at 22% 12%, rgba(0, 183, 212, .14), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(19, 47, 96, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(19, 47, 96, .045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .42rem .95rem .42rem .48rem;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 999px;
    font-size: .82rem;
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.hero__badge b {
    background: var(--grad);
    color: #fff;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .08em;
    padding: .22rem .55rem;
    border-radius: 999px;
    font-weight: 600;
}

.hero h1 { margin-bottom: .38em; }
.hero__sub { max-width: 54ch; }

.hero__marks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.hero__marks span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__marks span::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok);
}

/* WebGL stage */
.stage {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
}
.stage__canvas { width: 100%; height: 100%; display: block; }
.stage__fallback {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: conic-gradient(from 200deg, var(--cyan), var(--blue), var(--violet), var(--cyan));
    filter: blur(30px);
    opacity: .5;
    animation: spin 22s linear infinite;
}
.stage__logo {
    position: absolute;
    top: 50%; left: 50%;
    width: 88px; height: 88px;
    transform: translate(-50%, -50%);
    border-radius: 22px;
    background: var(--carbon);
    box-shadow: 0 24px 50px -18px rgba(10, 14, 23, .55);
    object-fit: cover;
    z-index: 2;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Orbiting product chips around the stage */
.stage__chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .72rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    animation: float 7s ease-in-out infinite;
}
.stage__chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.stage__chip:nth-of-type(1) { top: 8%; left: 2%; animation-delay: 0s; }
.stage__chip:nth-of-type(2) { top: 30%; right: -2%; animation-delay: 1.1s; }
.stage__chip:nth-of-type(3) { bottom: 20%; left: -4%; animation-delay: 2.2s; }
.stage__chip:nth-of-type(4) { bottom: 4%; right: 6%; animation-delay: 3.3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* --------------------------------------------------------------------------
   8. Metric strip
   -------------------------------------------------------------------------- */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--paper);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.metric { padding: 26px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric__value {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.metric__label {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease, border-color .28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover { border-color: #cfdcee; box-shadow: var(--shadow-md); }

.card__title { font-family: var(--display); font-weight: 650; font-size: 1.1rem; margin: 0 0 .45em; }
.card__text { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* Product card with the dark logo tile */
.prod {
    position: relative;
    overflow: hidden;
}
.prod__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tile {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--carbon);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 22px -14px rgba(10, 14, 23, .9);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--lg { width: 76px; height: 76px; border-radius: 18px; }
.tile__glyph {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.04em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.prod__cat {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: block;
    margin-bottom: 3px;
}
.prod__name { font-family: var(--display); font-weight: 650; font-size: 1.08rem; letter-spacing: -.02em; }
.prod__summary { font-size: .92rem; color: var(--ink-2); margin: 0 0 18px; flex-grow: 1; }
.prod__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.tag {
    font-size: .76rem;
    padding: .24rem .6rem;
    border-radius: 6px;
    background: var(--mist);
    color: var(--ink-2);
    border: 1px solid var(--line);
}

.pill {
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    padding: .26rem .6rem;
    border-radius: 999px;
    border: 1px solid;
}
.pill--live { color: var(--ok); border-color: rgba(18, 161, 80, .3); background: rgba(18, 161, 80, .07); }
.pill--building { color: var(--warn); border-color: rgba(199, 119, 0, .3); background: rgba(199, 119, 0, .07); }

/* Subtle 3D tilt (JS adds --rx / --ry) */
.tilt {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    will-change: transform;
}

/* --------------------------------------------------------------------------
   10. Capability columns
   -------------------------------------------------------------------------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.cap { padding: 30px 28px; border-right: 1px solid var(--line); }
.cap:last-child { border-right: 0; }
.cap__group { font-family: var(--display); font-weight: 650; font-size: 1.12rem; margin-bottom: .3em; }
.cap__note { font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink-2); }
.ticks li::before {
    content: "";
    position: absolute;
    left: 0; top: .52em;
    width: 13px; height: 7px;
    border-left: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
    border-radius: 1px;
}

/* --------------------------------------------------------------------------
   11. Industry grid
   -------------------------------------------------------------------------- */
.inds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ind { background: var(--paper); padding: 22px; transition: background-color .2s ease; }
.ind:hover { background: var(--mist); }
.ind__name { font-family: var(--display); font-weight: 650; font-size: 1rem; margin-bottom: .25em; }
.ind__note { font-size: .87rem; color: var(--ink-3); margin: 0; }

/* --------------------------------------------------------------------------
   12. Countries
   -------------------------------------------------------------------------- */
.countries { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.country {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .92rem;
    box-shadow: var(--shadow-sm);
}
.country b { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; }

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */
.switcher { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink-2);
    font-size: .88rem;
    cursor: pointer;
    transition: all .16s ease;
}
.switcher__btn:hover { border-color: #c4d4ea; }
.switcher__btn.is-active { background: var(--carbon); color: #fff; border-color: var(--carbon); }

.termbar {
    display: inline-flex;
    padding: 5px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-inline: auto;
    margin-bottom: 40px;
}
.termbar button {
    border: 0;
    background: transparent;
    padding: .5rem 1.15rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .18s ease;
}
.termbar button.is-active { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.termbar .save { font-family: var(--mono); font-size: .64rem; color: var(--ok); margin-left: .35rem; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.plan--popular {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    background:
        linear-gradient(var(--paper), var(--paper)) padding-box,
        var(--grad) border-box;
    border: 1.5px solid transparent;
}
.plan__flag {
    position: absolute;
    top: -12px; left: 24px;
    background: var(--grad);
    color: #fff;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
}
.plan__name { font-family: var(--display); font-weight: 650; font-size: 1.18rem; margin-bottom: .2em; }
.plan__for { font-size: .87rem; color: var(--ink-3); min-height: 42px; margin-bottom: 18px; }
.plan__price {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2.15rem;
    letter-spacing: -.04em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: .3rem;
}
.plan__price small { font-family: var(--body); font-size: .82rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.plan__meta { font-size: .8rem; color: var(--ink-3); margin: 8px 0 20px; }
.plan .ticks { margin-bottom: 24px; }
.plan .ticks li { font-size: .89rem; }
.plan .btn { margin-top: auto; }

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 22px;
}
.faq summary {
    cursor: pointer;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--ink-3); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; font-size: .94rem; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
    font-family: var(--display);
    font-weight: 600;
    font-size: .85rem;
    color: var(--ink);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .78rem .95rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    font-family: var(--body);
    font-size: .95rem;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 138px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, .12);
}
.field .error { font-size: .82rem; color: #d13b3b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    font-size: .93rem;
    margin-bottom: 22px;
}
.alert--ok { background: rgba(18, 161, 80, .08); border: 1px solid rgba(18, 161, 80, .25); color: #0d6b37; }
.alert--err { background: rgba(209, 59, 59, .07); border: 1px solid rgba(209, 59, 59, .25); color: #8f2020; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.contact-card {
    background: var(--carbon);
    color: #dbe4f2;
    border-radius: var(--r-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: "";
    position: absolute;
    inset: auto -30% -60% -30%;
    height: 320px;
    background: radial-gradient(50% 60% at 50% 50%, rgba(47, 107, 255, .38), transparent 70%);
}
.contact-card > * { position: relative; }
.contact-card h3 { color: #fff; }
.contact-card dl { display: grid; gap: 18px; margin: 24px 0 0; }
.contact-card dt {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7f8ea8;
    margin-bottom: 4px;
}
.contact-card dd { margin: 0; font-size: .96rem; color: #e6ecf7; }
.contact-card a:hover { color: #7fd8ff; }

/* --------------------------------------------------------------------------
   15. Call to action band
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    background: var(--carbon);
    border-radius: 28px;
    padding: clamp(38px, 5vw, 64px);
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.cta::before {
    content: "";
    position: absolute;
    inset: -50% -10% auto -10%;
    height: 520px;
    background:
        radial-gradient(40% 60% at 22% 40%, rgba(0, 183, 212, .4), transparent 70%),
        radial-gradient(40% 60% at 78% 30%, rgba(122, 60, 240, .45), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #b8c4d8; margin-inline: auto; max-width: 56ch; }
.cta .btn--ghost { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .13); }

/* --------------------------------------------------------------------------
   16. Product detail page
   -------------------------------------------------------------------------- */
.phero { padding-block: clamp(42px, 5vw, 72px) clamp(30px, 4vw, 48px); position: relative; overflow: hidden; }
.phero::before {
    content: "";
    position: absolute;
    inset: -30% -20% auto 30%;
    height: 560px;
    background: radial-gradient(45% 50% at 60% 30%, rgba(47, 107, 255, .11), transparent 70%);
    pointer-events: none;
}
.phero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 52px); align-items: center; }

.spec {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.spec__row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.spec__row:last-child { border-bottom: 0; }
.spec__key {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 3px;
}
.spec__val { font-size: .93rem; color: var(--ink-2); }

.modgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.mod { background: var(--paper); padding: 18px 20px; font-size: .93rem; display: flex; align-items: center; gap: 10px; }
.mod::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   17. Founder / about
   -------------------------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(26px, 4vw, 52px); align-items: start; }
.founder__portrait {
    background: var(--carbon);
    border-radius: var(--r-lg);
    padding: 30px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-md);
}
.founder__portrait img { width: 110px; height: 110px; border-radius: 26px; margin: 0 auto 18px; }
.founder__name { font-family: var(--display); font-weight: 650; font-size: 1.16rem; }
.founder__role { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8b9ab5; margin-top: 6px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 26px 32px; border-left: 1px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -6px; top: 4px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--paper);
    border: 2.5px solid var(--blue);
}
.timeline__year { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.timeline__title { font-family: var(--display); font-weight: 650; font-size: 1.05rem; margin: 4px 0 4px; }
.timeline p { font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------------------
   18. Legal pages
   -------------------------------------------------------------------------- */
.doc { max-width: 780px; }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.6em; }
.doc ul { padding-left: 20px; color: var(--ink-2); }
.doc li { margin-bottom: .45em; }
.doc__updated {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--carbon); color: #9fadc4; padding-block: 64px 32px; margin-top: 0; }
.site-footer h4 {
    color: #fff;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: .9rem; color: #9fadc4; transition: color .16s ease; }
.footer-links a:hover { color: #fff; }

.footer-brand { max-width: 320px; }
.footer-brand p { color: #8c9ab1; font-size: .9rem; margin-top: 16px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #7688a3; }

.subscribe { display: flex; gap: 8px; margin-top: 20px; }
.subscribe input {
    flex: 1;
    padding: .68rem .9rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: .9rem;
}
.subscribe input::placeholder { color: #6f7f99; }
.subscribe input:focus { outline: none; border-color: var(--blue); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .85rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    transition: all .16s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   20. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
/* Tablet-width navigation: tighten spacing before anything can collide */
@media (max-width: 1080px) {
    .nav { gap: 16px; }
    .nav__links { margin-left: 4px; }
    .nav__link { padding: .5rem .55rem; font-size: .9rem; }
    .nav__actions .btn--ghost { display: none; }
    .brand__sub { display: none; }
}

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .stage { max-width: 420px; order: -1; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: repeat(2, 1fr); }
    .caps { grid-template-columns: 1fr; }
    .cap { border-right: 0; border-bottom: 1px solid var(--line); }
    .cap:last-child { border-bottom: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .phero__inner { grid-template-columns: 1fr; }
    .founder { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 860px) {
    .nav__links, .nav__actions .btn--ghost { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav__spacer { margin-left: auto; }

    .mobile-menu {
        display: none;
        border-top: 1px solid var(--line);
        padding: 14px 0 22px;
    }
    .mobile-menu.is-open { display: block; }
    .mobile-menu a {
        display: block;
        padding: .72rem 4px;
        border-bottom: 1px solid var(--line);
        font-size: .98rem;
        font-weight: 500;
    }
    .mobile-menu .btn { margin-top: 18px; }

    .metrics { grid-template-columns: repeat(2, 1fr); }
    .metric:nth-child(2n) { border-right: 0; }
    .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

    .inds, .modgrid { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .grid--2, .grid--3, .grid--4, .plans, .inds, .modgrid { grid-template-columns: 1fr; }
    .spec__row { grid-template-columns: 1fr; gap: 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stage__chip { display: none; }
    .section { padding-block: 56px; }

    /* Header keeps only the logo and the menu button at this width —
       the trial call to action lives inside the open menu instead. */
    .nav__actions .btn--primary { display: none; }

    .btn-row { flex-direction: column; align-items: stretch; }
    .btn-row .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   22. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .cta, .stage { display: none; }
    body { font-size: 11pt; }
}
