/* ═══════════════════════════════════════════════════════════════
   IA-COMMERCE · AUTOMAN OVERRIDE
   Aesthetic: Tron-grid, neon wireframe, 80s computer-graphics 3D
   Loads AFTER styles.css and rewrites the visual layer wholesale.
   Layout, grid math and spacing from styles.css remain intact.
   ═══════════════════════════════════════════════════════════════ */

/* ─── TOKEN REWRITE ───────────────────────────────────────── */
:root {
    /* Canvas — pure black void */
    --bg:           #000000;
    --bg-alt:       #04060A;
    --bg-dark:      #000000;
    --bg-panel:     rgba(0, 8, 14, 0.72);

    /* Ink — luminous text */
    --ink:          #E6FBFF;
    --ink-soft:     #BCE8F0;
    --ink-muted:    #5A8B96;

    /* Lines — neon scaffolding */
    --line:         rgba(0, 240, 255, 0.18);
    --line-strong:  rgba(0, 240, 255, 0.55);

    /* Neon palette */
    --neon:         #00F0FF;
    --neon-soft:    #38FFFC;
    --neon-deep:    #00B7C9;
    --magenta:      #FF2D7A;
    --magenta-soft: #FF6FA3;
    --amber:        #FFB347;
    --amber-hot:    #FF6A00;

    /* Semantic remap */
    --burgundy:     var(--neon);
    --burgundy-dk:  var(--neon-deep);
    --terracotta:   var(--amber-hot);
    --terracotta-lt:var(--amber);
    --forest:       var(--neon);
    --mustard:      var(--magenta);
    --primary:      var(--neon);
    --accent:       var(--amber-hot);

    /* Typography swap */
    --f-display:    'Orbitron', 'Audiowide', system-ui, sans-serif;
    --f-body:       'Rajdhani', 'Manrope', system-ui, sans-serif;
    --f-mono:       'JetBrains Mono', ui-monospace, monospace;

    /* Glow systems */
    --glow-soft:    0 0 12px rgba(0, 240, 255, 0.45);
    --glow:         0 0 24px rgba(0, 240, 255, 0.55), 0 0 4px rgba(0, 240, 255, 0.9);
    --glow-strong:  0 0 32px rgba(0, 240, 255, 0.75), 0 0 8px rgba(0, 240, 255, 1);
    --glow-amber:   0 0 22px rgba(255, 106, 0, 0.65), 0 0 4px rgba(255, 179, 71, 0.9);
    --glow-magenta: 0 0 22px rgba(255, 45, 122, 0.55);
}

/* ─── BODY: void + Tron grid floor + scanlines ──────────── */
html, body {
    background: #000;
    color: var(--ink);
    overflow-x: hidden;
}

body {
    font-family: var(--f-body);
    font-weight: 400;
    letter-spacing: 0.01em;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.08), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 45, 122, 0.06), transparent 60%),
        #000;
}

/* Perspective grid floor — fixed, behind everything */
body::before {
    content: "";
    position: fixed;
    left: 50%;
    bottom: -10vh;
    width: 200vw;
    height: 90vh;
    transform: translateX(-50%) perspective(700px) rotateX(62deg);
    transform-origin: 50% 100%;
    background-image:
        linear-gradient(to right, rgba(0, 240, 255, 0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.35) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center bottom;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 100%);
    z-index: -2;
    pointer-events: none;
    animation: gridScroll 6s linear infinite;
}

@keyframes gridScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

/* Scanline overlay — replaces the warm grain */
.grain {
    background-image: none !important;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 240, 255, 0.04) 0px,
            rgba(0, 240, 255, 0.04) 1px,
            transparent 1px,
            transparent 3px
        );
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

::selection { background: var(--neon); color: #000; text-shadow: none; }

/* ─── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-shadow: var(--glow-soft);
}

.section-title {
    font-family: var(--f-display) !important;
    font-style: normal !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.5), 0 0 2px rgba(0, 240, 255, 0.9);
}

.section-title em {
    color: var(--amber-hot);
    font-style: normal;
    text-shadow: var(--glow-amber);
}

.section-num {
    font-family: var(--f-mono);
    color: var(--neon);
    text-shadow: var(--glow-soft);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    border: 1px solid var(--line-strong);
    padding: 0.35rem 0.7rem;
    display: inline-block;
    background: rgba(0, 240, 255, 0.04);
    box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.08);
}

.section-lede {
    color: var(--ink-soft);
    font-weight: 400;
    line-height: 1.6;
}

p { color: var(--ink-soft); }

em { font-style: normal; color: var(--amber-hot); text-shadow: var(--glow-amber); }

/* ─── TOP BAR ─────────────────────────────────────────────── */
.topbar {
    background: rgba(0, 4, 8, 0.78) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line-strong) !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.12), inset 0 -1px 0 rgba(0, 240, 255, 0.4);
}

.topbar__brand {
    color: var(--neon);
    text-shadow: var(--glow-soft);
}

.topbar__brand .mark {
    color: var(--amber-hot);
    text-shadow: var(--glow-amber);
    animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}

.topbar__nav a {
    color: var(--ink-soft);
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.topbar__nav a:hover {
    color: var(--neon);
    text-shadow: var(--glow-soft);
}

.topbar__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--neon);
    box-shadow: var(--glow);
    transition: width 0.3s var(--ease);
}

.topbar__nav a:hover::after { width: 100%; }

.dot-live {
    background: var(--amber-hot) !important;
    box-shadow: 0 0 10px var(--amber-hot), 0 0 2px #fff !important;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: transparent;
}

/* Three.js canvas mount — fixed full-screen background, parallax with scroll */
#hero-canvas-3d {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}

/* Make body radial gradients lighter so they don't wash out the 3D scene */
body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.04), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 45, 122, 0.03), transparent 60%),
        #000 !important;
}

/* Push all real content above the canvas */
.topbar, .hero, section, footer {
    position: relative;
    z-index: 2;
}

.hero__grid, .hero__meta, .hero__marquee { position: relative; z-index: 2; }

.hero__meta { color: var(--ink-muted); }

.eyebrow, .eyebrow-right {
    color: var(--neon);
    font-family: var(--f-mono);
    text-shadow: var(--glow-soft);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__headline h1 {
    font-family: var(--f-display) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 0.95;
    color: var(--ink);
    text-shadow:
        0 0 24px rgba(0, 240, 255, 0.7),
        0 0 4px rgba(0, 240, 255, 1),
        0 0 80px rgba(0, 240, 255, 0.25);
}

.hero__headline h1 em {
    color: var(--amber-hot) !important;
    font-style: normal !important;
    text-shadow:
        0 0 22px rgba(255, 106, 0, 0.85),
        0 0 4px rgba(255, 179, 71, 1);
    position: relative;
    display: inline-block;
}

.hero__headline h1 em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.05em;
    height: 2px;
    background: var(--amber-hot);
    box-shadow: var(--glow-amber);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 1.4s 0.7s var(--ease-out) forwards;
}

@keyframes underline { to { transform: scaleX(1); } }

.hero__lede { color: var(--ink-soft); }

.hero__footnote {
    color: var(--ink-muted);
    font-family: var(--f-mono);
    font-size: 0.78rem;
    border-left: 2px solid var(--neon);
    box-shadow: -3px 0 12px -3px var(--neon);
    padding-left: 0.8rem;
}

.hero__footnote .asterisk { color: var(--amber-hot); }

/* WhatsApp demo card — terminal panel */
.hero__demo {
    background: var(--bg-panel) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 4px !important;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.08),
        0 0 40px rgba(0, 240, 255, 0.18),
        inset 0 0 60px rgba(0, 240, 255, 0.04);
    backdrop-filter: blur(8px);
    overflow: hidden;
    position: relative;
}

.hero__demo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 240, 255, 0.025) 0px,
            rgba(0, 240, 255, 0.025) 1px,
            transparent 1px,
            transparent 3px
        );
    pointer-events: none;
    z-index: 1;
}

.demo__header {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.08), transparent) !important;
    border-bottom: 1px solid var(--line-strong) !important;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.demo__avatar {
    background: linear-gradient(135deg, var(--neon), var(--neon-deep)) !important;
    color: #000 !important;
    font-family: var(--f-display);
    font-weight: 800;
    box-shadow: var(--glow);
    border: 1px solid var(--neon-soft);
}

.demo__name {
    color: var(--ink);
    font-family: var(--f-display);
    letter-spacing: 0.04em;
    text-shadow: var(--glow-soft);
}

.demo__status { color: var(--ink-muted); font-family: var(--f-mono); }

.pulse {
    background: var(--amber-hot) !important;
    box-shadow: 0 0 10px var(--amber-hot) !important;
}

.demo__badge {
    background: var(--amber-hot) !important;
    color: #000 !important;
    font-family: var(--f-mono);
    letter-spacing: 0.14em;
    text-shadow: none;
    box-shadow: var(--glow-amber);
}

.demo__body { position: relative; z-index: 2; }

.bubble {
    font-family: var(--f-body);
    border-radius: 2px !important;
    backdrop-filter: blur(4px);
}

.bubble--in {
    background: rgba(0, 240, 255, 0.06) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--ink) !important;
    box-shadow: inset 0 0 16px rgba(0, 240, 255, 0.06);
}

.bubble--out {
    background: rgba(255, 106, 0, 0.08) !important;
    border: 1px solid rgba(255, 106, 0, 0.4) !important;
    color: var(--ink) !important;
    box-shadow:
        inset 0 0 16px rgba(255, 106, 0, 0.06),
        0 0 14px rgba(255, 106, 0, 0.18);
}

.bubble strong {
    color: var(--amber-hot);
    text-shadow: var(--glow-amber);
}

.bubble .time { color: var(--ink-muted); font-family: var(--f-mono); }

.typing span { background: var(--neon) !important; box-shadow: 0 0 8px var(--neon); }

.demo__footer {
    background: rgba(0, 240, 255, 0.04) !important;
    border-top: 1px solid var(--line-strong) !important;
    color: var(--ink-muted);
    font-family: var(--f-mono);
    position: relative;
    z-index: 2;
}

.demo__annotation {
    color: var(--neon);
    font-family: var(--f-mono);
    text-shadow: var(--glow-soft);
}

.annotation__line { background: var(--neon); box-shadow: var(--glow-soft); }

/* Hero marquee — terminal ticker */
.hero__marquee {
    background: rgba(0, 4, 8, 0.55);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.12);
}

.marquee__track {
    color: var(--neon);
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-shadow: var(--glow-soft);
}

.marquee__track span:nth-child(even) { color: var(--amber-hot); text-shadow: var(--glow-amber); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-solid {
    background: var(--amber-hot) !important;
    color: #000 !important;
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--amber-hot);
    box-shadow:
        0 0 0 1px rgba(255, 106, 0, 0.4),
        0 0 28px rgba(255, 106, 0, 0.55),
        inset 0 0 16px rgba(255, 255, 255, 0.18);
    border-radius: 2px !important;
    text-shadow: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-solid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
}

.btn-solid:hover::before { transform: translateX(100%); }

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 106, 0, 0.55),
        0 0 40px rgba(255, 106, 0, 0.8),
        inset 0 0 16px rgba(255, 255, 255, 0.25);
}

.btn-solid .arrow { color: #000; }

.btn-ghost, .btn-link {
    color: var(--neon) !important;
    font-family: var(--f-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: rgba(0, 240, 255, 0.03);
    box-shadow: var(--glow-soft);
    transition: all 0.2s ease;
}

.btn-ghost:hover, .btn-link:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon);
    box-shadow: var(--glow);
    color: var(--ink);
}

.wa-icon { color: var(--amber-hot); text-shadow: var(--glow-amber); }

/* ─── GENERIC SECTIONS ───────────────────────────────────── */
.problem, .solution, .modules, .usecases, .clients, .metrics, .services, .value, .pricing, .faq, .contact {
    position: relative;
    background: transparent;
}

/* divider line at top of every section */
.problem::before,
.modules::before,
.usecases::before,
.clients::before,
.metrics::before,
.services::before,
.value::before,
.pricing::before,
.faq::before,
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    box-shadow: 0 0 16px var(--neon);
    opacity: 0.4;
}

/* ─── CARDS — wireframe panels ───────────────────────────── */
.problem__card,
.module-card,
.usecase-card,
.metric,
.client-card,
.value__card,
.service__card,
.faq__item {
    background: var(--bg-panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px !important;
    color: var(--ink) !important;
    box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem__card::before,
.module-card::before,
.usecase-card::before,
.value__card::before,
.service__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-top: 1px solid var(--neon);
    border-left: 1px solid var(--neon);
    box-shadow: -1px -1px 8px rgba(0, 240, 255, 0.5);
    pointer-events: none;
}

.problem__card::after,
.module-card::after,
.usecase-card::after,
.value__card::after,
.service__card::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 14px; height: 14px;
    border-bottom: 1px solid var(--neon);
    border-right: 1px solid var(--neon);
    box-shadow: 1px 1px 8px rgba(0, 240, 255, 0.5);
    pointer-events: none;
}

.problem__card:hover,
.module-card:hover,
.usecase-card:hover,
.value__card:hover,
.service__card:hover {
    border-color: var(--neon) !important;
    box-shadow:
        inset 0 0 40px rgba(0, 240, 255, 0.06),
        0 0 28px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.problem__num, .module-card__num {
    color: var(--neon);
    text-shadow: var(--glow-soft);
    font-family: var(--f-mono);
}

.problem__card--featured {
    border-color: var(--amber-hot) !important;
    box-shadow:
        inset 0 0 40px rgba(255, 106, 0, 0.06),
        0 0 30px rgba(255, 106, 0, 0.3);
}

.problem__card--featured::before,
.problem__card--featured::after {
    border-color: var(--amber-hot);
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
}

.problem__tag, .module__tag {
    background: rgba(0, 240, 255, 0.06) !important;
    color: var(--neon) !important;
    font-family: var(--f-mono);
    text-shadow: var(--glow-soft);
    border: 1px solid var(--line-strong);
    border-radius: 2px !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}

.problem__card--featured .problem__tag {
    background: rgba(255, 106, 0, 0.1) !important;
    color: var(--amber-hot) !important;
    border-color: rgba(255, 106, 0, 0.45);
    text-shadow: var(--glow-amber);
}

.problem__card h3,
.module-card h3,
.usecase-card h3,
.value__card h3,
.service__card h3 { color: var(--ink); }

/* ─── SOLUTION / CYCLE ──────────────────────────────────── */
.cycle, .cycle__node, .cycle__core {
    color: var(--ink);
}

.cycle__node {
    background: var(--bg-panel) !important;
    border: 1px solid var(--line-strong) !important;
    box-shadow: var(--glow-soft);
    color: var(--ink) !important;
}

.cycle__core {
    background: radial-gradient(circle, rgba(255, 106, 0, 0.25), rgba(0, 240, 255, 0.05) 60%, transparent) !important;
    border: 1px solid var(--amber-hot) !important;
    color: var(--amber-hot) !important;
    box-shadow: var(--glow-amber);
    text-shadow: var(--glow-amber);
}

.cycle svg line, .cycle svg path { stroke: var(--neon) !important; opacity: 0.55; }

/* ─── METRICS ────────────────────────────────────────────── */
.metric__value, .metric-value, .metric strong {
    font-family: var(--f-display);
    color: var(--neon) !important;
    text-shadow: var(--glow-strong);
    letter-spacing: 0.02em;
}

.metric__label, .metric small { color: var(--ink-muted); font-family: var(--f-mono); }

/* ─── CLIENTS / TESTIMONIAL ─────────────────────────────── */
.testimonial blockquote, .quote {
    color: var(--ink);
    font-family: var(--f-display);
    font-weight: 400;
    text-shadow: var(--glow-soft);
}

/* ─── PRICING ────────────────────────────────────────────── */
.toggle, .pricing__toggle {
    background: var(--bg-panel) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 2px !important;
    box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.08);
}

.toggle button, .pricing__toggle button {
    color: var(--ink-muted);
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    border-radius: 2px !important;
}

.toggle button.is-active,
.pricing__toggle button.is-active,
.toggle button[aria-pressed="true"] {
    background: var(--neon) !important;
    color: #000 !important;
    box-shadow: var(--glow);
}

.plan {
    background: var(--bg-panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px !important;
    color: var(--ink) !important;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 0 50px rgba(0, 240, 255, 0.04);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.plan::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: linear-gradient(135deg, transparent 30%, rgba(0, 240, 255, 0.15) 50%, transparent 70%) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.plan:hover {
    border-color: var(--neon) !important;
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 50px rgba(0, 240, 255, 0.08),
        0 0 36px rgba(0, 240, 255, 0.3);
}

.plan--featured, .plan.is-featured {
    border-color: var(--amber-hot) !important;
    box-shadow:
        inset 0 0 50px rgba(255, 106, 0, 0.08),
        0 0 40px rgba(255, 106, 0, 0.35);
    transform: scale(1.02);
}

.plan__header h3, .plan h3 {
    color: var(--ink);
    font-family: var(--f-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: var(--glow-soft);
}

.plan__price, .plan .price, .price__amount {
    font-family: var(--f-display);
    color: var(--neon);
    text-shadow: var(--glow-strong);
}

.plan--featured .plan__price,
.plan.is-featured .plan__price,
.plan--featured .price__amount {
    color: var(--amber-hot);
    text-shadow: var(--glow-amber);
}

.plan ul li, .plan__features li {
    color: var(--ink-soft);
    border-bottom: 1px dashed var(--line);
}

.plan ul li::before, .plan__features li::before {
    color: var(--neon);
    text-shadow: var(--glow-soft);
    content: "▸";
}

.plan .btn, .plan a[href] {
    background: transparent;
    border: 1px solid var(--neon);
    color: var(--neon) !important;
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    box-shadow: var(--glow-soft);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.plan--featured .btn, .plan.is-featured .btn,
.plan--featured a[href] {
    background: var(--amber-hot) !important;
    color: #000 !important;
    border-color: var(--amber-hot);
    box-shadow: var(--glow-amber);
}

.plan .btn:hover {
    background: var(--neon);
    color: #000 !important;
    box-shadow: var(--glow-strong);
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq__item {
    border-radius: 2px !important;
}

.faq__question, .faq summary, .faq__item summary {
    color: var(--ink);
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: var(--glow-soft);
}

.faq__answer, .faq__item p { color: var(--ink-soft); }

.faq__item[open] {
    border-color: var(--neon) !important;
    box-shadow: var(--glow-soft);
}

/* ─── CONTACT — terminal form ────────────────────────────── */
.contact form, .contact__form {
    background: var(--bg-panel);
    border: 1px solid var(--line-strong);
    box-shadow: var(--glow-soft);
    border-radius: 2px;
    backdrop-filter: blur(8px);
    position: relative;
}

.contact form::before, .contact__form::before {
    content: "▸ READY";
    position: absolute;
    top: -10px; left: 16px;
    background: #000;
    color: var(--neon);
    font-family: var(--f-mono);
    font-size: 0.7rem;
    padding: 0 8px;
    letter-spacing: 0.16em;
    text-shadow: var(--glow-soft);
}

.contact label, .contact__label {
    color: var(--neon);
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    text-shadow: var(--glow-soft);
}

.contact input, .contact textarea, .contact select {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--ink) !important;
    font-family: var(--f-mono);
    border-radius: 2px !important;
    transition: all 0.2s ease;
}

.contact input:focus, .contact textarea:focus, .contact select:focus {
    outline: none;
    border-color: var(--neon) !important;
    box-shadow: var(--glow);
}

.contact input::placeholder, .contact textarea::placeholder { color: var(--ink-muted); }

.contact button[type="submit"], .contact__submit {
    background: var(--amber-hot) !important;
    color: #000 !important;
    font-family: var(--f-display);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid var(--amber-hot);
    box-shadow: var(--glow-amber);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.contact button[type="submit"]:hover {
    box-shadow: 0 0 38px var(--amber-hot);
    transform: translateY(-1px);
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
    background: rgba(0, 0, 0, 0.85) !important;
    border-top: 1px solid var(--line-strong) !important;
    color: var(--ink-muted) !important;
    font-family: var(--f-mono);
}

.footer a { color: var(--ink-soft); transition: color 0.2s; }
.footer a:hover { color: var(--neon); text-shadow: var(--glow-soft); }

/* ─── DECORATIVE BG SHAPES (svg/icons used as bullets) ──── */
.section-num, .topbar__nav a, .marquee__track,
.eyebrow, .eyebrow-right, .demo__name,
.metric__label { transition: text-shadow 0.3s ease; }

/* ─── PRINT GUARD (in case anyone exports to PDF) ────────── */
@media print {
    body::before, .grain { display: none; }
    body { background: #fff; color: #000; }
}

/* ─── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
    .topbar__brand .mark { animation: none; }
    .hero__headline h1 em::after { animation: none; transform: scaleX(1); }
}

/* ─── MOBILE TIDY ─────────────────────────────────────────── */
@media (max-width: 768px) {
    body::before {
        height: 40vh;
        background-size: 40px 40px;
    }
    .hero__headline h1 {
        text-shadow: 0 0 14px rgba(0, 240, 255, 0.6), 0 0 2px rgba(0, 240, 255, 0.9);
    }
}

/* ═══════════════════════════════════════════════════════════════
   PASS 2 — CONTRAST FIXES + AUTOMAN CURSOR
   ═══════════════════════════════════════════════════════════════ */

/* ─── SECTION TITLES: hard white, no fade ────────────────── */
.section-title,
.problem h2, .solution h2, .modules h2, .usecases h2,
.clients h2, .metrics h2, .services h2, .value h2,
.pricing h2, .faq h2, .contact h2 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF;
    text-shadow:
        0 0 28px rgba(0, 240, 255, 0.55),
        0 0 8px rgba(0, 240, 255, 0.85),
        0 0 2px rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
}

.section-title em,
h1 em, h2 em, h3 em {
    color: #FF8A2B !important;
    -webkit-text-fill-color: #FF8A2B;
    text-shadow:
        0 0 26px rgba(255, 106, 0, 0.85),
        0 0 4px rgba(255, 179, 71, 1) !important;
}

/* Problem / Module / Usecase numbers — bright cyan */
.problem__num, .module-card__num, .usecase-card__num,
.module__num, .usecase__num, .service__num,
.value__num, .module .num, .usecase .num {
    color: var(--neon) !important;
    -webkit-text-fill-color: var(--neon);
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.7), 0 0 2px rgba(0, 240, 255, 1) !important;
    font-family: var(--f-mono);
    opacity: 1 !important;
    font-weight: 600;
}

/* The numeric labels "01", "02" inside usecase cards live in styles.css
   with .usecase__num / .module__num / etc — they use --terracotta which
   we already remapped to amber-hot but they still look dim. Override them
   to bright amber with strong glow. */
.usecases .num, .usecase__num, .modules .num,
.module-card .num, [class*="__num"]:not(.section-num):not(.problem__num) {
    color: #FFB347 !important;
    text-shadow: 0 0 14px rgba(255, 106, 0, 0.7), 0 0 2px rgba(255, 179, 71, 1) !important;
}

/* Card titles — luminous white */
.problem__card h3, .module-card h3, .usecase-card h3,
.value__card h3, .service__card h3, .plan h3,
.module h3, .usecase h3, .value h3 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF;
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.5), 0 0 2px rgba(255, 255, 255, 0.9) !important;
}

/* Card body paragraphs — lifted from too-dim ink-soft */
.problem__card p, .module-card p, .usecase-card p,
.value__card p, .service__card p,
.module p, .usecase p {
    color: #C8E8F0 !important;
}

/* CRM / Cycle nodes inside solution */
.cycle__node h4, .cycle__node h3, .cycle__node strong {
    color: #FFFFFF !important;
    text-shadow: var(--glow-soft);
}

/* The arrow → bullet lists in cards (used in modules section) */
.module-card ul li, .usecase-card ul li,
.module ul li, .usecase ul li,
[class*="card"] ul li {
    color: #BCE8F0 !important;
    font-family: var(--f-mono);
    font-size: 0.86rem;
}

[class*="card"] ul li::marker,
[class*="card"] ul li::before {
    color: var(--neon) !important;
}

/* ─── TOGGLES (Productos/Servicios, plan toggle) ─────────── */
.tabs button, .toggle button, .pricing__toggle button,
[role="tab"], button[aria-pressed] {
    color: var(--ink-soft) !important;
}

.tabs button.is-active, .tabs button[aria-selected="true"],
.tabs .is-active, .tab-active,
button[aria-pressed="true"], button.is-active {
    background: var(--neon) !important;
    color: #000 !important;
    -webkit-text-fill-color: #000;
    text-shadow: none !important;
    box-shadow: var(--glow), inset 0 0 12px rgba(255, 255, 255, 0.3) !important;
    border-color: var(--neon) !important;
    font-weight: 700;
}

/* The Productos/Servicios pill toggle on usecases */
.usecases .pill, .usecases .filter, .usecases [class*="toggle"] button {
    color: var(--ink-muted) !important;
    border: 1px solid var(--line-strong) !important;
    background: rgba(0, 8, 14, 0.6) !important;
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.usecases .pill.is-active,
.usecases [class*="toggle"] button.is-active,
.usecases [aria-pressed="true"] {
    background: var(--neon) !important;
    color: #000 !important;
    border-color: var(--neon) !important;
    box-shadow: var(--glow);
    text-shadow: none !important;
}

/* ─── HERO CONTAINER: ensure copy isn't washed out by 3D ── */
.hero__headline {
    position: relative;
    z-index: 3;
}

.hero__lede {
    color: #D0EAF0 !important;
    text-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
}

/* ─── REVEAL ANIMATION: never lets opacity stick at 0 on long pages ── */
[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ─── FAQ ANSWER VISIBLE WHEN OPEN ───────────────────────── */
.faq__item[open] .faq__answer,
details[open] > *:not(summary) {
    color: #BCE8F0 !important;
}

/* ─── CONTACT SECTION TEXT ───────────────────────────────── */
.contact h2, .contact .section-title { color: #FFFFFF !important; }
.contact p, .contact label { color: #BCE8F0 !important; }

/* ═══════════════════════════════════════════════════════════════
   AUTOMAN CURSOR
   - Default: cyan crosshair with corner brackets (HUD targeting)
   - Pointer (links/buttons): amber wireframe diamond
   ═══════════════════════════════════════════════════════════════ */

/* Crosshair cursor — 32×32 SVG with cyan glow, hot-spot 16,16 */
html, body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><defs><filter id='g' x='-50%25' y='-50%25' width='200%25' height='200%25'><feGaussianBlur stdDeviation='1.2'/></filter></defs><g stroke='%2300F0FF' stroke-width='1.5' fill='none' filter='url(%23g)' opacity='0.9'><path d='M16 2 L16 10 M16 22 L16 30 M2 16 L10 16 M22 16 L30 16'/><circle cx='16' cy='16' r='2.5'/><path d='M4 4 L4 8 M4 4 L8 4 M28 4 L28 8 M28 4 L24 4 M4 28 L4 24 M4 28 L8 28 M28 28 L24 28 M28 28 L28 24'/></g><g stroke='%2300F0FF' stroke-width='1.5' fill='none'><path d='M16 2 L16 10 M16 22 L16 30 M2 16 L10 16 M22 16 L30 16'/><circle cx='16' cy='16' r='2.5'/><path d='M4 4 L4 8 M4 4 L8 4 M28 4 L28 8 M28 4 L24 4 M4 28 L4 24 M4 28 L8 28 M28 28 L24 28 M28 28 L28 24'/></g></svg>") 16 16, crosshair;
}

/* Pointer cursor (links, buttons) — amber wireframe diamond */
a, button, [role="button"], summary, .btn-solid, .btn-ghost, .btn-link,
input[type="submit"], input[type="button"], label[for], select {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><defs><filter id='g' x='-50%25' y='-50%25' width='200%25' height='200%25'><feGaussianBlur stdDeviation='1.2'/></filter></defs><g stroke='%23FF6A00' stroke-width='2' fill='none' filter='url(%23g)' opacity='0.9'><path d='M16 4 L26 16 L16 28 L6 16 Z'/><circle cx='16' cy='16' r='2'/></g><g stroke='%23FFB347' stroke-width='1.5' fill='none'><path d='M16 4 L26 16 L16 28 L6 16 Z'/><path d='M16 11 L21 16 L16 21 L11 16 Z' opacity='0.55'/><circle cx='16' cy='16' r='2' fill='%23FF6A00'/></g></svg>") 16 16, pointer;
}

/* Text inputs — neon I-beam */
input[type="text"], input[type="email"], input[type="tel"],
input[type="search"], input[type="number"], textarea {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32'><g stroke='%2300F0FF' stroke-width='1.5' fill='none'><path d='M8 4 L16 4 M8 28 L16 28 M12 4 L12 28'/></g></svg>") 12 16, text;
}

/* ─── AUTOMAN CURSOR — neon spark dot ─── */
#automan-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    will-change: left, top;
    mix-blend-mode: screen;
}

#automan-cursor .ac-spark {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #00F0FF;
    box-shadow:
        0 0 4px rgba(255, 255, 255, 1),
        0 0 8px rgba(0, 240, 255, 1),
        0 0 16px rgba(0, 240, 255, 0.85),
        0 0 28px rgba(0, 240, 255, 0.45);
    animation: acSparkPulse 1.4s ease-in-out infinite;
}

@keyframes acSparkPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.75; }
}

#automan-cursor.ac-hover .ac-spark {
    background: #FFB347;
    box-shadow:
        0 0 4px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 106, 0, 1),
        0 0 20px rgba(255, 106, 0, 0.85),
        0 0 32px rgba(255, 106, 0, 0.5);
    animation-duration: 0.8s;
}

@media (max-width: 768px), (pointer: coarse) {
    html, body, a, button, input, textarea { cursor: auto !important; }
    #automan-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #automan-cursor .ac-spark { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   AUTOMAN HELPER — wireframe humanoid in bottom-right corner
   ═══════════════════════════════════════════════════════════════ */
#automan-helper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    pointer-events: none;
}

#automan-helper.am-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#automan-helper .am-link {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    text-decoration: none;
}

#automan-helper .am-figure {
    position: relative;
    width: 84px;
    height: 116px;
    animation: amFloat 3.6s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.55));
}

#automan-helper .am-figure svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

#automan-helper .am-figure .am-glow {
    animation: amBreathe 2.4s ease-in-out infinite;
}

#automan-helper .am-platform {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 64px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.15) 60%, transparent);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
    animation: amPlatformPulse 2s ease-in-out infinite;
}

#automan-helper .am-bubble {
    position: relative;
    background: rgba(0, 8, 14, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.55);
    border-radius: 4px;
    padding: 10px 14px;
    color: #E6FBFF;
    font-family: var(--f-mono, 'JetBrains Mono', monospace);
    font-size: 0.74rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.12),
        0 0 22px rgba(0, 240, 255, 0.35),
        inset 0 0 14px rgba(0, 240, 255, 0.06);
    backdrop-filter: blur(10px);
    margin-bottom: 18px;
    max-width: 180px;
    text-align: left;
    animation: amBubblePop 0.7s 1.8s var(--ease-out) backwards;
}

#automan-helper .am-bubble strong {
    color: #FF8A2B;
    text-shadow: 0 0 8px rgba(255, 106, 0, 0.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#automan-helper .am-bubble-tail {
    position: absolute;
    right: -7px;
    bottom: 18px;
    width: 12px;
    height: 12px;
    background: rgba(0, 8, 14, 0.92);
    border-right: 1px solid rgba(0, 240, 255, 0.55);
    border-bottom: 1px solid rgba(0, 240, 255, 0.55);
    transform: rotate(-45deg);
}

#automan-helper:hover .am-figure {
    animation-play-state: paused;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

#automan-helper:hover .am-figure .am-glow {
    stroke: #FFB347;
}

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

@keyframes amBreathe {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1;    }
}

@keyframes amPlatformPulse {
    0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleX(1); }
    50%      { opacity: 0.85; transform: translateX(-50%) scaleX(1.15); }
}

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

@media (max-width: 640px) {
    #automan-helper { bottom: 12px; right: 12px; }
    #automan-helper .am-figure { width: 56px; height: 78px; }
    #automan-helper .am-bubble { font-size: 0.66rem; max-width: 130px; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    #automan-helper .am-figure,
    #automan-helper .am-figure .am-glow,
    #automan-helper .am-platform,
    #automan-helper .am-bubble { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   PASS 3 — REMAINING CONTRAST FIXES
   ═══════════════════════════════════════════════════════════════ */

/* Cycle node cards (Atracción / Conversión / Retención) */
.cycle__node, .solution__node, .cycle .node, [class*="cycle"] [class*="node"] {
    background: rgba(0, 12, 18, 0.85) !important;
    border: 1px solid var(--line-strong) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(6px);
}

.cycle__node *, .solution__node *, .cycle .node * {
    color: #E6FBFF !important;
}

.cycle__node h3, .cycle__node h4, .cycle__node strong,
.solution__node h3, .solution__node h4, .solution__node strong {
    color: #FFFFFF !important;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.7), 0 0 2px rgba(255, 255, 255, 0.9) !important;
    font-family: var(--f-display) !important;
}

.cycle__node ul li, .cycle__node li,
.solution__node ul li, .solution__node li {
    color: #BCE8F0 !important;
    font-family: var(--f-mono);
    font-size: 0.84rem;
    line-height: 1.5;
    opacity: 1 !important;
}

/* Items with → arrow inside cards/panels */
li:has(> *), li {
    color: #BCE8F0;
}

/* Force any near-black text to be visible */
[style*="color: #000"], [style*="color:#000"],
[style*="color: rgb(0"], [style*="color:rgb(0"] {
    color: #E6FBFF !important;
}

/* Marquee remainder + any monospace label */
.eyebrow, .eyebrow-right, .marquee__track,
.demo__status, .demo__stamp, .annotation__text {
    opacity: 1 !important;
}

/* Footer text */
.footer, .footer * {
    color: #BCE8F0 !important;
}

.footer a:hover { color: var(--neon) !important; }

.footer h3, .footer h4, .footer strong {
    color: #FFFFFF !important;
}

/* Pricing plan body — ensure visibility */
.plan, .plan * { color: inherit; }
.plan p, .plan li, .plan .description, .plan small {
    color: #BCE8F0 !important;
    opacity: 1 !important;
}
.plan .price, .plan__price, .plan h2, .plan h3 {
    color: #FFFFFF !important;
}

/* Body container needs to allow z-index stacking properly with fixed canvas behind */
body { position: relative; }
.topbar, .hero, section, footer { position: relative; z-index: 1; }
