/* Critical first-viewport styles for the public landing page. */
:root,
[data-theme="light"] {
    --bg-base: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --accent-primary: #2563eb;
    --accent-secondary: #7c3aed;
    --accent-amber: #f59e0b;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --shadow-primary: 0 9px 27px -9px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 22px rgba(37, 99, 235, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.88);
    --btn-outline-bg: rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] {
    --bg-base: #020617;
    --bg-surface: #0f172a;
    --bg-card: #111827;
    --border-color: rgba(148, 163, 184, 0.18);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-primary: #60a5fa;
    --accent-secondary: #a78bfa;
    --accent-amber: #fbbf24;
    --accent-success: #34d399;
    --accent-danger: #f87171;
    --accent-cyan: #22d3ee;
    --accent-purple: #a78bfa;
    --shadow-primary: 0 18px 48px rgba(0, 0, 0, 0.34);
    --shadow-glow: 0 0 28px rgba(96, 165, 250, 0.12);
    --nav-bg: rgba(2, 6, 23, 0.82);
    --btn-outline-bg: rgba(255, 255, 255, 0.04);
}

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

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14.4px;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
}

.navbar-custom,
.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar-brand,
.nav-link,
.drawer-link {
    color: var(--text-primary);
}

.btn-premium-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}

.btn-premium-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--btn-outline-bg);
    color: var(--text-primary) !important;
    font-weight: 700;
    text-decoration: none;
}

.hero-sec {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 76px);
    padding-top: clamp(76px, 10vh, 120px);
    background: var(--bg-base);
}

.landing-command-hero {
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(315deg, rgba(16, 185, 129, 0.07), transparent 38%),
        var(--bg-base);
}

.hero-title,
.display-hero,
.text-hero-h1 {
    color: var(--text-primary);
    font-family: Outfit, Inter, system-ui, sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-title span,
.display-hero span {
    color: var(--accent-primary);
}

.hero-desc,
.lead {
    color: var(--text-secondary);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badge-command {
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--accent-primary);
    font-size: 0;
}

.hero-badge-command::before {
    content: "Trusted prep cockpit for Indian government exam aspirants";
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 900;
}

.hero-proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
}

.hero-proof-strip span,
.hero-trust-metrics div {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.hero-proof-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 800;
}

.hero-proof-strip svg {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.hero-trust-metrics {
    display: grid;
    width: min(100%, 690px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.hero-trust-metrics div {
    padding: 12px;
}

.hero-trust-metrics strong {
    display: block;
    color: var(--text-primary);
    font-family: Outfit, Inter, system-ui, sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.1;
}

.hero-trust-metrics span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 800;
}

.glass-card,
.glassmorphic-card,
.hero-val-prop-card,
.motive-board-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-primary);
}

.landing-deferred-section,
.exam-catalog-section,
.explorer-section-wrapper,
.workflow-sec,
.features-sec,
.pwa-install-sec,
.cta-conversion-section,
#pricing,
#pwa-install-section,
#faq,
#cta {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

#hero,
.hero-sec {
    content-visibility: visible;
}

@media (max-width: 768px) {
    .hero-sec {
        min-height: auto;
        padding-top: 92px;
    }

    .hero-title,
    .display-hero,
    .text-hero-h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-proof-strip,
    .hero-btns {
        justify-content: center;
    }

    .hero-trust-metrics {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .landing-command-hero {
        min-height: calc(100svh - 54px);
        padding-top: clamp(62px, 7vh, 88px);
        padding-bottom: clamp(20px, 4vh, 38px);
        display: flex;
        align-items: center;
    }

    .landing-command-hero > .container {
        width: 100%;
    }

    .hero-space-grid {
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
        align-items: center;
        gap: clamp(20px, 2.8vw, 44px);
    }

    .hero-space-grid > .hero-copy-column,
    .hero-space-grid > .hero-cockpit-column {
        width: 100%;
        max-width: none;
        flex: initial;
    }

    .hero-copy-column {
        display: grid !important;
        align-content: center;
        justify-items: start;
        gap: 10px;
    }

    .hero-copy-column > * {
        margin-top: 0;
        margin-bottom: 0;
    }

    .landing-command-hero .hero-title {
        max-width: 680px;
        font-size: clamp(2.75rem, 4.65vw, 4.65rem);
        line-height: 0.98;
    }

    .landing-command-hero .hero-desc {
        max-width: 640px;
        font-size: 1rem;
        line-height: 1.58;
    }

    .landing-command-hero .hero-val-card-stack {
        display: grid;
        width: min(100%, 650px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .landing-command-hero .hero-val-prop-card {
        min-height: 92px;
    }

    .landing-command-hero .motive-board-card {
        display: flex;
        max-height: min(760px, calc(100svh - 120px));
        flex-direction: column;
        overflow: hidden;
    }
}

/* Critical compact AI hero layout */
.hero-badge-command::before {
    content: "Free AI exam-prep cockpit for Indian government exam aspirants";
}

.landing-command-hero .hero-title {
    max-width: 720px;
    font-size: clamp(2.35rem, 4.75vw, 4.35rem);
    line-height: 0.99;
}

.landing-command-hero .hero-desc {
    max-width: 760px;
    font-size: clamp(0.98rem, 1.18vw, 1.08rem);
    line-height: 1.6;
}

.hero-ai-info-grid {
    display: grid;
    width: min(100%, 760px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 12px;
}

.hero-ai-info-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px 11px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
}

.hero-ai-info-item > svg {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 8px;
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.09);
}

.hero-ai-info-item strong {
    display: block;
    color: var(--text-primary);
    font-family: Outfit, Inter, system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.2;
}

.hero-ai-info-item span {
    display: block;
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.42;
}

.hero-keyword-row > span:first-child {
    font-size: 0 !important;
}

.hero-keyword-row > span:first-child::before {
    content: "Free mock tests for 2026 government exams:";
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 900;
}

.hero-micro-trust::before {
    content: "Absolutely free to start | AI guidance after every mock | Built for SSC, Banking, Railways, UPSC, State PSC and more";
}

.hero-cockpit-status::before {
    content: "Live AI analysis";
}

@media (min-width: 992px) {
    .navbar-custom .navbar-nav {
        max-width: min(58vw, 780px);
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .navbar-custom .navbar-nav::-webkit-scrollbar {
        display: none;
    }

    .navbar-custom .nav-link {
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .landing-command-hero {
        min-height: calc(100svh - 58px);
        padding-top: clamp(58px, 6.4vh, 82px);
        padding-bottom: clamp(18px, 3vh, 34px);
    }

    .hero-space-grid {
        grid-template-columns: minmax(0, 1fr) minmax(470px, 0.92fr);
        gap: clamp(18px, 2.4vw, 36px);
    }
}

@media (max-width: 640px) {
    .hero-ai-info-grid {
        grid-template-columns: 1fr;
    }
}
