/* ═══════════════════════════════════════════════════════════════
   IDP — Intelligent Digital Products · Design System
   Premium AI Product Studio · v2.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --bg:             #030303;
    --bg-card:        rgba(13, 13, 14, 0.7);
    --bg-card-hover:  rgba(28, 28, 30, 0.85);

    --accent:         #007aff;
    --accent-cyan:    #00f2fe;
    --accent-green:   #30d158;
    --accent-gradient:linear-gradient(135deg, var(--accent), var(--accent-cyan));
    --green-gradient: linear-gradient(135deg, #30d158, #00f5a0);

    --text-1:         #f5f5f7;
    --text-2:         #a1a1a6;
    --text-3:         #636366;

    --border:         rgba(255, 255, 255, 0.08);
    --border-glow:    rgba(0, 122, 255, 0.25);

    --ff-title:       'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-body:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease:           cubic-bezier(0.16, 1, 0.3, 1);
    --transition:     all 0.5s var(--ease);
    --shadow:         0 30px 60px -15px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.05);
    --blur:           blur(25px);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text-1);
    font-family: var(--ff-body);
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background: linear-gradient(180deg, #030303 0%, #0d0d0e 100%);
    position: relative;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c1c1e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Typography Base ────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--ff-title);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-1);
}

p { font-family: var(--ff-body); color: var(--text-2); }

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-inline {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text { color: var(--accent); font-weight: 700; }

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

/* ═══════════════════════════════════════════════════════════════
   1. INTRO OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s var(--ease), opacity 0.6s ease;
}

.intro-overlay.done {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.intro-logo {
    font-family: var(--ff-title);
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -3px;
    color: var(--text-1);
    opacity: 0;
    transform: scale(0.85);
    animation: introLogoIn 1s var(--ease) 0.3s forwards;
}

.intro-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-tagline {
    font-family: var(--ff-title);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-2);
    opacity: 0;
    animation: introFadeUp 0.8s var(--ease) 0.9s forwards;
}

.intro-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: introFadeUp 0.5s var(--ease) 1.1s forwards;
}

.intro-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: introBarFill 1.8s var(--ease) 0.6s forwards;
    box-shadow: 0 0 12px var(--accent);
}

@keyframes introLogoIn {
    to { opacity: 1; transform: scale(1); }
}
@keyframes introFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes introBarFill {
    to { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   2. NOISE GRAIN OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═══════════════════════════════════════════════════════════════
   3. GRADIENT MESH BACKGROUND
   ═══════════════════════════════════════════════════════════════ */
.gradient-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.25;
    mix-blend-mode: screen;
    will-change: transform;
}

.mesh-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.85) 0%, rgba(0, 122, 255, 0.4) 25%, rgba(0, 122, 255, 0.15) 50%, rgba(0, 122, 255, 0.03) 72%, transparent 88%);
    top: 10%; left: -5%;
    animation: meshFloat1 22s infinite alternate ease-in-out;
}
.mesh-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.85) 0%, rgba(0, 242, 254, 0.4) 25%, rgba(0, 242, 254, 0.15) 50%, rgba(0, 242, 254, 0.03) 72%, transparent 88%);
    top: 45%; right: -8%;
    animation: meshFloat2 28s infinite alternate ease-in-out -5s;
}
.mesh-3 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(48, 209, 88, 0.85) 0%, rgba(48, 209, 88, 0.4) 25%, rgba(48, 209, 88, 0.15) 50%, rgba(48, 209, 88, 0.03) 72%, transparent 88%);
    bottom: 5%; left: 25%;
    animation: meshFloat3 20s infinite alternate ease-in-out -8s;
}
.mesh-4 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.85) 0%, rgba(139, 92, 246, 0.4) 25%, rgba(139, 92, 246, 0.15) 50%, rgba(139, 92, 246, 0.03) 72%, transparent 88%);
    top: 20%; right: 20%;
    animation: meshFloat4 26s infinite alternate ease-in-out -12s;
}

@keyframes meshFloat1 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, -50px) scale(1.15); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}
@keyframes meshFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-40px, 50px) scale(1.1); }
    100% { transform: translate(30px, -30px) scale(0.95); }
}
@keyframes meshFloat3 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(50px, -40px) scale(1.12); }
    100% { transform: translate(-40px, 20px) scale(0.88); }
}
@keyframes meshFloat4 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-50px, -30px) scale(1.08); }
    100% { transform: translate(40px, 50px) scale(0.92); }
}

/* ═══════════════════════════════════════════════════════════════
   4. CELESTIAL CANVAS
   ═══════════════════════════════════════════════════════════════ */
.celestial-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════════════════════════
   5. MOUSE SPOTLIGHT
   ═══════════════════════════════════════════════════════════════ */
.mouse-spotlight {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    background: radial-gradient(500px circle at var(--x, 50%) var(--y, 50%), rgba(0,122,255,0.04) 0%, transparent 80%);
}

/* ═══════════════════════════════════════════════════════════════
   6. CURSOR TRAILER
   ═══════════════════════════════════════════════════════════════ */
.cursor-trailer {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: 9997;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.7;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s ease;
    will-change: transform;
}

.cursor-trailer.expanded {
    width: 44px; height: 44px;
    opacity: 0.25;
    margin-left: -16px;
    margin-top: -16px;
}

/* ═══════════════════════════════════════════════════════════════
   7. SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════ */
.scroll-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gradient);
    z-index: 1001;
    box-shadow: 0 0 12px rgba(0,122,255,0.5);
    transition: width 0.08s linear;
}

/* ═══════════════════════════════════════════════════════════════
   8. SIDE NAVIGATION DOTS
   ═══════════════════════════════════════════════════════════════ */
.side-nav { display: none; }

@media (min-width: 992px) {
    .container { padding-right: 80px !important; }

    .side-nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: fixed;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 500;
        align-items: flex-end;
        transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    }

    .side-nav.hidden {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    .side-nav-dot {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: var(--text-2);
        font-family: monospace;
        font-size: 11px;
        font-weight: 700;
        transition: var(--transition);
        height: 20px;
    }

    .side-nav-label {
        opacity: 0;
        transform: translateX(10px);
        transition: var(--transition);
        white-space: nowrap;
        color: var(--accent-cyan);
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-size: 10px;
    }

    .side-nav-pip {
        width: 6px; height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        transition: var(--transition);
        display: inline-block;
        flex-shrink: 0;
    }

    .side-nav-dot:hover .side-nav-label,
    .side-nav-dot.active .side-nav-label {
        opacity: 1;
        transform: translateX(0);
    }

    .side-nav-dot:hover .side-nav-pip,
    .side-nav-dot.active .side-nav-pip {
        background: var(--accent);
        box-shadow: 0 0 12px var(--accent);
        transform: scale(1.5);
    }
}

/* ═══════════════════════════════════════════════════════════════
   9. NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: rgba(3,3,3,0.7);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: transform 1.2s var(--ease), opacity 1.2s ease, background 0.5s var(--ease), padding 0.5s var(--ease);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(14px, 2vw, 24px) 5%;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(3,3,3,0.95);
}

.navbar.scrolled .nav-container {
    padding-top: 14px;
    padding-bottom: 14px;
}

.navbar.hidden-navbar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.logo {
    font-family: var(--ff-title);
    font-size: 25.3px;
    font-weight: 900;
    color: var(--text-1);
    text-decoration: none;
    letter-spacing: -1.5px;
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 12.1px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-1);
    transform: translateY(-1px);
}

.nav-cta {
    display: inline-block;
    background: var(--accent-gradient);
    color: #000;
    font-family: var(--ff-title);
    font-weight: 800;
    font-size: 11px;
    padding: 8.8px 17.6px;
    border-radius: 8.8px;
    text-decoration: none;
    box-shadow: 0 10px 20px -10px rgba(0,122,255,0.3);
    transition: var(--transition);
}

.nav-cta:hover {
    filter: brightness(1.15);
}

.nav-cta:active {
    transform: scale(0.95);
    filter: brightness(0.95);
    transition: transform 0.08s var(--ease);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-1);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

/* ═══════════════════════════════════════════════════════════════
   10. BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--accent-gradient);
    color: #000;
    font-family: var(--ff-title);
    font-weight: 800;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 30px -12px rgba(0,122,255,0.4);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 40px -12px rgba(0,122,255,0.6);
}

.btn-text { position: relative; z-index: 2; }

.btn-shimmer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%; left: -70%;
    width: 30%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(25deg);
    animation: shimmerSweep 4.5s infinite linear;
}

@keyframes shimmerSweep {
    0%   { left: -70%; }
    20%  { left: 130%; }
    100% { left: 130%; }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: rgba(20, 20, 22, 0.9);
    color: var(--text-1);
    font-family: var(--ff-title);
    font-weight: 800;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 14px;
    text-decoration: none;
    border: 2px solid rgba(0, 122, 255, 0.6);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.1);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 122, 255, 0.12);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.25);
}

.btn-block { display: block; width: 100%; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   11. LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2.5vw, 28px);
}

.grid-2-asymmetric {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(14px, 2.5vw, 28px);
}

.align-center { align-items: center; }

.reverse-grid {
    direction: rtl;
}
.reverse-grid > * {
    direction: ltr;
}

/* ═══════════════════════════════════════════════════════════════
   12. SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.section {
    padding: clamp(28px, 4.5vw, 64px) 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto clamp(25px, 4.5vh, 45px) auto;
}

.section-eyebrow {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--ff-title);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.5;
}

.section-desc {
    font-size: 16.5px;
    color: var(--text-2);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   13. GLASS CARDS
   ═══════════════════════════════════════════════════════════════ */
.glass-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(0,122,255,0.3);
    box-shadow: 0 40px 85px -20px rgba(0,122,255,0.2), var(--shadow);
}

.glass-card:hover::before {
    background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(0,122,255,0.1) 0%, transparent 80%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    z-index: 0;
}

.glass-card:hover .card-glow { opacity: 1; }

.glass-card > * { position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════════════
   13.5 LANDING TITLE INTRO
   ═══════════════════════════════════════════════════════════════ */
.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 80px; /* Space for the scroll indicator */
}

.title-section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 clamp(20px, 5vw, 60px);
    transform: translateY(-3vh); /* Reduced shift to balance the buttons and scroll indicator */
}

@keyframes blurReveal {
    0% {
        opacity: 0;
        filter: blur(15px);
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.landing-logo-container {
    margin-bottom: 10px; /* Reduced margin */
    animation: blurReveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) 8.7s both; /* Delayed start after typewriter finishes and shrinks */
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

.landing-logo-img {
    height: clamp(18px, 3.2vw, 28px); /* Made smaller */
    width: auto;
    pointer-events: none; /* Prevent logo image dragging */
}

.typewriter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; /* Keep final spacing directly */
    height: 65px; /* Keep final height directly */
}

.typewriter-text {
    font-family: var(--ff-title);
    font-size: clamp(1.6rem, 5vw, 3.6rem); /* Keep final size all the time */
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em; /* Scales with fluid typography font-size */
    border-right: 3px solid var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    animation: 
        typing 3.2s steps(var(--chars, 28)) 4.5s forwards, 
        blink 0.75s step-end infinite, 
        hideCursor 0.1s 8.7s forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: var(--width-px, calc(var(--chars, 28) * 1.05ch)); } /* Exact pixel width measured by JS, falls back to 1.05ch if JS hasn't run */
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-cyan); }
}

@keyframes hideCursor {
    to { border-right-color: transparent; }
}

/* Landing CTAs */
.landing-ctas {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: blurReveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) 9.5s both;
    position: relative;
    z-index: 100;
}

/* ───────────────────────────────────────────────────────────────
   NO-INTRO OVERRIDES (Skip loading animations if already visited)
   ─────────────────────────────────────────────────────────────── */
.no-intro .intro-overlay {
    display: none !important;
}

.no-intro .typewriter-text {
    width: var(--width-px, calc(var(--chars, 28) * 1.05ch));
    border-right-color: transparent !important;
    animation: blink 0.75s step-end infinite !important;
}

.no-intro .landing-logo-container,
.no-intro .landing-title-text {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
    animation: none !important;
}

.no-intro .landing-ctas {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

.no-intro .landing-title-word {
    animation-delay: 0s !important;
}
.no-intro .landing-title-word:nth-child(1) { animation-delay: 0s !important; }
.no-intro .landing-title-word:nth-child(2) { animation-delay: 0.4s !important; }
.no-intro .landing-title-word:nth-child(3) { animation-delay: 0.8s !important; }

.landing-title-text {
    font-size: clamp(1.4rem, 6.2vw, 5.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-align: center;
    color: var(--text-1);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.7em;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    animation: blurReveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) 8.7s both; /* Delayed start after typewriter finishes and shrinks */
}

.landing-title-word {
    display: inline-flex;
    white-space: nowrap;
    animation: floatWord 6s ease-in-out infinite;
}

.landing-title-word:nth-child(1) { animation-delay: 11.0s; }
.landing-title-word:nth-child(2) { animation-delay: 11.6s; }
.landing-title-word:nth-child(3) { animation-delay: 12.2s; }

@keyframes floatWord {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.landing-title-char {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s, text-shadow 0.25s;
    cursor: default;
    padding-right: 0.05em; /* Prevent clipping by WebKit text-fill gradients */
}

.landing-title-char.first-letter {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(0, 122, 255, 0.2);
}

.landing-title-char.tm-symbol {
    color: var(--text-3);
    font-family: var(--ff-body);
}

.landing-title-char:hover {
    transform: scale(1.35) translateY(-15px) rotate(3deg);
    color: var(--accent-cyan) !important;
    -webkit-text-fill-color: var(--accent-cyan) !important;
    text-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: clamp(20px, 5vh, 45px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: pulseScroll 2s infinite ease-in-out;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.scroll-text {
    font-family: var(--ff-title);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-2);
    margin-top: 4px;
    transition: var(--transition);
    user-select: none;
}

.scroll-indicator:hover {
    opacity: 0.9 !important;
}

.scroll-indicator:hover .scroll-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.scroll-indicator:hover .scroll-mouse {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollWheelAnim 1.6s infinite ease-in-out;
}

@keyframes scrollWheelAnim {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

@keyframes pulseScroll {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════════════
   14. HERO
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
    padding: clamp(64px, 7vw, 105px) 0 clamp(28px, 4.5vw, 64px) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 42px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0,122,255,0.08);
    border: 1px solid var(--border);
    color: var(--accent);
    border-radius: 30px;
    font-family: var(--ff-title);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.hero-badge-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseGlow 1.8s infinite;
}

.hero-eyebrow {
    display: block;
    font-family: var(--ff-title);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.875rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 25px;
}

.hero-lead {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    color: var(--text-2);
    margin-bottom: 35px;
    max-width: 480px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   15. DASHBOARD CARD
   ═══════════════════════════════════════════════════════════════ */
.dashboard-card {
    width: 340px;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    gap: 12px;
}

.dash-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--ff-title);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    flex: 1;
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseGlow 1.5s infinite;
    margin-top: 5px;
    flex-shrink: 0;
}

.dash-region {
    font-size: 11.5px;
    color: var(--text-2);
    font-family: var(--ff-title);
    font-weight: 600;
    text-align: right;
    margin-top: 2px;
}

.dash-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.dash-stat {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--accent);
    padding-left: 15px;
}

.dash-stat-val {
    font-family: var(--ff-title);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
}

.dash-stat-lbl {
    font-size: 11px;
    color: var(--text-2);
    margin-top: 4px;
    font-weight: 500;
}

.dash-log {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 145px;
    overflow: hidden;
}

.log-row {
    font-family: monospace;
    font-size: 11.5px;
    color: var(--text-2);
    line-height: 1.4;
}

.log-time { color: var(--accent); }
.log-row.active-log { color: var(--text-1); }

/* ═══════════════════════════════════════════════════════════════
   16. ABOUT CARDS
   ═══════════════════════════════════════════════════════════════ */
.about-card { padding: 28px 20px; }

.card-icon-box {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(0,122,255,0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-icon-box i { width: 22px; height: 22px; }

.about-card h3 { font-size: 16px; margin-bottom: 8px; }
.about-card p  { font-size: 16px; line-height: 1.65; margin-bottom: 30px; }

.card-features { display: flex; flex-direction: column; gap: 14px; }

.card-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: var(--text-1);
    font-weight: 500;
}

.card-feat i { width: 18px; height: 18px; color: var(--accent-green); }

/* ═══════════════════════════════════════════════════════════════
   17. B2P / FEATURE BULLETS
   ═══════════════════════════════════════════════════════════════ */
.b2p-content, .b2b-content { max-width: 650px; }

.feature-bullets { display: flex; flex-direction: column; gap: 30px; margin-top: 30px; }

.feature-bullet { display: flex; gap: 20px; align-items: flex-start; }

.feature-bullet-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-bullet-icon i { width: 17px; height: 17px; }

.feature-bullet h4 { font-size: 18px; margin-bottom: 6px; }
.feature-bullet p  { font-size: 14.5px; }

/* ═══════════════════════════════════════════════════════════════
   18. CHATBOT CARD
   ═══════════════════════════════════════════════════════════════ */
.chatbot-card {
    height: 450px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13,13,14,0.85);
}

.chat-status {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.chat-engine-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(0,122,255,0.08);
    color: var(--accent);
    font-family: var(--ff-title);
    font-weight: 700;
}

.chat-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chat messages (new class names from JS) */
.chat-message { display: flex; animation: fadeInUp 0.5s var(--ease) both; }
.chat-message.incoming { justify-content: flex-start; }
.chat-message.outgoing { justify-content: flex-end; }

.msg-bubble {
    max-width: 82%;
    padding: 14px 20px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.incoming .msg-bubble {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-message.outgoing .msg-bubble {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 700;
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 20px -8px rgba(0,122,255,0.35);
}

/* Also support old .message class names for backwards compat */
.message { max-width: 82%; padding: 14px 20px; border-radius: 18px; font-size: 14px; line-height: 1.5; animation: fadeInUp 0.5s var(--ease) both; }
.message.incoming { align-self: flex-start; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.message.outgoing { align-self: flex-end; background: var(--accent-gradient); color: #000; font-weight: 700; border-bottom-right-radius: 4px; box-shadow: 0 10px 20px -8px rgba(0,122,255,0.35); }

.system-load .msg-bubble,
.message.system-load {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-2);
    border-radius: 12px;
}

.loader-bubble { display: flex; align-items: center; gap: 10px; }

.loader-dots { display: inline-flex; gap: 4px; }
.loader-dots .dot,
.loader-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}
.loader-dots .dot:nth-child(2), .loader-dot:nth-child(2) { animation-delay: 0.16s; }
.loader-dots .dot:nth-child(3), .loader-dot:nth-child(3) { animation-delay: 0.32s; }

.loader-text { font-size: 12px; color: var(--text-2); }

/* Listing cards in chat */
.listing-card {
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.listing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.listing-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.listing-price { font-size: 20px; font-weight: 800; color: var(--accent); }
.listing-desc { font-size: 13px; line-height: 1.4; color: var(--text-2); margin: 0; }
.listing-rating { font-size: 11px; font-weight: 700; color: var(--accent-green); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.icon-sparkle { width: 12px; height: 12px; }

.portal-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.portal-badge.olx,
.listing-portal.olx {
    background: rgba(0,122,255,0.15);
    color: #85c2ff;
    border: 1px solid rgba(0,122,255,0.3);
}

.portal-badge.kuantokusta,
.listing-portal.kuantokusta {
    background: rgba(255,102,0,0.15);
    color: #ff8c3b;
    border: 1px solid rgba(255,102,0,0.3);
}

.portal-badge.amazon,
.listing-portal.amazon {
    background: rgba(255,153,0,0.15);
    color: #ffc266;
    border: 1px solid rgba(255,153,0,0.3);
}

/* BOLX Section Styles */
.b2p-card {
    padding: clamp(24px, 4vw, 48px) clamp(20px, 3.5vw, 40px);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 24px);
    margin-top: 30px;
}

.portal-card {
    padding: 24px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.portal-card:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateY(-4px);
}

.portal-card i {
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    display: inline-block;
}

.portal-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-1);
}

.portal-card p {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.chat-footer {
    padding: 8px 14px 10px;
    border-top: 1px solid var(--border);
    background: rgba(13,13,14,0.95);
}

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }

.suggestion-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 8px 16px;
    font-family: var(--ff-title);
    color: var(--text-1);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(0,122,255,0.4);
    transform: translateY(-2px);
}

.chat-input-row { display: flex; gap: 12px; align-items: center; }

.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 20px;
    color: var(--text-1);
    font-family: var(--ff-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
}

.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-2);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-send.active {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 8px 16px -6px rgba(0,122,255,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   19. PIPELINE CARD (B2B)
   ═══════════════════════════════════════════════════════════════ */
.pipeline-card { padding: 20px 16px; }

.pipeline-header {
    font-family: var(--ff-title);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-2);
    margin-bottom: 20px;
}

.pipeline-step {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border-radius: 20px;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.pipeline-step.active {
    background: rgba(255,255,255,0.02);
    border-color: rgba(0,122,255,0.2);
    box-shadow: 0 10px 30px -10px rgba(0,122,255,0.15);
}

.pipeline-num {
    width: 36px; height: 36px;
    font-family: var(--ff-title);
    font-weight: 800;
    font-size: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.pipeline-step.active .pipeline-num {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #000;
    box-shadow: 0 0 15px rgba(0,122,255,0.4);
}

.pipeline-text strong {
    font-family: var(--ff-title);
    font-size: 17px;
    color: var(--text-1);
}

.pipeline-text p { font-size: 13.5px; margin-top: 6px; }


/* ═══════════════════════════════════════════════════════════════
   21. CALCULATOR
   ═══════════════════════════════════════════════════════════════ */
.calc-controls { padding: 28px 20px; }

.calc-group { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.calc-group.last { margin-bottom: 0; }

.calc-label-row { display: flex; justify-content: space-between; align-items: center; }
.calc-label-row label { font-family: var(--ff-title); font-size: 16px; font-weight: 600; color: var(--text-2); }
.calc-value { font-family: var(--ff-title); font-size: 24px; font-weight: 800; color: var(--accent); }

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 4px;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--text-1);
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,122,255,0.4);
    transition: transform 0.2s;
}

.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.calc-results {
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-results-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0,122,255,0.08), transparent 60%);
    pointer-events: none;
}

.calc-results-label {
    font-family: var(--ff-title);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-2);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.calc-results-amount {
    font-family: var(--ff-title);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 40px;
}

.calc-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.calc-metric { display: flex; flex-direction: column; align-items: center; }
.calc-metric-val { font-family: var(--ff-title); font-size: 32px; font-weight: 800; color: var(--text-1); }
.calc-metric-lbl { font-size: 11px; color: var(--text-2); margin-top: 6px; max-width: 130px; line-height: 1.3; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   22. ETHICS CARD
   ═══════════════════════════════════════════════════════════════ */
.ethics-card { padding: 35px 28px; }
.ethics-card .section-title { margin-bottom: 15px; }
.ethics-card > p { font-size: 17px; line-height: 1.6; max-width: 580px; }

.charter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 35px);
    margin-top: 50px;
}

.charter-item { border-left: 3px solid var(--accent); padding-left: 30px; }
.charter-item i { width: 32px; height: 32px; color: var(--accent); margin-bottom: 15px; display: block; }
.charter-item h4 { font-size: 14px; margin-bottom: 12px; }
.charter-item p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   23. CONTACT FORM
   ═══════════════════════════════════════════════════════════════ */
.contact-text { max-width: 480px; }

.office-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-2);
    margin-top: 21px;
    font-size: 15px;
}

.office-location i { width: 20px; height: 20px; color: var(--accent); }

.form-card { padding: 28px 20px; }
.form-card h3 { font-size: 16px; margin-bottom: 16px; font-family: var(--ff-title); font-weight: 800; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    font-family: var(--ff-title);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-2);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-1);
    font-family: var(--ff-body);
    font-size: 14.5px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.03);
    box-shadow: 0 0 15px rgba(0,122,255,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group textarea { resize: vertical; min-height: 110px; }

.form-success { text-align: center; padding: 30px 0; }
.form-success .success-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 15px; }
.form-success h4 { font-size: 22px; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════
   24. FOOTER
   ═══════════════════════════════════════════════════════════════ */
.main-footer {
    border-top: 1px solid var(--border);
    background: rgba(3,3,3,0.8);
    backdrop-filter: blur(20px);
    padding-top: 60px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 60px !important;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 35px);
}

.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin-top: 15px; }

.footer-logo {
    text-decoration: none;
    font-family: var(--ff-title);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -1.5px;
}

.footer-links-wrap { display: flex; gap: clamp(24px, 5vw, 56px); }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
    font-family: var(--ff-title);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-1);
    margin-bottom: 8px;
    text-align: center;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-2);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col a:hover { color: var(--text-1); transform: translateX(4px); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    margin-top: 60px;
    text-align: center;
}

.footer-bottom p { font-size: 12px; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════
   25. ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   26. DATA-REVEAL (IntersectionObserver)
   ═══════════════════════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   27. WORD REVEAL (Text split)
   ═══════════════════════════════════════════════════════════════ */
.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    margin-right: 0.15em;
}

.section.in-view .word-reveal,
.hero-section .word-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   28. DESKTOP SNAP SCROLL
   ═══════════════════════════════════════════════════════════════ */
.story-container {
    width: 100%;
    height: auto;
    overflow: visible;
}

@media (min-height: 480px) {
    html, body {
        overflow: hidden !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .story-container {
        height: 100vh !important;
        height: 100dvh !important;
        overflow-y: auto !important;
        scroll-snap-type: y mandatory !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
    }

    .story-container::-webkit-scrollbar { display: none !important; }

    .section {
        height: 100vh !important;
        height: 100dvh !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        padding: clamp(60px, 8vh, 80px) 0 clamp(20px, 4vh, 40px) 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

}

/* ═══════════════════════════════════════════════════════════════
   29. DISABLED STATES
   ═══════════════════════════════════════════════════════════════ */
.suggestion-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-send:disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   30. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
/* Redundant static overrides removed in favor of fluid typography clamp() */

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 300px; height: 100vh;
        background: rgba(13,13,14,0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        padding: 40px;
        transition: right 0.5s var(--ease);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; }

    .grid-2,
    .grid-2-asymmetric {
        grid-template-columns: 1fr;
    }

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

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .hero-ctas {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-ctas a, .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; text-align: center; justify-content: center; }

    /* Redundant static overrides removed in favor of fluid typography clamp() */

    .about-card { padding: 40px 30px; }

    .ethics-card { padding: 40px 30px; }

    .charter-grid { grid-template-columns: 1fr; gap: 30px; }

    .charter-item {
        border-left: none;
        border-top: 3px solid var(--accent);
        padding-left: 0;
        padding-top: 20px;
    }

    .form-card { padding: 30px 20px; }

    .calc-controls, .calc-results { padding: 35px 25px; }

    .reverse-grid { direction: ltr; }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer-brand { text-align: center; max-width: 100%; }

    .footer-links-wrap {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 20px;
    }

    .footer-col { text-align: center; align-items: center; }

    .cursor-trailer { display: none; }

    /* Mobile responsive landing page scaling */
    .typewriter-text {
        font-size: clamp(0.85rem, 4vw, 1.6rem);
    }

    .landing-title-text {
        font-size: clamp(1.4rem, 8.5vw, 3.2rem);
        flex-wrap: wrap;
        gap: 0.2em 0.5em;
        line-height: 1.2;
    }

    .landing-title-word {
        animation: none !important;
    }

    .landing-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 290px;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
        margin-top: 30px;
    }

    .landing-ctas .btn-primary,
    .landing-ctas .btn-secondary {
        width: 100% !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    /* Prevent clipping on smaller screens by allowing internal vertical scrolling inside sections */
    .section {
}

/* ═══════════════════════════════════════════════════════════════
   28. DESKTOP SNAP SCROLL
   ═══════════════════════════════════════════════════════════════ */
.story-container {
    width: 100%;
    height: auto;
    overflow: visible;
}

@media (min-height: 480px) {
    html, body {
        overflow: hidden !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .story-container {
        height: 100vh !important;
        height: 100dvh !important;
        overflow-y: auto !important;
        scroll-snap-type: y mandatory !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
    }

    .story-container::-webkit-scrollbar { display: none !important; }

    .section {
        height: 100vh !important;
        height: 100dvh !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        padding: clamp(60px, 8vh, 80px) 0 clamp(20px, 4vh, 40px) 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
    }

    .section > .container {
        margin-top: auto !important;
        margin-bottom: auto !important;
    }

}

/* ═══════════════════════════════════════════════════════════════
   29. DISABLED STATES
   ═══════════════════════════════════════════════════════════════ */
.suggestion-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-send:disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   30. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
/* Redundant static overrides removed in favor of fluid typography clamp() */

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 300px; height: 100vh;
        background: rgba(13,13,14,0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        padding: 40px;
        transition: right 0.5s var(--ease);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; }

    .grid-2,
    .grid-2-asymmetric {
        grid-template-columns: 1fr;
    }

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

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .hero-ctas {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-ctas a, .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; text-align: center; justify-content: center; }

    /* Redundant static overrides removed in favor of fluid typography clamp() */

    .about-card { padding: 40px 30px; }

    .ethics-card { padding: 40px 30px; }

    .charter-grid { grid-template-columns: 1fr; gap: 30px; }

    .charter-item {
        border-left: none;
        border-top: 3px solid var(--accent);
        padding-left: 0;
        padding-top: 20px;
    }

    .form-card { padding: 30px 20px; }

    .calc-controls, .calc-results { padding: 35px 25px; }

    .reverse-grid { direction: ltr; }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer-brand { text-align: center; max-width: 100%; }

    .footer-links-wrap {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 20px;
    }

    .footer-col { text-align: center; align-items: center; }

    .cursor-trailer { display: none; }

    /* Mobile responsive landing page scaling */
    .typewriter-text {
        font-size: clamp(0.85rem, 4vw, 1.6rem);
    }

    .landing-title-text {
        font-size: clamp(1.4rem, 8.5vw, 3.2rem);
        flex-wrap: wrap;
        gap: 0.2em 0.5em;
        line-height: 1.2;
    }

    .landing-title-word {
        animation: none !important;
    }

    .landing-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 290px;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
        margin-top: 30px;
    }

    .landing-ctas .btn-primary,
    .landing-ctas .btn-secondary {
        width: 100% !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    /* Prevent clipping on smaller screens by allowing internal vertical scrolling inside sections */
    .section {
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 80px clamp(16px, 4vw, 24px) 40px clamp(16px, 4vw, 24px) !important;
    }

    /* Center section content vertically if it fits, otherwise align to top for scrollability */
    .section > .container {
        margin-top: auto !important;
        margin-bottom: auto !important;
    }
}

/* Redundant static overrides removed in favor of fluid typography clamp() */
