/* =========================================
   The Vantage Thinking Model — Styles
   ========================================= */

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

:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface2: #242836;
    --accent: #6c8cff;
    --accent-glow: rgba(108, 140, 255, 0.3);
    --text: #e8e8ed;
    --text-muted: #9a9ab0;
    --gold: #ffd666;
    --green: #66e0a4;
    --pink: #ff6e9c;
    --orange: #ffae57;
    --cyan: #57d6e0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 140, 255, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(87, 214, 224, 0.05), transparent);
    background-attachment: fixed;
}

/* --- SKIP LINK (accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 200;
    font-size: 0.85rem;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    top: 0;
}

/* --- NAV --- */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 17, 23, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 140, 255, 0.08);
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
nav .logo {
    font-weight: 700; font-size: 1.05rem;
    color: var(--accent); letter-spacing: 0.02em;
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex; align-items: center; gap: 0.45rem;
}
nav .logo:hover { opacity: 0.85; }
nav .logo .logo-img {
    width: 28px; height: 28px;
    vertical-align: middle;
}
nav .nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-mobile-brand { display: none; }
nav .nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
    transition: color 0.2s;
    position: relative;
}
nav .nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 1px;
    transform: scaleX(0); transition: transform 0.25s ease;
}
nav .nav-links a:hover::after,
nav .nav-links a:focus-visible::after { transform: scaleX(1); }
nav .nav-links a:hover,
nav .nav-links a:focus-visible { color: var(--accent); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    background: none; border: none; color: var(--text-muted);
    font-size: 0.85rem; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0; transition: color 0.2s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible { color: var(--accent); }
.nav-dropdown-toggle svg { transition: transform 0.25s; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
    background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 0.5rem 0;
    min-width: 150px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(-6px);
    z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: block; padding: 0.55rem 1.2rem;
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover {
    background: rgba(108, 140, 255, 0.08); color: var(--accent);
}

/* Hamburger button */
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 6px; flex-direction: column; gap: 5px;
    z-index: 110;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- MOBILE NAV --- */
@media (max-width: 860px) {
    .nav-hamburger { display: flex; }
    nav .nav-links {
        position: fixed; top: 0; right: 0;
        width: 300px; height: 100vh;
        background: #252a3a;
        border-left: 1px solid rgba(108, 140, 255, 0.15);
        flex-direction: column; gap: 0;
        padding: 80px 0 2rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -12px 0 50px rgba(0,0,0,0.5);
        z-index: 105;
        overflow-y: auto;
    }
    nav .nav-links.open { transform: translateX(0); }

    /* Mobile menu header */
    nav .nav-links::before { display: none; }
    .nav-mobile-brand {
        display: flex; align-items: center; gap: 0.5rem;
        padding: 0 1.8rem 1rem;
        margin-bottom: 0.4rem;
        border-bottom: 1px solid rgba(108, 140, 255, 0.12);
    }
    .nav-mobile-brand img { width: 24px; height: 24px; }
    .nav-mobile-brand span {
        font-weight: 700; font-size: 1rem;
        color: var(--accent); letter-spacing: 0.01em;
    }

    nav .nav-links a {
        font-size: 1.05rem; padding: 0.9rem 1.8rem;
        color: #e8e8ed; font-weight: 500;
        border-bottom: none;
        border-left: 3px solid transparent;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    nav .nav-links a::after { display: none; }
    nav .nav-links a:hover,
    nav .nav-links a:focus-visible {
        background: rgba(108, 140, 255, 0.1);
        color: #fff;
        border-left-color: var(--accent);
    }

    /* Dropdown in mobile: inline expand */
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle {
        font-size: 1.05rem; padding: 0.9rem 1.8rem; width: 100%;
        color: #e8e8ed; font-weight: 500;
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: space-between;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .nav-dropdown-toggle:hover {
        background: rgba(108, 140, 255, 0.1);
        color: #fff;
        border-left-color: var(--accent);
    }
    .nav-dropdown-menu {
        position: static; transform: none;
        background: rgba(0,0,0,0.2); border: none; border-radius: 0;
        box-shadow: inset 0 1px 0 rgba(108, 140, 255, 0.08);
        padding: 0.3rem 0;
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s;
        min-width: auto; opacity: 0; visibility: hidden;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 300px; opacity: 1; visibility: visible;
        transform: none;
    }
    .nav-dropdown-menu a {
        padding: 0.7rem 1.8rem 0.7rem 2.8rem; font-size: 0.95rem;
        color: #b0b0c8; font-weight: 400;
        border-bottom: none;
    }
    .nav-dropdown-menu a::before {
        content: '›'; margin-right: 0.5rem; color: var(--accent); font-weight: 700;
    }
    .nav-dropdown-menu a:hover {
        background: rgba(108, 140, 255, 0.08);
        color: #fff;
    }
}

/* Mobile overlay backdrop */
.nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 104;
}
.nav-overlay.active { display: block; }

/* --- SECTIONS --- */
section { padding: 6rem 2rem 4rem; max-width: 960px; margin: 0 auto; }

/* --- HERO --- */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    max-width: 100%; padding: 2rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(circle 600px at 30% 40%, rgba(108, 140, 255, 0.07), transparent),
        radial-gradient(circle 400px at 70% 60%, rgba(87, 214, 224, 0.05), transparent);
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
#heroParticles {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--gold) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    background-clip: text; -webkit-background-clip: text; color: transparent;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--text-muted);
    max-width: 620px; margin-bottom: 2.8rem;
    line-height: 1.8;
}
.hero .cta {
    display: inline-block; padding: 0.85rem 2.4rem; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff; text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(108, 140, 255, 0.2);
}
.hero .cta:hover,
.hero .cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(108, 140, 255, 0.35);
}
.hero .cta-secondary {
    display: inline-block; padding: 0.7rem 1.8rem; border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(108, 140, 255, 0.4);
    color: var(--text-muted); text-decoration: none;
    font-weight: 500; font-size: 0.88rem;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    margin-top: 0.8rem;
}
.hero .cta-secondary:hover,
.hero .cta-secondary:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(108, 140, 255, 0.06);
}

/* --- HEADINGS --- */
h2 {
    font-size: 2rem; font-weight: 700; margin-bottom: 1.2rem;
    color: var(--text); letter-spacing: -0.01em;
}
h2 .accent { color: var(--accent); }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
p { color: var(--text-muted); margin-bottom: 1rem; }
p.lead { font-size: 1.1rem; color: var(--text); line-height: 1.8; }

/* --- SECTION DIVIDERS --- */
section + section {
    border-top: 1px solid rgba(108, 140, 255, 0.06);
}

/* --- CONCEPT GRID --- */
.concept-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.concept-card {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 1.8rem;
    transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.concept-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    opacity: 0; transition: opacity 0.3s;
}
.concept-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 140, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(108, 140, 255, 0.1);
}
.concept-card:hover::before { opacity: 1; }
.concept-card .icon { color: var(--accent); margin-bottom: 0.85rem; line-height: 1; }

/* --- INTERACTIVE DEMO --- */
#demo { max-width: 1100px; }

/* Example toggle tabs */
.example-toggle {
    display: inline-flex; gap: 0;
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 4px;
    margin-bottom: 1.2rem;
}
.toggle-btn {
    padding: 0.55rem 1.3rem; border-radius: 8px;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
    cursor: pointer; font-family: inherit;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.toggle-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}
.toggle-btn.active {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff; font-weight: 600;
    box-shadow: 0 2px 12px rgba(108, 140, 255, 0.25);
}
.toggle-btn:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
}

.demo-layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 2rem;
    margin-top: 2rem; align-items: start;
}
@media (max-width: 800px) {
    .demo-layout { grid-template-columns: 1fr; }
}

.scene-container {
    position: relative; width: 100%; aspect-ratio: 1;
    max-width: 600px; margin: 0 auto;
    background: radial-gradient(circle at center, rgba(108,140,255,0.06) 0%, transparent 70%);
    border-radius: 16px;
    border: 1px solid rgba(108, 140, 255, 0.06);
    box-shadow: 0 0 60px rgba(108, 140, 255, 0.04);
}
.scene-container canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.scene-container canvas:active { cursor: grabbing; }

.demo-panel {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.demo-panel h3 { margin-bottom: 0.75rem; }

.stakeholder-list { list-style: none; }
.stakeholder-list li {
    padding: 0.65rem 0.75rem; border-radius: 8px; margin-bottom: 0.35rem;
    cursor: pointer; display: flex; align-items: center; gap: 0.65rem;
    font-size: 0.9rem; transition: background 0.2s, border-color 0.2s, transform 0.15s;
    color: var(--text-muted); border: 1px solid transparent;
}
.stakeholder-list li:hover {
    background: var(--surface2);
    transform: translateX(3px);
}
.stakeholder-list li.active {
    background: rgba(108, 140, 255, 0.12);
    border-color: var(--accent);
    color: var(--text);
    transform: translateX(3px);
}
.stakeholder-list li .dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.stakeholder-list li .dist-badge {
    margin-left: auto; font-size: 0.7rem; padding: 2px 8px;
    border-radius: 20px; background: var(--surface2); color: var(--text-muted);
}

.perspective-box {
    margin-top: 1rem; padding: 1.2rem; border-radius: 10px;
    background: var(--surface2); min-height: 120px;
    font-size: 0.88rem; color: var(--text-muted);
    border-left: 3px solid var(--accent);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.perspective-box h4 { color: var(--text); margin-bottom: 0.5rem; font-size: 0.95rem; }
.perspective-box ul { padding-left: 1.2rem; }
.perspective-box li { margin-bottom: 0.35rem; line-height: 1.6; }

.scene-hint {
    text-align: center; font-size: 0.8rem; color: var(--text-muted);
    margin-top: 0.5rem; opacity: 0.7;
}

/* --- STEPS --- */
.steps {
    counter-reset: step; margin-top: 2rem;
    position: relative; list-style: none;
}
/* Vertical connector line */
.steps::before {
    content: ''; position: absolute;
    left: 21px; top: 44px; bottom: 44px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(108, 140, 255, 0.1));
    border-radius: 1px;
}
.step {
    display: flex; gap: 1.5rem; margin-bottom: 2rem;
    align-items: flex-start; position: relative;
}
.step-num {
    counter-increment: step;
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--surface2), rgba(108, 140, 255, 0.1));
    border: 2px solid var(--accent);
    font-weight: 700; font-size: 1.1rem; color: var(--accent);
    box-shadow: 0 0 16px rgba(108, 140, 255, 0.1);
    transition: box-shadow 0.3s, transform 0.2s;
    z-index: 1;
}
.step:hover .step-num {
    box-shadow: 0 0 24px rgba(108, 140, 255, 0.25);
    transform: scale(1.08);
}
.step-content { flex: 1; }
.step-content h3 { transition: color 0.2s; }
.step:hover .step-content h3 { color: var(--accent); }
.step-content p { margin-bottom: 0; }

/* --- TRY IT FORM --- */
.try-box {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 2.5rem; margin-top: 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* --- DISTANCE DIMENSION --- */
.distance-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.distance-card {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 1.8rem;
    position: relative; overflow: hidden;
    border-top: 3px solid var(--accent);
}
.distance-card.distance-close { border-top-color: var(--green); }
.distance-card.distance-mid { border-top-color: var(--gold); }
.distance-card.distance-far { border-top-color: var(--pink); }
.distance-label {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 700; margin-bottom: 0.6rem;
}
.distance-close .distance-label { color: var(--green); }
.distance-mid .distance-label { color: var(--gold); }
.distance-far .distance-label { color: var(--pink); }
.distance-detail { margin-top: 1rem; }
.distance-detail h4 {
    font-size: 0.82rem; font-weight: 600; color: var(--text);
    margin-top: 0.8rem; margin-bottom: 0.35rem;
}
.distance-detail ul {
    padding-left: 1.2rem; margin-bottom: 0.5rem;
}
.distance-detail li {
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; line-height: 1.5;
}
.distance-detail p { font-size: 0.85rem; margin-bottom: 0.3rem; }
.distance-mismatch {
    margin-top: 2.5rem; padding: 1.8rem; border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 110, 156, 0.06), rgba(255, 174, 87, 0.04));
    border: 1px solid rgba(255, 110, 156, 0.15);
}
.distance-mismatch h3 { margin-bottom: 0.6rem; }

/* --- WHY IT WORKS / SCIENCE --- */
.science-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.science-card {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 1.6rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.science-card:hover {
    border-color: rgba(108, 140, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.science-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.science-card p { font-size: 0.88rem; line-height: 1.65; }

/* --- COMPARISON TABLE --- */
.compare-table-wrap {
    overflow-x: auto; margin-top: 1.5rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.compare-table {
    width: 100%; border-collapse: collapse; font-size: 0.85rem;
    background: var(--surface);
}
.compare-table th {
    text-align: left; padding: 0.9rem 1rem;
    background: var(--surface2); color: var(--text);
    font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(108, 140, 255, 0.15);
}
.compare-table td {
    padding: 0.8rem 1rem; color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top; line-height: 1.55;
}
.compare-table tbody tr:hover td {
    background: rgba(108, 140, 255, 0.04);
}
.compare-table em { color: var(--accent); font-style: normal; font-weight: 600; }

/* --- OUTPUT SECTION --- */
.output-table th { font-size: 0.72rem; }
.badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.badge-close { background: rgba(102, 224, 164, 0.15); color: var(--green); }
.badge-mid { background: rgba(255, 214, 102, 0.15); color: var(--gold); }
.badge-far { background: rgba(255, 110, 156, 0.15); color: var(--pink); }
.output-downloads {
    margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem;
}

/* --- DOMAIN EXAMPLES --- */
.domain-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.domain-card {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 1.6rem;
    transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
}
.domain-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 140, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.domain-icon { color: var(--accent); margin-bottom: 0.6rem; line-height: 1; }
.domain-card h3 { margin-bottom: 0.5rem; }
.domain-card p { font-size: 0.88rem; line-height: 1.6; }

/* --- WIDER SECTIONS --- */
#distance, #science, #compare, #output, #domains { max-width: 1060px; }
.try-box label {
    display: block; font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 0.4rem; margin-top: 1rem;
}
.try-box label:first-child { margin-top: 0; }
.try-box input, .try-box select, .try-box textarea {
    width: 100%; padding: 0.6rem 0.8rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1); background: var(--surface2);
    color: var(--text); font-size: 0.9rem; font-family: inherit;
    transition: border-color 0.2s;
}
.try-box input:focus, .try-box select:focus, .try-box textarea:focus {
    outline: none; border-color: var(--accent);
}
.try-box textarea { resize: vertical; min-height: 60px; }

.add-stakeholder-row {
    display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end;
}
.add-stakeholder-row .field-name { flex: 2; min-width: 160px; }
.add-stakeholder-row .field-dist { flex: 1; min-width: 120px; }

/* --- BUTTONS --- */
.btn {
    display: inline-block; padding: 0.6rem 1.4rem; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff; border: none;
    font-weight: 600; font-size: 0.88rem; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(108, 140, 255, 0.15);
}
.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(108, 140, 255, 0.3);
}
.btn-outline {
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
    box-shadow: none;
}
.btn-outline:hover { background: rgba(108,140,255,0.1); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* --- USER STAKEHOLDER TAGS --- */
.user-stakeholders {
    margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.user-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.8rem; border-radius: 20px; font-size: 0.8rem;
    background: var(--surface2); color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.06);
}
.user-tag .dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.user-tag .remove {
    cursor: pointer; opacity: 0.5; transition: opacity 0.15s;
    font-size: 1rem; line-height: 1;
    background: none; border: none; color: inherit; padding: 0;
}
.user-tag .remove:hover { opacity: 1; }

/* --- USER SCENE --- */
.user-scene-container {
    position: relative; width: 100%; aspect-ratio: 1;
    max-width: 500px; margin: 1.5rem auto 0;
}
.user-scene-container canvas { width: 100%; height: 100%; display: block; }

/* --- SHARE SECTION --- */
.share-section {
    text-align: center;
    padding: 4rem 2rem 3rem;
    max-width: 640px;
    margin: 0 auto;
    border-top: 1px solid rgba(108, 140, 255, 0.06);
}
.share-section h2 { margin-bottom: 0.8rem; }
.share-section > p { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.8rem; }
.share-buttons {
    display: flex; gap: 0.8rem;
    justify-content: center; flex-wrap: wrap;
}
.share-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.3rem; border-radius: 8px;
    font-size: 0.88rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--surface); color: var(--text);
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-twitter:hover { background: #1d9bf0; border-color: #1d9bf0; color: #fff; }
.share-copy:hover { background: rgba(108, 140, 255, 0.15); border-color: var(--accent); color: var(--accent); }
.share-btn.copied { background: var(--green); border-color: var(--green); color: #0f1117; }

/* --- FOOTER --- */
footer {
    padding: 4rem 2rem 2.5rem;
    border-top: 1px solid rgba(108, 140, 255, 0.08);
    background: linear-gradient(to bottom, transparent, rgba(108, 140, 255, 0.02));
}
.footer-inner {
    max-width: 960px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 700px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand .footer-logo {
    font-weight: 700; font-size: 1.1rem; color: var(--accent);
    margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.45rem;
}
.footer-brand .footer-logo-img {
    width: 26px; height: 26px;
}
.footer-brand p {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.7;
    max-width: 320px;
}
.footer-links h4 {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text); margin-bottom: 0.8rem; font-weight: 600;
}
.footer-links ul {
    list-style: none;
}
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.78rem; color: var(--text-muted);
}
.footer-bottom span { color: var(--accent); }

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children in concept grid */
.concept-card { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s; }
.reveal.visible .concept-card { opacity: 1; transform: translateY(0); }
.reveal.visible .concept-card:nth-child(1) { transition-delay: 0.05s; }
.reveal.visible .concept-card:nth-child(2) { transition-delay: 0.12s; }
.reveal.visible .concept-card:nth-child(3) { transition-delay: 0.19s; }
.reveal.visible .concept-card:nth-child(4) { transition-delay: 0.26s; }

/* --- SELECTION HIGHLIGHT --- */
::selection {
    background: rgba(108, 140, 255, 0.3);
    color: #fff;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 860px) {
    section { padding: 4rem 1.25rem 3rem; }
    h2 { font-size: 1.6rem; }
    .hero h1 { margin-bottom: 1rem; }
    .hero .subtitle { margin-bottom: 2rem; }
    .try-box { padding: 1.5rem; }
    .steps::before { left: 17px; }
    .step-num { width: 36px; height: 36px; font-size: 0.95rem; }
    .step { gap: 1rem; }
}
@media (max-width: 600px) {
    section { padding: 3rem 1rem 2.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1rem; }
    .hero .cta { padding: 0.75rem 1.6rem; font-size: 0.88rem; }
    .distance-grid, .science-grid, .domain-grid { grid-template-columns: 1fr; }
    .compare-table { font-size: 0.78rem; }
    .compare-table th, .compare-table td { padding: 0.6rem 0.7rem; }
    .output-downloads { flex-direction: column; }
    .output-downloads .btn { text-align: center; }
}

/* --- SCROLLBAR (webkit) --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--surface2); border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(108, 140, 255, 0.3); }
