/* DeepScribe Landing — editorial dark theme with warm amber accents.
 *
 * Philosophy: warm dark + PT Serif display + Onest body.
 * Inspired by NYT Magazine, Linear, Stripe — but russian-warm.
 */

/* ═══ RESET ═══════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

/* ═══ TOKENS ══════════════════════════════════════════════════════ */

:root {
    /* Warm dark palette */
    --bg:           #0F0E0C;
    --surface:      #1A1815;
    --surface-2:    #221F1B;
    --surface-3:    #2A2723;
    --border:       #2F2B27;
    --border-soft:  #25221E;

    /* Warm typography */
    --text:         #F5F1EA;
    --text-mid:     #BAB3A6;
    --text-dim:     #847C70;

    /* Accents */
    --amber:        #E8B14A;
    --amber-soft:   rgba(232, 177, 74, 0.12);
    --amber-glow:   rgba(232, 177, 74, 0.35);
    --sage:         #6B9D85;
    --sage-soft:    rgba(107, 157, 133, 0.12);
    --rust:         #C26646;

    /* Typography scale */
    --font-serif:   "PT Serif", Georgia, "Times New Roman", serif;
    --font-sans:    "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-mono:    "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

    /* Spacing */
    --container:    1200px;
    --gutter:       24px;

    /* Transitions */
    --t-fast:       150ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-normal:     280ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow:       500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ BASE ═══════════════════════════════════════════════════════ */

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--amber);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

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

/* Grain texture overlay */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* ═══ CONTAINER ══════════════════════════════════════════════════ */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ═══ BUTTONS ════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--t-normal);
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn--primary {
    background: var(--amber);
    color: var(--bg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 8px 24px -8px var(--amber-glow);
}

.btn--primary:hover {
    background: #F4C168;
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 12px 32px -8px var(--amber-glow);
}

.btn--secondary {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border);
}

.btn--secondary:hover {
    background: var(--surface-3);
    border-color: #3D3934;
    color: var(--text);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--amber);
}

.btn--big {
    padding: 15px 26px;
    font-size: 16px;
    border-radius: 12px;
}

.btn--block {
    width: 100%;
}

/* ═══ HEADER ═════════════════════════════════════════════════════ */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 14, 12, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-soft);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}

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

.brand__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--amber);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.04em;
}

.brand__name {
    font-family: var(--font-serif);
    font-size: 19px;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 14.5px;
    color: var(--text-mid);
}

.nav a {
    color: var(--text-mid);
    position: relative;
}

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

.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--amber);
    transition: width var(--t-normal);
}

.nav a:hover::after {
    width: 100%;
}

.header__cta {
    display: flex;
    gap: 10px;
}

/* ═══ HERO ═══════════════════════════════════════════════════════ */

.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero__mesh {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 900px;
    pointer-events: none;
    background:
        radial-gradient(ellipse 600px 300px at 30% 40%, rgba(232, 177, 74, 0.12), transparent 60%),
        radial-gradient(ellipse 500px 400px at 70% 30%, rgba(107, 157, 133, 0.08), transparent 60%),
        radial-gradient(ellipse 400px 300px at 50% 70%, rgba(194, 102, 70, 0.06), transparent 60%);
    filter: blur(40px);
    opacity: 0.9;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--amber-soft);
    border: 1px solid rgba(232, 177, 74, 0.25);
    border-radius: 999px;
    font-size: 13px;
    color: var(--amber);
    font-weight: 500;
    animation: fadeUp 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.badge__dot {
    width: 6px;
    height: 6px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--amber-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(40px, 7vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 28px 0 24px;
    animation: fadeUp 700ms cubic-bezier(0.4, 0, 0.2, 1) 100ms both;
}

.hero__title em {
    font-style: italic;
    color: var(--amber);
    font-weight: 400;
}

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

.hero__subtitle {
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.5;
    color: var(--text-mid);
    max-width: 620px;
    margin: 0 auto 36px;
    animation: fadeUp 700ms cubic-bezier(0.4, 0, 0.2, 1) 200ms both;
}

.hero__actions {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 700ms cubic-bezier(0.4, 0, 0.2, 1) 300ms both;
}

.hero__signals {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--text-dim);
    animation: fadeUp 700ms cubic-bezier(0.4, 0, 0.2, 1) 400ms both;
}

.hero__signals span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* ─── HERO DEMO CARD ─────────────────────────────────────────── */

.hero__demo {
    margin-top: 72px;
    perspective: 1200px;
    animation: fadeUp 900ms cubic-bezier(0.4, 0, 0.2, 1) 500ms both;
}

.demo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 920px;
    margin: 0 auto;
    text-align: left;
    overflow: hidden;
    box-shadow:
        0 24px 80px -16px rgba(0, 0, 0, 0.6),
        0 8px 24px -8px rgba(0, 0, 0, 0.4);
    transform: rotateX(2deg);
    transition: transform var(--t-slow);
}

.demo-card:hover {
    transform: rotateX(0);
}

.demo-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
}

.demo-card__dots {
    display: flex;
    gap: 6px;
}

.demo-card__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-3);
}

.demo-card__dots span:first-child { background: #FF5F57; }
.demo-card__dots span:nth-child(2) { background: #FEBC2E; }
.demo-card__dots span:last-child { background: #28C840; }

.demo-card__title {
    flex: 1;
    color: var(--text-mid);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.demo-card__badge {
    color: var(--sage);
    font-weight: 500;
    font-size: 12.5px;
}

.demo-card__tabs {
    display: flex;
    border-bottom: 1px solid var(--border-soft);
    padding: 0 8px;
}

.demo-tab {
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--t-fast);
}

.demo-tab:hover {
    color: var(--text-mid);
}

.demo-tab.is-active {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

.demo-card__content {
    padding: 22px 26px;
    min-height: 240px;
}

.demo-line {
    display: grid;
    grid-template-columns: 64px 90px 1fr;
    gap: 12px;
    padding: 8px 0;
    align-items: baseline;
    font-size: 14.5px;
    line-height: 1.55;
    animation: fadeIn 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.demo-line:nth-child(1) { animation-delay: 0ms; }
.demo-line:nth-child(2) { animation-delay: 100ms; }
.demo-line:nth-child(3) { animation-delay: 200ms; }
.demo-line:nth-child(4) { animation-delay: 300ms; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

.demo-tc {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: -0.01em;
}

.demo-spk {
    font-weight: 600;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: max-content;
}

.demo-spk--1 {
    color: var(--amber);
    background: var(--amber-soft);
}

.demo-spk--2 {
    color: var(--sage);
    background: var(--sage-soft);
}

.demo-spk--3 {
    color: var(--rust);
    background: rgba(194, 102, 70, 0.12);
}

.demo-text {
    color: var(--text);
}

.demo-h {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--amber);
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
}

.demo-h:first-child {
    margin-top: 0;
}

.demo-p {
    color: var(--text-mid);
    line-height: 1.6;
    font-size: 14.5px;
}

.demo-ul {
    margin-left: 18px;
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 14.5px;
}

.demo-tasks {
    list-style: none;
    padding: 0;
}

.demo-tasks li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 14.5px;
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
}

.demo-tasks li:last-child {
    border-bottom: none;
}

.demo-tasks li::before {
    content: "○";
    position: absolute;
    left: 6px;
    color: var(--amber);
    font-size: 16px;
    line-height: 1.5;
}

.demo-who {
    color: var(--amber);
    font-weight: 600;
}

.demo-when {
    color: var(--text-dim);
    font-size: 12.5px;
    font-style: italic;
}

/* ═══ STRIP (use cases teaser) ═══════════════════════════════════ */

.strip {
    padding: 36px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}

.strip__label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 16px;
}

.strip__items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--text-mid);
    font-size: 15px;
    font-family: var(--font-serif);
    font-style: italic;
}

.strip__items span:nth-child(even) {
    color: var(--text-dim);
}

/* ═══ SECTIONS ═══════════════════════════════════════════════════ */

.section {
    padding: 110px 0;
    position: relative;
}

.section--alt {
    background: linear-gradient(180deg, var(--bg) 0%, #100F0D 100%);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--amber);
    letter-spacing: 0.12em;
    padding: 4px 12px;
    background: var(--amber-soft);
    border-radius: 4px;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.section-lede {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-mid);
    font-family: var(--font-serif);
    font-style: italic;
}

/* ═══ FEATURES GRID ══════════════════════════════════════════════ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all var(--t-normal);
}

.feature:hover {
    border-color: var(--amber);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
}

.feature__num {
    font-family: var(--font-mono);
    font-size: 28px;
    color: var(--amber);
    margin-bottom: 16px;
    line-height: 1;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text);
}

.feature p {
    color: var(--text-mid);
    font-size: 14.5px;
    line-height: 1.6;
}

.feature a {
    color: var(--amber);
}

/* ═══ COMPARE TABLE ══════════════════════════════════════════════ */

.compare {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    overflow-x: auto;
}

.compare__row {
    display: grid;
    grid-template-columns: 2.4fr 1.2fr 1fr 1fr 1.2fr;
    border-bottom: 1px solid var(--border-soft);
    align-items: center;
    min-width: 760px;
}

.compare__row:last-child {
    border-bottom: none;
}

.compare__row--head {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--text);
}

.compare__cell {
    padding: 14px 18px;
    font-size: 14.5px;
    color: var(--text-mid);
}

.compare__cell--feat {
    color: var(--text);
    font-weight: 500;
}

.compare__cell--us {
    background: var(--amber-soft);
    color: var(--text);
    text-align: center;
    font-weight: 500;
    border-left: 1px solid rgba(232, 177, 74, 0.25);
    border-right: 1px solid rgba(232, 177, 74, 0.25);
}

.compare__cell--us b {
    color: var(--amber);
}

.compare__row--head .compare__cell--us {
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--amber);
}

.compare__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--amber);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.04em;
}

.compare__note {
    margin-top: 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13.5px;
    font-style: italic;
    font-family: var(--font-serif);
}

/* ═══ PRICING ════════════════════════════════════════════════════ */

.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.plan {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all var(--t-normal);
}

.plan:hover {
    transform: translateY(-3px);
    border-color: #3D3934;
}

.plan--featured {
    border-color: var(--amber);
    background: linear-gradient(180deg, rgba(232, 177, 74, 0.06) 0%, var(--surface) 100%);
    box-shadow: 0 16px 48px -20px var(--amber-glow);
}

.plan--featured:hover {
    border-color: var(--amber);
    transform: translateY(-5px);
}

.plan__ribbon {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--amber);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan__head {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
}

.plan__name {
    font-size: 24px;
    margin-bottom: 6px;
}

.plan__price {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.plan__price span {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 400;
    margin-left: 6px;
}

.plan__features {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.plan__features li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 14.5px;
    color: var(--text-mid);
    line-height: 1.5;
}

.plan__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: 600;
}

.plan__features b {
    color: var(--text);
}

.plan__features small {
    color: var(--text-dim);
    font-size: 12.5px;
}

.pay-as-you-go {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.pay-as-you-go h4 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 4px;
    font-family: var(--font-serif);
}

.pay-as-you-go p {
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.5;
}

/* ═══ USE CASES ══════════════════════════════════════════════════ */

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.use-case {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all var(--t-normal);
    display: flex;
    flex-direction: column;
}

.use-case:hover {
    border-color: var(--amber);
    transform: translateY(-3px);
}

.use-case__tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.use-case h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 400;
}

.use-case p {
    color: var(--text-mid);
    font-size: 14.5px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.use-case > a {
    color: var(--amber);
    font-weight: 500;
    font-size: 14px;
    align-self: flex-start;
}

.use-case > a:hover {
    color: #F4C168;
}

/* ═══ ECOSYSTEM ══════════════════════════════════════════════════ */

.ecosystem {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.eco-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    color: var(--text);
    transition: all var(--t-normal);
    display: flex;
    flex-direction: column;
}

.eco-card:hover {
    border-color: var(--amber);
    background: var(--surface-2);
    color: var(--text);
    transform: translateY(-3px);
}

.eco-card__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.eco-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.eco-card p {
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.eco-card__link {
    color: var(--amber);
    font-size: 13.5px;
    font-weight: 500;
    margin-top: auto;
}

/* ═══ FAQ ════════════════════════════════════════════════════════ */

.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}

.faq-item summary {
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color var(--t-fast);
}

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

.faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--amber);
    transition: transform var(--t-normal);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--amber);
}

.faq-item p {
    padding-top: 14px;
    color: var(--text-mid);
    font-size: 15.5px;
    line-height: 1.65;
}

.faq-item a {
    color: var(--amber);
}

/* ═══ CTA FINAL ══════════════════════════════════════════════════ */

.cta-final {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 300px at 50% 50%, rgba(232, 177, 74, 0.15), transparent 60%);
    pointer-events: none;
}

.cta-final__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-final__title {
    font-size: clamp(34px, 5.5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-final__title br {
    /* Mobile: br делает разрыв, desktop тоже */
}

.cta-final__sub {
    color: var(--text-mid);
    font-size: 18px;
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 36px;
}

.cta-final__buttons {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ═══ FOOTER ═════════════════════════════════════════════════════ */

.footer {
    background: #0B0A09;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__col--brand p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 320px;
}

.footer__col--brand a {
    color: var(--amber);
}

.footer__col h4 {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    padding: 6px 0;
    color: var(--text-mid);
    font-size: 14px;
}

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

.footer__bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__org {
    color: var(--text-dim);
    font-size: 12.5px;
    line-height: 1.5;
    font-family: var(--font-mono);
}

.footer__copyright {
    color: var(--text-dim);
    font-size: 12.5px;
    margin-top: 6px;
}

.footer__signoff {
    color: var(--text-dim);
    font-size: 12.5px;
    font-family: var(--font-serif);
    font-style: italic;
}

/* ═══ MOBILE ═════════════════════════════════════════════════════ */

@media (max-width: 820px) {
    .nav { display: none; }
    .header__cta .btn--ghost { display: none; }

    .hero {
        padding: 50px 0 60px;
    }

    .hero__signals {
        flex-direction: column;
        gap: 8px;
    }

    .demo-line {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    .demo-tc, .demo-spk {
        font-size: 12px;
    }

    .section {
        padding: 70px 0;
    }

    .section-head {
        margin-bottom: 44px;
    }

    .compare__row {
        grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 1fr;
    }

    .compare__cell {
        padding: 10px 12px;
        font-size: 13px;
    }

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

    .footer__col--brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    :root { --gutter: 16px; }
    .header__inner { height: 60px; }
    .brand__name { display: none; }

    .hero__title { font-size: 38px; }
    .section-title { font-size: 30px; }
    .cta-final__title { font-size: 30px; }

    .pay-as-you-go { flex-direction: column; align-items: flex-start; }
}

/* ═══ REVEAL (IntersectionObserver fade-in) ══════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 800ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
