/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
    /* Day Mode Tokens */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f3f4;
    --border: #e8eaed;
    --blue: #1a73e8;
    --blue-light: #e8f0fe;
    --blue-mid: #4285f4;
    --green: #1e8e3e;
    --green-light: #e6f4ea;
    --amber: #f9ab00;
    --amber-light: #fef7e0;
    --red: #d93025;
    --red-light: #fce8e6;
    --ink: #000000;
    --ink-2: #1a1a1a;
    --ink-3: #2a2a2a;
    --ink-4: #4a4a4a;
    --ink-5: #6a6a6a;
    --shadow-1: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
    --shadow-2: 0 1px 2px rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15);
    --shadow-3: 0 4px 8px 3px rgba(60, 64, 67, .15), 0 1px 3px rgba(60, 64, 67, .3);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 100px;
    --font-display: 'Google Sans Display', 'Google Sans', sans-serif;
    --font-body: 'Google Sans Text', 'Google Sans', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --transition: 200ms cubic-bezier(.2, 0, 0, 1);
    --theme-transition: 400ms cubic-bezier(.2, 0, 0, 1);
}

/* Dark Mode Tokens */
.dark-mode {
    --bg: #0B0F19;
    --surface: #161B2E;
    --surface-2: #1c2237;
    --border: rgba(255, 255, 255, 0.1);
    --ink: #ffffff;
    --ink-2: #e2e8f0;
    --ink-3: #94a3b8;
    --ink-4: #64748b;
    --ink-5: #334155;
    --shadow-1: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 12px 40px rgba(0, 0, 0, 0.6);
    --blue-light: rgba(26, 115, 232, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100%;
    transition: background-color var(--theme-transition), color var(--theme-transition);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit
}

/* ── SCROLL REVEAL ─────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1)
}

.reveal.visible {
    opacity: 1;
    transform: none
}

/* ── HERO ENTRY ANIMATIONS ─────────────────────────────────────── */
.hero-animate {
    opacity: 0;
    transform: translateY(16px)
}

nav {
    opacity: 0;
    transform: translateY(-8px)
}

/* ── NAVBAR ────────────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    transition: box-shadow var(--transition), background-color var(--theme-transition), border-color var(--theme-transition);
}

nav.scrolled {
    box-shadow: var(--shadow-1)
}

.dark-mode nav {
    background: #0B0F19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode nav .nav-logo {
    color: #fff;
}

.dark-mode nav .nav-link {
    color: #94a3b8;
}

.dark-mode nav .nav-link:hover,
.dark-mode nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dark-mode nav .btn-ghost {
    color: #fff;
}

.dark-mode nav .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-inner {
    max-width: 1280px;
    caret-color: transparent;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    transition: color var(--theme-transition);
}

/* ── THEME TOGGLE ─────────────────────────────────────────────── */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    transition: background var(--transition), color var(--transition), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--surface-2);
    color: var(--blue);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

.dark-mode .theme-toggle .sun-icon {
    display: block;
}

.dark-mode .theme-toggle .moon-icon {
    display: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    caret-color: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: opacity var(--transition);
}

.nav-logo:active {
    opacity: 0.7;
}

.nav-logo-shield {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    caret-color: transparent;
}

.logo-shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.8px;
    display: flex;
    align-items: baseline;
}

.logo-text-fair {
    color: #3c4043;
}

.logo-text-ai {
    color: #4285f4;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: 16px
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-3);
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--blue-light);
    color: var(--blue)
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px
}

.btn-ghost {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--blue);
    transition: background var(--transition);
}

.btn-ghost:hover {
    background: var(--blue-light)
}

.btn-primary {
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 0 0 0 rgba(26, 115, 232, 0);
    transition: background var(--transition), box-shadow .3s cubic-bezier(.22, 1, .36, 1), transform .2s cubic-bezier(.22, 1, .36, 1);
}

.btn-primary:hover {
    background: #1765cc;
    box-shadow: var(--shadow-2), 0 0 0 3px rgba(26, 115, 232, .15);
    transform: translateY(-1px) scale(1.01)
}

.btn-primary:active {
    background: #1557b0;
    box-shadow: none;
    transform: scale(.98)
}

/* ── HERO ──────────────────────────────────────────────────────── */
.hero-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    background-image: linear-gradient(160deg, var(--bg) 0%, var(--bg) 45%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    transition: background var(--theme-transition);
}

.hero-radial {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 80% at 60% 40%, rgba(66, 133, 244, .07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(30, 142, 62, .04) 0%, transparent 60%);
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .6;
}

.hero-hook-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 20px;
}

.hero-hook-text {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--blue-mid);
    letter-spacing: 0px;
    background: linear-gradient(90deg, #1a73e8, #a142f4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background-color: var(--blue);
    margin-left: 8px;
    border-radius: 2px;
    animation: blink 1s step-end infinite;
    -webkit-text-fill-color: initial;
    /* Override gradient */
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    color: var(--blue);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue)
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -.5px;
    margin-bottom: 20px;
}

h1 strong {
    font-weight: 700;
    color: var(--blue)
}

.hero-sub {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-3);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center
}

.hero-stat-row {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}


.hero-stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.5px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--ink-4);
    margin-top: 2px
}

.hero-visual {
    position: relative
}

.hero-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-1);
    animation: floatPremium 7s ease-in-out infinite;
    transition: box-shadow .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1), background var(--theme-transition), border-color var(--theme-transition);
}

.hero-card:hover {
    box-shadow: 0 12px 40px rgba(60, 64, 67, .18), 0 2px 8px rgba(60, 64, 67, .1);
    transform: translateY(-4px);
    animation-play-state: paused;
}

@keyframes floatPremium {

    0%,
    100% {
        transform: translateY(0) rotate(0deg)
    }

    30% {
        transform: translateY(-8px) rotate(.3deg)
    }

    60% {
        transform: translateY(-5px) rotate(-.2deg)
    }
}

.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hero-card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: .5px
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
}

.status-chip.selected {
    background: var(--green-light);
    color: var(--green)
}

.status-chip.rejected {
    background: var(--red-light);
    color: var(--red)
}

.status-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor
}

.score-ring-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0
}

.mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    font-size: 13px
}

.mini-label {
    color: var(--ink-3)
}

.mini-val {
    font-weight: 500;
    color: var(--ink)
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow-3);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── HERO VIDEO CARD (Consolidated) ────────────────────────────── */
.hero-video-card {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: floatPremium 7s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    animation-play-state: paused;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: clamp(100px, 20vw, 290px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 35px;
    line-height: 0.8;
    text-align: center;
    margin: 140px auto 40px;
    margin-left: 30px;
    opacity: 1;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.offset-i {
    margin-left: 16px;
}

.footer-brand-subtext {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-3);
    text-align: center;
    letter-spacing: 16px;
    text-transform: uppercase;
    margin-top: 10px;
    margin-left: 60px;
    margin-bottom: 120px;
    opacity: 0.8;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-video-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    z-index: 3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* ── AMBIENT SHOWCASE PANEL ─────────────────────────────────────── */
.video-panel {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 21 / 9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-3);
    position: relative;
    margin: 40px auto 0;
    border: 1px solid var(--border);
}

.video-preview {
    width: 100%;
    height: 100%;
    position: relative;
}



.badge-icon {
    font-size: 20px
}

/* ── SECTION SCAFFOLDING ───────────────────────────────────────── */
.section {
    padding: 80px 40px;
    max-width: 1280px;
    margin: 0 auto
}

.section-full {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.section-full .section {
    padding-top: 0;
    padding-bottom: 0
}

.section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-bottom: 10px;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -.3px;
    margin-bottom: 12px;
}

h2 strong {
    font-weight: 700
}

.section-sub {
    font-size: 16px;
    color: var(--ink-3);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 56px
}

.col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start
}

.col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px
}

/* ── EVALUATION SECTION ─────────────────────────────────────────────── */
.evaluation-section {
    padding: 120px 40px;
    background: var(--bg);
}

.eval-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eval-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color var(--theme-transition), background var(--theme-transition);
}

.eval-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: rgba(66, 133, 244, 0.3);
}

/* Soft border glow on hover */
.eval-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--blue), var(--amber));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.eval-card:hover::before {
    opacity: 0.5;
}

.eval-accent {
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(to bottom, var(--blue-mid), #a142f4);
    flex-shrink: 0;
}

.eval-content {
    flex: 1;
}

.eval-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.eval-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eval-icon-wrap svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.eval-desc {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink-3);
    margin-bottom: 28px;
}

.eval-takeaway {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 18px 24px;
    display: inline-flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink-2);
    border: 1px solid var(--border);
    transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow var(--theme-transition);
}

.eval-card:hover .eval-takeaway {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: rgba(66, 133, 244, 0.15);
}

.eval-takeaway svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.eval-takeaway strong {
    color: var(--blue-mid);
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .eval-card {
        padding: 24px;
        flex-direction: column;
        gap: 20px;
    }

    .eval-accent {
        width: 100%;
        height: 6px;
        background: linear-gradient(to right, var(--blue-mid), #a142f4);
    }
}

/* ── TEAM SECTION ─────────────────────────────────────────────── */
.team-section {
    padding: 120px 40px;
    background: var(--bg);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 60px auto 0;
}

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3);
    border-color: var(--blue-mid);
}

.team-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.team-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card:hover .team-photo-wrap img {
    transform: scale(1.05);
}

.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-3);
}

/* ── WORKSPACE ─────────────────────────────────────────────────── */
.workspace {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid rgba(232, 234, 237, 0.8);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    animation: workspaceFloat 12s ease-in-out infinite;
}

@keyframes workspaceFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

#workspace.section {
    position: relative;
    border-radius: 32px;
}

#workspace.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(66, 133, 244, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(161, 66, 244, 0.06) 0%, transparent 50%);
    border-radius: 32px;
    z-index: -1;
    margin: -32px;
}

.workspace-sidebar {
    border-right: 1px solid var(--border);
    padding: 40px 32px;
    background: var(--bg);
}

.workspace-main {
    padding: 40px;
    background: var(--surface);
}

.workspace-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.workspace-sub {
    font-size: 13px;
    color: var(--ink-4);
    margin-bottom: 28px
}

/* ── FORM ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-4);
    letter-spacing: .6px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    background: #ffffff;
    transition: all var(--transition);
    outline: none;
    appearance: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, .12);
}

.form-input:hover:not(:focus) {
    border-color: #bdc1c6
}

select.form-input {
    cursor: pointer
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.form-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink-5);
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-top: 16px;
}

.slider-wrap {
    padding: 4px 0
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a73e8, #a142f4);
    opacity: 0.8;
    outline: none;
    transition: opacity 0.3s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--blue);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(26, 115, 232, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(161, 66, 244, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ink-4);
    margin-top: 8px;
}

.run-btn {
    width: 100%;
    padding: 16px;
    border-radius: 100px;
    background: linear-gradient(90deg, #1a73e8, #7b1fa2);
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-top: 16px;
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.3);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.run-btn:hover {
    background: linear-gradient(90deg, #1765cc, #6a1b9a);
    box-shadow: 0 12px 28px rgba(123, 31, 162, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.run-btn:active {
    transform: scale(.98);
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.3);
}

/* ── RESULT CARD ───────────────────────────────────────────────── */
.result-panel {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.result-card {
    background: #ffffff;
    border: 1px solid rgba(232, 234, 237, 0.6);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(32, 33, 36, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(32, 33, 36, 0.06);
}

.result-verdict {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid rgba(30, 142, 62, 0.2);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(30, 142, 62, 0.08);
    position: relative;
    overflow: hidden;
}

.result-verdict::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(30, 142, 62, 0.1), transparent 60%);
    pointer-events: none;
}

.verdict-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(30, 142, 62, 0.3);
    animation: pulseIcon 2s infinite cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 142, 62, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 16px rgba(30, 142, 62, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 142, 62, 0);
    }
}

.verdict-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.verdict-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.confidence-bar-wrap {
    margin-top: 16px
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-3);
    margin-bottom: 6px
}

.bar-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(.4, 0, .2, 1)
}

.bar-fill.green {
    background: var(--green)
}

.bar-fill.blue {
    background: var(--blue)
}

.bar-fill.amber {
    background: var(--amber)
}

.bar-fill.red {
    background: var(--red)
}

/* ── BIAS AUDIT ────────────────────────────────────────────────── */
.bias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.bias-attr-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: box-shadow .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1);
}

.bias-attr-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px)
}

.bias-attr-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 12px
}

.bias-compare {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.bias-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px
}

.bias-swatch {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.bias-name {
    color: var(--ink-3);
    min-width: 72px
}

.bias-bar-wrap {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden
}

.bias-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease
}

.bias-pct {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink);
    min-width: 36px;
    text-align: right
}

.bias-delta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.delta-label {
    color: var(--ink-4)
}

.delta-val {
    font-weight: 600;
    font-family: var(--font-mono)
}

.delta-val.ok {
    color: var(--green)
}

.delta-val.warn {
    color: var(--amber)
}

.delta-val.bad {
    color: var(--red)
}

/* ── FAIRNESS GAUGE ────────────────────────────────────────────── */
.fairness-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
}

.gauge-wrap {
    position: relative;
    width: 240px;
    height: 140px;
    flex-shrink: 0
}

.gauge-svg {
    width: 100%;
    height: auto
}

.gauge-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.gauge-score {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -2px;
    line-height: 1;
}

.gauge-label {
    font-size: 12px;
    color: var(--ink-4);
    margin-top: 2px
}

.fairness-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.metric-chip {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.metric-chip-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px
}

.metric-chip-val {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink)
}

.metric-chip-sub {
    font-size: 12px;
    color: var(--ink-4);
    margin-top: 2px
}

.metric-chip.good .metric-chip-val {
    color: var(--green)
}

.metric-chip.warn .metric-chip-val {
    color: var(--amber)
}

/* ── EXPLANATION ───────────────────────────────────────────────── */
.shap-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.shap-item {
    display: grid;
    grid-template-columns: 140px 1fr 64px;
    gap: 12px;
    align-items: center;
    font-size: 13px
}

.shap-feature {
    color: var(--ink-2);
    font-weight: 500
}

.shap-bar-track {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden
}

.shap-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease
}

.shap-bar.pos {
    background: var(--blue)
}

.shap-bar.neg {
    background: var(--red)
}

.shap-val {
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: right
}

.shap-val.pos {
    color: var(--blue)
}

.shap-val.neg {
    color: var(--red)
}

.explanation-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--blue);
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
}

/* ── WHAT-IF ───────────────────────────────────────────────────── */
.whatif-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.whatif-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatif-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink)
}

.whatif-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.whatif-controls {
    padding: 24px;
    border-right: 1px solid var(--border)
}

.whatif-result {
    padding: 24px;
    background: var(--bg)
}

.control-row {
    margin-bottom: 20px
}

.control-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-3);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between
}

.toggle-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.toggle-btn {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-3);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all var(--transition);
}

.toggle-btn.active,
.toggle-btn:hover {
    background: var(--blue-light);
    color: var(--blue);
    border-color: var(--blue);
}

.outcome-compare {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.outcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 13px;
}

.outcome-scenario {
    color: var(--ink-3)
}

.outcome-chip {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.outcome-chip.pass {
    background: var(--green-light);
    color: var(--green)
}

.outcome-chip.fail {
    background: var(--red-light);
    color: var(--red)
}

.outcome-row.highlight {
    background: var(--blue-light);
    border: 1px solid rgba(26, 115, 232, .2)
}

.outcome-row.highlight .outcome-scenario {
    color: var(--blue);
    font-weight: 500
}

/* ── TRUST ─────────────────────────────────────────────────────── */
.trust-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease;
}

.trust-card:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-3px);
    border-color: rgba(26, 115, 232, .2)
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    background: var(--blue-light);
}

.trust-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px
}

.trust-desc {
    font-size: 14px;
    color: var(--ink-3);
    line-height: 1.6
}

/* ── FOOTER ────────────────────────────────────────────────────── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    caret-color: transparent;
    padding: 48px 40px 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px
}

.footer-tagline {
    font-size: 13px;
    color: var(--ink-4)
}

.footer-links {
    display: flex;
    gap: 48px
}

.footer-col-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--ink-4);
    margin-bottom: 16px
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--ink-3);
    margin-bottom: 10px;
    transition: color var(--transition)
}

.footer-col a:hover {
    color: var(--blue)
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--ink-4);
}

/* ── DIVIDER ───────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0
}

/* ── LOADER ────────────────────────────────────────────────────── */
#page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s cubic-bezier(.22, 1, .36, 1);
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: loaderPulse 1.2s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
    from {
        opacity: .5
    }

    to {
        opacity: 1
    }
}

/* Remove old load keyframes — replaced by JS-driven sequence */

/* ── TABS ──────────────────────────────────────────────────────── */
.tab-row {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.tab {
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
    cursor: pointer;
}

.tab.active {
    color: var(--blue);
    border-color: var(--blue);
}

.tab:hover:not(.active) {
    color: var(--ink);
}

/* ── TOOLTIP ───────────────────────────────────────────────────── */
[data-tip] {
    position: relative
}

[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink-2);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* ── SVG GAUGE ─────────────────────────────────────────────────── */
.gauge-arc-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 16;
    stroke-linecap: round
}

.gauge-arc {
    fill: none;
    stroke-width: 16;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media(max-width:1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 64px 24px 48px
    }

    .hero-visual {
        display: none
    }

    .workspace {
        grid-template-columns: 1fr
    }

    .workspace-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border)
    }

    .bias-grid {
        grid-template-columns: 1fr
    }

    .fairness-section {
        grid-template-columns: 1fr;
        justify-items: center
    }

    .col-2,
    .col-3 {
        grid-template-columns: 1fr
    }

    .whatif-body {
        grid-template-columns: 1fr
    }

    .whatif-controls {
        border-right: none;
        border-bottom: 1px solid var(--border)
    }
}

/* ── FAIRAI 3D HERO (ANALYSIS) ───────────────────────────────── */
.fairai-hero {
    position: relative;
    border: 1px solid #29386b;
    border-radius: 28px;
    top: -50px;
    overflow: hidden;
    background: linear-gradient(120deg, #0b1431 0%, #0d1737 40%, #08112a 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 42px 36px;
}

.fairai-hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.fairai-hero__particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(160, 196, 255, 0.85);
    box-shadow: 0 0 10px rgba(160, 196, 255, 0.65);
    animation: fairaiTwinkle 3.2s ease-in-out infinite;
}

.fairai-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 24px;
    align-items: center;
}

.fairai-hero__content {
    transform: translateY(-16px);
}

.fairai-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #fff;
}

.fairai-hero__title span {
    background: linear-gradient(90deg, #cf9bff, #9aa4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fairai-hero__subtitle {
    margin-top: 14px;
    max-width: 470px;
    color: #b9c6e6;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.fairai-hero__tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fairai-tag {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    backdrop-filter: blur(6px);
}

.fairai-tag--green {
    border: 1px solid rgba(52, 211, 153, .45);
    color: #9df4d0;
    background: rgba(16, 185, 129, .11);
}

.fairai-tag--blue {
    border: 1px solid rgba(96, 165, 250, .45);
    color: #b5d6ff;
    background: rgba(59, 130, 246, .11);
}

.fairai-tag--violet {
    border: 1px solid rgba(167, 139, 250, .45);
    color: #d9c3ff;
    background: rgba(139, 92, 246, .11);
}

.fairai-tag--amber {
    border: 1px solid rgba(251, 191, 36, .45);
    color: #f9dc9d;
    background: rgba(245, 158, 11, .11);
}

.fairai-visual {
    position: relative;
    height: 450px;
    width: calc(100% + 36px);
    margin-right: -36px;
    perspective: 1200px;
    transform-style: preserve-3d;
    transform: translateY(-36px);
}

.fairai-visual__glow {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    filter: blur(70px);
}

.fairai-visual__glow--purple {
    width: 520px;
    height: 190px;
    background: rgba(168, 85, 247, .22);
}

.fairai-visual__glow--blue {
    width: 560px;
    height: 220px;
    background: rgba(59, 130, 246, .18);
    filter: blur(90px);
}

.fairai-orbit {
    position: absolute;
    left: 50%;
    top: 68%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.fairai-orbit--one {
    width: 620px;
    height: 170px;
    border: 1px solid rgba(192, 132, 252, 0.58);
    box-shadow: 0 0 26px rgba(192, 132, 252, .4);
    animation: fairaiOrbit 16s linear infinite;
}

.fairai-orbit--two {
    width: 590px;
    height: 150px;
    border: 1px solid rgba(96, 165, 250, 0.56);
    box-shadow: 0 0 24px rgba(96, 165, 250, .38);
    animation: fairaiOrbitReverse 18s linear infinite;
}

.fairai-orbit--three {
    width: 500px;
    height: 130px;
    border: 1px solid rgba(129, 140, 248, 0.4);
    animation: fairaiOrbit 20s linear infinite;
}

.fairai-chip-stack {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 340px;
    height: 180px;
    transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-4deg);
    transform-style: preserve-3d;
    animation: fairaiFloatCore 5s ease-in-out infinite;
}

.fairai-chip-stack__layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px;
    border: 1px solid rgba(158, 132, 255, .5);
}

.fairai-chip-stack__layer--base {
    width: 340px;
    height: 170px;
    top: 26px;
    background: linear-gradient(180deg, #141d48, #0f1438);
    box-shadow: 0 24px 44px rgba(0, 0, 0, .65), 0 0 40px rgba(139, 92, 246, .25);
}

.fairai-chip-stack__layer--mid {
    width: 292px;
    height: 150px;
    top: 12px;
    background: linear-gradient(180deg, #3a2d85, #222b64);
    box-shadow: 0 0 30px rgba(167, 139, 250, .38);
}

.fairai-chip-stack__layer--top {
    width: 242px;
    height: 124px;
    top: 0;
    background: linear-gradient(180deg, #4f3cb5, #2e2e77);
    box-shadow: 0 0 22px rgba(167, 139, 250, .55);
}

.fairai-chip-stack__core {
    position: absolute;
    left: 50%;
    top: -16px;
    transform: translateX(-50%);
    width: 212px;
    height: 104px;
    border-radius: 18px;
    border: 1px solid rgba(224, 208, 255, .68);
    background: linear-gradient(180deg, #2d3770, #1b2457);
    box-shadow: 0 0 26px rgba(167, 139, 250, .7), inset 0 0 24px rgba(148, 163, 255, .25);
    color: #e9dcff;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .03em;
    animation: fairaiPulse 2.8s ease-in-out infinite;
}

.holo-card {
    position: absolute;
    min-width: 160px;
    border-radius: 16px;
    border: 1px solid rgba(130, 151, 255, .5);
    background: rgba(27, 36, 77, .62);
    backdrop-filter: blur(9px);
    padding: 10px 12px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .45), inset 0 0 16px rgba(138, 165, 255, .08);
    animation: fairaiFloatCard 6s ease-in-out infinite;
}

.holo-card__title {
    color: #eff4ff;
    font-size: 14px;
    font-weight: 700;
}

.holo-card__value {
    margin-top: 2px;
    font-weight: 700;
}

.holo-card__value--warn {
    color: #fde68a;
    font-size: 1.5rem;
}

.holo-card__value--blue {
    color: #8eb7ff;
    font-size: 2.8rem;
    line-height: 1;
}

.holo-card__value--green {
    color: #76f7bf;
    font-size: 2rem;
    line-height: 1;
}

.holo-card__value--neutral {
    color: #cbd5e1;
    font-size: .95rem;
}

.holo-card--false {
    left: 6%;
    top: 13%;
    transform: rotate(-7deg);
    animation-delay: .2s;
}

.holo-card--bias {
    right: 32%;
    top: 8%;
    transform: rotate(-2deg);
    animation-delay: .4s;
}

.holo-card--fairness {
    right: 9%;
    top: 7%;
    transform: rotate(6deg);
    min-width: 180px;
    animation-delay: .8s;
}

.holo-card--explain {
    right: 1%;
    top: 30%;
    transform: rotate(8deg);
    animation-delay: .9s;
}

.holo-card--whatif {
    left: 23%;
    bottom: 9%;
    transform: rotate(-3deg);
    animation-delay: 1.1s;
}

.holo-card--confidence {
    right: 7%;
    bottom: 7%;
    transform: rotate(-6deg);
    animation-delay: 1.4s;
}

.holo-chart {
    margin-top: 8px;
}

.holo-chart--line {
    height: 24px;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(34, 197, 94, .16), rgba(34, 197, 94, .02)),
        linear-gradient(110deg, transparent 0%, rgba(99, 102, 241, .35) 24%, rgba(34, 197, 94, .46) 50%, transparent 85%);
}

.holo-chart--ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 6px solid rgba(96, 165, 250, .2);
    border-top-color: rgba(96, 165, 250, .9);
    border-right-color: rgba(168, 85, 247, .9);
    margin-top: 6px;
    animation: fairaiSpin 3.5s linear infinite;
}

.holo-chart--bars {
    height: 24px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.holo-chart--bars span {
    display: block;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, #818cf8, #38bdf8);
    box-shadow: 0 0 10px rgba(129, 140, 248, .45);
    animation: fairaiBars 1.6s ease-in-out infinite;
}

.holo-chart--bars span:nth-child(1) {
    height: 8px;
    animation-delay: .1s;
}

.holo-chart--bars span:nth-child(2) {
    height: 13px;
    animation-delay: .2s;
}

.holo-chart--bars span:nth-child(3) {
    height: 10px;
    animation-delay: .3s;
}

.holo-chart--bars span:nth-child(4) {
    height: 16px;
    animation-delay: .4s;
}

.holo-chart--bars span:nth-child(5) {
    height: 12px;
    animation-delay: .5s;
}

.holo-chart--bars span:nth-child(6) {
    height: 18px;
    animation-delay: .6s;
}

@keyframes fairaiOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fairaiOrbitReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes fairaiPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(167, 139, 250, .55), inset 0 0 16px rgba(148, 163, 255, .18);
    }

    50% {
        box-shadow: 0 0 38px rgba(167, 139, 250, .82), inset 0 0 26px rgba(148, 163, 255, .3);
    }
}

@keyframes fairaiFloatCore {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-4deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-4deg) translateY(-8px);
    }
}

@keyframes fairaiFloatCard {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

@keyframes fairaiSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fairaiBars {

    0%,
    100% {
        transform: scaleY(.7);
        opacity: .7;
    }

    50% {
        transform: scaleY(1.15);
        opacity: 1;
    }
}

@keyframes fairaiTwinkle {

    0%,
    100% {
        opacity: .2;
        transform: scale(.7);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── DECISION TYPE PANEL (MATCH REFERENCE) ─────────────────────── */
.decision-panel {
    border-radius: 26px;
    border: 1px solid rgba(84, 122, 225, 0.32);
    background: var(--surface);
    box-shadow:
        0 26px 60px rgba(2, 8, 26, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    padding: 18px;
}

.decision-panel__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.decision-step {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(160deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4);
}

.decision-panel__title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.25rem, 1.6vw, 1.45rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.decision-panel__sub {
    margin: 4px 0 0;
    color: #9daccc;
    font-size: 0.85rem;
}

.decision-options {
    display: grid;
    gap: 14px;
}

.decision-option {
    width: 100%;
    display: grid;
    grid-template-columns: 72px 1fr 34px;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 16px 14px;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(100, 127, 190, 0.28);
    background: var(--surface-2);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}

.decision-option:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 169, 230, 0.5);
    box-shadow: 0 10px 30px rgba(11, 21, 51, 0.35);
}

.decision-option__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(150, 170, 228, 0.24);
    background: var(--surface);
}

.decision-option__icon svg {
    width: 28px;
    height: 28px;
}

.decision-option__icon--green {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.decision-option__icon--blue {
    color: #1e40af;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.decision-option__icon--violet {
    color: #5b21b6;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
}

.dark-mode .decision-option__icon--green {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.38);
}

.dark-mode .decision-option__icon--blue {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.dark-mode .decision-option__icon--violet {
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.44);
}

.decision-option__content {
    display: grid;
    gap: 3px;
}

.decision-option__label {
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.decision-option__desc {
    color: #9fb0d4;
    font-size: 0.85rem;
    line-height: 1.32;
    font-weight: 500;
}

.decision-option__state {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    display: grid;
    place-items: center;
    color: #fff;
    opacity: 1;
}

.dark-mode .decision-option__state {
    border-color: rgba(147, 159, 194, 0.55);
}

.decision-option--active .decision-option__state {
    background: #22c55e;
    border-color: #22c55e;
}

.decision-option__tick {
    width: 18px;
    height: 18px;
    opacity: 0;
}

.decision-option--active {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.dark-mode .decision-option--active {
    border-color: rgba(74, 222, 128, 0.85);
    background:
        linear-gradient(120deg, rgba(19, 64, 48, 0.55) 0%, rgba(16, 34, 68, 0.68) 70%),
        rgba(18, 36, 74, 0.68);
    box-shadow:
        0 0 0 1px rgba(74, 222, 128, 0.28),
        0 0 38px rgba(34, 197, 94, 0.22),
        0 14px 34px rgba(6, 20, 34, 0.45);
}

.decision-option--active .decision-option__state {
    border-color: rgba(74, 222, 128, 0.95);
    background: linear-gradient(160deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.decision-option--active .decision-option__tick {
    opacity: 1;
}

@media (max-width: 1100px) {
    .fairai-hero__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fairai-hero__content {
        text-align: center;
        transform: translateY(-14px);
    }

    .fairai-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .fairai-hero__tags {
        justify-content: center;
    }

    .fairai-visual {
        height: 420px;
        width: 100%;
        margin-right: 0;
        transform: translateY(-24px);
    }
}

@media (max-width: 768px) {
    .fairai-hero {
        padding: 24px 18px;
    }

    .fairai-hero__content {
        transform: translateY(-8px);
    }

    .fairai-visual {
        height: 360px;
        transform: translateY(-14px) scale(.85);
        transform-origin: top center;
    }

    .holo-card {
        min-width: 130px;
        padding: 8px 10px;
    }

    .holo-card__title {
        font-size: 12px;
    }

    .holo-card__value--blue {
        font-size: 2.1rem;
    }

    .holo-card__value--green {
        font-size: 1.5rem;
    }

    .decision-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .decision-panel__title {
        font-size: 1.25rem;
    }

    .decision-panel__sub {
        font-size: 0.8rem;
    }

    .decision-option {
        grid-template-columns: 56px 1fr 28px;
        padding: 12px;
        gap: 10px;
        border-radius: 14px;
    }

    .decision-option__icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .decision-option__icon svg {
        width: 22px;
        height: 22px;
    }

    .decision-option__label {
        font-size: 1.1rem;
    }

    .decision-option__desc {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .decision-option__state {
        width: 26px;
        height: 26px;
    }

    .decision-option__tick {
        width: 14px;
        height: 14px;
    }
}

/* ── CHIP GROUP ────────────────────────────────────────────────── */
.chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chip {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    background: var(--surface);
    color: var(--ink-3);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.chip.blue {
    background: #f0f4ff;
    color: var(--blue);
    border-color: rgba(26, 115, 232, 0.15);
}

.chip.green {
    background: #ebf6ec;
    color: var(--green);
    border-color: rgba(30, 142, 62, 0.15);
}

.chip.amber {
    background: #fff8e6;
    color: #b06000;
    border-color: rgba(249, 171, 0, 0.2);
}

/* ── VIDEO SHOWCASE ────────────────────────────────────────────── */
.video-showcase {
    padding: 80px 40px;
    max-width: 1280px;
    caret-color: transparent;
    margin: 0 auto;
}

.video-panel {
    background: #000;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.video-panel:hover {
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.7);
    transform: translateY(-4px);
}

.video-panel-content {
    padding: 64px;
    display: flex;
    caret-color: transparent;
    flex-direction: column;
    justify-content: center;
    background: #000;
}

.video-panel-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.video-panel-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.video-panel-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 32px;
}

.video-panel-btn-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--blue);
    font-size: 15px;
}

.video-panel-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-panel:hover .video-panel-btn-icon {
    transform: scale(1.1);
}

.video-preview {
    position: relative;
    background: #e8eaed;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-panel:hover .video-thumbnail {
    transform: scale(1.03);
}

.video-overlay-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(32, 33, 36, 0.1) 0%, rgba(32, 33, 36, 0.4) 100%);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
    z-index: 2;
}

.video-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--blue);
    margin-left: 6px;
    transition: border-color 0.3s ease;
}

.video-panel:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    background: #ffffff;
}

.video-duration {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(32, 33, 36, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-mono);
    backdrop-filter: blur(4px);
    z-index: 2;
}

@media(max-width:900px) {
    .video-panel {
        grid-template-columns: 1fr;
    }

    .video-preview {
        min-height: 300px;
        order: -1;
    }

    .video-panel-content {
        padding: 32px;
    }
}

/* ── VIDEO MODAL ────────────────────────────────────────────────── */
.video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(32, 33, 36, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 24px;
}

.video-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.video-modal {
    background: #000;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.video-modal-backdrop.open .video-modal {
    transform: scale(1);
    opacity: 1;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
    line-height: 1;
}

.video-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-modal-content {
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    font-family: var(--font-display);
}

/* ── SPA VIEWS ─────────────────────────────────────────────────── */
.view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.active {
    display: block;
    opacity: 1;
}

/* ── HOW IT WORKS ──────────────────────────────────────────────── */
.how-it-works-wrap {
    padding-top: 40px;
    padding-bottom: 0;
}

.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how-it-works-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-1);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), background var(--theme-transition), border-color var(--theme-transition);
}

.how-it-works-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.how-step-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-step-icon svg {
    width: 28px;
    height: 28px;
}

.how-step-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.how-step-desc {
    font-size: 14px;
    color: var(--ink-3);
    line-height: 1.6;
}

/* ── AI STATUS ─────────────────────────────────────────────────── */
.ai-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.ai-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.ai-status.processing {
    color: var(--amber);
}

.ai-status.processing .ai-status-dot {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
    animation: blink 0.8s infinite alternate;
}

/* ── RESPONSIVE MEDIA QUERIES ───────────────────────────────────── */
@media (max-width: 1024px) {
    .hero {
        gap: 40px;
        padding: 20px 30px 60px;
    }

    h1 {
        font-size: clamp(32px, 5vw, 42px);
    }

    .hero-stat-row {
        gap: 20px;
    }

    .footer-brand-name {
        font-size: clamp(80px, 15vw, 240px);
        letter-spacing: 20px;
        margin-left: 10px;
    }

    .footer-brand-subtext {
        letter-spacing: 10px;
        margin-left: 20px;
        font-size: 14px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    /* Handled by mobile drawer */
    .nav-inner {
        justify-content: space-between;
    }

    .nav-hamburger {
        display: flex !important;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

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

    .hero-stat-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-brand-name {
        font-size: clamp(50px, 12vw, 150px);
        letter-spacing: 10px;
        margin-top: 80px;
    }

    .footer-brand-subtext {
        letter-spacing: 6px;
        margin-left: 10px;
        margin-bottom: 80px;
        font-size: 12px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .team-section {
        padding: 80px 20px;
    }

    .video-panel {
        aspect-ratio: 16 / 9;
    }

    .section {
        padding: 60px 20px;
    }

    .col-2,
    .col-3 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-card {
        padding: 24px;
    }
}

/* Mobile Nav Drawer Styles */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--ink);
}

.dark-mode .nav-hamburger {
    color: #fff;
}

.nav-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 99;
    padding: 30px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-top: 1px solid var(--border);
    overflow-y: auto;
}

.dark-mode .nav-drawer {
    background: #0B0F19;
}

.nav-drawer.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer .nav-link {
    font-size: 18px;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: center;
    display: block;
}

.nav-drawer .nav-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* ── AUTH UI ────────────────────────────────────────────────────── */
#signin-modal.active,
#signin-overlay.active,
#low-credits-modal.active,
#low-credits-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#signin-modal.active,
#low-credits-modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.user-profile {
    position: relative;
    user-select: none;
}

#user-dropdown {
    transform-origin: top right;
    animation: googlePopupIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes googlePopupIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Glassmorphism for Modal */
#signin-modal {
    background: rgba(19, 25, 54, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Ensure navbar items align nicely with the new profile */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Custom Scrollbar for Dropdown if needed */
#user-dropdown::-webkit-scrollbar {
    width: 4px;
}

#user-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* ── SUCCESS VIEW STYLES ────────────────────────────────────────── */
#google-auth-success {
    animation: fadeInScale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-illustration {
    width: 120px;
    height: 100px;
}

.envelope-body {
    width: 80px;
    height: 50px;
    background: #4285F4;
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    left: 20px;
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.3);
    z-index: 2;
}

.envelope-flap {
    width: 80px;
    height: 40px;
    background: #3474d4;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    position: absolute;
    top: 50px;
    left: 20px;
    z-index: 4;
}

.envelope-card {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 6px;
    position: absolute;
    bottom: 25px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    animation: slideUpIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    z-index: 1;
}

@keyframes slideUpIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(-10px); opacity: 1; }
}

#signin-modal {
    max-width: 520px !important; /* Increased to match the rich design */
    width: 95% !important;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dark-mode #signin-modal {
    background: #111827 !important; /* Deep gray/blue */
}

.success-illustration .confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Custom Signature Font usage */
.font-signature {
    font-family: 'Dancing Script', cursive;
}