/* ── shared.css — Flywheel shared styles for role pages ── */

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

:root {
    --brand: #A6FF00;
    --brand-dim: #a6ff0022;
    --brand-dark: #5a8a00;
    --bg-deepest: #0a0a0a;
    --bg-darker: #111111;
    --bg-base: #161616;
    --bg-surface: #1c1c1c;
    --bg-elevated: #232323;
    --bg-raised: #2a2a2a;
    --text-primary: #cccccc;
    --text-secondary: #9d9d9d;
    --text-muted: #6a6a6a;
    --text-faint: #484848;
    --accent-amber: #febc2e;
    --accent-amber-dim: #febc2e22;
    --accent-teal: #4ec9b0;
    --accent-rose: #ff5f57;
    --accent-blue: #569cd6;
    --border: #2a2a2a;
    --border-light: #333333;
    --font-sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #424242; border: 3px solid var(--bg-base); border-radius: 7px; }

.material-icons-outlined { font-family: 'Material Icons Outlined'; font-size: 20px; vertical-align: middle; }

/* ── Utility ────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; position: relative; }

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--brand);
    opacity: 0.6;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title em { font-style: normal; font-weight: 700; color: var(--brand); }

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

/* ── Nav ────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex; align-items: center;
    gap: 1.75rem; list-style: none;
}

.nav-links a {
    font-size: 13px; color: var(--text-muted);
    text-decoration: none; transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    padding: 0.5rem 1rem;
    background: var(--brand);
    color: var(--bg-deepest) !important;
    border-radius: 4px;
    font-weight: 500 !important;
    transition: all 0.2s var(--ease);
}

.nav-cta:hover { box-shadow: 0 0 20px var(--brand-dim); }

/* ── Nav Dropdown ────────────────────── */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
}

.nav-dropdown-trigger .material-icons-outlined {
    font-size: 18px;
    transition: transform 0.2s var(--ease);
}

.nav-dropdown-wrap:hover .nav-dropdown-trigger .material-icons-outlined {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
    padding: 0.5rem;
    z-index: 100;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s var(--ease);
}

.nav-dropdown-item:hover {
    background: var(--bg-elevated);
}

.nav-dropdown-item .dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.nav-dropdown-item .dropdown-icon .material-icons-outlined {
    font-size: 16px;
    color: var(--brand);
}

.nav-dropdown-item .dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-dropdown-item .dropdown-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-dropdown-item .dropdown-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Mobile Nav Toggle ──────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Scroll Snap (role pages) ───────── */
.role-hero { }

/* ── Buttons ────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    background: var(--brand); color: var(--bg-deepest);
    font-family: var(--font-mono); font-size: 13px; font-weight: 500;
    border: none; border-radius: 5px; cursor: pointer;
    text-decoration: none; transition: all 0.2s var(--ease);
}

.btn-primary:hover { box-shadow: 0 0 24px var(--brand-dim); transform: translateY(-1px); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    background: transparent; color: var(--text-secondary);
    font-family: var(--font-mono); font-size: 13px; font-weight: 400;
    border: 1px solid var(--border); border-radius: 5px; cursor: pointer;
    text-decoration: none; transition: all 0.2s var(--ease);
}

.btn-ghost:hover { border-color: var(--border-light); color: var(--text-primary); }

/* ── Hero backgrounds ────────────────── */
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 60%);
}

.hero-glow {
    position: absolute; width: 500px; height: 500px;
    border-radius: 50%; filter: blur(160px); opacity: 0.1; pointer-events: none;
}

.hero-glow.green { background: var(--brand); top: -150px; left: -100px; }
.hero-glow.amber { background: var(--accent-amber); bottom: -250px; right: -150px; opacity: 0.05; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border); border-radius: 100px;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 2rem;
    background: var(--bg-surface);
}

.hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--brand); border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ── Dashboard chrome (reused on role pages) ── */
.dash-topbar {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-darker);
}

.dash-topbar-left {
    display: flex; align-items: center; gap: 0.75rem;
}

.dash-dots {
    display: flex; gap: 5px;
}

.dash-dots span {
    width: 10px; height: 10px; border-radius: 50%;
}

.dash-dots span:nth-child(1) { background: var(--accent-rose); }
.dash-dots span:nth-child(2) { background: var(--accent-amber); }
.dash-dots span:nth-child(3) { background: var(--brand); }

.dash-topbar-title {
    font-family: var(--font-mono);
    font-size: 11px; color: var(--text-faint);
}

.dash-topbar-right {
    display: flex; align-items: center; gap: 0.5rem;
}

.dash-status {
    display: flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-mono); font-size: 10px; color: var(--brand);
}

.dash-status .material-icons-outlined { font-size: 14px; color: var(--brand); }

.dash-ai-bar {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: start; gap: 0.5rem;
    background: var(--bg-darker);
}

.dash-ai-bar .material-icons-outlined {
    font-size: 16px; color: var(--brand); margin-top: 1px;
}

.dash-ai-bar p {
    font-size: 11px; color: var(--text-secondary); line-height: 1.5;
}

.dash-ai-bar span { color: var(--brand); }

/* ── Footer ──────────────────────────── */
footer { padding: 2.5rem 0; border-top: 1px solid var(--border); }

.foot { display: flex; justify-content: space-between; align-items: center; }
.foot-left { display: flex; align-items: center; gap: 1.5rem; }
.foot-brand { font-family: var(--font-display); font-size: 16px; color: var(--text-primary); }
.foot-links { display: flex; gap: 1.25rem; list-style: none; }
.foot-links a { font-size: 12px; color: var(--text-faint); text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--text-secondary); }
.foot-right { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.1em; }

/* ── CTA Section ─────────────────────── */
.final-cta { text-align: center; position: relative; overflow: hidden; }

.cta-glow {
    position: absolute; width: 600px; height: 300px;
    background: var(--brand); border-radius: 50%;
    filter: blur(200px); opacity: 0.06;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
}

.final-cta .container { position: relative; z-index: 1; }

.final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em; margin-bottom: 1.25rem;
}

.final-cta h2 em { font-style: italic; color: var(--brand); }

.final-cta p {
    font-size: 15px; color: var(--text-secondary);
    max-width: 420px; margin: 0 auto 2rem; line-height: 1.7;
}

.final-cta .hero-actions { justify-content: center; }

.hero-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ── Animations ──────────────────────── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(20px); transition: all 0.5s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive (shared components) ──── */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    nav { padding: 0.75rem 1.25rem; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        gap: 1.5rem;
        z-index: 1000;
        padding: 2rem;
    }
    .nav-links.open { display: flex; }
    .nav-links li { list-style: none; }
    .nav-links > li > a { font-size: 18px; }
    .nav-cta { font-size: 14px !important; }
    .nav-dropdown-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .nav-dropdown-trigger {
        pointer-events: none;
        font-size: 10px;
        color: var(--text-faint);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-family: var(--font-mono);
    }
    .nav-dropdown-trigger .material-icons-outlined { display: none; }
    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: none;
        border: none;
        box-shadow: none;
        min-width: auto;
        padding: 0;
    }
    .nav-dropdown::before { display: none; }
    .nav-dropdown-item { justify-content: center; padding: 0.4rem 0.75rem; }
    .nav-dropdown-item .dropdown-icon { display: none; }
    .nav-dropdown-item .dropdown-text { align-items: center; }
    .nav-dropdown-item .dropdown-desc { display: none; }
    .foot { flex-direction: column; gap: 1rem; text-align: center; }
    .foot-left { flex-direction: column; gap: 0.75rem; }
    .hero-actions { flex-wrap: wrap; justify-content: center; }
}
