/* ============================================================
   ClipDrawer V3 — Cinematic Product (Apple-style)
   Deep blacks. Enormous type. Scroll-driven theater.
   ============================================================ */

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

:root {
    --bg: #000;
    --surface: #0A0A12;
    --surface-2: #14141C;
    --text: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.84);   /* body / paragraph text — bumped from 0.7 for readable contrast on dark bg */
    --text-faint: rgba(255, 255, 255, 0.62); /* secondary / meta text — bumped from 0.45 to clear WCAG AA minimum */
    --line: rgba(255, 255, 255, 0.12);
    --accent: #3FA89E;
    --accent-bright: #5AD4C4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-weight: 400;
}

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

/* ============================================================
   NAV
   ============================================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.nav.scrolled {
    border-bottom-color: var(--line);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav nav a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.2s;
    font-weight: 500;
}

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

.nav-cta {
    background: var(--text) !important;
    color: var(--bg) !important;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
}
/* Prevent stuck :hover state on touch devices — on phones/tablets, tapping
   the button triggers :hover and it can linger until the user taps elsewhere,
   which can read as "the button got bigger/different." Suppress all hover
   effects on devices without true hover capability. */
@media (hover: none) {
    .nav-cta:hover {
        transform: none;
        background: var(--text) !important;
        color: var(--bg) !important;
    }
}

/* ============================================================
   HERO — sticky product reveal
   ============================================================ */

.hero {
    position: relative;
    padding: 140px 32px 120px;
    overflow: hidden;
}

.hero-pin {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-stage {
    text-align: center;
    width: 100%;
    position: relative;
}

.hero-eyebrow {
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 500;
    color: var(--accent-bright);
    letter-spacing: 0.01em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.1s ease-out forwards;
}

.hero-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s 0.2s ease-out forwards;
}

.grad {
    background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(15px, 1.5vw, 20px);
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 60px;
    opacity: 0;
    animation: fadeUp 1s 0.35s ease-out forwards;
}

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

/* Product hero mockup */
.product-hero {
    position: relative;
    width: min(420px, 80vw);
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 1.1s 0.5s ease-out forwards;
}

.glow {
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(ellipse, rgba(63, 168, 158, 0.4) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.drawer-big {
    background: linear-gradient(180deg, #1C1C2E 0%, #15152A 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.db-head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.db-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.db-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.db-gear {
    color: var(--text-faint);
    display: inline-flex;
    transition: color 0.2s;
}
.db-gear:hover { color: var(--text-dim); }

.db-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-faint);
}

.db-body {
    display: flex;
    min-height: 380px;
}

.db-side {
    width: 135px;
    padding: 10px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.db-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 12px;
    color: var(--text-dim);
    border-radius: 5px;
}

.db-item.active {
    background: rgba(63, 168, 158, 0.15);
    color: var(--accent-bright);
}

.db-badge {
    margin-left: auto;
    font-size: 10px;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-faint);
}

.db-item.active .db-badge {
    background: rgba(90, 212, 196, 0.2);
    color: var(--accent-bright);
}

.db-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 6px;
}

.db-main {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.db-card {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.db-card-title {
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.db-card-body {
    font-size: 11px;
    color: var(--text-faint);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mono {
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
}

.hero-scroll-cue {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-faint);
    opacity: 0;
    animation: fadeIn 1s 1.2s ease-out forwards;
}

.cue-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--text-faint), transparent);
    animation: cueScroll 2s ease-in-out infinite;
}

@keyframes cueScroll {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.2); opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================================
   STATEMENT — big type moment
   ============================================================ */

.statement {
    padding: 140px 0;
    background: var(--bg);
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.statement::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(63, 168, 158, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.statement-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
    position: relative;
}

.statement-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(26px, 3.8vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin: 0 auto;
}

.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    margin-right: 0.25em;
}

.reveal-word.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-word:nth-child(1) { transition-delay: 0s; }
.reveal-word:nth-child(2) { transition-delay: 0.08s; }
.reveal-word:nth-child(3) { transition-delay: 0.16s; }
.reveal-word:nth-child(4) { transition-delay: 0.24s; }
.reveal-word:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   FEATURES — each one gets its own huge moment
   ============================================================ */

.features {
    padding: 60px 0 120px;
}

.feature-block {
    max-width: 1200px;
    margin: 0 auto 200px;
    padding: 0 32px;
    text-align: center;
    position: relative;
}

.feature-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-bright);
    padding: 6px 14px;
    background: rgba(63, 168, 158, 0.1);
    border: 1px solid rgba(63, 168, 158, 0.3);
    border-radius: 100px;
    margin-bottom: 32px;
}

.feature-headline {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.feature-sub {
    font-size: clamp(15px, 1.5vw, 19px);
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.feature-visual {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.feature-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(63, 168, 158, 0.15) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.feature-visual > * {
    position: relative;
    z-index: 1;
}

/* Stack — feature visual 1 */
.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stack-card {
    padding: 18px 22px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-head {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.sc-body {
    font-size: 15px;
    color: var(--text);
}

.stack-1 { animation: stackFloat 6s ease-in-out infinite; }
.stack-2 { animation: stackFloat 6s 0.4s ease-in-out infinite; }
.stack-3 { animation: stackFloat 6s 0.8s ease-in-out infinite; }

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

/* Category chips — feature visual 2 */
.cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cat-chip {
    padding: 14px 24px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.3s;
}

.cat-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

/* Search demo — feature visual 3 */
.search-demo {
    max-width: 440px;
    margin: 0 auto;
}

.sd-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text);
    font-family: 'SF Mono', monospace;
}

.sd-cursor {
    color: var(--accent-bright);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.sd-results {
    margin-top: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sd-row {
    padding: 12px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dim);
}

.hl {
    background: rgba(63, 168, 158, 0.3);
    color: var(--accent-bright);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* ============================================================
   SPECS
   ============================================================ */

.specs {
    padding: 200px 0;
    background: linear-gradient(180deg, #000 0%, #0A0A12 50%, #000 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.specs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.specs-eyebrow {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-bright);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.specs-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(48px, 7vw, 100px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

/* Quiet parenthetical wink that lives on its own line under the main title. */
.specs-title-aside {
    display: block;
    margin-top: 14px;
    font-family: 'General Sans', sans-serif;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0;
    color: var(--text-dim);
}

.specs-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 100px;
    line-height: 1.6;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.sp {
    padding: 40px 20px;
    border-top: 1px solid var(--line);
}

.sp-num {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(52px, 6vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-dash {
    background: var(--accent-bright);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-label {
    font-size: 13px;
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
    padding: 200px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(63, 168, 158, 0.25) 0%, transparent 60%);
    filter: blur(100px);
    z-index: 0;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(48px, 7vw, 110px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 36px;
    background: var(--text);
    color: var(--bg);
    font-size: 16px;
    font-weight: 600;
    border-radius: 100px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.15);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 80px rgba(63, 168, 158, 0.4);
}

.cta-btn svg {
    transition: transform 0.3s;
}

.cta-btn:hover svg {
    transform: translateY(3px);
}

.cta-meta {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Last-chance email capture above the main footer columns.
   Quiet, single-line on desktop; stacks on mobile.
   "We only email at launch." Anti-popup, anti-hype. */
.foot-capture {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 800px 200px at 50% 50%, rgba(63, 168, 158, 0.04) 0%, transparent 70%),
        rgba(255, 255, 255, 0.01);
    padding: 36px 32px;
}

.foot-capture-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}

.foot-capture-copy {
    flex: 1 1 320px;
    min-width: 0;
}

.foot-capture-line {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.25;
}

.foot-capture-sub {
    font-size: 13px;
    color: var(--text-faint);
    line-height: 1.55;
    max-width: 460px;
}

.foot-capture-form {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    transition: border-color 0.25s, box-shadow 0.25s;
    min-width: 0;
    flex: 0 1 420px;
}

.foot-capture-form:focus-within {
    border-color: rgba(90, 212, 196, 0.4);
    box-shadow: 0 0 0 4px rgba(90, 212, 196, 0.07);
}

.foot-capture-form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
}

.foot-capture-form input::placeholder { color: var(--text-faint); }

.foot-capture-form button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #5AD4C4 0%, #3FA89E 100%);
    color: #000;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 6px 16px -4px rgba(90, 212, 196, 0.4);
}

.foot-capture-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -4px rgba(90, 212, 196, 0.55);
}

@media (max-width: 680px) {
    .foot-capture { padding: 28px 22px; }
    .foot-capture-inner { gap: 20px; }
    .foot-capture-form {
        width: 100%;
        flex: 1 1 100%;
    }
    .foot-capture-form input { font-size: 16px; /* avoid iOS zoom */ }
}

.foot {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-faint);
}

.foot-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foot a {
    color: var(--text-dim);
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.foot a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .nav nav a:not(.nav-cta) {
        display: none;
    }

    .hero {
        height: auto;
    }

    .hero-pin {
        position: relative;
        height: auto;
        padding: 140px 0 60px;
    }

    .hero-stage {
        transform: none !important;
    }

    .product-hero {
        transform: scale(1) !important;
    }

    .statement {
        padding: 100px 0;
    }

    .feature-block {
        margin-bottom: 120px;
    }

    .feature-visual {
        padding: 24px;
    }

    .specs {
        padding: 120px 0;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cta {
        padding: 140px 24px;
    }

    .foot-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ============================================================
   INDEX.PHP ADDITIONS — accurate app mock, new features, claim
   App palette: bg #1C1C2E / card #28283E / accent #5AC8C8
   ============================================================ */

:root {
    --app-bg: #1C1C2E;
    --app-surface: #28283E;
    --app-surface-2: #30304A;
    --app-accent: #5AC8C8;
    --app-text: #E0E0E8;
    --app-text-dim: #8888A0;
    --app-divider: #35354A;
}

/* ---------- Accurate app mockup ---------- */
.app-mock {
    position: relative;
    background: var(--app-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    width: 520px;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 60px 120px -40px rgba(0,0,0,0.9),
                0 30px 60px -30px rgba(90, 200, 200, 0.08);
    color: var(--app-text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'General Sans', sans-serif;
}
.am-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--app-bg);
}
.am-title {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.am-gear {
    color: var(--app-text-dim);
    display: inline-flex;
}
.am-search {
    margin: 0 12px 8px;
    padding: 8px 10px;
    background: var(--app-surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--app-text-dim);
    font-size: 12px;
}
.am-body {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0;
    min-height: 340px;
}
.am-side {
    padding: 6px 4px 10px;
    border-right: 1px solid var(--app-divider);
}
.am-row {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin: 0 6px;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--app-text);
    font-weight: 500;
}
.am-row.am-active {
    background: rgba(90, 200, 200, 0.15);
    color: var(--app-accent);
}
.am-row.am-sub {
    padding-left: 22px;
    color: var(--app-text-dim);
    font-weight: 400;
    font-size: 12px;
}
.am-row .am-icon {
    font-size: 10px;
    color: var(--app-text-dim);
    text-align: center;
}
.am-row.am-active .am-icon { color: var(--app-accent); }
.am-count {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--app-surface);
    color: var(--app-text-dim);
}
.am-row.am-active .am-count {
    background: rgba(90, 200, 200, 0.2);
    color: var(--app-accent);
}
.am-divider {
    height: 1px;
    background: var(--app-divider);
    margin: 6px 14px;
}
.am-main {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--app-bg);
}
.am-card {
    background: var(--app-surface);
    border: 1px solid var(--app-divider);
    border-radius: 8px;
    padding: 10px 12px;
}
.am-card-title {
    font-weight: 600;
    font-size: 12.5px;
    color: var(--app-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.am-vars {
    display: inline-block;
    font-size: 9px;
    font-weight: 500;
    color: var(--app-accent);
    background: rgba(90, 200, 200, 0.12);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: ui-monospace, 'SF Mono', monospace;
}
.am-card-body {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--app-text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Summon triptych ---------- */
.fv-summon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    background: transparent;
    border: none;
}
.sum-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 36px 28px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.sum-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.sum-icon {
    font-size: 40px;
    line-height: 1;
    color: var(--accent-bright);
    margin-bottom: 18px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sum-label {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 6px;
}
.sum-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}
.kbd-row { display: inline-flex; gap: 4px; }

/* ---------- Nested categories (tree) ---------- */
.fv-tree {
    padding: 28px;
}
.tree {
    background: var(--app-bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 10px;
    max-width: 420px;
    margin: 0 auto;
}
.tree-row {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--app-text);
}
.tree-row.tree-d1 { padding-left: 22px; }
.tree-row.tree-d2 {
    padding-left: 38px;
    color: var(--app-text-dim);
    font-size: 12.5px;
    font-weight: 400;
}
.tree-chev, .tree-dot {
    font-size: 10px;
    color: var(--app-text-dim);
    text-align: center;
}
.tree-folder { font-weight: 500; }
.tree-count {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--app-surface);
    color: var(--app-text-dim);
    border-radius: 10px;
}

/* ---------- Variables demo ---------- */
.fv-vars {
    padding: 28px;
}
.var-card {
    background: var(--app-bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    max-width: 520px;
    margin: 0 auto;
}
.var-template {
    font-size: 15px;
    line-height: 1.7;
    color: var(--app-text);
    margin-bottom: 20px;
}
.var-slot {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.var-slot.filled {
    background: rgba(90, 200, 200, 0.14);
    color: var(--app-accent);
}
.var-slot.typing {
    background: rgba(90, 200, 200, 0.22);
    color: var(--app-accent);
    box-shadow: 0 0 0 1px var(--app-accent);
}
.var-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.var-field {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}
.var-field-active {
    background: rgba(90, 200, 200, 0.08);
}
.var-key {
    font-family: ui-monospace, 'SF Mono', monospace;
    color: var(--app-text-dim);
    font-size: 12px;
}
.var-val { color: var(--app-text); }
.cursor {
    display: inline-block;
    color: var(--app-accent);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Search additions ---------- */
.sd-row-clip { display: flex; align-items: center; gap: 8px; }
.sd-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--text-dim);
}

/* ---------- Your data ---------- */
.fv-data { padding: 48px 28px; }
.data-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.data-pill {
    padding: 14px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
}
.data-arrow {
    font-size: 24px;
    color: var(--text-faint);
    margin: 0 8px;
}
.data-disk {
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #000;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
}

/* ---------- Themes split ---------- */
.fv-themes { padding: 0; background: transparent; border: none; }
.theme-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.theme-half {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.th-mock {
    height: 280px;
    background-size: 180px 180px;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.th-mock-dark {
    background: radial-gradient(circle at 30% 30%, #28283E 0%, #1C1C2E 70%);
}
.th-mock-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#5AC8C8 0 0) 0 56px / 62% 2px no-repeat,
        linear-gradient(#35354A 0 0) 0 80px / 48% 2px no-repeat,
        linear-gradient(#35354A 0 0) 0 98px / 55% 2px no-repeat,
        linear-gradient(#35354A 0 0) 0 116px / 40% 2px no-repeat;
    background-origin: padding-box;
    margin: 30px 30px 0 40px;
    border-radius: 8px;
    background-color: rgba(40,40,62,0.5);
    padding: 20px;
}
.th-mock-light {
    background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #F0F0F4 70%);
}
.th-mock-light::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#3AABAB 0 0) 0 56px / 62% 2px no-repeat,
        linear-gradient(#D8D8E0 0 0) 0 80px / 48% 2px no-repeat,
        linear-gradient(#D8D8E0 0 0) 0 98px / 55% 2px no-repeat,
        linear-gradient(#D8D8E0 0 0) 0 116px / 40% 2px no-repeat;
    background-origin: padding-box;
    margin: 30px 30px 0 40px;
    border-radius: 8px;
    padding: 20px;
}
.th-label {
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: var(--surface);
}
.theme-half.theme-light .th-label { color: #555; background: #fff; }

/* ---------- Keyboard grid ---------- */
.fv-keys {
    padding: 36px 28px;
}
.kbd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
}
.kbd-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.kbd-note {
    color: var(--text-dim);
    font-size: 13px;
}

/* ---------- kbd + code inline ---------- */
kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 5px;
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin: 0 1px;
}
code {
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 0.9em;
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-bright);
}

/* ---------- Claim (email gate) ---------- */
.claim {
    padding: 180px 24px 160px;
    background: linear-gradient(180deg, var(--bg) 0%, #06060A 60%, var(--bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.claim::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 640px;
    height: 640px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(90, 200, 200, 0.18) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}
.claim-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}
.claim-eyebrow {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 24px;
}
.claim-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}
.claim-sub {
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 44px;
}
.claim-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px;
    transition: border-color 0.3s;
}
.claim-form:focus-within {
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 4px rgba(90, 200, 200, 0.1);
}
.claim-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
}
.claim-form input[type="email"]::placeholder {
    color: var(--text-faint);
}
.claim-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}
.claim-form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}
.claim-count {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.claim-count-num {
    color: var(--accent-bright);
    font-weight: 700;
}
.claim-fine {
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Second statement variant ---------- */
.statement-dark {
    background: #000;
    padding: 200px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- Nav CTA ---------- */
.nav-cta {
    padding: 6px 14px;
    background: var(--accent);
    color: #000 !important;
    border-radius: 8px;
    font-weight: 600;
}

/* ---------- Footer ---------- */
.foot {
    padding: 80px 24px 32px;
    background: #06060A;
    color: var(--text-dim);
}
.foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.foot-brand {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 8px;
}
.foot-tag {
    font-size: 14px;
    max-width: 340px;
    line-height: 1.5;
}
.foot-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col-label {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}
.foot-col a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.2s;
    align-self: flex-start;     /* shrink-wrap so the hover underline tracks the text width, not the column */
}
.foot-col a:hover { color: var(--accent-bright); }
.foot-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-faint);
}
.foot-bottom a { color: var(--text-dim); }
.foot-bottom a:hover { color: var(--accent-bright); }

/* ---------- Responsive patches ---------- */
@media (max-width: 900px) {
    .fv-summon { grid-template-columns: 1fr; }
    .theme-split { grid-template-columns: 1fr; }
    .kbd-grid { grid-template-columns: repeat(2, 1fr); }
    .foot-inner { grid-template-columns: 1fr; gap: 40px; }
    .foot-cols { grid-template-columns: 1fr 1fr; }
    .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .app-mock { width: 100%; }
    .am-body { grid-template-columns: 140px 1fr; }
    .claim { padding: 120px 24px; }
    .claim-form { flex-direction: column; border-radius: 16px; }
    .claim-form button { width: 100%; justify-content: center; }
}

/* ============================================================
   POLISH — subtle grain, refined interactions, premium touches
   ============================================================ */

/* Ambient noise grain on dark surfaces (very subtle) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.03 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* Smoother nav: start transparent, add bg only on scroll */
.nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}
.nav.scrolled {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom-color: var(--line);
}

/* Premium eyebrow pill */
.feature-eyebrow {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-bright);
    background: rgba(63, 168, 158, 0.08);
    border: 1px solid rgba(63, 168, 158, 0.2);
    border-radius: 100px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.feature-eyebrow::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 8px var(--accent-bright);
    animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Refined feature visual card */
.feature-visual {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 30px 80px -40px rgba(0, 0, 0, 0.8),
        0 12px 40px -20px rgba(63, 168, 158, 0.08);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
}
.feature-block:hover .feature-visual {
    transform: translateY(-4px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 40px 100px -40px rgba(0, 0, 0, 0.9),
        0 16px 50px -20px rgba(63, 168, 158, 0.14);
}

/* Tighter rhythm between feature blocks */
.feature-block { margin-bottom: 140px; }
.feature-block:last-child { margin-bottom: 60px; }

/* Hero mockup — a little more lifted */
.drawer-big {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 60px 140px -50px rgba(0, 0, 0, 0.95),
        0 20px 60px -30px rgba(63, 168, 158, 0.2);
}

/* Smooth stack cards in clipboard history */
.stack-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stack:hover .stack-1 { transform: translateY(-6px) rotate(-1deg); }
.stack:hover .stack-2 { transform: translateY(-3px); }
.stack:hover .stack-3 { transform: translateY(0) rotate(1deg); }

/* Specs number hover */
.sp { transition: transform 0.3s; }
.sp:hover { transform: translateY(-3px); }

/* Claim: a touch more sophisticated */
.claim {
    border-top: 1px solid var(--line);
}
.claim::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
    opacity: 0.3;
}

/* Footer link micro-underline */
.foot-col a, .foot-bottom a {
    position: relative;
    transition: color 0.2s;
}
.foot-col a::after, .foot-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.foot-col a:hover::after, .foot-bottom a:hover::after { width: 100%; }

/* Selection */
::selection { background: rgba(63, 168, 158, 0.4); color: var(--text); }

/* Reduce statement padding on mobile */
@media (max-width: 900px) {
    .statement { padding: 96px 0; }
    .feature-block { margin-bottom: 96px; }
    .feature-visual { padding: 28px 20px; }
}

/* ============================================================
   MOBILE PERFECTING — index.php
   Breakpoints: 900, 640, 480
   ============================================================ */

@media (max-width: 900px) {
    /* Hero */
    .hero { padding: 100px 20px 80px; }
    .hero-pin { padding: 0; }
    .hero-title { font-size: clamp(40px, 9vw, 64px); }
    .hero-sub { margin-bottom: 44px; padding: 0 8px; }
    .product-hero { width: min(420px, 92vw); }
    .hero-scroll-cue { margin-top: 56px; }

    /* Drawer mockup stays readable */
    .db-body { min-height: 340px; }
    .db-side { width: 128px; padding: 8px 4px; }
    .db-item { padding: 6px 8px; font-size: 11.5px; }
    .db-badge { font-size: 9.5px; padding: 1px 5px; }
    .db-main { padding: 8px; }
    .db-card { padding: 9px 11px; }
    .db-card-title { font-size: 12px; }
    .db-card-body { font-size: 10.5px; }

    /* Statement */
    .statement { padding: 88px 0; }
    .statement-inner { padding: 0 20px; }
    .statement-title { font-size: clamp(28px, 6.5vw, 44px); }
    .statement::before { width: 600px; height: 280px; }

    /* Features */
    .features { padding: 32px 0 80px; }
    .feature-block { margin-bottom: 88px; padding: 0 20px; }
    .feature-headline { font-size: clamp(28px, 6vw, 44px); margin-bottom: 16px; }
    .feature-sub { margin-bottom: 40px; padding: 0 8px; }
    .feature-visual { padding: 24px 18px; border-radius: 16px; }

    /* Specs */
    .specs { padding: 100px 20px; }
    .specs-head { margin-bottom: 48px; }
    .specs-title { font-size: clamp(32px, 7vw, 52px); }
    .specs-sub { margin-bottom: 40px; padding: 0 4px; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .sp-num { font-size: clamp(40px, 9vw, 64px); }
    .sp-label { font-size: 11px; }

    /* Claim */
    .claim { padding: 100px 20px; }
    .claim-title { font-size: clamp(36px, 8vw, 56px); line-height: 1.05; }
    .claim-sub { font-size: 15px; margin-bottom: 32px; padding: 0 4px; }
    .claim-sub br { display: none; }
    .claim-form {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        border-radius: 16px;
    }
    .claim-form input[type="email"] { padding: 16px 16px; font-size: 16px; /* avoid iOS zoom */ }
    .claim-form button {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 15px;
        min-height: 48px;
    }

    /* Nav: simplify, ensure CTA fits */
    .nav-inner { padding: 0 20px; }
    .nav nav { gap: 18px; }
    .nav-cta { padding: 7px 12px; font-size: 12px; }

    /* Footer */
    .foot { padding: 64px 20px 28px; }
}

@media (max-width: 640px) {
    /* Nav — hide secondary links, keep only brand + CTA */
    .nav nav a:not(.nav-cta) { display: none; }
    .nav-inner { padding: 0 18px; }

    /* Hero */
    .hero { padding: 96px 16px 64px; }
    .hero-eyebrow { margin-bottom: 16px; font-size: 13px; }
    .hero-title { font-size: clamp(34px, 10vw, 52px); line-height: 1.05; }
    .hero-sub { font-size: 15px; line-height: 1.55; margin-bottom: 36px; }
    .hero-scroll-cue { margin-top: 48px; font-size: 10px; }
    .cue-line { height: 32px; }

    /* Drawer mockup — compact */
    .drawer-big { border-radius: 12px; }
    .db-head { padding: 12px 14px 10px; }
    .db-name { font-size: 13px; margin-bottom: 8px; }
    .db-search { padding: 7px 10px; font-size: 11.5px; }
    .db-body { min-height: 300px; }
    .db-side { width: 118px; }
    .db-item { font-size: 11px; }

    /* Feature */
    .feature-block { margin-bottom: 72px; padding: 0 16px; }
    .feature-eyebrow { font-size: 10px; padding: 5px 12px; margin-bottom: 20px; }
    .feature-headline { font-size: clamp(26px, 8vw, 38px); }
    .feature-sub { font-size: 15px; line-height: 1.55; padding: 0; }
    .feature-visual { padding: 20px 14px; border-radius: 14px; }

    /* Stack cards */
    .stack-card { padding: 14px 16px; }
    .sc-head { font-size: 10px; }
    .sc-body { font-size: 13px; }

    /* Category chips */
    .cat-grid { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .cat-chip { padding: 8px 14px; font-size: 13px; }

    /* Search demo */
    .search-demo { max-width: 100%; }
    .sd-input { padding: 12px 14px; font-size: 15px; }
    .sd-results { font-size: 13px; }

    /* Statement */
    .statement { padding: 72px 0; }
    .statement-title { font-size: clamp(24px, 7vw, 36px); line-height: 1.15; }

    /* Specs */
    .specs { padding: 80px 16px; }
    .specs-head { margin-bottom: 40px; }
    .specs-title { font-size: clamp(28px, 8vw, 44px); }
    .specs-sub { font-size: 14px; }
    .specs-grid { gap: 12px; }
    .sp {
        padding: 20px 14px;
    }
    .sp-num { font-size: clamp(32px, 10vw, 52px); }
    .sp-label { font-size: 10.5px; letter-spacing: 0.08em; }

    /* Claim */
    .claim { padding: 80px 18px 88px; }
    .claim-eyebrow { font-size: 10px; margin-bottom: 20px; }
    .claim-title { font-size: clamp(30px, 9vw, 42px); }
    .claim-sub { font-size: 14px; margin-bottom: 28px; }
    .claim-count { font-size: 13px; }
    .claim-fine { font-size: 11px; }

    /* Footer */
    .foot { padding: 56px 16px 24px; }
    .foot-inner { gap: 32px; }
    .foot-brand { font-size: 20px; }
    .foot-tag { font-size: 13px; }
    .foot-col-label { font-size: 10px; }
    .foot-col a { font-size: 13px; }
    .foot-bottom { font-size: 11px; flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 400px) {
    /* Tightest phones */
    .hero { padding: 84px 14px 56px; }
    .hero-title { font-size: clamp(30px, 11vw, 40px); }
    .product-hero { width: 94vw; }
    .db-side { width: 108px; }

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

    .claim-title { font-size: clamp(26px, 10vw, 34px); }
    .claim-form input[type="email"] { padding: 14px 14px; }

    .nav-cta { padding: 7px 10px; font-size: 11.5px; }
}

/* Touch devices — kill hover-only transitions that feel weird on tap */
@media (hover: none) and (pointer: coarse) {
    .stack:hover .stack-card { transform: none; }
    .feature-block:hover .feature-visual { transform: none; }
    .sp:hover { transform: none; }
    body::before { opacity: 0.3; }  /* reduce noise on mobile for perf */
}

/* ============================================================
   LINE-BREAK HYGIENE — balance headlines, prevent orphans
   ============================================================ */
.hero-title,
.statement-title,
.feature-headline,
.specs-title,
.claim-title {
    text-wrap: balance;
}

.hero-sub,
.feature-sub,
.specs-sub,
.claim-sub {
    text-wrap: pretty;
    hyphens: none;
}

/* For paragraphs, prefer keeping the last word with the previous one */
.hero-sub, .specs-sub, .claim-sub, .feature-sub {
    orphans: 2;
    widows: 2;
}
