/* =============================================
   VitalPaws - Global Styles
   ============================================= */

/* CSS Variables — Dark Theme (default) */
:root {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-elevated: #334155;
    --text: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #3b82f6;
    --accent-dim: #2563eb;
    --accent-light: #60a5fa;
    --accent-muted: rgba(59, 130, 246, 0.15);
    --warm: #f97316;
    --warm-dim: #ea580c;
    --warm-light: #fb923c;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --border: #334155;
    --border-strong: #475569;
    --overlay: rgba(15, 23, 42, 0.85);
    --font-display: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --transition: 0.25s ease;
}

/* Light Theme */
[data-theme="light"] {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #e2e8f0;
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --accent: #2563eb;
    --accent-dim: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-muted: rgba(37, 99, 235, 0.1);
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --overlay: rgba(248, 250, 252, 0.9);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-light);
}

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

/* =============================================
   Typography
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--accent-muted);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   Container
   ============================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* =============================================
   Header / Navbar
   ============================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    transition: background var(--transition);
}

[data-theme="light"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255,255,255,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}

.logo img {
    height: 56px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

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

.theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: #cbd5e1;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: inline; }
[data-theme="light"] .theme-toggle .fa-sun { display: inline; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--warm);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 999px;
    transition: all var(--transition);
}

.header-cta:hover {
    background: var(--warm-dim);
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav {
    display: none;
}

@media (max-width: 991px) {
    .nav-links, .header-right .theme-toggle {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        z-index: 999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .mobile-nav.active {
        display: flex;
    }

    .mobile-nav a {
        color: #fff;
        font-family: var(--font-display);
        font-size: 1.4rem;
        font-weight: 700;
    }

    .mobile-nav .mobile-close {
        position: absolute;
        top: 20px;
        right: 24px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .mobile-nav .theme-toggle {
        display: flex;
    }
}

/* =============================================
   Buttons
   ============================================= */

.btn-warm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--warm);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-warm:hover {
    background: var(--warm-dim);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

.btn-warm.btn-sm {
    font-size: 0.85rem;
    padding: 10px 22px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-accent:hover {
    background: var(--accent-dim);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.micro-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.micro-cta:hover {
    color: var(--accent-light);
    gap: 10px;
}

/* =============================================
   Hero Section (Home)
   ============================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.75) 50%,
        rgba(15, 23, 42, 0.88) 100%
    );
}

[data-theme="light"] .hero-bg::after {
    background: linear-gradient(
        135deg,
        rgba(248, 250, 252, 0.88) 0%,
        rgba(248, 250, 252, 0.72) 50%,
        rgba(248, 250, 252, 0.85) 100%
    );
}

[data-theme="light"] .hero h1 {
    color: var(--text);
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-muted);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-muted);
    color: var(--accent-light);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 .accent {
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-trust i {
    font-size: 1rem;
}

/* =============================================
   Social Proof Strip
   ============================================= */

.proof-strip {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60'%3E%3Cg transform='translate(50,30) rotate(30)'%3E%3Crect x='-16' y='-3' width='32' height='6' rx='3' fill='rgba(249,115,22,0.07)'/%3E%3Ccircle cx='-16' cy='0' r='5' fill='rgba(249,115,22,0.07)'/%3E%3Ccircle cx='16' cy='0' r='5' fill='rgba(249,115,22,0.07)'/%3E%3C/g%3E%3C/svg%3E")
        repeat,
        var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.proof-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.proof-item {
    text-align: center;
}

.proof-item .proof-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.proof-item .proof-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================
   Cards
   ============================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Feed Cards */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feed-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    color: var(--text);
}

.feed-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.feed-card .feed-source {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: var(--accent-muted);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.feed-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.feed-card .feed-snippet {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card .feed-date {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* =============================================
   Pricing Card
   ============================================= */

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.pricing-free {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.pricing-tiers {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.pricing-tier {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    text-align: center;
    min-width: 120px;
}

.pricing-tier .tier-credits {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pricing-tier .tier-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

/* =============================================
   Inline CTA Section
   ============================================= */

.inline-cta {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 50 C15 38 5 28 5 20 A10 10 0 0 1 30 18 A10 10 0 0 1 55 20 C55 28 45 38 30 50Z' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E")
        repeat,
        linear-gradient(135deg, var(--accent-dim) 0%, var(--accent) 100%);
    padding: 60px 0;
    text-align: center;
}

.inline-cta h2 {
    color: #fff;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin-bottom: 12px;
}

.inline-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.inline-cta .btn-warm {
    background: #fff;
    color: var(--accent-dim);
}

.inline-cta .btn-warm:hover {
    background: #f1f5f9;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* =============================================
   Final CTA Section
   ============================================= */

.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.cta-section .cta-links {
    margin-top: 16px;
}

.cta-section .cta-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =============================================
   Sticky Bottom CTA
   ============================================= */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

[data-theme="light"] .sticky-cta {
    background: rgba(255, 255, 255, 0.97);
    border-top-color: var(--border);
}

.sticky-cta-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
}

[data-theme="light"] .sticky-cta-text {
    color: var(--text-secondary);
}

/* =============================================
   Section Divider
   ============================================= */

.paw-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    border: none;
    margin: 0;
    opacity: 0.4;
}

/* =============================================
   SVG Background Patterns
   ============================================= */

/* Paw prints (blue) — How It Works */
#how-it-works {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='48' r='6' fill='rgba(59,130,246,0.08)'/%3E%3Ccircle cx='30' cy='34' r='2.8' fill='rgba(59,130,246,0.08)'/%3E%3Ccircle cx='37' cy='30' r='2.8' fill='rgba(59,130,246,0.08)'/%3E%3Ccircle cx='43' cy='30' r='2.8' fill='rgba(59,130,246,0.08)'/%3E%3Ccircle cx='50' cy='34' r='2.8' fill='rgba(59,130,246,0.08)'/%3E%3C/svg%3E")
        repeat,
        var(--bg);
}

/* Diagonal waves (warm orange) — Features Preview */
.section-features-preview {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20 Q30 5 60 20 Q90 35 120 20' stroke='rgba(249,115,22,0.06)' stroke-width='2' fill='none'/%3E%3C/svg%3E")
        repeat,
        var(--bg);
}

/* Fish (blue) — Pet Health Feed Preview */
.section-feed-preview {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='50'%3E%3Cellipse cx='38' cy='25' rx='12' ry='7' fill='rgba(59,130,246,0.06)'/%3E%3Cpolygon points='20,25 28,18 28,32' fill='rgba(59,130,246,0.06)'/%3E%3Ccircle cx='44' cy='23' r='1.5' fill='rgba(59,130,246,0.12)'/%3E%3C/svg%3E")
        repeat,
        var(--bg);
}

/* Scattered dots (blue) — Pricing */
.section-pricing {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(59,130,246,0.05)'/%3E%3Ccircle cx='30' cy='25' r='3' fill='rgba(59,130,246,0.05)'/%3E%3Ccircle cx='18' cy='35' r='1.5' fill='rgba(59,130,246,0.05)'/%3E%3C/svg%3E")
        repeat,
        var(--bg);
}

/* =============================================
   Footer
   ============================================= */

.footer {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='48' r='6' fill='rgba(255,255,255,0.015)'/%3E%3Ccircle cx='30' cy='34' r='2.8' fill='rgba(255,255,255,0.015)'/%3E%3Ccircle cx='37' cy='30' r='2.8' fill='rgba(255,255,255,0.015)'/%3E%3Ccircle cx='43' cy='30' r='2.8' fill='rgba(255,255,255,0.015)'/%3E%3Ccircle cx='50' cy='34' r='2.8' fill='rgba(255,255,255,0.015)'/%3E%3C/svg%3E")
        repeat,
        #0a0f1a;
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

[data-theme="light"] .footer {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='48' r='6' fill='rgba(255,255,255,0.015)'/%3E%3Ccircle cx='30' cy='34' r='2.8' fill='rgba(255,255,255,0.015)'/%3E%3Ccircle cx='37' cy='30' r='2.8' fill='rgba(255,255,255,0.015)'/%3E%3Ccircle cx='43' cy='30' r='2.8' fill='rgba(255,255,255,0.015)'/%3E%3Ccircle cx='50' cy='34' r='2.8' fill='rgba(255,255,255,0.015)'/%3E%3C/svg%3E")
        repeat,
        #0f172a;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 52px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: #e2e8f0;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 48px;
    padding: 24px 24px 80px;
    text-align: center;
}

.footer-bottom p {
    color: #475569;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.footer-bottom a {
    color: #64748b;
}

.footer-bottom a:hover {
    color: var(--accent);
}

.footer-disclaimer {
    color: #475569;
    font-size: 0.78rem;
    font-style: italic;
}

/* =============================================
   Forms
   ============================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-control::placeholder {
    color: var(--text-dim);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.email-capture {
    display: flex;
    gap: 12px;
    max-width: 460px;
}

.email-capture input {
    flex: 1;
    padding: 14px 18px;
    font-size: 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    outline: none;
}

.email-capture input:focus {
    border-color: var(--accent);
}

.email-capture input::placeholder {
    color: var(--text-dim);
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 8px;
}

.form-success {
    color: var(--success);
    font-family: var(--font-display);
    font-weight: 700;
    display: none;
}

.form-success.show {
    display: block;
}

/* =============================================
   Article Reader
   ============================================= */

.article-reader-bar {
    position: sticky;
    top: 65px;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.article-reader-back {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-reader-source {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.article-reader-external {
    color: var(--text-dim);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-content-section {
    padding: 20px 0 40px;
}

/* =============================================
   Loading Spinner
   ============================================= */

.spinner {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn-warm,
    .hero-ctas .btn-ghost {
        justify-content: center;
    }

    .proof-grid {
        gap: 24px;
    }

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

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

    .pricing-tiers {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        gap: 32px;
    }

    .email-capture {
        flex-direction: column;
    }

    .sticky-cta .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .article-reader-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .inline-cta {
        padding: 40px 0;
    }
}

/* =============================================
   i18n - FOUC Prevention
   ============================================= */

body.i18n-loading {
    opacity: 0;
}

body {
    transition: opacity 0.15s ease;
}

/* =============================================
   Language Switcher
   ============================================= */

.lang-switcher {
    position: relative;
}

.lang-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: #cbd5e1;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

[data-theme="light"] .lang-toggle {
    border-color: rgba(0,0,0,0.15);
    color: #64748b;
}

[data-theme="light"] .lang-toggle:hover {
    background: rgba(0,0,0,0.05);
    color: #0f172a;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 140px;
    z-index: 1000;
    overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-option:hover {
    background: var(--accent-muted);
    color: var(--text);
}

.lang-option.active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-muted);
}

/* Mobile language switcher */
.lang-switcher-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    justify-content: center;
}

.lang-switcher-mobile .lang-option {
    width: auto;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    text-align: center;
}

.lang-switcher-mobile .lang-option.active {
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .lang-switcher {
        display: none;
    }
}
