/* ============================================
   BRICKET.AI — Premium Design System v2
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* ── Palette — Bricket.ai Brand ── */
    --bg-0: #08090E;
    --bg-1: #0C0D14;
    --bg-2: #12131C;
    --bg-3: #1A1B28;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);

    --accent: #E8634A;
    /* Brick Terra — primary */
    --accent-2: #E88A5A;
    /* Warm Apricot — secondary */
    --accent-3: #F0A535;
    /* Rich Gold — tertiary */
    --accent-warm: #F7C948;
    /* Bright Gold — highlight */
    --green: #22C55E;
    --amber: #F7B538;

    --text-0: #f8fafc;
    --text-1: rgba(248, 250, 252, 0.72);
    --text-2: rgba(248, 250, 252, 0.40);
    --text-3: rgba(248, 250, 252, 0.20);

    /* ── Typography ── */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* ── Motion ── */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 0.5s;
    --dur-fast: 0.25s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-2) var(--bg-0);
}

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text-0);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-2);
    border-radius: 3px;
}

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

ul {
    list-style: none;
}

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

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

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-warm));
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
}

/* ── Global Noise Overlay ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10000;
    opacity: 0.5;
}

/* ── Ambient Mesh Gradient Orbs ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 99, 74, 0.10) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 138, 90, 0.08) 0%, transparent 70%);
    top: 40%;
    right: -10%;
    animation-delay: -7s;
}

.orb--3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(240, 165, 53, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 30px) scale(1.02);
    }
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* ── Labels + Headings ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 6px 16px 6px 12px;
    border: 1px solid rgba(232, 99, 74, 0.15);
    border-radius: 100px;
    background: rgba(232, 99, 74, 0.04);
}

.section-tag .tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-1);
    max-width: 560px;
    line-height: 1.8;
    font-weight: 400;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 40%, var(--accent-3) 70%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Reveal System ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-scale.vis {
    opacity: 1;
    transform: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.navbar.is-scrolled {
    padding: 12px 0;
    background: rgba(8, 9, 14, 0.7);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2));
}

.logo-mark svg {
    position: relative;
    z-index: 1;
}

.logo-dim {
    color: var(--text-2);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 8px 16px;
    border-radius: 8px;
    transition: color var(--dur-fast), background var(--dur-fast);
}

.nav-link:hover {
    color: var(--text-0);
    background: var(--surface);
}

.nav-btn {
    margin-left: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bg-0);
    background: var(--text-0);
    transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast);
}

.nav-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 24px rgba(248, 250, 252, 0.15);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-0);
    border-radius: 2px;
    transition: var(--dur);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 8px;
    border-radius: 100px;
    background: rgba(232, 138, 90, 0.08);
    border: 1px solid rgba(232, 138, 90, 0.15);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-2);
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-eyebrow .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
}

.hero h1 .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeUp 0.8s var(--ease) forwards;
}

.hero h1 .line:nth-child(1) {
    animation-delay: 0.3s;
}

.hero h1 .line:nth-child(2) {
    animation-delay: 0.45s;
}

.hero h1 .line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-1);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 40px;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease) 0.85s forwards;
}

/* ── Magnetic Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform var(--dur-fast) var(--ease-spring), box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-0);
}

.btn--primary::before {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
}

.btn--primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(232, 99, 74, 0.2), 0 0 0 1px rgba(232, 99, 74, 0.3);
}

.btn--primary .btn-label {
    position: relative;
    z-index: 1;
}

.btn--primary svg {
    position: relative;
    z-index: 1;
}

.btn--ghost {
    background: transparent;
    color: var(--text-0);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    border-color: var(--glass-border-hover);
    background: var(--surface);
    transform: translateY(-2px);
}

/* ── Hero Stats ── */
.hero-metrics {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease) 1s forwards;
}

.metric {
    text-align: left;
}

.metric-val {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.metric-val .accent {
    color: var(--accent);
}

.metric-label {
    font-size: 0.72rem;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 2px;
}

/* ── Hero Visual: Building Metaphor ── */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 0.86;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Building outline SVG */
/* ── Brick Builder ── */
.brick-builder {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    gap: 16px;
    padding: 16px;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 0.6s forwards;
}

/* Shelf */
.brick-shelf {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shelf-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 0;
}

.shelf-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
}

.shelf-brick {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(9, 9, 15, 0.85);
    border: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-0);
    white-space: nowrap;
    cursor: grab;
    transition: all 0.4s var(--ease);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shelf-brick svg {
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.7;
}

.shelf-brick:hover {
    border-color: rgba(232, 99, 74, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(232, 99, 74, 0.1);
}

.shelf-brick.placed {
    opacity: 0.25;
    transform: scale(0.92);
    pointer-events: none;
    border-color: transparent;
}

/* Company Canvas */
.company-canvas {
    flex: 1;
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(9, 9, 15, 0.5);
    backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.canvas-header {
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
    animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.canvas-connections {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.canvas-connections line {
    stroke: rgba(232, 99, 74, 0.15);
    stroke-width: 1;
    stroke-dasharray: 4 3;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.canvas-connections line.active {
    opacity: 1;
}

.canvas-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.canvas-slot {
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    transition: all 0.4s var(--ease);
    position: relative;
}

.canvas-slot.filled {
    border-color: transparent;
    background: rgba(232, 99, 74, 0.04);
}

.canvas-slot.filled::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    border: 1px solid rgba(232, 99, 74, 0.12);
    opacity: 0;
    animation: slotGlow 0.6s ease forwards;
}

@keyframes slotGlow {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Brick that's been placed in canvas */
.placed-brick {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(9, 9, 15, 0.9);
    border: 1px solid rgba(232, 99, 74, 0.2);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-0);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(232, 99, 74, 0.1), 0 0 0 1px rgba(232, 99, 74, 0.05);
    animation: brickLand 0.5s var(--ease-spring) both;
}

.placed-brick .brick-ico {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(232, 99, 74, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@keyframes brickLand {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }

    60% {
        transform: translateY(3px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.canvas-status {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 2;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-3);
    letter-spacing: 0.06em;
}


/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

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

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 48px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}

.marquee-item .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-2);
    opacity: 0.5;
}

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

/* ============================================
   METAPHOR — HOW IT WORKS
   ============================================ */
.how-section {
    padding: 140px 0;
    position: relative;
}

.how-section .container {
    text-align: center;
}

.how-section .section-description {
    margin: 0 auto 72px;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    position: relative;
    padding: 40px 28px 36px;
    border-radius: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    text-align: left;
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.step-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.step-card:hover::before {
    transform: scaleX(1);
}

/* Shine sweep on hover */
.step-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.03) 55%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ease);
}

.step-card:hover::after {
    transform: translateX(100%);
}

.step-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-3);
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step-card p {
    color: var(--text-1);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   TECH — BENTO GRID
   ============================================ */
.tech-section {
    padding: 140px 0;
    position: relative;
}

.tech-header {
    text-align: center;
    margin-bottom: 64px;
}

.tech-header .section-description {
    margin: 0 auto;
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.bento-card {
    position: relative;
    border-radius: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 36px 30px;
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.bento-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Bento layout */
.bento-card:nth-child(1) {
    grid-column: span 2;
}

.bento-card:nth-child(2) {
    grid-column: span 2;
}

.bento-card:nth-child(3) {
    grid-column: span 2;
}

.bento-card:nth-child(4) {
    grid-column: span 2;
}

/* Inner glow per card */
.bento-card .card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
    top: -40px;
    right: -40px;
}

.bento-card:nth-child(1) .card-glow {
    background: var(--accent);
}

.bento-card:nth-child(2) .card-glow {
    background: var(--accent-2);
}

.bento-card:nth-child(3) .card-glow {
    background: var(--green);
}

.bento-card:nth-child(4) .card-glow {
    background: var(--amber);
}

.bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.bento-card:nth-child(1) .bento-icon {
    background: rgba(232, 99, 74, 0.08);
    color: var(--accent);
    border: 1px solid rgba(232, 99, 74, 0.12);
}

.bento-card:nth-child(2) .bento-icon {
    background: rgba(232, 138, 90, 0.08);
    color: var(--accent-2);
    border: 1px solid rgba(232, 138, 90, 0.12);
}

.bento-card:nth-child(3) .bento-icon {
    background: rgba(34, 197, 94, 0.08);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.12);
}

.bento-card:nth-child(4) .bento-icon {
    background: rgba(247, 181, 56, 0.08);
    color: var(--amber);
    border: 1px solid rgba(247, 181, 56, 0.12);
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.bento-card .tech-chip {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: inline-block;
}

.bento-card:nth-child(1) .tech-chip {
    color: var(--accent);
}

.bento-card:nth-child(2) .tech-chip {
    color: var(--accent-2);
}

.bento-card:nth-child(3) .tech-chip {
    color: var(--green);
}

.bento-card:nth-child(4) .tech-chip {
    color: var(--amber);
}

.bento-card p {
    font-size: 0.9rem;
    color: var(--text-1);
    line-height: 1.7;
}

/* ============================================
   USE CASES
   ============================================ */
.cases-section {
    padding: 140px 0;
    position: relative;
}

.cases-header {
    text-align: center;
    margin-bottom: 72px;
}

.cases-header .section-description {
    margin: 0 auto;
}

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

.cases-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Cisco featured card */
.case-card--featured {
    border-color: rgba(232, 99, 74, 0.15);
}

.case-card--featured .top-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.case-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(232, 99, 74, 0.1);
    border: 1px solid rgba(232, 99, 74, 0.2);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-card {
    position: relative;
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.case-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

/* Top gradient bar */
.case-card .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.case-card:nth-child(1) .top-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.case-card:nth-child(2) .top-bar {
    background: linear-gradient(90deg, var(--green), var(--accent));
}

/* Inner glow */
.case-card .case-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0;
    pointer-events: none;
    top: -60px;
    right: -60px;
    transition: opacity 0.5s;
}

.case-card:nth-child(1) .case-glow {
    background: var(--accent);
}

.case-card:nth-child(2) .case-glow {
    background: var(--green);
}

.case-card:hover .case-glow {
    opacity: 0.06;
}

.case-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.case-card:nth-child(1) .case-icon {
    background: rgba(232, 99, 74, 0.08);
    color: var(--accent);
    border: 1px solid rgba(232, 99, 74, 0.12);
}

.case-card:nth-child(2) .case-icon {
    background: rgba(34, 197, 94, 0.08);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.12);
}

.case-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.case-card p {
    color: var(--text-1);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    transition: gap 0.3s var(--ease);
}

.case-card:nth-child(1) .link-arrow {
    color: var(--accent);
}

.case-card:nth-child(2) .link-arrow {
    color: var(--green);
}

.link-arrow:hover {
    gap: 14px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta-section {
    padding: 120px 0 80px;
    position: relative;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 88px 48px;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(232, 99, 74, 0.05) 0%, rgba(232, 138, 90, 0.06) 50%, rgba(240, 165, 53, 0.04) 100%);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

/* Animated border gradient */
.cta-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 29px;
    padding: 1px;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-warm), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: conicSpin 6s linear infinite;
    opacity: 0.25;
}

@keyframes conicSpin {
    to {
        --angle: 360deg;
        transform: rotate(360deg);
    }
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
}

.cta-card>p {
    font-size: 1.05rem;
    color: var(--text-1);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.7;
    position: relative;
}

.cta-card .btn {
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.footer-brand .logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

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

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-2);
    transition: color var(--dur-fast);
}

.footer-links a:hover {
    color: var(--text-0);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-3);
    font-family: var(--font-mono);
}

/* ============================================
   STARTUP SIMULATOR
   ============================================ */
.sim-section {
    padding: 140px 0;
    position: relative;
}

.sim-header {
    text-align: center;
    margin-bottom: 64px;
}

.sim-header .section-description {
    margin: 0 auto;
}

.sim {
    border-radius: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

/* Workspace board — two panel layout */
.sim-board {
    position: relative;
    width: 100%;
    display: flex;
    min-height: 480px;
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 99, 74, 0.04) 0%, transparent 60%),
        var(--bg-1);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(232, 99, 74, 0.04) 0%, transparent 60%);
    background-size: 24px 24px, 100% 100%;
    overflow: hidden;
}

/* ── Left Panel: Shelf + Console ── */
.sim-left {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 9, 14, 0.5);
}

.sim-shelf {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sim-shelf-title {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0 4px;
}

.sim-shelf-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-shelf-brick {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: default;
    transition: all 0.4s var(--ease);
}

.sim-shelf-brick.placed {
    opacity: 0.3;
    transform: scale(0.95);
    border-color: transparent;
    background: rgba(255, 255, 255, 0.01);
}

.sim-shelf-brick.placing {
    border-color: var(--accent);
    background: rgba(232, 99, 74, 0.08);
    box-shadow: 0 0 12px rgba(232, 99, 74, 0.15);
}

.ssb-ico {
    font-size: 0.9rem;
    line-height: 1;
}

.ssb-name {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-1);
    letter-spacing: 0.02em;
    flex: 1;
}

.ssb-lock {
    font-size: 0.6rem;
    margin-left: auto;
    opacity: 0.5;
}

.sim-shelf-brick.locked {
    opacity: 0.35;
    pointer-events: none;
}

.sim-shelf-brick.locked .ssb-name {
    color: var(--text-2);
}

.sim-shelf-brick.unlocked {
    opacity: 1;
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.04);
    animation: unlockFlash 0.6s var(--ease);
}

@keyframes unlockFlash {
    0% {
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }

    50% {
        box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
    }

    100% {
        box-shadow: none;
    }
}

/* ── Persistent Idea Card ── */
.sim-idea-card {
    border-radius: 10px;
    background: rgba(247, 181, 56, 0.06);
    border: 1px solid rgba(247, 181, 56, 0.2);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.sim-idea-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.sim-idea-ico {
    font-size: 1rem;
}

.sim-idea-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.02em;
}

.sim-idea-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-0);
    line-height: 1.5;
    min-height: 1.1em;
}

.sim-idea-text.typing::after {
    content: '▌';
    animation: cursorBlink 0.6s step-end infinite;
    color: var(--amber);
}

/* ── Network Switch ── */
.sim-switch {
    margin-top: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.6s var(--ease);
    position: relative;
}

.sim-switch.visible {
    opacity: 1;
    transform: none;
}

.sim-switch-lines {
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    height: 20px;
    position: relative;
}

.sim-switch-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(232, 99, 74, 0.05), rgba(232, 99, 74, 0.3));
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.sim-switch-line.visible {
    opacity: 1;
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.sim-switch-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(8, 9, 14, 0.9);
    border: 1px solid rgba(232, 99, 74, 0.2);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-wrap: wrap;
}

.sim-switch-box svg {
    color: var(--accent);
    flex-shrink: 0;
}

.sim-switch-label {
    white-space: nowrap;
}

.sim-switch-policies {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}

.sim-policy-badge {
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s var(--ease);
}

.sim-policy-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.sim-policy-badge.encrypt {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.sim-policy-badge.monitor {
    background: rgba(232, 99, 74, 0.1);
    color: var(--accent);
    border: 1px solid rgba(232, 99, 74, 0.2);
}

.sim-policy-badge.acl {
    background: rgba(135, 94, 230, 0.1);
    color: var(--accent-3);
    border: 1px solid rgba(135, 94, 230, 0.2);
}

/* ── AI Console ── */
.sim-console {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    height: 180px;
    min-height: 180px;
    flex-shrink: 0;
}

.sim-console-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sim-console-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.sim-console-dot.red {
    background: #ff5f57;
}

.sim-console-dot.yellow {
    background: #febc2e;
}

.sim-console-dot.green {
    background: #28c840;
}

.sim-console-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 4px;
}

.sim-console-body {
    padding: 10px 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    line-height: 1.6;
    color: var(--text-2);
}

.console-line {
    opacity: 0;
    animation: consoleIn 0.3s var(--ease) forwards;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.console-line .cl-prefix {
    color: var(--accent);
    margin-right: 6px;
    font-weight: 700;
}

.console-line .cl-ok {
    color: var(--green);
}

.console-line .cl-warn {
    color: var(--amber);
}

.console-line.typing::after {
    content: '▌';
    animation: cursorBlink 0.6s step-end infinite;
    color: var(--accent);
}

@keyframes consoleIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Right Panel: Workspace ── */
.sim-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sim-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.sim-ws-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 0 4px;
}

.sim-ws-icon {
    font-size: 0.85rem;
}

.sim-ws-status {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.sim-ws-status.building {
    background: rgba(232, 99, 74, 0.1);
    color: var(--accent);
}

/* ── Canvas Grid ── */
.sim-canvas {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-height: 260px;
}

/* Canvas Card — placed brick */
.sim-card {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 80px;
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    transition: all 0.5s var(--ease);
}

.sim-card.visible {
    opacity: 1;
    transform: none;
}

.sim-card.active {
    border-color: rgba(232, 99, 74, 0.25);
    box-shadow: 0 0 20px rgba(232, 99, 74, 0.06);
}

.sim-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-card-ico {
    font-size: 0.85rem;
    line-height: 1;
}

.sim-card-name {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-0);
    letter-spacing: 0.02em;
}

.sim-card-badge {
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0;
    transition: opacity 0.4s;
}

.sim-card.active .sim-card-badge {
    opacity: 1;
    animation: livePulse 2s ease-in-out infinite;
}

/* Mini-screen inside card */
.sim-card-screen {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    line-height: 1.5;
    color: var(--text-2);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 6px 8px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

.sim-card.has-screen .sim-card-screen {
    opacity: 1;
    max-height: 60px;
}

.sim-card-screen .screen-val {
    color: var(--green);
    font-weight: 600;
}

/* ── Live Activity Feed ── */
.sim-activity {
    margin-top: 10px;
    border-radius: 10px;
    background: rgba(8, 9, 14, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.6s var(--ease);
}

.sim-activity.visible {
    max-height: 140px;
    opacity: 1;
}

.sim-activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sim-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    animation: livePulse 2s ease-in-out infinite;
}

.sim-activity-feed {
    padding: 6px 12px;
    max-height: 90px;
    overflow-y: auto;
}

.sim-feed-line {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-2);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: consoleIn 0.3s var(--ease) forwards;
}

.sim-feed-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sim-feed-agent {
    font-weight: 600;
    color: var(--text-0);
}

.sim-feed-ok {
    color: var(--green);
    font-weight: 500;
}

/* ── Connection SVG ── */
.sim-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* ── Network Connections Phase ── */
.sim-network-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.8s var(--ease);
}

.sim-network-overlay.visible {
    opacity: 1;
}

.sim-network-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sim-net-line {
    stroke-dasharray: 6 3;
    stroke-dashoffset: 18;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}

.sim-net-line.visible {
    opacity: 1;
    animation: netDash 1.5s linear infinite;
}

@keyframes netDash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Pulse node at card center */
.sim-net-node {
    opacity: 0;
    transition: opacity 0.4s;
}

.sim-net-node.visible {
    opacity: 1;
    animation: netNodePulse 2s ease-in-out infinite;
}

@keyframes netNodePulse {

    0%,
    100% {
        r: 3;
        opacity: 0.8;
    }

    50% {
        r: 5;
        opacity: 1;
    }
}

/* Cisco shield overlay */
.sim-cisco-shield {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(8, 9, 14, 0.92);
    border: 1px solid rgba(232, 99, 74, 0.25);
    backdrop-filter: blur(12px);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(232, 99, 74, 0.1);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.6s var(--ease);
    z-index: 10;
}

.sim-cisco-shield.visible {
    opacity: 1;
    transform: none;
}

.sim-cisco-shield svg {
    color: var(--accent);
    flex-shrink: 0;
}

.sim-cisco-shield .shield-lock {
    color: var(--green);
    font-size: 0.85rem;
    margin-right: 2px;
}

/* Network perimeter border */
.sim-net-perimeter {
    position: absolute;
    inset: 4px;
    border: 2px dashed rgba(232, 99, 74, 0.15);
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s var(--ease);
}

.sim-net-perimeter.visible {
    opacity: 1;
    animation: netPerimeter 4s ease-in-out infinite;
}

@keyframes netPerimeter {

    0%,
    100% {
        border-color: rgba(232, 99, 74, 0.15);
        box-shadow: inset 0 0 40px rgba(232, 99, 74, 0.02);
    }

    50% {
        border-color: rgba(232, 138, 90, 0.25);
        box-shadow: inset 0 0 60px rgba(232, 138, 90, 0.04);
    }
}



/* ── Controls Bar ── */
.sim-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-top: 1px solid var(--glass-border);
    background: rgba(9, 9, 15, 0.6);
}

.sim-info {
    flex: 1;
}

.sim-step-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sim-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.sim-desc {
    font-size: 0.82rem;
    color: var(--text-1);
    line-height: 1.5;
    max-width: 420px;
}

.sim-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sim-prev,
.sim-next {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}

.sim-prev:hover:not(:disabled),
.sim-next:hover:not(:disabled) {
    background: var(--surface-hover);
    border-color: var(--glass-border-hover);
    transform: scale(1.08);
}

.sim-prev:disabled,
.sim-next:disabled {
    opacity: 0.3;
    cursor: default;
}

.sim-dots {
    display: flex;
    gap: 6px;
}

.sim-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-3);
    transition: background 0.3s, transform 0.3s var(--ease-spring);
}

.sim-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(232, 99, 74, 0.4);
}

/* ── Building Blueprint ── */
.blueprint {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(3, 6, 18, 0.96);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    pointer-events: none;
}

.blueprint.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.blueprint-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(232, 99, 74, 0.1);
    background: rgba(232, 99, 74, 0.03);
}

.blueprint-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: livePulse 2s ease-in-out infinite;
    margin-left: auto;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.blueprint-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    background: rgba(232, 99, 74, 0.06);
    padding: 1px;
}

.office {
    background: rgba(5, 8, 20, 0.95);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    animation: officeReveal 0.4s var(--ease) both;
}

.blueprint.visible .office:nth-child(1) {
    animation-delay: 0.1s;
}

.blueprint.visible .office:nth-child(2) {
    animation-delay: 0.18s;
}

.blueprint.visible .office:nth-child(3) {
    animation-delay: 0.26s;
}

.blueprint.visible .office:nth-child(4) {
    animation-delay: 0.34s;
}

.blueprint.visible .office:nth-child(5) {
    animation-delay: 0.42s;
}

.blueprint.visible .office:nth-child(6) {
    animation-delay: 0.5s;
}

.blueprint.visible .office:nth-child(7) {
    animation-delay: 0.58s;
}

.blueprint.visible .office:nth-child(8) {
    animation-delay: 0.66s;
}

.blueprint.visible .office:nth-child(9) {
    animation-delay: 0.74s;
}

@keyframes officeReveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.office-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-0);
    letter-spacing: 0.04em;
}

.office-ico {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.office-screen {
    flex: 1;
    border-radius: 6px;
    background: rgba(232, 99, 74, 0.03);
    border: 1px solid rgba(232, 99, 74, 0.08);
    padding: 8px 10px;
    overflow: hidden;
}

.office-screen code {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-2);
    line-height: 1.6;
    letter-spacing: 0.02em;
    display: block;
}

/* ── Explainer Video Frame ── */
.explainer-frame {
    max-width: 720px;
    margin: 40px auto 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 16 / 9;
    background: #08090E;
}

.explainer-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

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

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

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

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .steps-row {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .bento-card {
        grid-column: span 1 !important;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
    }

    /* ── Simulator responsive 1024px ── */
    .sim-board {
        flex-direction: column;
        min-height: auto;
    }

    .sim-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        flex-direction: row;
        max-height: none;
    }

    .sim-shelf {
        flex: 1;
        min-width: 0;
    }

    .sim-shelf-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .sim-shelf-brick {
        flex: 0 0 auto;
        padding: 5px 8px;
    }

    .sim-console {
        width: 280px;
        flex-shrink: 0;
        height: auto;
        min-height: 120px;
        max-height: 140px;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sim-right {
        flex: 1;
    }

    /* ── Hero builder responsive 1024px ── */
    .hero-visual {
        max-width: 100%;
        overflow: hidden;
    }

    .brick-builder {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .brick-shelf {
        width: 100%;
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .shelf-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .shelf-brick {
        padding: 4px 8px;
        font-size: 0.55rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 9, 14, 0.95);
        backdrop-filter: blur(24px);
        padding: 24px 32px;
        gap: 12px;
        border-bottom: 1px solid var(--glass-border);
    }

    .hero {
        padding: 110px 0 60px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .metric {
        text-align: center;
    }

    .how-section,
    .tech-section,
    .cases-section {
        padding: 80px 0;
    }

    .cta-card {
        padding: 56px 24px;
    }

    .case-card {
        padding: 32px 24px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    /* ── Simulator responsive 768px ── */
    .sim-board {
        flex-direction: column;
        min-height: auto;
    }

    .sim-left {
        width: 100%;
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sim-shelf-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .sim-shelf-brick {
        flex: 0 0 auto;
        padding: 5px 8px;
        font-size: 0.65rem;
    }

    .sim-console {
        width: 100%;
        height: 100px;
        min-height: 100px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sim-canvas {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .sim-card {
        min-height: 65px;
        padding: 8px;
    }

    .sim-card-ico {
        font-size: 0.8rem;
    }

    .sim-card-name {
        font-size: 0.58rem;
    }

    .sim-card-screen {
        font-size: 0.52rem;
    }

    .sim-idea-card {
        padding: 10px 12px;
    }

    .sim-idea-text {
        font-size: 0.6rem;
    }

    .sim-ws-title {
        font-size: 0.58rem;
        padding: 8px 10px;
    }

    .sim-switch-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 12px;
        font-size: 0.55rem;
    }

    .sim-switch-policies {
        margin-left: 0;
    }

    .sim-bar {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
    }

    .sim-title {
        font-size: 0.85rem;
    }

    .sim-desc {
        font-size: 0.6rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .sim-section .section-description {
        font-size: 0.85rem;
    }

    /* ── Explainer frame 768px ── */
    .explainer-frame {
        aspect-ratio: 3 / 4;
        max-width: 100%;
        margin: 24px auto 0;
        border-radius: 12px;
    }

    /* ── Hero builder responsive 768px ── */
    .hero-visual {
        max-width: 100%;
        aspect-ratio: auto;
        max-height: 350px;
    }

    .brick-builder {
        flex-direction: column;
        gap: 6px;
        padding: 8px;
    }

    .brick-shelf {
        width: 100%;
        max-height: 60px;
        overflow: hidden;
    }

    .shelf-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
    }

    .shelf-brick {
        padding: 3px 6px;
        font-size: 0.5rem;
    }

    .shelf-brick svg {
        width: 10px;
        height: 10px;
    }

    .ws-card {
        padding: 4px;
        border-radius: 6px;
    }

    .ws-card-name {
        font-size: 0.45rem;
    }

    .ws-card-screen {
        font-size: 0.4rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .section-heading {
        font-size: 1.6rem;
    }

    /* ── Simulator responsive 480px ── */
    .sim-left {
        display: none;
    }

    .sim-canvas {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .sim-card {
        min-height: 55px;
        padding: 6px;
        gap: 3px;
    }

    .sim-card-header {
        gap: 3px;
    }

    .sim-card-ico {
        font-size: 0.7rem;
    }

    .sim-card-name {
        font-size: 0.52rem;
    }

    .sim-card-screen {
        font-size: 0.46rem;
    }

    .sim-card-badge {
        width: 5px;
        height: 5px;
    }

    .sim-idea-card {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .sim-idea-ico {
        font-size: 0.8rem;
    }

    .sim-idea-label {
        font-size: 0.6rem;
    }

    .sim-idea-text {
        font-size: 0.55rem;
    }

    .sim-ws-title {
        font-size: 0.52rem;
        padding: 6px 8px;
    }

    .sim-workspace {
        padding: 6px;
    }

    .sim-switch {
        margin-top: 8px;
    }

    .sim-switch-lines {
        height: 12px;
    }

    .sim-switch-box {
        padding: 6px 10px;
        font-size: 0.5rem;
        gap: 4px;
    }

    .sim-policy-badge {
        font-size: 0.42rem;
        padding: 1px 5px;
    }

    .sim-activity-header {
        font-size: 0.5rem;
    }

    .sim-feed-line {
        font-size: 0.48rem;
    }

    .sim-bar {
        padding: 8px 10px;
    }

    .sim-title {
        font-size: 0.75rem;
    }

    .sim-desc {
        font-size: 0.55rem;
    }

    .sim-step-num {
        font-size: 0.5rem;
    }

    .sim-dot {
        width: 6px;
        height: 6px;
    }

    .cta-card {
        padding: 40px 16px;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    /* ── Explainer frame 480px ── */
    .explainer-frame {
        aspect-ratio: 9 / 14;
        border-radius: 10px;
        margin: 16px auto 0;
    }

    /* ── Hero builder responsive 480px ── */
    .hero-visual {
        max-height: 280px;
    }

    .brick-shelf {
        display: none;
    }

    .ws-header {
        font-size: 0.45rem;
        padding: 4px 6px;
    }

    .ws-card {
        min-height: 32px;
        padding: 3px;
    }

    .ws-card-name {
        font-size: 0.4rem;
    }

    .ws-card-screen {
        font-size: 0.35rem;
    }
}