/* ===== TOKENS ===== */
:root {
    --bg: #030406;
    --bg-raised: #080a0f;
    --bg-surface: rgba(18, 21, 28, 0.4);
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-secondary: #94949e;
    --text-muted: #5e5e66;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --accent-warm: #e2a86b;
    --accent-warm-glow: rgba(226, 168, 107, 0.2);
    --radius: 14px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --max-w: 1200px;
    --section-gap: 160px;
    /* WA Theme */
    --wa-bg: #0b141a;
    --wa-header: #202c33;
    --wa-bubble-in: #202c33;
    --wa-bubble-out: #005c4b;
    --wa-accent: #00a884;
}

/* Global Selection Color — Teal for readability */
::selection {
    background: #00a884;
    color: #fff;
}

::-moz-selection {
    background: #00a884;
    color: #fff;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    font-family: var(--font);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 15%, var(--accent-glow) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(80, 100, 140, 0.1) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Vignette mask — hides grid in center, visible at edges */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 0%, var(--bg) 100%);
}

/* Film grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.045;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--text);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

section {
    padding: var(--section-gap) 0;
}

button {
    font-family: var(--font);
    cursor: pointer;
}

::selection {
    background: var(--accent-warm);
    color: var(--bg);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #1a1c22;
    border: 3px solid var(--bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #24272e;
}

/* ===== UTILITY ===== */
.section-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-warm);
    margin-bottom: 20px;
}

.section-label svg {
    opacity: 0.6;
}

.section-title {
    font-size: 3.8rem;
    margin-bottom: 56px;
    text-align: left;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* v91.1: Intelligence Deck (Live Summit Awareness) */
.intel-deck {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px 8px 12px;
    background: rgba(226, 168, 107, 0.05);
    /* Slight amber tint */
    border: 1px solid rgba(226, 168, 107, 0.2);
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.intel-deck:hover {
    background: rgba(226, 168, 107, 0.08);
    border-color: rgba(226, 168, 107, 0.4);
    transform: translateY(-1px);
}

.intel-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--accent-warm);
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pulsar {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-warm);
    border-radius: 50%;
    animation: livePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(226, 168, 107, 0.7);
    }

    70% {
        transform: scale(2.2);
        opacity: 0;
        box-shadow: 0 0 0 6px rgba(226, 168, 107, 0);
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.intel-content {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.intel-content strong {
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
}

.intel-meta {
    font-size: 0.72rem;
    font-family: 'Inter', monospace;
    /* Tech feel */
    opacity: 0.7;
}

/* ===== NAV ===== */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}

#nav.scrolled {
    background: rgba(15, 17, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}

.nav-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.logo svg {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 450;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-btn {
    padding: 6px 14px !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    font-weight: 500 !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    padding: 4px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 8px;
    border: 1px solid var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-raised);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    transition: color 0.15s, gap 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
    gap: 10px;
}

.btn-full {
    width: 100%;
}

/* ===== HERO ===== */
#hero {
    position: relative;
    padding: 60px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* CRITICAL: No Viewport Clipping */
    min-height: 80vh;
}

#hero::before {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    top: -300px;
    right: -200px;
    background: radial-gradient(circle, rgba(226, 168, 107, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

#hero>* {
    position: relative;
    z-index: 1;
}

.hero-wrap {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 20;
    pointer-events: none;
}

.hero-left {
    position: relative;
    z-index: 20;
    /* v112.0: Ensure Text Overlaps Model */
    pointer-events: auto;
}

.hero-right {
    position: relative;
    height: 100%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero-badge span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--accent-warm);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.hero-badge p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-left h1 {
    font-size: 5rem;
    margin-bottom: 24px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 90%;
    /* Forces natural wrapping on slightly narrower screens */
}

/* v97.0: Better Text Flow for Narrower Desktop */
@media (max-width: 1200px) {
    .hero-left h1 {
        font-size: 4rem;
        /* Scale down slightly to keep 2-line structure */
    }
}

.hero-left h1 span {
    background: linear-gradient(135deg, #fff 20%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-sub {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-warm);
    margin-bottom: 20px;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    opacity: 0.9;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proof-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.proof-text strong {
    color: var(--text-secondary);
}

.device-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    overflow: visible;
    z-index: 5;
    pointer-events: none;
}

.device-showcase canvas {
    pointer-events: none;
    /* v76.0: Stationary Mode */
}

/* The Platform/Floor Shadow */
/* .device-showcase::after removed for v48.0 Ghost Mode */

.device .chat-mock {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}


.chat-mock {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    overflow: hidden;
    background: var(--bg);
}

.chat-mock--tg {
    border-color: #1c2a38;
}

.chat-mock--ig {
    border-color: #262626;
}

/* Header */
.mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

.mock-header--wa {
    background: #1f2c34;
}

.mock-header--tg {
    background: #17212b;
}

.mock-header--ig {
    background: #000;
    border-bottom: 1px solid #262626;
}

.mock-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.mock-contact {
    flex: 1;
    min-width: 0;
}

.mock-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e9edef;
    line-height: 1.2;
}

.mock-header--ig .mock-name {
    font-size: 0.82rem;
    font-weight: 600;
}

.mock-status {
    display: block;
    font-size: 0.68rem;
    color: #8696a0;
}

.mock-header--tg .mock-status {
    color: #5eb5f7;
}

.mock-header--ig .mock-status {
    color: #00a400;
    font-size: 0.65rem;
}

.mock-header-icons {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-shrink: 0;
}

/* Body */
.mock-body {
    flex: 1;
    min-height: 0;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.mock-body::-webkit-scrollbar {
    width: 0;
}

/* WA body — doodle pattern */
.mock-body--wa {
    background-color: #0b141a;
    background-image: url("data:image/svg+xml,%3Csvg width='250' height='250' viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.d%7Bfill:none;stroke:%23162d25;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;opacity:0.7%7D.f%7Bfill:%23162d25;opacity:0.7%7D%3C/style%3E%3C/defs%3E%3Cpath class='d' d='M18 15h10a2 2 0 012 2v6a2 2 0 01-2 2h-4l-3 3v-3h-3a2 2 0 01-2-2v-6a2 2 0 012-2z'/%3E%3Ccircle class='d' cx='75' cy='30' r='7'/%3E%3Cpath class='d' d='M75 26v4l3 2'/%3E%3Crect class='d' x='130' y='14' width='9' height='16' rx='2'/%3E%3Cpath class='d' d='M133 27h3'/%3E%3Cpath class='d' d='M195 20h14a2 2 0 012 2v8a2 2 0 01-2 2h-14a2 2 0 01-2-2v-8a2 2 0 012-2z'/%3E%3Ccircle class='d' cx='202' cy='26' r='3'/%3E%3Cpath class='d' d='M30 80c0-3 2-5 5-5s5 2 5 5-5 8-5 8-5-5-5-8z'/%3E%3Crect class='d' x='90' y='75' width='8' height='7' rx='1'/%3E%3Cpath class='d' d='M92 75v-2a3 3 0 016 0v2'/%3E%3Ccircle class='d' cx='160' cy='80' r='7'/%3E%3Cpath class='d' d='M155 83s2 2 5 2 5-2 5-2'/%3E%3Ccircle class='f' cx='158' cy='79' r='.9'/%3E%3Ccircle class='f' cx='163' cy='79' r='.9'/%3E%3Crect class='d' x='215' y='72' width='5' height='9' rx='2.5'/%3E%3Cpath class='d' d='M212 79a5.5 5.5 0 0011 0M217.5 84v3'/%3E%3Cpath class='d' d='M22 140h10v14H22zM25 144h4M25 148h3'/%3E%3Crect class='d' x='80' y='132' width='14' height='10' rx='1'/%3E%3Cpath class='d' d='M80 140l4.5-3.5 3.5 2.5 2.5-1.5 3.5 2.5'/%3E%3Ccircle class='f' cx='84' cy='136' r='1.2'/%3E%3Crect class='d' x='145' y='135' width='10' height='8' rx='1'/%3E%3Cpath class='d' d='M155 138l4-2v7l-4-2'/%3E%3Ccircle class='d' cx='220' cy='140' r='6'/%3E%3Cpath class='d' d='M214 140h12M220 134c-2.5 2.5-2.5 9.5 0 12M220 134c2.5 2.5 2.5 9.5 0 12'/%3E%3Cpath class='d' d='M25 205l2 4 4 .5-3 3 .7 4-3.7-2-3.7 2 .7-4-3-3 4-.5z'/%3E%3Cpath class='d' d='M82 200a4.5 4.5 0 00-9 0v3.5h9zM79.5 203.5a1.7 1.7 0 01-3.4 0'/%3E%3Cpath class='d' d='M140 195h8a2 2 0 012 2v5a2 2 0 01-2 2h-3.5l-2.5 2v-2H140a2 2 0 01-2-2v-5a2 2 0 012-2z'/%3E%3Cpath class='d' d='M205 195v13M205 195c2.5-1.5 6-1.5 8 0v13c-2-1.5-5.5-1.5-8 0M205 195c-2.5-1.5-6-1.5-8 0v13c2.5-1.5 5.5-1.5 8 0'/%3E%3C/svg%3E");
}

.mock-body--tg {
    background: #0e1621;
}

.mock-body--ig {
    background: #000;
}

/* Date chip */
.mock-date-chip {
    align-self: center;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    margin: 4px 0 8px;
    background: #182229;
    color: #8696a0;
}

.chat-mock--tg .mock-date-chip {
    background: #1b2a38;
    color: #6c8297;
}

.chat-mock--ig .mock-date-chip {
    background: transparent;
    color: #737373;
    font-size: 0.65rem;
}

/* Bubbles */
.mock-bubble {
    max-width: 82%;
    padding: 6px 8px 4px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.45;
    position: relative;
    margin-bottom: 2px;
}

.mock-bubble p {
    color: #e9edef;
}

.mock-bubble--wa.mock-out {
    align-self: flex-end;
    background: #005c4b;
    border-radius: 8px 0 8px 8px;
}

.mock-bubble--wa.mock-in {
    align-self: flex-start;
    background: #1f2c34;
    border-radius: 0 8px 8px 8px;
}

.mock-bubble--tg.mock-out {
    align-self: flex-end;
    background: #2b5278;
    border-radius: 12px 4px 12px 12px;
}

.mock-bubble--tg.mock-in {
    align-self: flex-start;
    background: #182533;
    border-radius: 4px 12px 12px 12px;
}

.mock-bubble--ig.mock-out {
    align-self: flex-end;
    background: #3797f0;
    border-radius: 18px 4px 18px 18px;
    padding: 8px 14px 6px;
}

.mock-bubble--ig.mock-in {
    align-self: flex-start;
    background: #262626;
    border-radius: 4px 18px 18px 18px;
    padding: 8px 14px 6px;
}

.mock-bubble--ig p {
    color: #fff;
}

/* Meta */
.mock-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-top: 2px;
}

.mock-time {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
}

.mock-tick {
    flex-shrink: 0;
}

.chat-mock--ig .mock-time {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Typing */
.typing {
    display: flex;
    gap: 4px;
    padding: 4px 3px;
}

.typing span {
    width: 5px;
    height: 5px;
    background: #8696a0;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes blink {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* Input bars */
.mock-input {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
}

.mock-input--wa {
    background: #1f2c34;
}

.mock-input--tg {
    background: #17212b;
    padding: 6px 8px;
}

.mock-input--ig {
    background: #000;
    border-top: 1px solid #262626;
    padding: 8px 12px;
}

.mock-input svg {
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.7;
}

.mock-input-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    padding: 7px 12px;
}

.mock-input-field span {
    font-size: 0.78rem;
    flex: 1;
}

.mock-input-field--wa {
    background: #2a3942;
}

.mock-input-field--wa span {
    color: #8696a0;
}

.mock-input-field--tg {
    background: #242f3d;
    border-radius: 18px;
}

.mock-input-field--tg span {
    color: #6c8297;
}

.mock-input-field--ig {
    background: #262626;
    border-radius: 22px;
    border: 1px solid #363636;
}

.mock-input-field--ig span {
    color: #737373;
}


/* HQ (Dashboard) Theme */
.mock-header--hq {
    background: #050505;
    border-bottom: 1px solid #1a1a1a;
    padding: 12px 15px;
}

.header-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.mock-header--hq .mock-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #00ff88;
}

.mock-header-metrics {
    display: flex;
    gap: 12px;
}

.metric {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: #444;
}

.metric span {
    color: #666;
}

.mock-body--hq {
    background: #020202;
    padding: 15px;
}

.mock-bubble--hq {
    background: transparent !important;
    max-width: 100%;
    padding: 0;
    margin-bottom: 8px;
}

.mock-bubble--hq p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #00ff88;
    line-height: 1.2;
}

.code-log {
    margin-top: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border-left: 2px solid var(--accent-warm);
}

.code-log code {
    display: block;
    color: #888;
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
}

.mock-input--hq {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    padding: 10px 15px;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 12px;
    background: #00ff88;
    vertical-align: middle;
}

.hq-meta .mock-time {
    color: #333;
}


/* ===== PLATFORMS STRIP ===== */
#platforms {
    padding: 28px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.platforms-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 450;
}

.platform-sep {
    width: 1px;
    height: 16px;
    background: var(--border);
}

/* ===== WHY US ===== */
#why {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#why::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(226, 168, 107, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

#why>* {
    position: relative;
    z-index: 1;
}

/* ===== WHY US COMPARISON ===== */
.why-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.why-main p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.comp-col {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.comp-col.highlight {
    border-color: var(--accent-warm);
    background: rgba(226, 168, 107, 0.05);
}

.comp-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.comp-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.comp-col li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.why-features {
    display: grid;
    gap: 20px;
}

.why-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.why-card-icon {
    color: var(--accent-warm);
    margin-bottom: 12px;
}

.why-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.why-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .why-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }
}


/* ===== PROCESS / STEPS ===== */
#work {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 48px;
    position: relative;
}

.step {
    padding: 28px 24px 24px;
    position: relative;
}

.step-line {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.step:first-child .step-line {
    left: 50%;
}

.step:last-child .step-line {
    right: 50%;
}

.step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-warm);
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.2px;
}

.step p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    max-width: 260px;
    margin: 0 auto;
}

.train-section {
    margin-top: 100px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.train-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 500px;
}

.train-visual {
    background: #080a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    position: relative;
    padding: 0;
    overflow: hidden;
}

.train-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.5s ease, transform 1s ease;
}

.train-section:hover .train-img {
    opacity: 1;
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 50%, rgba(3, 4, 6, 0.4) 100%),
        radial-gradient(circle at center, transparent 30%, rgba(3, 4, 6, 0.2) 100%);
    pointer-events: none;
}

/* Training Visual Content */

.train-content {
    padding: 64px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.train-content h2 span {
    display: inline;
    color: var(--accent-warm);
}

.train-statement {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.train-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.train-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.train-check {
    width: 24px;
    height: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.train-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
}

.train-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .train-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .train-visual {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .train-content {
        padding: 40px 24px;
    }
}

/* ===== USE CASES ===== */
#proof {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.testimonial {
    padding: 26px 24px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.testimonial:hover {
    border-color: var(--border-hover);
}

.usecase-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.testimonial h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.1px;
}

.quote {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
    font-style: normal;
}

.usecase-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.usecase-tags span {
    font-size: 0.68rem;
    font-weight: 550;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 4px;
    letter-spacing: 0.2px;
    border: 1px solid var(--border);
}

/* ===== PRICING ===== */
#pricing {
    padding: 100px 0;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

#pricing::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    top: -100px;
    right: -200px;
    background: radial-gradient(circle, rgba(226, 168, 107, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

#pricing>* {
    position: relative;
    z-index: 1;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: stretch;
}

.price-card {
    padding: 26px 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: var(--accent-warm);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(226, 168, 107, 0.1);
}

.price-card.featured {
    border-color: rgba(226, 168, 107, 0.25);
    box-shadow: 0 0 0 1px rgba(226, 168, 107, 0.15);
}

.price-card.custom {
    background: var(--bg-surface);
    border-style: dashed;
}

.price-tag {
    position: absolute;
    top: -9px;
    left: 22px;
    padding: 2px 10px;
    background: var(--accent-warm);
    color: #1a1207;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 4px;
}

.price-head {
    margin-bottom: 18px;
}

.price-head h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.price-for {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.price-cost {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.amount {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.custom-amount {
    font-size: 1.5rem;
}

.period {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-left: 3px;
    white-space: nowrap;
}

.price-recur {
    font-size: 0.76rem;
    color: var(--accent-warm);
    font-weight: 500;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.custom-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.price-features {
    margin-bottom: 22px;
    flex: 1;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 4px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.price-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.price-features li.included svg {
    color: var(--accent-warm);
}

.price-features li.excluded {
    color: var(--text-muted);
}

.price-features li.excluded svg {
    color: var(--text-muted);
}

.custom-features li svg {
    color: var(--text-muted);
}

/* ===== INTEGRATION — EVIDENCE BOARD ===== */
#integrations {
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* LAYER 1a: Wall texture — fades at top and bottom */
#integrations::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('sprites/wall-texture.webp') center/cover no-repeat;
    opacity: 0.65;
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 65%, transparent 100%);
}

/* LAYER 1b: Ribbon — solid pricing bg at top, fades to transparent */
#integrations::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            var(--bg-raised) 0%,
            var(--bg-raised) 60px,
            rgba(18, 15, 12, 0.85) 200px,
            rgba(0, 0, 0, 0) 45%);
    pointer-events: none;
}

#integrations .section-wrap {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
}

.integ-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 16px auto 0;
}

/* LAYER 2: Board — cork bulletin board sprite */
.board {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 1100 / 860;
    margin: 60px auto 0;
    border: none;
    background: url('sprites/cork-board.webp') center/100% 100% no-repeat;
    /* Proportional internal padding (based on 1100px design) */
    padding: 3.6% 3.2%;
    border-radius: 6px;
    overflow: visible;
    /* Allow magnifier to bleed off edges for realism */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 1px 6px rgba(0, 0, 0, 0.2);
    /* 3D perspective for Balatro-style card tilt */
    perspective: 1200px;
    /* Soft fade on all edges — just takes the hard pixel edge off */
    mask-image:
        linear-gradient(to bottom, transparent 0%, black 0.8%, black 99%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 1%, black 99%, transparent 100%);
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black 0.8%, black 99%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 1%, black 99%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: destination-in;
}

/* Environment lighting — vignette + warm ambient glow reacting to site palette */
/* This layer is now on TOP (z-index: 10) to affect the cards and pins too */
.board::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
    background:
        /* Top shadow: Softened to reveal more detail in the top row */
        linear-gradient(to bottom, rgba(3, 4, 6, 0.6) 0%, rgba(3, 4, 6, 0.3) 10%, transparent 35%),
        /* Warm ambient glow: intensified at the bottom center */
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(226, 168, 107, 0.15) 0%, transparent 80%),
        /* Center Spotlight: subtly brightens the core of the board */
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
        /* Edge vignette: Deepened for 3D depth */
        radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

/* Rope thread container — z-2: above props (z-1), below cards+manila (z-5) */
.board-threads {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Each thread div shows the Slimmed FULL rope sprite with depth-giving shadow */
.thread-line {
    position: absolute;
    height: 1.2%;
    /* Proportional thickness relative to board height (~10px / 860px) */
    background: url('sprites/thread.webp') no-repeat;
    background-size: 100% 100%;
    /* Keep full fiber edges visible */
    transform-origin: 0 50%;
    pointer-events: none;
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.45));
    /* Depth shadow */
    z-index: 2;
}

/* LAYER 3: Evidence cards — High-fidelity Proportional Scaling */
.evidence-card {
    position: absolute;
    z-index: 20;
    /* Above the board vignette (z-10) but below magnifier (z-10000) */
    /* Purely proportional width to maintain sync with threads at all scales */
    width: 15.9%;
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.1s ease-out, filter 0.3s ease;
    /* Snappier for mouse tracking */
    transform-style: preserve-3d;
    cursor: zoom-in;
}

/* Hit-box expansion: Ensures hover doesn't drop at the very edge of the card or its shadow */
.evidence-card::after {
    content: '';
    position: absolute;
    inset: -20px;
    z-index: -1;
}

.evidence-card:hover {
    z-index: 100 !important;
    filter: brightness(1.1);
    /* Dynamic transform now handled by JS for Balatro effect */
}

.card-inner {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

/* Hover transform now handled by parent .evidence-card */

/* Specific Platform Textures */
.card-tl .card-inner {
    background-image: url('sprites/whatsapp.webp');
}

.card-tc .card-inner {
    background-image: url('sprites/shopify.webp');
}

.card-tr .card-inner {
    background-image: url('sprites/google_calendar.webp');
}

.card-bl .card-inner {
    background-image: url('sprites/razorpay.webp');
}

.card-bc .card-inner {
    background-image: url('sprites/notion.webp');
}

.card-br .card-inner {
    background-image: url('sprites/zapier.webp');
}

/* Case File Aesthetics — Stamp & Props */
.card-stamp {
    position: absolute;
    top: 65%;
    /* Positioned lower on the folder */
    left: 15%;
    transform: rotate(-15deg);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #c0392b;
    border: 2px solid #c0392b;
    padding: 3px 10px;
    border-radius: 4px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
    text-transform: uppercase;
}

/* Washi / Masking Tape Prop */
.card-tape {
    position: absolute;
    width: 35%;
    height: 12%;
    background: rgba(245, 245, 220, 0.4);
    /* Beige/Cream masking tape */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    z-index: 12;
    pointer-events: none;
}

.tape-tr {
    top: -2%;
    right: -5%;
    transform: rotate(35deg);
}

.tape-tl {
    top: -2%;
    left: -5%;
    transform: rotate(-35deg);
}

/* Sticky Notes */
.sticky-note {
    position: absolute;
    width: 12%;
    aspect-ratio: 1/1;
    padding: 1%;
    background: #f1c40f;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.7rem;
    color: #2c3e50;
    z-index: 4;
    transition: transform 0.3s ease;
}

.sticky-note:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 50;
}

.note-blue {
    background: #3498db;
    color: white;
}

.note-green {
    background: #2ecc71;
}

/* Newspaper Clipping Prop */
.newspaper-clip {
    position: absolute;
    width: 20%;
    /* Proportional size */
    aspect-ratio: 16 / 9;
    /* Typical clipping ratio, adjust if needed */
    background: url('sprites/newspaper.webp') center/cover no-repeat;
    filter: drop-shadow(3px 5px 6px rgba(0, 0, 0, 0.4));
    z-index: 3;
    transform: rotate(4deg);
    transition: transform 0.3s ease;
}

.newspaper-clip:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 50;
}

.newspaper-clip .pin {
    width: 15%;
    /* Smaller pin for the clipping */
    top: -12%;
    left: 45%;
}



/* HIGH-FIDELITY PINS (using sprites/pin.webp) */
.pin {
    position: absolute;
    top: -4%;
    /* Perfectly balanced pin height */
    left: 50%;
    width: 20%;
    /* Refined for a more realistic proportion (~35px) */
    aspect-ratio: 1060 / 1344;
    background: url('sprites/pin.webp') no-repeat center center;
    background-size: contain;
    transform: translateX(-50%);
    /* Multi-layered shadow for realistic depth */
    filter:
        drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.3)) drop-shadow(3px 5px 4px rgba(0, 0, 0, 0.45));
    z-index: 10;
    pointer-events: none;
}

/* Peripheral pins matching mobile query */

/* Center card — Manila Folder Hub */
.center-card {
    left: 50%;
    top: 50%;
    width: 23.6%;
    /* Purely proportional width */
    transform: translate(-50%, -50%) rotate(-1deg);
    z-index: 6;
}

.center-card .card-inner {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-image: url('sprites/mudraforge.webp');
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.center-card:hover {
    z-index: 100 !important;
    /* JS-driven Balatro tilt */
}

/* Card positions — scattered inside the cork area (clear of wooden frame) */
.card-tl {
    left: 8%;
    top: 8%;
}

.card-tc {
    left: 50%;
    top: 8%;
    transform: translateX(-50%) rotate(var(--tilt, 0deg));
}

.card-tr {
    right: 8%;
    top: 8%;
}

.card-bl {
    left: 8%;
    bottom: 8%;
}

.card-bc {
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%) rotate(var(--tilt, 0deg));
}

.card-br {
    right: 8%;
    bottom: 8%;
}

/* LAYER 4: Magnifying glass — follows hover */
/* 🎨 SPRITE SLOT: Replace with sprites/magnifier.png */
/* Hide standard cursor on board and cards */
.board,
.board * {
    cursor: none !important;
}

/* HIGH-FIDELITY CUSTOM CURSOR (Magnifying Glass Sprite) */
.board-cursor {
    position: absolute;
    /* Responsive size scaling (approx 21.8% of board width) */
    width: 21.8%;
    aspect-ratio: 240 / 202;
    pointer-events: none;
    z-index: 10000;
    /* Above EVERYTHING including sticky vignettes */
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    transform: translate(-31.25%, -37.6%);
    /* Align the physical lens center with the cursor position */
    margin-left: 0;
    margin-top: 0;

    background: url('sprites/magnifier.webp') no-repeat center center;
    background-size: contain;
    will-change: left, top, opacity;
}

/* Lens Area Clipping & Shine — Scaled with cursor size (approx 42% of width) */
.lens-shine {
    position: absolute;
    left: 31.25%;
    /* 75/240 */
    top: 37.6%;
    /* 76/202 */
    width: 45.8%;
    /* 110/240 approx lens diameter */
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Base Glass Reflection */
.lens-shine::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Layered Glass Effect */
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(135, 206, 235, 0.08) 0%, transparent 100%);

    box-shadow:
        inset 0 0 15px rgba(0, 0, 0, 0.2),
        inset 5px 10px 20px rgba(255, 255, 255, 0.1);
}

/* Traveling Glint Animation */
.lens-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%);
    transform: rotate(-45deg) translateY(-100%);
    animation: lens-sweep 6s ease-in-out infinite;
}

@keyframes lens-sweep {
    0% {
        transform: rotate(-45deg) translateY(-100%);
    }

    20%,
    80% {
        opacity: 1;
    }

    100% {
        transform: rotate(-45deg) translateY(100%);
        opacity: 0;
    }
}

.board-cursor.visible {
    opacity: 1;
}



/* ===== DEMO BOTS ===== */
#bots {
    padding: 100px 0;
}

.demo-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 48px;
}

.demo-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.demo-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.demo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
}

.demo-text h3 {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.demo-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 7px;
    transition: background 0.15s, gap 0.2s, color 0.15s, border-color 0.15s;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--border-hover);
    gap: 8px;
}

.demo-embed {
    display: none;
    grid-column: 1 / -1;
    margin-top: 8px;
    animation: fadeIn 0.25s ease;
}

.demo-embed.open {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-placeholder {
    padding: 28px 16px;
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    text-align: center;
    color: var(--text-muted);
}

.demo-placeholder svg {
    margin: 0 auto 10px;
    opacity: 0.4;
}

.demo-placeholder p {
    font-size: 0.75rem;
}

/* ===== FAQ ===== */
#faq {
    padding: 100px 0 60px;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.faq-left h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.faq-cta-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.faq-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-item summary {
    padding: 24px 0;
    font-size: 1rem;
    font-weight: 550;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    transition: color 0.15s;
}

.faq-item summary:hover {
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CONTACT ===== */
#contact {
    padding: 100px 0;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    bottom: -300px;
    left: -150px;
    background: radial-gradient(circle, rgba(226, 168, 107, 0.10) 0%, transparent 65%);
    pointer-events: none;
}

#contact>* {
    position: relative;
    z-index: 1;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.contact-left h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.7px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.contact-left>p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.detail-row svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.field {
    margin-bottom: 14px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field label {
    display: block;
    font-size: 0.76rem;
    font-weight: 550;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent-border);
}

.field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23565b67' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.field textarea {
    resize: vertical;
    min-height: 68px;
}

/* ===== FOOTER ===== */
footer {
    padding: 80px 24px 28px;
    border-top: 1px solid var(--border);
    background: rgba(3, 4, 6, 0.6);
    position: relative;
    z-index: 1;
}

.footer-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand-col {
    padding-right: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.social-icon:hover {
    color: var(--accent-warm);
    border-color: var(--accent-warm);
    background: rgba(226, 168, 107, 0.08);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.25s ease;
    white-space: nowrap;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent-warm);
    transform: translateX(4px);
}

.footer-contact-item {
    margin-bottom: 16px;
}

.footer-contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-contact-item a,
.footer-contact-item span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--accent-warm);
}

.footer-sep {
    opacity: 0.3;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0, 0, 1);
    pointer-events: none;
}

#cookie-banner.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cookie-accept {
    background: var(--accent-warm);
    color: var(--bg);
    border: none;
}

.btn-cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ===== NATIVE AI WIDGET ===== */
#ai-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.widget-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-warm);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    box-shadow: 0 8px 24px rgba(226, 168, 107, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.widget-trigger:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 32px rgba(226, 168, 107, 0.4);
}

.widget-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    height: 520px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    pointer-events: none;
}

#ai-widget.open .widget-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.widget-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-header-info h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.widget-header-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.widget-header-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.widget-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.widget-status:hover {
    color: var(--accent-warm);
}

.lang-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.lang-btn.active {
    background: var(--accent-warm);
    color: var(--bg);
}

.lang-select {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.65rem;
    padding: 2px 6px;
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

.lang-select:hover {
    border-color: var(--accent-warm);
    color: var(--text);
}

.widget-header-actions {
    display: flex;
    gap: 4px;
}

.widget-action-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.widget-action-btn:hover {
    color: var(--accent-warm);
    background: rgba(226, 168, 107, 0.1);
    border-color: rgba(226, 168, 107, 0.2);
}

/* Maximized State */
#ai-widget.maximized .widget-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    bottom: 72px;
    right: 0;
    left: auto;
    max-width: 720px;
    max-height: 850px;
    border-radius: var(--radius-lg);
    transform-origin: bottom right;
}

@media (max-width: 480px) {
    #ai-widget.maximized .widget-panel {
        width: 100vw;
        height: calc(100vh - 72px);
        bottom: 72px;
        right: -16px;
        border-radius: 16px 16px 0 0;
        max-width: none;
        max-height: none;
    }
}

.widget-chat {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-msg {
    max-width: 85%;
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    border-radius: 14px;
    position: relative;
}

/* AI Label — visually distinct footer */
.ai-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(226, 168, 107, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
}

/* Integrated Action Ribbon */
.msg-actions {
    position: absolute;
    bottom: 0;
    right: 12px;
    transform: translateY(50%);
    display: flex;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.widget-msg:hover .msg-actions {
    opacity: 1;
    transform: translateY(70%);
    /* Sits slightly below the bubble */
    pointer-events: auto;
}

.msg-action-btn {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    font-family: var(--font-body);
    white-space: nowrap;
}

.msg-action-btn:last-child {
    border-right: none;
}

.msg-action-btn:hover {
    color: var(--accent-warm);
    background: rgba(226, 168, 107, 0.1);
}

.msg-action-btn svg {
    width: 12px;
    height: 12px;
}

.msg-action-btn.copied {
    color: #4ade80;
}

/* Custom Scrollbar for Chat Body */
.widget-chat::-webkit-scrollbar {
    width: 4px;
}

.widget-chat::-webkit-scrollbar-track {
    background: transparent;
}

.widget-chat::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.widget-chat::-webkit-scrollbar-thumb:hover {
    background: var(--accent-warm);
}

.msg-bot {
    align-self: flex-start;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

/* Markdown rendering inside bot messages */
.msg-bot p {
    margin: 0 0 8px 0;
}

.msg-bot p:last-child {
    margin-bottom: 0;
}

/* Terminal / Gateway Monitor */
.widget-terminal {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 6, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 15px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11px;
}

.widget-terminal.active {
    display: flex;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
}

.terminal-close {
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}

.terminal-content {
    flex: 1;
    overflow-y: auto;
    color: #4ade80;
    /* Neo Green */
}

.terminal-entry {
    margin-bottom: 15px;
    line-height: 1.4;
}

.t-time {
    color: #666;
}

.t-id {
    color: #e2a86b;
    margin-left: 5px;
}

.t-shield {
    color: #34b7f1;
    float: right;
}

.t-model {
    color: #fff;
    font-weight: bold;
}

.t-lat {
    color: #4ade80;
    margin-left: 10px;
}

.t-db {
    color: #8696a0;
    font-size: 10px;
}

.t-sep {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    margin-top: 5px;
}

.msg-bot strong {
    color: var(--accent-warm);
    font-weight: 600;
}

.msg-bot em {
    color: var(--accent-cool);
    font-style: italic;
}

.msg-bot ul,
.msg-bot ol {
    margin: 6px 0;
    padding-left: 20px;
}

.msg-bot li {
    margin-bottom: 4px;
}

.msg-bot h1,
.msg-bot h2,
.msg-bot h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-warm);
    margin: 10px 0 6px;
}

.msg-bot code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.msg-bot pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    margin: 8px 0;
}

.msg-bot pre code {
    background: none;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.6;
}

.msg-bot blockquote {
    border-left: 3px solid var(--accent-warm);
    margin: 8px 0;
    padding: 4px 12px;
    color: var(--text-muted);
}

.msg-bot table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
    font-size: 0.78rem;
}

.msg-bot th,
.msg-bot td {
    border: 1px solid var(--border);
    padding: 4px 8px;
    text-align: left;
}

.msg-bot th {
    background: rgba(226, 168, 107, 0.1);
    color: var(--accent-warm);
    font-weight: 600;
}

.msg-bot a {
    color: var(--accent-warm);
    text-decoration: underline;
}

/* Mermaid diagrams in chat */
.widget-mermaid {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.widget-mermaid svg {
    max-width: 100%;
    height: auto;
}

.msg-bot.typing {
    padding: 8px 16px;
    font-weight: bold;
    letter-spacing: 2px;
    animation: typingPulse 1.5s infinite;
}

@keyframes typingPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.msg-user {
    align-self: flex-end;
    background: var(--accent-warm);
    color: var(--bg);
    border-bottom-right-radius: 4px;
}

.widget-input {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.widget-input input {
    flex: 1;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}

.btn-send {
    background: var(--accent-warm);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
}

/* Mock bubble SVG alignment */
.mock-bubble svg {
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
}

/* Stagger */
.reveal-stagger>.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger>.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger>.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===== RESPONSIVE ===== */

/* --- Tablet landscape & small desktop --- */
/* --- Tablet landscape & small desktop (Intermediate) --- */
@media (max-width: 1100px) {
    :root {
        --section-gap: 80px;
    }

    /* v107.0: Keep Side-by-Side but scale down text */
    /* v113.0: AGGRESSIVE Overlap Mode */
    .hero-wrap {
        /* Still 2 columns! */
        gap: 0;
        /* Remove gap to allow overlap */
        padding: 0 24px;
        align-items: center;
    }

    .hero-left {
        z-index: 50;
        /* Top Layer */
        position: relative;
        margin-right: -50px;
        /* Pull text over the phone */
        pointer-events: auto;
    }

    .hero-left h1 {
        font-size: 3.2rem;
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        /* Legibility over phone */
    }

    .hero-sub {
        font-size: 1.25rem;
        text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    }

    .hero-desc {
        font-size: 0.95rem;
        max-width: 90%;
        text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    }

    /* Shrink the phone a bit to fit */
    .hero-right {
        max-width: 380px;
        z-index: 10;
        /* Base Layer */
        opacity: 0.8;
        /* Slight fade to make text pop more? Optional */
        transform: translateX(20px);
        /* Push slightly right */
    }
}

/* --- Mobile Stack (The Real Breakpoint) --- */
@media (max-width: 768px) {
    .hero-wrap {
        grid-template-columns: 1fr;
        /* NOW we stack */
        gap: 40px;
        text-align: center;
        /* Center align for mobile feel */
    }

    /* Center align the text content too */
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ensure trust badges center align */
    .hero-trust-row {
        justify-content: center;
    }

    .hero-left h1 {
        font-size: 2.8rem;
    }

    .hero-right {
        max-width: 100%;
        /* v109.0: Fix Mobile Canvas Clipping */
        display: flex;
        justify-content: center;
        /* Ensure container has height for the 3D model */
        min-height: 500px;
    }

    #device-showcase {
        margin: 0 auto;
        /* Allow canvas to breathe */
        height: 600px;
        min-height: unset;
        /* Override the desktop 850px */
        width: 100%;
        overflow: visible;
    }

    .device-showcase canvas {
        /* Ensure the 3D model scales down without cropping */
        max-width: 100%;
        object-fit: contain;
    }

    /* Re-adjust other sections to stack here too if needed,
       but keeping them at 900px (below) is fine for non-hero elements if desired.
       However, usually better to align breakpoints.
       For this specific task, we focus on Hero unstacking.
    */
}

/* Original 900px block reduced to handle non-hero elements or legacy */
@media (max-width: 900px) {
    /* Removed hero-wrap stacking rule from here */

    .section-title {
        font-size: 2.4rem;
        margin-bottom: 36px;
    }

    .why-grid,
    .contact-layout,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-cards {
        grid-template-columns: 1fr 1fr;
    }

    .steps-row {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .step-line {
        display: none;
    }

    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Pricing: 2 columns at tablet */
    .price-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Integration board section scaling */
    .integ-subtitle {
        font-size: 0.92rem;
        padding: 0 16px;
    }

    .board {
        margin: 40px 0 0 0;
    }

    .platforms-wrap {
        flex-wrap: wrap;
        gap: 16px;
    }

    .platform-sep {
        display: none;
    }

    /* Nav hamburger */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 17, 23, 0.97);
        backdrop-filter: blur(14px);
        padding: 18px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* FAQ layout on tablet */
    .faq-left h2 {
        font-size: 2rem;
    }

    /* Contact form */
    .contact-left h2 {
        font-size: 1.7rem;
    }

    /* Widget panel: prevent right overflow */
    .widget-panel {
        width: 320px;
        right: -8px;
    }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {

    /* Evidence board mobile optimization */
    #integrations {
        overflow-x: hidden;
    }

    #integrations .section-wrap {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-x: hidden;
    }

    /* Maintain text padding while the board stretches edge-to-edge */
    #integrations .section-title,
    #integrations .section-label,
    #integrations .integ-subtitle {
        padding-left: 24px;
        padding-right: 24px;
        text-align: center;
        width: 100%;
    }

    .board {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0;
        margin: 30px 0 0 0 !important;
        min-height: 150px;
        position: relative;
        left: 0 !important;
        right: 0 !important;
    }

    /* Proportional scaling optimized for mobile breathing room */
    .evidence-card {
        width: 15.9%;
    }

    .center-card {
        width: 23.6% !important;
    }

    .pin {
        width: 20%;
        top: -4%;
    }

    /* Keep the cursor visible even on smaller zoom/viewports */
    .board-cursor {
        display: block;
    }

    .integ-subtitle {
        padding: 0 24px;
        margin-bottom: 20px;
    }

    /* Training section image */
    .train-visual {
        max-height: 280px;
    }

    /* Pricing: stay 2-col but tighter */
    .price-grid {
        gap: 10px;
    }

    .price-card {
        padding: 20px 16px;
    }

    /* Testimonials single column */
    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer: 2 columns with brand spanning full */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    :root {
        --section-gap: 50px;
    }

    #hero {
        padding: 100px 16px 20px;
        min-height: auto;
        display: block;
        overflow: visible;
    }

    .hero-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        z-index: 20;
    }

    .hero-left {
        margin-bottom: 20px;
    }

    .hero-left h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .hero-sub {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .hero-desc {
        font-size: 0.92rem;
        margin-bottom: 24px;
        opacity: 0.8;
    }

    .hero-actions {
        justify-content: center;
        margin-bottom: 0;
    }

    .hero-right {
        display: block;
        width: 100%;
        margin-top: 30px;
    }

    .device-showcase {
        width: 100%;
        height: auto;
        min-height: 500px;
        margin: 20px auto 0;
        opacity: 1;
        overflow: visible;
    }

    .why-cards {
        grid-template-columns: 1fr;
    }

    /* Pricing: single column on mobile */
    .price-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    /* Integration section padding */
    #integrations .section-wrap {
        padding: 60px 0;
        /* Match full-width intent */
    }

    .integ-subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Training section */
    .train-content {
        padding: 28px 18px;
    }

    .train-statement {
        font-size: 0.95rem;
    }

    .train-visual {
        max-height: 220px;
    }

    /* Contact form */
    .field-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 18px;
    }

    .contact-left h2 {
        font-size: 1.5rem;
    }

    /* FAQ */
    .faq-left h2 {
        font-size: 1.7rem;
    }

    .faq-item summary {
        font-size: 0.9rem;
        padding: 18px 0;
    }

    /* Footer: single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    footer {
        padding: 48px 16px 24px;
    }

    /* Demo cards */
    .demo-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    .demo-icon {
        display: none;
    }

    .btn-demo {
        width: 100%;
        justify-content: center;
    }

    /* Sections general */
    #why,
    #work,
    #proof,
    #pricing,
    #faq,
    #contact {
        padding: 60px 0;
    }

    #platforms {
        padding: 18px 16px;
    }

    .platforms-wrap {
        gap: 10px;
    }

    .platform-item {
        font-size: 0.72rem;
        gap: 5px;
    }

    /* Widget: full width on mobile */
    .widget-panel {
        width: calc(100vw - 32px);
        right: -8px;
        height: 460px;
    }

    .widget-trigger {
        width: 48px;
        height: 48px;
    }

    /* Cookie banner */
    #cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}