/* ================================================================
   VoxCraft Landing Page
   Dark editorial theme · Figtree + Cormorant · oklch palette
   ================================================================ */

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

:root {
    --ff: "Figtree", system-ui, sans-serif;
    --ff-display: "Cormorant", Georgia, serif;

    --bg-deep:   oklch(0.08 0.012 280);
    --bg-dark:   oklch(0.1 0.012 280);
    --bg:        oklch(0.17 0.01 280);
    --bg-light:  oklch(0.22 0.008 280);
    --bg-card:   oklch(0.14 0.01 280);

    --primary:     oklch(0.66 0.2 262.83);
    --primary-dim: oklch(0.52 0.29 261.59);
    --secondary:   oklch(0.64 0.23 300.93);

    --text:       oklch(0.93 0.008 80);
    --text-muted: oklch(0.58 0.015 270);
    --text-dim:   oklch(0.42 0.012 270);

    --glow: oklch(0.66 0.2 262.83 / 0.15);

    --transition: 0.25s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-deep);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Utility --- */
.section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Reveal animations --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: oklch(0.08 0.012 280 / 0.85);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.logo-icon { 
    color: var(--primary); 
    margin-bottom: 5px;
}
.logo-text { color: var(--text); }

.main-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}
.main-nav a {
    transition: color var(--transition);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-family: var(--ff);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-dim);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
    white-space: nowrap;
}
.btn-primary:hover {
    background: var(--primary);
    box-shadow: 0 0 24px var(--glow);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-family: var(--ff);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid oklch(1 0 0 / 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    white-space: nowrap;
}
.btn-ghost:hover {
    color: var(--text);
    border-color: oklch(1 0 0 / 0.2);
    background: oklch(1 0 0 / 0.04);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.8rem 1.8rem; font-size: 0.9375rem; }

/* --- Mobile toggle --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-nav > a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
    transition: color var(--transition);
}
.mobile-nav > a:hover { color: var(--text); }

.mobile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
}
.mobile-actions .btn-ghost,
.mobile-actions .btn-primary { flex: 1; justify-content: center; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 4rem;
    text-align: center;
    overflow: hidden;
}

/* Atmospheric glow */
.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, oklch(0.52 0.29 261.59 / 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Subtle dot grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.hero-title em {
    font-style: italic;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Hero Visual: Waveform Display --- */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.waveform-display {
    background: var(--bg-card);
    border: 1px solid oklch(1 0 0 / 0.07);
    border-radius: var(--radius);
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 24px 64px oklch(0 0 0 / 0.4),
                0 0 0 1px oklch(1 0 0 / 0.03) inset;
}

.waveform-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 72px;
    margin-bottom: 1.5rem;
}
.waveform-bars span {
    width: 4px;
    height: var(--h, 50%);
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.6;
    animation: waveBar 1.8s ease-in-out calc(var(--i) * 0.09s) infinite alternate;
}

@keyframes waveBar {
    0%   { height: var(--h, 50%); opacity: 0.4; }
    50%  { height: calc(var(--h, 50%) * 0.5); opacity: 0.6; }
    100% { height: var(--h, 50%); opacity: 0.9; }
}

.waveform-transcript {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    font-family: var(--ff);
}

.transcript-line {
    display: block;
    opacity: 0;
    animation: typeIn 0.5s ease forwards;
}
.tl-1 {
    color: var(--text-muted);
    animation-delay: 0.8s;
}
.tl-2 {
    color: var(--secondary);
    font-weight: 500;
    animation-delay: 2.2s;
}
.tl-3 {
    color: var(--text);
    animation-delay: 3.5s;
}

.md-marker {
    color: var(--primary);
    font-weight: 600;
}

.accent { font-style: italic; }

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

/* ================================================================
   SECTIONS — shared
   ================================================================ */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}
.section-title em {
    font-style: italic;
    color: var(--primary);
}

/* ================================================================
   FEATURES
   ================================================================ */
.features {
    padding: 7rem 0;
    background: var(--bg-dark);
    border-top: 1px solid oklch(1 0 0 / 0.04);
    border-bottom: 1px solid oklch(1 0 0 / 0.04);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid oklch(1 0 0 / 0.06);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s ease;
}
.feature-card:hover {
    border-color: oklch(1 0 0 / 0.1);
    box-shadow: 0 8px 32px oklch(0 0 0 / 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(0.52 0.29 261.59 / 0.1);
    border-radius: 10px;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: var(--ff);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works {
    padding: 7rem 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 0.5rem;
}

.step {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 0 0.5rem;
}

.step-number {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 0.75rem;
}

.step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: oklch(0.52 0.29 261.59 / 0.08);
    border: 1px solid oklch(0.52 0.29 261.59 / 0.15);
    border-radius: 50%;
    color: var(--primary);
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.step p {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.step-connector {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-top: 4.5rem;
    color: var(--text-dim);
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing {
    padding: 7rem 0;
    background: var(--bg-dark);
    border-top: 1px solid oklch(1 0 0 / 0.04);
    border-bottom: 1px solid oklch(1 0 0 / 0.04);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid oklch(1 0 0 / 0.06);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card-pro {
    border-color: oklch(0.52 0.29 261.59 / 0.3);
}

.pricing-plan-name {
    font-family: var(--ff);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.pricing-plan-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pricing-plan-desc-basic {
    margin-bottom: calc(1.5rem + 45px);
}

/* Toggle switch */
.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.pricing-toggle-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color var(--transition);
}

.pricing-toggle-label--active {
    color: var(--text);
}

.pricing-toggle-switch {
    position: relative;
    width: 38px;
    height: 20px;
    background: var(--bg-light);
    border: 1px solid oklch(1 0 0 / 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), border-color var(--transition);
}

.pricing-toggle-switch[aria-checked="true"] {
    background: var(--primary-dim);
    border-color: var(--primary-dim);
}

.pricing-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.pricing-toggle-switch[aria-checked="true"] .pricing-toggle-knob {
    transform: translateX(18px);
}

/* Price display */
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
}

.pricing-currency {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
}

.pricing-amount {
    font-family: var(--ff-display);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text);
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pricing-billing-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.pricing-price-basic {
    margin-bottom: calc(0.35rem + 36px);
}

/* Feature list */
.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-features svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Subscribe button */
.pricing-subscribe {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.pricing-subscribe-dark {
    background: var(--bg-light);
    border: 1px solid oklch(1 0 0 / 0.1);
    color: var(--text);
}

.pricing-subscribe-dark:hover {
    background: oklch(1 0 0 / 0.08);
}

/* ================================================================
   DOWNLOAD
   ================================================================ */
.download {
    padding: 6rem 0;
    background: var(--bg-dark);
    border-top: 1px solid oklch(1 0 0 / 0.04);
    border-bottom: 1px solid oklch(1 0 0 / 0.04);
}

.download-content {
    text-align: center;
}

.download-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 480px;
    margin: 1.25rem auto 2.5rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: border-color var(--transition), background var(--transition), transform 0.15s ease;
    min-width: 180px;
}
.download-btn:hover {
    border-color: var(--primary);
    background: oklch(0.52 0.29 261.59 / 0.08);
    transform: translateY(-2px);
}
.download-btn svg { color: var(--primary); flex-shrink: 0; }

.dl-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.2;
}
.dl-platform {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
    padding: 7rem 0;
    text-align: center;
}

.cta-title {
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 2rem;
}
.cta-title em {
    font-style: italic;
    color: var(--primary);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid oklch(1 0 0 / 0.06);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-brand .logo-icon { color: var(--primary); }

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .steps {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .step {
        max-width: 260px;
    }
    .step-connector {
        display: none;
    }
}

@media (max-width: 640px) {
    .main-nav,
    .header-actions {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 1.25rem 3rem;
        min-height: auto;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .waveform-display {
        padding: 1.5rem 1.25rem;
    }
    .waveform-bars {
        height: 48px;
    }

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

    .features,
    .how-it-works,
    .pricing,
    .download,
    .final-cta {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    .download-btn {
        width: 100%;
        max-width: 280px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}
