/* ════════════════════════════════════════════════════════════
   EBAMS Landing Page
   ════════════════════════════════════════════════════════════ */

/* ── Theme tokens ── */
:root {
    --bg:         #ffffff;
    --bg-alt:     #f5f7fa;
    --bg-surface: #ffffff;
    --text:       #1a1a2e;
    --text-muted: #5a6270;
    --border:     #e2e6ea;
    --accent:     #1a56db;
    --accent-hover:#1648b8;
    --hero-from:  #0f2b5b;
    --hero-to:    #1a56db;
    --nav-bg:     #0d1b2a;
    --footer-bg:  #0d1b2a;
    --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --card-hover:  0 10px 24px rgba(0,0,0,.08);
}

[data-theme="dark"] {
    --bg:         #0d1117;
    --bg-alt:     #161b22;
    --bg-surface: #1c2128;
    --text:       #e6edf3;
    --text-muted: #8b949e;
    --border:     #30363d;
    --accent:     #58a6ff;
    --accent-hover:#79b8ff;
    --hero-from:  #0a1929;
    --hero-to:    #0f2b5b;
    --nav-bg:     #010409;
    --footer-bg:  #010409;
    --card-shadow: 0 1px 3px rgba(0,0,0,.3);
    --card-hover:  0 10px 24px rgba(0,0,0,.4);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-headline {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
}

/* ═══════════════════ NAVBAR ═══════════════════ */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 2rem;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff !important;
    letter-spacing: .5px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: rgba(255,255,255,.7);
    font-size: .875rem;
    font-weight: 500;
    transition: color .15s;
}

.nav-links a:hover { color: #fff; }

.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dark mode toggle */
.dark-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.toggle-track {
    display: inline-block;
    width: 36px;
    height: 20px;
    background: rgba(255,255,255,.2);
    border-radius: 10px;
    position: relative;
    transition: background .2s;
}

[data-theme="dark"] .toggle-track { background: var(--accent); }

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}

[data-theme="dark"] .toggle-thumb { transform: translateX(16px); }

.nav-login-icon,
.nav-cta-icon {
    color: rgba(255,255,255,.7) !important;
    font-size: 1.25rem;
    transition: color .15s;
}

.nav-login-icon:hover,
.nav-cta-icon:hover { color: #fff !important; }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    padding: 5rem 0 4rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 1.25rem;
}

.hero-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem;
    max-width: 540px;
    line-height: 1.45;
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,.85);
    margin: 0 0 2rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

.hero-cta-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: color 0.15s, border-color 0.15s;
}

.hero-cta-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.hero-cta-sep {
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .95rem;
    transition: all .15s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: #fff;
    color: var(--hero-to);
}

.btn-hero-primary:hover {
    background: rgba(255,255,255,.9);
    color: var(--hero-from);
}

.btn-hero-outline {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: transparent;
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.btn-hero-outline.dark {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-hero-outline.dark:hover {
    background: var(--accent);
    color: #fff;
}

/* Login card */
.login-card {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

.login-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    text-align: center;
    color: var(--text);
}

.login-card .field {
    margin-bottom: 1rem;
}

.login-card label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: .35rem;
    color: var(--text-muted);
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .95rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color .15s;
}

.login-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}

.btn-submit {
    width: 100%;
    padding: .75rem;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background .15s;
    margin-top: .25rem;
}

.btn-submit:hover { background: var(--accent-hover); }

.login-extras {
    text-align: center;
    margin-top: 1rem;
    font-size: .825rem;
    color: var(--text-muted);
}

.login-extras a { font-weight: 500; }
.login-extras .sep { margin: 0 .5rem; }
.login-extras input[type="checkbox"] { margin-right: .25rem; }

/* ═══════════════════ FEATURE GRID ═══════════════════ */
.features-grid {
    background: var(--bg);
    padding: 5rem 0;
}

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

.fcard {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    box-shadow: var(--card-shadow);
}

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

/* Pricing page: layout + featured glow (after base .fcard so borders/shadows win) */
.pricing-tier-section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.pricing-featured-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 920px;
    margin: 0 auto 3.25rem;
}

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

.fcard.fcard--featured {
    position: relative;
    padding: 2.35rem 1.75rem 2rem;
    border-radius: 14px;
    border-width: 2px;
    border-style: solid;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fcard.fcard--recommended {
    border-color: rgba(26, 86, 219, 0.42);
    background: linear-gradient(
        155deg,
        rgba(26, 86, 219, 0.11) 0%,
        var(--bg-surface) 52%,
        var(--bg-surface) 100%
    );
    box-shadow:
        var(--card-shadow),
        0 0 0 1px rgba(26, 86, 219, 0.12),
        0 4px 24px rgba(26, 86, 219, 0.14),
        0 12px 48px rgba(26, 86, 219, 0.12);
}

.fcard.fcard--recommended:hover {
    transform: translateY(-6px);
    box-shadow:
        var(--card-hover),
        0 0 0 1px rgba(26, 86, 219, 0.22),
        0 8px 32px rgba(26, 86, 219, 0.22),
        0 20px 56px rgba(26, 86, 219, 0.16);
}

.fcard.fcard--premium {
    border-color: rgba(124, 58, 237, 0.48);
    background: linear-gradient(
        155deg,
        rgba(124, 58, 237, 0.12) 0%,
        rgba(245, 158, 11, 0.06) 38%,
        var(--bg-surface) 65%
    );
    box-shadow:
        var(--card-shadow),
        0 0 0 1px rgba(124, 58, 237, 0.15),
        0 4px 28px rgba(124, 58, 237, 0.18),
        0 14px 52px rgba(245, 158, 11, 0.08);
}

.fcard.fcard--premium:hover {
    transform: translateY(-6px);
    box-shadow:
        var(--card-hover),
        0 0 0 1px rgba(124, 58, 237, 0.28),
        0 8px 36px rgba(124, 58, 237, 0.26),
        0 22px 60px rgba(245, 158, 11, 0.12);
}

.fcard.fcard--subtle {
    opacity: 0.92;
    border-style: dashed;
    border-color: var(--border);
    background: var(--bg-alt);
}

.fcard.fcard--subtle:hover {
    opacity: 1;
    border-style: solid;
}

[data-theme="dark"] .fcard.fcard--recommended {
    border-color: rgba(88, 166, 255, 0.45);
    background: linear-gradient(
        155deg,
        rgba(88, 166, 255, 0.14) 0%,
        var(--bg-surface) 55%
    );
    box-shadow:
        var(--card-shadow),
        0 0 0 1px rgba(88, 166, 255, 0.18),
        0 4px 28px rgba(88, 166, 255, 0.12),
        0 0 64px rgba(88, 166, 255, 0.08);
}

[data-theme="dark"] .fcard.fcard--recommended:hover {
    box-shadow:
        var(--card-hover),
        0 0 0 1px rgba(88, 166, 255, 0.35),
        0 8px 40px rgba(88, 166, 255, 0.2),
        0 0 80px rgba(88, 166, 255, 0.1);
}

[data-theme="dark"] .fcard.fcard--premium {
    border-color: rgba(167, 139, 250, 0.5);
    background: linear-gradient(
        155deg,
        rgba(167, 139, 250, 0.14) 0%,
        rgba(251, 191, 36, 0.08) 40%,
        var(--bg-surface) 68%
    );
    box-shadow:
        var(--card-shadow),
        0 0 0 1px rgba(167, 139, 250, 0.2),
        0 4px 32px rgba(167, 139, 250, 0.15),
        0 0 56px rgba(251, 191, 36, 0.06);
}

[data-theme="dark"] .fcard.fcard--premium:hover {
    box-shadow:
        var(--card-hover),
        0 0 0 1px rgba(167, 139, 250, 0.35),
        0 10px 44px rgba(167, 139, 250, 0.22),
        0 0 72px rgba(251, 191, 36, 0.1);
}

[data-theme="dark"] .fcard.fcard--subtle {
    background: var(--bg-surface);
    border-color: var(--border);
}

.fcard-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: .35rem;
}

.fcard-icon.blue   i { color: #1a56db; }
.fcard-icon.green  i { color: #059669; }
.fcard-icon.purple i { color: #7c3aed; }
.fcard-icon.orange i { color: #ea580c; }
.fcard-icon.teal   i { color: #0891b2; }
.fcard-icon.red    i { color: #dc2626; }
.fcard-icon.indigo i { color: #4f46e5; }

.fcard h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: var(--text);
}

.fcard p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.6;
}

.fcard-action {
    display: inline-block;
    font-size: .8rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: .3rem .75rem;
    border-radius: 20px;
}

.fcard-action strong { color: var(--text); }

/* ═══════════════════ THREE-TIER ═══════════════════ */
.three-tier {
    background: var(--bg-alt);
    padding: 5rem 0;
}

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

.tier-card {
    text-align: center;
}

.tier-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.25rem 0 .5rem;
    color: var(--text);
}

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

/* Mockup frames */
.tier-mockup {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    max-width: 300px;
    margin: 0 auto;
}

.mockup-bar {
    height: 10px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.mockup-bar::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    box-shadow: 8px 0 0 #ccc, 16px 0 0 #ccc;
}

.mockup-body {
    padding: 1.25rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.mockup-item {
    height: 14px;
    border-radius: 4px;
    background: var(--bg-alt);
}

.mockup-item.accent-blue { background: rgba(26,86,219,.12); }
.mockup-item.accent-green { background: rgba(5,150,105,.12); }
.mockup-item.short { width: 60%; }

.mockup-btn {
    display: inline-block;
    padding: .35rem .75rem;
    border-radius: 5px;
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    align-self: flex-start;
}

.mockup-btn.alt {
    background: #059669;
}

/* Manager table mockup */
.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-row {
    height: 12px;
    background: var(--bg-alt);
    border-radius: 3px;
}

.mockup-row.header {
    background: rgba(26,86,219,.12);
    height: 14px;
}

/* Leader chart mockup */
.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
    padding-top: 1rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent), rgba(26,86,219,.4));
    border-radius: 3px 3px 0 0;
    min-height: 10px;
}

.mockup-kpi {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}

.kpi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.kpi-dot.green  { background: #059669; }
.kpi-dot.yellow { background: #d97706; }
.kpi-dot.red    { background: #dc2626; }

/* ═══════════════════ ARCHITECTURE ═══════════════════ */
.architecture {
    background: var(--bg);
    padding: 5rem 0;
}

.arch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.layer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 280px;
    margin: 0 auto;
}

.layer {
    width: 100%;
    text-align: center;
    padding: .85rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
}

.layer-pres { background: #1a56db; }
.layer-svc  { background: #7c3aed; }
.layer-biz  { background: #059669; }
.layer-data { background: #0891b2; }

.layer-arrow {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1;
    padding: .15rem 0;
}

.arch-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.arch-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.arch-point > i {
    font-size: 1.35rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: .15rem;
}

.arch-point strong {
    display: block;
    font-size: 1rem;
    margin-bottom: .15rem;
}

.arch-point span {
    font-size: .9rem;
    color: var(--text-muted);
}

/* ═══════════════════ LOGIN: FEATURE SPOTLIGHTS (public/features parity) ═══════════════════ */
.login-feature-spotlights {
    background: var(--bg);
    padding: 5rem 0 4rem;
}

.login-feature-spotlights .section-headline {
    margin-bottom: 0.5rem;
}

.login-feature-spotlights-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.login-feature-spotlights .public-modules-body {
    padding-top: 0;
}

.login-feature-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.login-feature-more:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.login-feature-more-all {
    font-size: 1rem;
}

/* ═══════════════════ INVENTORY CTA ═══════════════════ */
.inventory-cta {
    background: var(--bg-alt);
    padding: 4rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-copy h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 .75rem;
    color: var(--text);
}

.cta-copy p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0;
    line-height: 1.7;
}

/* ═══════════════════ WHY SECTION ═══════════════════ */
.why-section {
    background: var(--bg);
    padding: 5rem 0;
}

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

.why-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.why-item > i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: .1rem;
}

.why-item strong {
    display: block;
    font-size: .95rem;
    margin-bottom: .15rem;
}

.why-item span {
    font-size: .85rem;
    color: var(--text-muted);
}

/* ═══════════════════ FOOTER ═══════════════════ */
.landing-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    margin-bottom: .6rem;
    transition: color .15s;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.35rem;
    color: rgba(255,255,255,.5) !important;
    transition: color .15s;
}

.social-icons a:hover { color: #fff !important; }

.footer-brand-mark {
    margin-top: 2rem;
    font-size: 2rem;
    color: rgba(255,255,255,.12);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

.footer-bottom p { margin: 0; }

/* ═══════════════════ PUBLIC MODULES PAGE ═══════════════════ */
.public-modules-hero {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    padding: 3rem 1.5rem 3.5rem;
    color: #fff;
    text-align: center;
}

.public-modules-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: #fff;
}

.public-modules-hero p {
    margin: 0 auto;
    max-width: 640px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.public-modules-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.module-showcase {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border);
}

.module-showcase:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.module-figure {
    margin: 0;
}

.module-screenshot {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.module-figure figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.module-showcase h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.module-showcase .module-tagline {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.module-showcase .module-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.module-showcase ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.public-modules-cta {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    background: var(--bg-alt);
}

.public-modules-cta h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.public-modules-cta p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Merged features page: jump cards + anchor targets */
.features-jump-grid .features-jump-headline {
    margin-bottom: 2rem;
}

.features-jump-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    border-radius: 10px;
    outline-offset: 2px;
}

.features-jump-card:focus-visible {
    outline: 2px solid var(--accent);
}

.features-jump-card .fcard {
    height: 100%;
}

.features-jump-card:hover .fcard {
    transform: translateY(-4px);
    box-shadow: var(--card-hover);
}

.features-core-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.features-core-hint a {
    color: var(--accent);
    font-weight: 600;
}

.features-core-hint a:hover {
    color: var(--accent-hover);
}

/* Sticky nav offset when jumping to module sections */
[id^="module-"] {
    scroll-margin-top: 72px;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 2.25rem; }
    .login-card { margin: 0 auto; }
    .pricing-featured-row,
    .pricing-secondary-row { grid-template-columns: 1fr; max-width: 420px; }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .tier-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .arch-grid { grid-template-columns: 1fr; }
    .layer-stack { margin-bottom: 2rem; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-copy p { margin: 0 auto; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--nav-bg); padding: 1rem 1.5rem; gap: .75rem; border-bottom: 1px solid rgba(255,255,255,.1); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-actions { gap: .75rem; }
    .dark-toggle { display: none; }

    .hero { padding: 3rem 0 2.5rem; }
    .hero-copy h1 { font-size: 1.85rem; }
    .hero-lead { font-size: 1.05rem; }
    .hero-sub { font-size: 1rem; }
    .hero-btns { flex-direction: column; }
    .btn-hero { justify-content: center; }

    .grid-6 { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-headline { font-size: 1.75rem; }

    .public-modules-hero h1 { font-size: 1.65rem; }
}

/* ═══════════════════ ALERTS (Bootstrap overrides for dark mode) ═══════════════════ */
[data-theme="dark"] .alert { background: var(--bg-surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .alert-danger { border-left: 3px solid #dc2626; }
[data-theme="dark"] .alert-warning { border-left: 3px solid #d97706; }
[data-theme="dark"] .alert-success { border-left: 3px solid #059669; }
[data-theme="dark"] .alert-info { border-left: 3px solid #0891b2; }
