/* --- DESIGN SYSTEM --- */
:root {
    --bg: #F7F7F8;
    --bg-elevated: #FFFFFF;
    --card-bg: #FFFFFF;
    --border: #E5E5EA;
    --accent-slate: #2C3E50;   /* Charcoal slate — primary accent */
    --accent-grey: #7F8C8D;    /* Cool grey — secondary accent */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6E6E6E;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: rgba(44,62,80,0.35); color: #fff; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5vw, 72px); }
h2 { font-size: clamp(28px, 2.6vw, 44px); margin-bottom: 16px; }
h3 { font-size: 24px; margin-bottom: 12px; }

.caption {
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-slate);
    margin-bottom: 16px;
}

p { color: var(--text-secondary); line-height: 1.7; }
.body-large { font-size: 18px; max-width: 680px; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-slate);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(26,43,60,0.25),
        0 0 32px rgba(44,62,80,0.30),
        0 0 48px rgba(44,62,80,0.15);
}

/* Force email sign-in button to behave like Client Login / Request Access */
#emailSubmitBtn:hover {
    transform: translateY(-2px);
    background-color: var(--accent-slate) !important;
    color: #fff !important;
    box-shadow:
        0 6px 20px rgba(26,43,60,0.25),
        0 0 32px rgba(44,62,80,0.30),
        0 0 48px rgba(44,62,80,0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid #444;
}
.btn-secondary:hover { border-color: var(--accent-slate); color: var(--accent-slate); }

button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.layoutheaderLeft {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 40px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    height: 100%;
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent-slate); }

/* Dropdown items */
.nav-links li.has-dropdown.menuitem {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menuitemLabel {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color .2s ease;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
}

.nav-links li:hover > .menuitemLabel,
.menuitem--visible > .menuitemLabel {
    color: var(--accent-slate);
}

.menuitemChevron {
    flex-shrink: 0;
    width: 10px;
    height: 6px;
    transition: transform .2s ease-in-out;
}

.menuitem--visible .menuitemChevron {
    transform: rotate(180deg);
}

/* Underline indicator */
.nav-links li.has-dropdown::after,
.login-widget::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-slate);
    transform: scaleX(0);
    transition: transform .15s ease-in-out;
}

.nav-links li.has-dropdown:hover::after,
.nav-links li.has-dropdown.menuitem--visible::after,
.login-widget.dropdown-active::after {
    transform: scaleX(1);
}

/* Dropdown menus */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #EAEBEF;
    border: 1px solid #CFCFD6;
    min-width: 280px;
    padding: 8px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    z-index: 1001;

    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

/* Invisible bridge so hover doesn't break across the gap */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-links li:hover .dropdown-menu,
.nav-links li:focus-within .dropdown-menu,
.menuitem--visible > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Columns / groups */
.menuitemSubmenuColumn {
    min-width: 320px;
    max-width: 420px;
}

.menuitemSubmenuGroup {
    gap: 0;
    margin-bottom: 8px;
}

.menuitemSubmenuGroupLabel {
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    padding: 6px 20px 4px;
}

/* Featured default item */
.menuitemdefault {
    display: block;
    margin: 0 8px;
    border-radius: var(--radius-md);
}

.menuitemdefaultContent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    transition: background-color .2s ease;
}

.menuitemdefault:hover .menuitemdefaultContent,
.menuitemsublink:hover .menuitemsublinkContent,
.login-panel button:hover {
    background-color: rgba(44,62,80,.06);
}

.menuitemdefaultLabel {
    display: flex;
    flex-direction: column;
    width: calc(100% - 20px);
}

.menuitemdefaultLabelText {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Constrain description width and force wrapping */
.menuitemdefaultDesc {
    max-width: 280px;
    white-space: normal;
    line-height: 1.4;
}

.menuitemdefaultArrow,
.menuitemsublinkArrow {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translate3d(-5px,0,0);
    transition: transform .2s ease, opacity .2s ease, color .2s ease;
}

.menuitemdefault:hover .menuitemdefaultArrow,
.menuitemsublink:hover .menuitemsublinkArrow {
    opacity: 1;
    transform: translateZ(0);
    color: var(--accent-slate);
}

/* Sublink item */
.menuitemsublink {
    display: block;
    margin: 0 8px;
    border-radius: var(--radius-md);
}

.menuitemsublinkContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    transition: background-color .2s ease;
}

.menuitemsublinkLabel {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color .2s ease;
}

.menuitemsublink:hover .menuitemsublinkLabel {
    color: var(--accent-slate);
}

/* Login widget */
.login-widget {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mobile-login-close {
    display: none;
}

.login-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    min-width: 320px;
    padding: 16px;
    background: #EAEBEF;
    border: 1px solid #CFCFD6;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    z-index: 1001;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0s ease, visibility 0s ease, transform 0s ease;
}

.login-panel::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.login-widget:hover .login-panel,
.login-widget:focus-within .login-panel,
.login-widget.dropdown-active > .login-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.login-field { margin-bottom: 12px; }
.login-field label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.login-field input {
    width: 100%;
    background: #F5F5F7;
    border: 1px solid var(--border);
    padding: 8px 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.login-field input:focus { outline: none; border-color: var(--accent-slate); }
.login-submit {
    width: 100%;
    padding: 10px 0;
}

#emailTurnstile,
.cf-turnstile {
    max-width: 100%;
    margin-top: 12px;
    margin-bottom: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none; border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.layoutheaderBtn {
    margin-left: 12px;
}

@media (max-width: 1024px) {
    .layoutheaderLeft { gap: 24px; }
    .nav-links { display: none; }

    /* Hide header login widget by default on mobile, but allow it to be shown when the auth overlay is active */
    body:not(.mobile-auth-active) .navbar-inner .login-widget,
    body:not(.mobile-auth-active) .layoutheaderBtn {
        display: none;
    }
    .mobile-menu-btn { display: block; }

    /* Mobile auth overlay */
    body.mobile-auth-active {
        overflow: hidden;
    }

    body.mobile-auth-active .navbar-inner .login-widget {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        z-index: 9999;
        justify-content: center;
        align-items: flex-start;
        padding-top: 84px;
        overflow-y: auto;
    }

    body.mobile-auth-active .login-widget > .btn.login-trigger {
        display: none;
    }

    body.mobile-auth-active .mobile-login-close {
        display: block;
        position: absolute;
        top: -36px;
        right: 0;
        background: transparent;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #fff;
        cursor: pointer;
        padding: 4px;
    }

    body.mobile-auth-active .login-panel {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 92%;
        max-width: 360px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    body.mobile-auth-active .login-panel::before {
        display: none;
    }
}

@media (max-width: 768px) {
    body:not(.mobile-auth-active) .layoutheaderRight .get-started-btn,
    body:not(.mobile-auth-active) .layoutheaderRight .login-widget {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* --- HERO --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 20px; padding-bottom: 60px;
    overflow: hidden;
    background: #000000;
    color: white;
}

/* --- HERO SECONDARY BUTTON (white text on black background) --- */
#hero .btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
#hero .btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
    color: #fff;
}

.hero-canvas {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
}

.hero-content h1 { max-width: 900px; margin-bottom: 24px; }
#hero p, #hero .body-large { color: rgba(255,255,255,.75); }
.hero-content p { margin: 0 auto 40px; font-size: 20px; max-width: 620px; }

/* --- SECTIONS --- */
section { padding: 50px 0; position: relative; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section-header p { font-size: 18px; color: var(--text-secondary); }

/* --- PROBLEM SECTION --- */
#problem { background-color: var(--bg-elevated); }
.problem-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 64px; align-items: center;
}

.problem-image-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Slight shading on bottom and right side */
    box-shadow:
        18px 18px 0 rgba(44, 62, 80, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.04);
}

.problem-image-box img {
    width: 100%;
    height: auto;
    display: block;
}	

.problem-ai-agents { background-color: #F2F3F4; }

/* --- SOLUTION SECTION DARK OVERRIDE --- */
#features {
    background-color: #111214;
}

.solution-section-header {
    text-align: left;
    margin-bottom: 16px;
}

#features .caption,
.solution-section-header .caption {
    color: #F4F4F6;
}

#features h2,
#features .solution-text h2 {
    color: #F4F4F6;
}

#features p,
#features .solution-text p {
    color: #8B8D93;
}

.solution-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .solution-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.code-block {
    background: #0d0f12;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px; color: var(--text-secondary);
}
.code-block .comment { color: #7B61FF; }
.code-block .cyan { color: #00E5FF; }

/* --- METRICS STRIP --- */
#metrics {
    padding: 64px 0;
    background: linear-gradient(90deg, rgba(44,62,80,0.05), transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.metric-value {
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 36px; color: var(--accent-slate); font-weight: 700;
}
.metric-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }

/* --- PRODUCT PAGE SECTION --- */
#product {
    background-color: #111214;
}

#product .caption,
#product h2,
#product .two-col h3 {
    color: #F4F4F6;
}

#product p,
#product .body-large,
#product .section-header p {
    color: #8B8D93;
}

#product .section-header {
    max-width: 900px;
}

.two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.visual-box {
    background: #0d0f12;
    border: 1px solid #252830;
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: 360px;
    position: relative; overflow: hidden;
}

.visual-box .code-keyword { color: #00E5FF; }
.visual-box .code-comment { color: #7B61FF; }
.visual-box .code-muted   { color: #8B8D93; }

/* --- COMPARISON TABLE --- */
.comparison-table {
    width: 100%; border-collapse: collapse; margin-top: 48px;
    font-size: 15px;
}
.comparison-table th, .comparison-table td {
    padding: 18px; text-align: left;
    border-bottom: 1px solid #252830;
}
.comparison-table th { color: #8B8D93; background: #0d0f12; font-weight: 500; }
.comparison-table td { color: #8B8D93; }
.comparison-table td:first-child { font-weight: 600; color: #F4F4F6; }

/* --- TABLE WRAPPER (horizontal croll on narrow viewports) --- */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- SCIENCE / FOUNDATIONAL KNOWLEDGE --- */
#science {
    background-color: #DADEDF;
    background-image:
        linear-gradient(135deg, rgba(218, 222, 223, 0.88) 0%, rgba(232, 234, 235, 0.72) 100%),
        url('/theory_section_background.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    position: relative;
}

.influencer-caption {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 16px;
    text-align: left;
}

.pillars-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.pillar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex; gap: 20px;
    transition: all 0.2s ease;
}
.pillar-card:hover { border-color: var(--accent-grey); }
.pillar-number {
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 28px; color: var(--accent-slate); font-weight: 700;
    flex-shrink: 0;
}

/* --- FEATURES / BENTO --- */
.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: #444; box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.feature-icon {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin-bottom: 6px;
    background: transparent;
    color: #2C3E50;
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.feature-card h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
}

/* --- PROP TRADING --- */
#prop { background-color: var(--bg-elevated); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* --- PRICING --- */
#pricing { background-color: #DADEDF; }
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: #444; }
.price-card.featured {
    border: 1px solid var(--accent-slate);
    box-shadow: 0 0 24px rgba(44,62,80,0.06);
}
.price-tag { font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 32px; color: var(--accent-slate); margin: 16px 0; }
.feature-list { list-style: none; margin: 24px 0; }
.feature-list li {
    margin-bottom: 12px; padding-left: 22px;
    position: relative; font-size: 14px; color: var(--text-secondary);
}
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-slate); }

/* --- PRICING FORMS (waitlist + private preview) --- */
.pricing-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: none;
    margin: 0 auto;
}

#pricing .pricing-form-box {
    background: #FFFFFF;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

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

#pricing .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

#pricing .form-group input {
    width: 100%;
    background: #FAFAFA;
    border: 1px solid #E0E0E6;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

#pricing .form-group input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--accent-slate);
}

@media (max-width: 1024px) {
    .pricing-forms { grid-template-columns: 1fr; }
}

/* --- CTA BANNER --- */
#cta-banner {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
#cta-banner h2 { margin-bottom: 24px; }

/* --- FOOTER --- */
footer {
    background-color: #FFFFFF;
    color: var(--text-secondary);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-col h4 { font-size: 14px; color: var(--text-primary); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-slate); }

.footer-col.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.footer-brand-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.footer-logo-large {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

.footer-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.footer-tagline {
    margin: 0;
    font-style: italic;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 240px;   /* forces wrap after "based" */
    line-height: 1.6;
    text-align: left;
}


.footer-terms-notice {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--text-muted);
}
.footer-terms-notice a {
    color: var(--accent-slate);
    text-decoration: underline;
}

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

/* --- MOBILE MENU (slide panels) --- */
body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #EAEBEF;
    border-bottom: 1px solid #CFCFD6;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-overlay {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.mobile-menu-panel {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: none;   /* instant panel swaps */
}

.mobile-menu-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* Scroll handling for tall panels */
.mobile-menu-panel--root,
.mobile-menu-panel[data-submenu] {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Top-level nav rows */
.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #CFCFD6;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus-visible {
    background-color: rgba(44,62,80,.06);
    color: var(--accent-slate);
}

.mobile-nav-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0;
    transform: translate3d(-5px,0,0);
    transition: transform .2s ease, opacity .2s ease, color .2s ease;
}

.mobile-nav-item:hover .mobile-nav-arrow,
.mobile-nav-item:focus-visible .mobile-nav-arrow {
    opacity: 1;
    transform: translateZ(0);
    color: var(--accent-slate);
}

/* Submenu header with back button */
.mobile-submenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #CFCFD6;
    background: rgba(44,62,80,.04);
}

.mobile-menu-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    color: var(--accent-slate);
    cursor: pointer;
}

.mobile-submenu-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Submenu links */
.mobile-menu-panel[data-submenu] li a:not(.mobile-menu-back) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid #CFCFD6;
    color: var(--text-secondary);
    font-size: 15px;
    transition: background-color .2s ease, color .2s ease;
}

.mobile-menu-panel[data-submenu] li a:not(.mobile-menu-back):hover,
.mobile-menu-panel[data-submenu] li a:not(.mobile-menu-back):focus-visible {
    background-color: rgba(44,62,80,.06);
    color: var(--accent-slate);
}

/* Group labels inside mobile submenus */
.mobile-menu-group-label {
    display: block;
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    padding: 12px 24px 6px;
}

/* Sign In footer */
.mobile-menu-footer {
    margin-top: auto;
    padding: 24px;
    border-top: 1px solid #CFCFD6;
}

.mobile-menu-footer .btn {
    width: 100%;
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}

.reveal.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.active {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- LOGIN EXTRAS --- */
.login-legal {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}
.login-legal a {
    color: var(--accent-slate);
    text-decoration: underline;
}

.login-header {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}

/* Tab switcher */
.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #CFCFD6;
}

.login-tab {
    flex: 1;
    padding: 8px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s ease;
}

.login-tab:hover {
    color: var(--accent-slate);
}

.login-tab.active {
    color: var(--accent-slate);
    border-bottom-color: var(--accent-slate);
}

/* Tab panels */
.login-tab-panel {
    display: none;
}

.login-tab-panel.active {
    display: block;
}

/* Sign-in / reset toggle link */
.toggle-mode {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
}

.toggle-mode a {
    color: var(--accent-slate);
    text-decoration: underline;
}

.login-user-info {
    display: none;
    text-align: center;
}

#googleUserPhoto {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 8px;
    object-fit: cover;
}

.login-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.login-user-email {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 10px;
}

#googleSignOut {
    width: 100%;
    padding: 10px 0;
}

#leveeBacktest,
#emPortfolioAnalyzer {
    scroll-margin-top: 80px;
}

/* Keep reset-mode panel the same height as sign-in mode */
#tab-email {
    min-height: 230px;
}

#g_id_signin {
    min-height: 42px;
}

/* --- SCENARIO REALISM TABLE (kept; theater cards removed) --- */
.scenario-realism { margin-top: 48px; }
.scenario-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 760px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.scenario-realism-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.scenario-realism-table th,
.scenario-realism-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.scenario-realism-table th {
    color: var(--text-primary);
    font-weight: 600;
}
.scenario-realism-table td { color: var(--text-secondary); }

#scenarios .section-header p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

#scenarios .section-header {
    max-width: none;
}

#scenarios .section-header h2 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.scenario-lead {
    width: 100%;
    max-width: none;
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .two-col, .problem-grid { grid-template-columns: 1fr; gap: 40px; }
    .bento-grid, .pillars-grid, .pricing-grid, .focus-grid, .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .bento-grid, .pillars-grid, .pricing-grid, .focus-grid, .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    section { padding: 72px 0; }
    h1 { font-size: 36px; }
    .bento-grid, .pillars-grid, .pricing-grid, .focus-grid, .metrics-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}


/* --- SHARP CORNERS THEME OVERRIDES --- */
.btn,
.dropdown-menu,
.menuitemdefault,
.menuitemsublink,
.login-panel,
.mobile-menu-btn,
.login-field input,
.pricing-form-box {
    border-radius: 0;
}

#science .section-header {
    margin-bottom: 12px;
}

#science .influencer-caption {
    margin-bottom: 8px;
}

.term-card.hidden {
    display: none;
}

.no-results {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
}
.no-results.visible {
    display: block;
}

/* --- KEYBOARD FOCUS INDICATOR --- */
a:focus-visible,
button:focus-visible,
.menuitemLabel:focus-visible {
    outline: 2px solid var(--accent-slate);
    outline-offset: 3px;
}

