/* Self-hosted fonts — no external request, no render-block, no Google dependency.
   Both are variable woff2 (latin subset); one face per family spans its weights.
   Avenir Next (headings on Apple devices) is a system font, nothing to load. */
@font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

/* =========================================================================
   EgeTech — Design System
   Cinematic dark, built on the brand: Füme stage, Ege green key light,
   tungsten as the rare second accent. Palette and type follow
   SocialAgent/brand/BRAND.md — that guide wins, not this file.
   Used by index.html and every sub page (product, support, legal).
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
    /* Stage — Füme and the surfaces lifted off it */
    --bg: #12151a;
    --bg-raised: #171b21;
    --surface: #1b2027;
    --surface-2: #212832;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* Ink — Kemik, then Gri for quiet text */
    --ink: #f2efe9;
    --ink-2: #a7acb4;
    --ink-3: #90949c;

    /* Light — Ege green is the accent. Tungsten is the second unit, used
       sparingly: the far side of the hero and the not-yet-shipped markers. */
    --key: #2e8c8c;
    --key-hot: #3fa9a9;
    --key-glow: rgba(46, 140, 140, 0.28);
    --tungsten: #e8a33d;
    --fill: #e8a33d;

    /* Type — Avenir Next is the brand face and ships on Apple devices;
       Inter Tight carries everyone else and all body copy. */
    --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Avenir Next", "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Rhythm */
    --page: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(5rem, 11vh, 9rem);
    --radius: 14px;
    --radius-lg: 20px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

/* Headings carry the brand face; body copy stays on Inter Tight. */
h1,
h2,
h3,
.wordmark,
.crew__name,
.strip__num,
.price-line__amount,
.faq__item summary {
    font-family: var(--font-display);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

::selection {
    background: var(--key);
    color: #12151a;
}

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

/* Film grain — one fixed layer over the whole stage */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: var(--page);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
    position: relative;
}

.section--hairline {
    border-top: 1px solid var(--line);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--key);
    color: #12151a;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 10px 0;
    font-size: 0.875rem;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Type ---------- */
.slate {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.slate::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--key);
    opacity: 0.7;
}

.section-head {
    max-width: 680px;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-title {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin-top: 1.25rem;
}

.section-sub {
    color: var(--ink-2);
    font-size: 1.0625rem;
    margin-top: 1.1rem;
    max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 48px;
    padding-inline: 1.4rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease),
        border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--key {
    background: var(--key);
    color: #12151a;
}

.btn--key:hover {
    background: var(--key-hot);
    box-shadow: 0 10px 34px -10px var(--key-glow);
}

.btn--ghost {
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.btn--sm {
    height: 40px;
    padding-inline: 1.05rem;
    font-size: 0.875rem;
}

/* Text link with a travelling underline */
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding-bottom: 2px;
}

.link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--key);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}

.link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease);
}

.link:hover svg {
    transform: translateX(3px);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.header.is-stuck {
    background: rgba(18, 21, 26, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 2rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
}

/* The Playhead E. Its colours are fixed: the mark is the mark, so it does not
   follow --key into a product's theme (Olycen turns the page cyan). */
.wordmark__mark {
    height: 24px;
    width: auto;
    flex: none;
}

.wordmark__bars {
    fill: var(--ink);
}

.wordmark__head {
    fill: #2e8c8c;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.9375rem;
    color: var(--ink-2);
    transition: color 0.2s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--ink);
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

.burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    position: relative;
    transition: background 0.2s var(--ease);
}

.burger span::before,
.burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease);
}

.burger span::before {
    top: -5px;
}

.burger span::after {
    top: 5px;
}

.burger.is-open span {
    background: transparent;
}

.burger.is-open span::before {
    transform: translateY(5px) rotate(45deg);
}

.burger.is-open span::after {
    transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: clamp(9rem, 18vh, 12rem);
    padding-bottom: clamp(3rem, 6vh, 5rem);
    overflow: hidden;
}

.hero__light {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 90vh;
    pointer-events: none;
    /* Ege green key from the left, a tungsten practical on the far side. */
    background:
        radial-gradient(60% 55% at 18% 8%, rgba(46, 140, 140, 0.20), transparent 70%),
        radial-gradient(50% 50% at 88% 22%, rgba(232, 163, 61, 0.10), transparent 70%);
    filter: blur(10px);
}

.hero__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: calc(100% / 6) 100%;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
    opacity: 0.6;
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: clamp(2.5rem, 5.6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 600;
    margin-top: 1.6rem;
    /* The lines are broken by hand in the markup; this only stops a long
       viewport from stretching them. Avenir Next sets wider than Inter Tight,
       so leave room or the hand-set break wraps a second time. */
    max-width: 24ch;
}

.hero__title em {
    font-style: normal;
    color: var(--ink-3);
}

.hero__sub {
    margin-top: 1.8rem;
    max-width: 58ch;
    font-size: clamp(1.05rem, 1.5vw, 1.1875rem);
    color: var(--ink-2);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.4rem;
}

/* Credit strip */
.strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: clamp(3.5rem, 8vw, 6rem);
}

.strip__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-inline: 0;
}

.strip__item {
    padding: 1.6rem clamp(1rem, 2vw, 1.75rem);
    border-left: 1px solid var(--line);
}

.strip__item:first-child {
    border-left: none;
    padding-left: 0;
}

.strip__num {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.strip__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 0.35rem;
}

/* ---------- Flagship ---------- */
.flagship {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.flagship__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--key);
    border: 1px solid rgba(46, 140, 140, 0.32);
    background: rgba(46, 140, 140, 0.08);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.flagship__title {
    font-size: clamp(2.1rem, 3.6vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin-top: 1.35rem;
}

.flagship__desc {
    color: var(--ink-2);
    margin-top: 1.1rem;
    max-width: 46ch;
}

.spec-list {
    margin-top: 1.75rem;
    display: grid;
    gap: 0.7rem;
}

.spec-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.9375rem;
    color: var(--ink-2);
}

.spec-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: 0.6rem;
    border-radius: 50%;
    background: var(--key);
    flex: none;
}

.flagship__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    margin-top: 2.2rem;
}

/* Projected frame */
.screen {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 10px;
    box-shadow:
        0 40px 90px -40px rgba(0, 0, 0, 0.9),
        0 0 100px -50px var(--key-glow);
}

.screen__chrome {
    display: flex;
    gap: 6px;
    padding: 0.4rem 0.5rem 0.7rem;
}

.screen__chrome span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
}

.screen video,
.screen img {
    width: 100%;
    /* height:auto is load-bearing — the img carries width/height attributes to
       reserve layout space, and without this the attribute height wins and the
       shot renders squashed. */
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--line);
}

/* Olycen carries its own brand cyan wherever it appears. */
.theme-olycen {
    --key: #33c5d6;
    --key-hot: #6fe0ec;
    --key-glow: rgba(51, 197, 214, 0.22);
}


.flagship--reverse .flagship__text {
    order: 2;
}

/* Verified-transfer proof card — Olycen's whole promise as one object */
.proof-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    padding: clamp(1.5rem, 2.5vw, 2rem);
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

.proof-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.proof-card__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.proof-card__state {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #86c497;
    border: 1px solid rgba(134, 196, 151, 0.3);
    background: rgba(134, 196, 151, 0.08);
    border-radius: 6px;
    padding: 0.3rem 0.55rem;
}

.proof-list {
    display: grid;
    gap: 0.1rem;
    margin: 0.5rem 0 1.5rem;
}

.proof-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
}

.proof-list span {
    color: var(--ink-2);
}

.proof-list em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-3);
}

.proof-card__foot {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #86c497;
}

.proof-card__foot svg {
    width: 16px;
    height: 16px;
}

/* ---------- Grouped feature lists (Set Math tools, ShotMemory exports) ---------- */
.tool-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.tool-group h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding-bottom: 0.9rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--line-strong);
}

/* Name on its own line, description under it — in a narrow column the two on
   one line break mid-phrase ("ND / Calculator"). */
.tool-group .spec-list li {
    display: block;
    padding-left: 1rem;
    position: relative;
}

.tool-group .spec-list li::before {
    position: absolute;
    left: 0;
    top: 0.62rem;
    margin-top: 0;
}

.tool-group .spec-list li strong {
    display: block;
    color: var(--ink);
    font-weight: 500;
}

.tool-group .spec-list li span {
    display: block;
    color: var(--ink-2);
    font-size: 0.875rem;
    margin-top: 0.15rem;
}

/* ---------- Desktop app screenshots ----------
   The .gallery scroller below is sized for portrait phone captures (232px
   columns). Landscape desktop shots need width to be readable at all, so they
   get a stacking grid instead of a horizontal scroller. */
.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.shots__item {
    margin: 0;
}

/* A shot that carries the detail worth reading full-width. */
.shots__item--wide {
    grid-column: 1 / -1;
}

.shots__item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
}

.shots__item figcaption {
    margin-top: 0.85rem;
    font-size: 0.875rem;
    color: var(--ink-2);
}

.shots__item figcaption strong {
    display: block;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

@media (max-width: 560px) {
    .shots {
        grid-template-columns: 1fr;
    }
}

/* ---------- Screenshot gallery ---------- */
.gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 232px);
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.gallery::-webkit-scrollbar {
    height: 6px;
}

.gallery::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 3px;
}

.gallery__item {
    scroll-snap-align: start;
}

.gallery__item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.gallery__item figcaption {
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    color: var(--ink-3);
    line-height: 1.45;
}

/* ---------- Wide feature card ---------- */
.wide-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.wide-card__name {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.wide-card__desc {
    color: var(--ink-2);
    margin-top: 1rem;
    max-width: 62ch;
}

.wide-card__foot {
    margin-top: 1.6rem;
}


.wide-card__specs {
    display: grid;
    gap: 0.85rem;
    align-content: center;
    border-left: 1px solid var(--line);
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.wide-card__specs li {
    font-size: 0.9375rem;
    color: var(--ink-2);
    padding-left: 1.1rem;
    position: relative;
}

.wide-card__specs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fill);
}

.product__icon--soon {
    color: var(--fill);
}

.inline-link {
    color: var(--key);
    border-bottom: 1px solid currentColor;
    opacity: 0.9;
}

.inline-link:hover {
    opacity: 1;
}

/* ---------- Product grid ---------- */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-raised);
    padding: clamp(1.6rem, 2.6vw, 2.1rem);
    transition: background 0.35s var(--ease);
    min-height: 300px;
}

.product:hover {
    background: var(--surface-2);
}

.product__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
    display: grid;
    place-items: center;
    color: var(--key);
    flex: none;
}

.product__icon svg {
    width: 19px;
    height: 19px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    color: var(--ink-3);
    white-space: nowrap;
}

.tag--free {
    color: #86c497;
    border-color: rgba(134, 196, 151, 0.28);
    background: rgba(134, 196, 151, 0.07);
}

.tag--paid {
    color: var(--key);
    border-color: rgba(46, 140, 140, 0.32);
    background: rgba(46, 140, 140, 0.08);
}

.tag--soon {
    color: var(--fill);
    border-color: rgba(232, 163, 61, 0.32);
    background: rgba(232, 163, 61, 0.08);
}

.product__name {
    font-size: 1.3125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.product__platform {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 0.4rem;
}

.product__desc {
    color: var(--ink-2);
    font-size: 0.9375rem;
    margin-top: 0.9rem;
}

.product__foot {
    margin-top: auto;
    padding-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product__price {
    font-size: 0.8125rem;
    color: var(--ink-3);
    margin-left: auto;
    font-family: var(--font-mono);
}

.product__cover {
    position: absolute;
    inset: 0;
}

.product--soon .product__icon {
    color: var(--fill);
}

/* ---------- Principles ---------- */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    counter-reset: p;
}

.principle {
    border-top: 1px solid var(--line-strong);
    padding-top: 1.4rem;
    counter-increment: p;
}

.principle::before {
    content: "0" counter(p);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--key);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.principle h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.principle p {
    color: var(--ink-2);
    font-size: 0.9375rem;
    margin-top: 0.6rem;
}

/* ---------- Crew ---------- */
.crew {
    border-top: 1px solid var(--line);
}

.crew__row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.5fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s var(--ease), padding-inline 0.3s var(--ease);
}

.crew__row:hover {
    background: var(--bg-raised);
    padding-inline: 1rem;
}

.crew__name {
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.crew__role {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--key);
}

.crew__note {
    color: var(--ink-2);
    font-size: 0.9375rem;
}

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.contact__card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.55rem;
}

.field input,
.field textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-3);
}

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

.contact__meta {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.25rem;
}

.contact__meta dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.4rem;
}

.contact__meta dd {
    font-size: 1rem;
}

.contact__meta a:hover {
    color: var(--key);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
    background: var(--bg-raised);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer__brand p {
    color: var(--ink-3);
    font-size: 0.9375rem;
    margin-top: 1rem;
    max-width: 30ch;
}

.socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-2);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
        transform 0.25s var(--ease), background 0.25s var(--ease);
}

.socials a:hover {
    color: var(--key);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.socials svg {
    width: 17px;
    height: 17px;
}

/* Sub-page footers put the socials in the middle of the single base row. */
.footer__base .socials {
    margin-top: 0;
}

.footer__col h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1.1rem;
    font-weight: 400;
}

.footer__col ul {
    display: grid;
    gap: 0.65rem;
}

.footer__col a {
    font-size: 0.9375rem;
    color: var(--ink-2);
    transition: color 0.2s var(--ease);
}

.footer__col a:hover {
    color: var(--key);
}

.footer__base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--ink-3);
}

/* ---------- Sub pages (support / legal) ---------- */
.page-hero {
    position: relative;
    padding-top: clamp(8rem, 16vh, 10rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
}

.page-hero__light {
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 60vh;
    pointer-events: none;
    background: radial-gradient(50% 60% at 20% 0%, rgba(46, 140, 140, 0.16), transparent 70%);
}

.page-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 600;
    margin-top: 1.25rem;
    position: relative;
}

.page-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-3);
    margin-top: 1rem;
    position: relative;
}

.prose {
    max-width: 74ch;
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.prose h2 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.prose> :first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.prose h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 1.75rem;
}

.prose table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose th,
.prose td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.prose th {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 400;
    background: var(--bg-raised);
}

.prose td {
    color: var(--ink-2);
}

.prose__scroll {
    overflow-x: auto;
}

.prose p,
.prose li {
    color: var(--ink-2);
    margin-top: 0.9rem;
    font-size: 1rem;
}

.prose ul {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.15rem;
}

.prose ul li {
    padding-left: 1.1rem;
    position: relative;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--key);
    opacity: 0.75;
}

.prose strong {
    color: var(--ink);
    font-weight: 600;
}

.prose a {
    color: var(--key);
    border-bottom: 1px solid rgba(46, 140, 140, 0.4);
}

.prose a:hover {
    border-bottom-color: var(--key);
}

/* ---------- FAQ (support) ---------- */
.faq {
    max-width: 820px;
}

.faq__heading {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 400;
    margin: 3rem 0 1rem;
}

.faq__heading:first-child {
    margin-top: 0;
}

.faq__item {
    border-top: 1px solid var(--line);
}

.faq__item:last-of-type {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    transition: color 0.25s var(--ease);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "";
    width: 11px;
    height: 11px;
    flex: none;
    background: currentColor;
    color: var(--key);
    clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%);
    transition: transform 0.35s var(--ease);
}

.faq__item[open] summary::after {
    transform: rotate(135deg);
}

.faq__item summary:hover {
    color: var(--key);
}

.faq__body {
    padding-bottom: 1.5rem;
    max-width: 68ch;
}

.faq__body p {
    color: var(--ink-2);
    font-size: 0.9375rem;
    margin-bottom: 0.9rem;
}

.faq__body p:last-child {
    margin-bottom: 0;
}

.faq__body a {
    color: var(--key);
}

.callout {
    margin-top: 2rem;
    border: 1px solid rgba(46, 140, 140, 0.28);
    background: rgba(46, 140, 140, 0.07);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
}

.callout p {
    color: var(--ink);
    margin: 0;
    font-size: 0.9375rem;
}

/* ---------- Product pages ---------- */
.hero--product {
    padding-top: clamp(8.5rem, 17vh, 11rem);
    padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.hero--product .hero__title {
    max-width: 20ch;
    font-size: clamp(2.3rem, 5.2vw, 4rem);
}

.price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 2rem;
}

.price-line__amount {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.price-line__note {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* Module rows — one capability per row */
.module {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-block: clamp(2.25rem, 4vw, 3.25rem);
    border-top: 1px solid var(--line);
}

.module:last-child {
    border-bottom: 1px solid var(--line);
}

.module__head h3 {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-top: 0.75rem;
}

.module__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--key);
}

.module__body p {
    color: var(--ink-2);
    max-width: 62ch;
}

.module__list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.module__list li {
    font-size: 0.9375rem;
    color: var(--ink-2);
    padding-left: 1.1rem;
    position: relative;
}

.module__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--key);
}

/* Chip grid — for enumerating many small things (Set Math tools, formats) */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    border: 1px solid var(--line);
    background: var(--bg-raised);
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
}

/* Closing call to action */
.cta {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.cta p {
    color: var(--ink-2);
    margin: 1rem auto 0;
    max-width: 52ch;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {

    .flagship,
    .contact,
    .module {
        grid-template-columns: 1fr;
    }

    /* Stacked, the text always leads — never the screenshot. */
    .flagship--reverse .flagship__text {
        order: 0;
    }

    .wide-card {
        grid-template-columns: 1fr;
    }

    .wide-card__specs {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 1.5rem;
    }

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

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

    .strip__item:nth-child(3) {
        border-left: none;
        padding-left: 0;
    }

    .strip__item:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .crew__row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

@media (max-width: 760px) {
    .nav {
        position: fixed;
        inset: 68px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(18, 21, 26, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gutter) 1.5rem;
        transform: translateY(-120%);
        transition: transform 0.45s var(--ease), visibility 0.45s;
        visibility: hidden;
    }

    .nav.is-open {
        transform: none;
        visibility: visible;
    }

    .nav__link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.0625rem;
    }

    .burger {
        display: flex;
    }

    .header__cta .btn {
        display: none;
    }

    .products {
        border-radius: var(--radius);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
