/* ============================================
   GenAudioBook — Website Styles
   Clean, modern design inspired by audiobookgen.com
   Dark theme matching the macOS app
   ============================================ */

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

:root {
    --bg-body: #0a0a0f;
    --bg-section-alt: #0e0e14;
    --bg-card: #14141c;
    --bg-card-hover: #1a1a24;
    --bg-input: #1e1e28;
    --txt: #e4e4ec;
    --txt-secondary: #9494a0;
    --txt-muted: #6c6c78;
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-bg: rgba(37, 99, 235, 0.08);
    --accent-border: rgba(37, 99, 235, 0.25);
    --green: #34d399;
    --green-bg: rgba(52, 211, 153, 0.1);
    --green-border: rgba(52, 211, 153, 0.25);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'SF Mono', 'Fira Code', monospace;
    --max-w: 1120px;
    --section-py: 120px;
}

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

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--txt);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #fff;
}

img { max-width: 100%; height: auto; }

/* --- LAYOUT --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

section {
    padding: var(--section-py) 0;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--txt);
    letter-spacing: -0.4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--txt-secondary);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--txt); }

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

.lang-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    overflow: hidden;
}
.lang-toggle button {
    background: none;
    border: none;
    color: var(--txt-muted);
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.lang-toggle button.active {
    background: var(--accent);
    color: #fff;
}

.btn-nav-cta {
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    text-decoration: none;
}
.btn-nav-cta:hover {
    background: var(--accent-light);
    color: #fff;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--txt);
    font-size: 24px;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    padding-top: 180px;
    padding-bottom: var(--section-py);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #fff;
}

.hero .gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--txt-secondary);
    max-width: 620px;
    margin: 0 auto 44px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.25s;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--txt);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hover);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.25s;
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: var(--accent-border);
    color: #fff;
    transform: translateY(-2px);
}

/* --- SECTION HEADERS --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.15;
}

.section-header p {
    font-size: 18px;
    color: var(--txt-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all 0.3s;
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
}
.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 15px;
    color: var(--txt-secondary);
    line-height: 1.7;
}

/* --- ENGINE SECTION --- */
.engine-section {
    background: var(--bg-section-alt);
}

.engine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.engine-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.engine-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.engine-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.engine-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.engine-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.engine-badge.green {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}
.engine-badge.purple {
    background: var(--accent-bg);
    color: var(--accent-light);
    border: 1px solid var(--accent-border);
}
.engine-badge.neutral {
    background: rgba(255, 255, 255, 0.05);
    color: var(--txt-muted);
    border: 1px solid var(--border);
}

.engine-card .engine-desc {
    font-size: 15px;
    color: var(--txt-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.engine-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.engine-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.engine-meta-row .meta-label {
    color: var(--txt-muted);
    font-weight: 500;
}

.engine-meta-row .meta-value {
    color: var(--txt);
    font-weight: 600;
}

.engine-meta-row .meta-value.cloning-yes {
    color: var(--green);
}

/* --- STEPS --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 28px;
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
    letter-spacing: -0.3px;
}

.step-card p {
    font-size: 15px;
    color: var(--txt-secondary);
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 820px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 36px;
    position: relative;
    transition: all 0.3s;
}
.pricing-card:hover {
    border-color: var(--border-hover);
}

.pricing-card.featured {
    border-color: var(--accent-border);
    background: linear-gradient(180deg, rgba(124, 106, 239, 0.04) 0%, var(--bg-card) 100%);
}
.pricing-card.featured::before {
    content: attr(data-badge);
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.pricing-price {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -2px;
}
.pricing-price .currency {
    font-size: 24px;
    font-weight: 500;
    color: var(--txt-secondary);
}

.pricing-period {
    font-size: 15px;
    color: var(--txt-muted);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 36px;
}
.pricing-features li {
    font-size: 15px;
    color: var(--txt-secondary);
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}
.pricing-features li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 2px;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
}

/* --- SYSTEM REQUIREMENTS --- */
.sysreq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sysreq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
}
.sysreq-item:hover {
    border-color: var(--border-hover);
}

.sysreq-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
}
.sysreq-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sysreq-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.sysreq-item p {
    font-size: 14px;
    color: var(--txt-secondary);
    line-height: 1.5;
}

/* --- FAQ --- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

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

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 24px 0;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 600;
    color: var(--txt);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color 0.2s;
}
.faq-question:hover { color: #fff; }

.faq-arrow {
    font-size: 20px;
    color: var(--txt-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
    line-height: 1;
}
.faq-item.open .faq-arrow {
    transform: rotate(45deg);
    color: var(--accent-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--txt-secondary);
    line-height: 1.75;
}

/* --- CTA BANNER --- */
.cta-banner {
    text-align: center;
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border);
}

.cta-banner h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.cta-banner p {
    font-size: 18px;
    color: var(--txt-secondary);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
    padding: 72px 0 44px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--txt-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--txt-muted);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
    font-size: 14px;
    color: var(--txt-secondary);
    transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--txt-muted);
}

/* --- LEGAL PAGES --- */
.legal-page {
    padding-top: 130px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.legal-page .legal-date {
    font-size: 14px;
    color: var(--txt-muted);
    margin-bottom: 48px;
}

.legal-page h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-top: 44px;
    margin-bottom: 14px;
}

.legal-page h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--txt);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-page p,
.legal-page li {
    font-size: 15px;
    color: var(--txt-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 18px;
}

.legal-page a { color: var(--accent-light); }

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    :root { --section-py: 80px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: rgba(10, 10, 15, 0.96);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 24px 28px;
        gap: 18px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: block; }
    .nav-right .btn-nav-cta { display: none; }

    .hero { padding-top: 140px; }

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

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

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

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

@media (max-width: 500px) {
    .sysreq-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
