/* ==========================================================================
   NuBnByDesign Portal — Scrollytelling & Interactive Experience
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- Design Tokens --- */
:root {
    /* Backgrounds */
    --bg: #06070e;
    --bg-alt: #0a0b16;
    --bg-surface: rgba(14, 16, 30, 0.82);
    --bg-surface-elevated: rgba(22, 25, 48, 0.9);
    --bg-glass: rgba(18, 20, 38, 0.65);
    
    /* Gold Accent (Flagship / My Lottery Picker) */
    --gold: #d4af37;
    --gold-light: #f5cf53;
    --gold-dim: rgba(212, 175, 55, 0.15);
    --gold-glow: rgba(212, 175, 55, 0.45);
    
    /* Cyan Accent (Street World Lenses / Optics) */
    --cyan: #00e5ff;
    --cyan-dim: rgba(0, 229, 255, 0.15);
    --cyan-glow: rgba(0, 229, 255, 0.45);

    /* Purple / Violet Accent (Innovation & Systems) */
    --purple: #9d4edd;
    --purple-dim: rgba(157, 78, 221, 0.15);
    --purple-glow: rgba(157, 78, 221, 0.45);

    /* Red / Powerball Flare */
    --flare: #ff4757;
    --flare-glow: rgba(255, 71, 87, 0.5);

    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Borders & Glass */
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(212, 175, 55, 0.35);
    --border-cyan: rgba(0, 229, 255, 0.35);

    /* Transitions & Shadows */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-epic: 0 20px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(212, 175, 55, 0.15);
    --shadow-cyan: 0 20px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(0, 229, 255, 0.2);

    /* Radii */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;
    --r-pill: 9999px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

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

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

/* --- Ambient Canvas Background --- */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.ambient-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.ambient-orb--2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    top: 40%;
    left: -200px;
    animation-delay: -7s;
}

.ambient-orb--3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    bottom: -100px;
    right: 15%;
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* --- Top Navigation Header --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

.top-nav.scrolled {
    background: rgba(6, 7, 14, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem;
}

.top-nav__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-logo__mark {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #997818 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--gold-glow);
    color: #06070e;
}

.top-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 1.4vw, 1.75rem);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.top-nav__link {
    transition: color 0.2s;
}

.top-nav__link:hover {
    color: var(--text-primary);
}

.btn-contact-top {
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.25s;
}

.btn-contact-top:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* --- Non-Linear Navigation Dock (Floating HUD) --- */
.nl-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    background: rgba(14, 16, 32, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15);
    border-radius: var(--r-pill);
    padding: 6px 10px;
    gap: 6px;
    transition: all 0.3s var(--ease-out);
}

.nl-dock:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.25);
}

.nl-dock__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
    position: relative;
}

.nl-dock__item span.icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nl-dock__item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nl-dock__item.active {
    color: #06070e;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    box-shadow: 0 0 20px var(--gold-glow);
}

.nl-dock__item.active.cyan-active {
    background: linear-gradient(135deg, var(--cyan) 0%, #a5f3fc 100%);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.nl-dock__divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 2px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 94vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    z-index: 10;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gold-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    animation: pulseGlow 4s infinite alternate;
}

.hero-pill__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 10px var(--gold-light);
}

@keyframes pulseGlow {
    0% { border-color: rgba(212, 175, 55, 0.25); box-shadow: 0 0 15px rgba(212, 175, 55, 0.1); }
    100% { border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 0 25px rgba(212, 175, 55, 0.35); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 950px;
    margin-bottom: 1.5rem;
}

.hero-title .kinetic-gradient {
    background: linear-gradient(135deg, #ffffff 10%, var(--gold-light) 50%, var(--gold) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2.75rem;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2rem;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #06070e;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 30px var(--gold-glow);
    transition: all 0.25s var(--ease-out);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2rem;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.25s var(--ease-out);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- Hero Metrics Strip --- */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 800px;
    width: 100%;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 4px;
}

/* --- Kinetic Marquee Ticker --- */
.kinetic-marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(14, 16, 32, 0.6);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.kinetic-marquee {
    display: flex;
    width: fit-content;
    animation: marqueeScroll 28s linear infinite;
    gap: 3rem;
}

.kinetic-marquee-container:hover .kinetic-marquee {
    animation-play-state: paused;
}

.marquee-phrase {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.marquee-phrase span.symbol {
    color: var(--gold);
    font-size: 1.25rem;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   WORK INDEX / CATALOG LISTING (Clean Table matching Screenshot)
   ============================================================ */
.work-index-section {
    padding: 6rem 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.work-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
}

.work-listing-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.work-listing-table {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.work-listing-row {
    display: grid;
    grid-template-columns: 360px 1fr auto;
    align-items: center;
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-md);
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    position: relative;
}

.work-listing-row:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(6px);
}

.work-listing-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.work-listing-arrow {
    transition: transform 0.2s, color 0.2s;
    color: var(--text-muted);
}

.work-listing-row:hover .work-listing-name {
    color: var(--gold-light);
}

.work-listing-row:hover .work-listing-arrow {
    transform: translate(3px, -3px);
    color: var(--gold-light);
}

.work-listing-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    padding-right: 2rem;
}

.work-listing-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .work-listing-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.5rem 1rem;
    }
    .work-listing-desc {
        padding-right: 0;
    }
}


/* --- Main Scrollytelling Container --- */
.scrolly-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 1.5rem 8rem;
    position: relative;
    z-index: 10;
}

/* --- Chapter Title Block --- */
.chapter-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.chapter-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 1rem;
}

.chapter-tag--gold {
    background: var(--gold-dim);
    color: var(--gold-light);
    border: 1px solid var(--border-accent);
}

.chapter-tag--cyan {
    background: var(--cyan-dim);
    color: var(--cyan);
    border: 1px solid var(--border-cyan);
}

.chapter-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.chapter-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Scrolly Split Showcase Grid --- */
.scrolly-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 8rem;
}

.scrolly-grid--reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

/* --- Sticky Media Side --- */
.scrolly-media-sticky {
    position: sticky;
    top: 100px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-epic);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.scrolly-media-sticky.cyan-glow {
    box-shadow: var(--shadow-cyan);
    border-color: rgba(0, 229, 255, 0.25);
}

.scrolly-media-sticky:hover {
    transform: translateY(-6px);
}

.media-window-header {
    background: rgba(10, 11, 20, 0.9);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.window-dot:nth-child(1) { background: #ff5f56; }
.window-dot:nth-child(2) { background: #ffbd2e; }
.window-dot:nth-child(3) { background: #27c93f; }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.media-image-frame {
    position: relative;
    overflow: hidden;
    background: #000;
}

.media-image-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out), filter 0.5s ease;
}

.scrolly-media-sticky:hover .media-image-frame img {
    transform: scale(1.02);
}

/* --- Narrative Cards Side --- */
.scrolly-narrative {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.narrative-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.2rem;
    position: relative;
    transition: all 0.3s var(--ease-out);
}

.narrative-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    background: var(--bg-surface-elevated);
}

.narrative-card.highlight-gold {
    border-left: 4px solid var(--gold);
}

.narrative-card.highlight-cyan {
    border-left: 4px solid var(--cyan);
}

.card-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.highlight-cyan .card-num {
    color: var(--cyan);
}

.card-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.feature-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

/* --- Action Links Bar --- */
.action-links-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.4rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s var(--ease-out);
}

.badge-link--primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #06070e;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.badge-link--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.badge-link--cyan {
    background: linear-gradient(135deg, var(--cyan) 0%, #a5f3fc 100%);
    color: #06070e;
    box-shadow: 0 4px 20px var(--cyan-glow);
}

.badge-link--cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.6);
}

.badge-link--outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.badge-link--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* --- Interactive Simulator: My Lottery Picker --- */
.interactive-simulator-card {
    background: linear-gradient(145deg, rgba(20, 23, 44, 0.95) 0%, rgba(12, 14, 28, 0.98) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
    margin: 4rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.interactive-simulator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.sim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold-light);
    background: var(--gold-dim);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-accent);
}

.sim-game-select {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

/* Ball Rack Stage */
.lottery-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.lotto-ball {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #ecd38c 30%, #b8860b 70%, #573e04 100%);
    color: #1a1202;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.8), 0 0 25px var(--gold-glow);
    position: relative;
    transition: transform 0.4s var(--ease-out);
}

.lotto-ball.special-ball {
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #ff7675 30%, #d63031 70%, #5e0c0d 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.8), 0 0 30px var(--flare-glow);
}

.lotto-ball.rolling {
    animation: rollBounce 0.6s ease-in-out;
}

@keyframes rollBounce {
    0% { transform: translateY(-30px) rotate(-180deg) scale(0.8); opacity: 0; }
    60% { transform: translateY(8px) rotate(20deg) scale(1.08); }
    100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
}

.sim-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-generate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #cca125 100%);
    color: #06070e;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 30px var(--gold-glow);
    transition: all 0.25s var(--ease-out);
}

.btn-generate:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
}

.btn-generate:active {
    transform: translateY(1px) scale(0.98);
}

.sim-stats-ticker {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sim-stats-ticker span strong {
    color: var(--text-primary);
}

/* --- Interactive Simulator: Street World Lenses HUD --- */
.lens-interactive-stage {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
}

.lens-hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 5;
}

.hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.hud-center-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 100px;
    border: 2px dashed rgba(0, 229, 255, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.hud-crosshair {
    width: 20px;
    height: 20px;
    position: relative;
}

.hud-crosshair::before, .hud-crosshair::after {
    content: '';
    position: absolute;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.hud-crosshair::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.hud-crosshair::after {
    left: 9px;
    top: 0;
    width: 2px;
    height: 20px;
}

.hud-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* Filter selector buttons */
.filter-selector-bar {
    display: flex;
    gap: 8px;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    border-color: var(--cyan);
}

.filter-btn.active {
    background: var(--cyan);
    color: #06070e;
    font-weight: 700;
    box-shadow: 0 0 15px var(--cyan-glow);
    border-color: var(--cyan);
}

/* Image filter preview classes */
.filter-neon {
    filter: saturate(1.4) contrast(1.15) hue-rotate(-10deg);
}

.filter-cinema {
    filter: contrast(1.25) brightness(0.9) sepia(0.2);
}

.filter-cyber {
    filter: hue-rotate(60deg) saturate(1.6) contrast(1.2);
}

.filter-wet {
    filter: brightness(0.85) contrast(1.3) saturate(1.1);
}

/* --- Secondary Apps Grid (SpendTrack & Innovation Lab) --- */
.secondary-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 8rem;
}

.app-box-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-box-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-epic);
}

.app-box-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.app-box-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.app-box-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.app-box-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* --- Philosophy / Values Section --- */
.philosophy-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
    position: relative;
}

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

.value-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.5rem 2rem;
    transition: all 0.3s;
}

.value-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    background: var(--bg-surface-elevated);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.value-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.value-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Contact & CTA Hub --- */
.contact-hub {
    background: linear-gradient(135deg, rgba(14, 16, 32, 0.95) 0%, rgba(20, 24, 48, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-xl);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 6rem;
    box-shadow: var(--shadow-epic);
}

.contact-hub::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.contact-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-copy-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 1.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s;
}

.btn-copy-email:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Toast alert notification */
.toast-notice {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-accent);
    color: var(--gold-light);
    padding: 10px 20px;
    border-radius: var(--r-pill);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--gold-glow);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
}

.toast-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copy {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--gold-light);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .scrolly-grid, .scrolly-grid--reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .scrolly-media-sticky {
        position: relative;
        top: 0;
    }
    .secondary-apps-grid {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-nav__links {
        display: none;
    }
    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .nl-dock {
        width: calc(100% - 32px);
        bottom: 16px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 6px 12px;
    }
    .interactive-simulator-card {
        padding: 1.5rem;
    }
    .lotto-ball {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}
