/* ============================================================
   WhatzAPI — Public landing page
   Theme: dark navy + brand green, modern SaaS, 3D scroll,
   mobile-first, animated.  --brand is injected from PHP.
   ============================================================ */

:root {
    --brand:        #16a34a;
    --brand-2:      #1bca3f;
    --brand-3:      #92df48;

    --ink:          #0b1220;
    --ink-2:        #0f172a;
    --ink-3:        #131c33;
    --surface:      #121a30;
    --surface-2:    #1a2342;
    --line:         rgba(255,255,255,.08);
    --line-2:       rgba(255,255,255,.14);

    --text:         #e2e8f0;
    --text-soft:    #94a3b8;
    --text-mute:    #64748b;
    --white:        #ffffff;

    --shadow-1:     0 10px 30px -10px rgba(0,0,0,.4);
    --shadow-2:     0 25px 80px -20px rgba(0,0,0,.6);
    --shadow-brand: 0 20px 60px -10px color-mix(in srgb, var(--brand) 55%, transparent);

    --radius-sm:    10px;
    --radius:       18px;
    --radius-lg:    28px;

    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Animated background — auroras + dot grid + noise
   ============================================================ */
.bg-stage {
    position: fixed; inset: 0; z-index: -3;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(22,163,74,.20), transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(56,189,248,.12), transparent 60%),
        linear-gradient(180deg, #07101f 0%, #0a1428 50%, #07101f 100%);
    overflow: hidden;
}
.aurora {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: .45;
    will-change: transform;
}
.aurora.a1 {
    width: 560px; height: 560px;
    background: var(--brand);
    top: -180px; left: -120px;
    animation: float1 22s ease-in-out infinite;
}
.aurora.a2 {
    width: 480px; height: 480px;
    background: #38bdf8;
    bottom: -160px; right: -100px;
    animation: float2 26s ease-in-out infinite;
}
.aurora.a3 {
    width: 420px; height: 420px;
    background: #a855f7;
    top: 40%; left: 55%;
    opacity: .25;
    animation: float3 30s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(80px,40px) scale(1.1)} 66%{transform:translate(-40px,80px) scale(.95)} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-60px,-80px) scale(1.08)} }
@keyframes float3 { 0%,100%{transform:translate(-50%,0) scale(1)} 50%{transform:translate(-40%,-60px) scale(1.05)} }

.dot-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.noise {
    position: absolute; inset: 0; pointer-events: none; opacity: .03;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary, .btn-outline, .btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600; font-size: 15px;
    font-family: var(--font-display);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #22c55e));
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 25px 70px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-outline {
    background: rgba(255,255,255,.04);
    color: var(--text);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: var(--brand); color: var(--brand-3); }
.btn-ghost { color: var(--text-soft); padding: 10px 16px; }
.btn-ghost:hover { color: var(--white); }

.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { display: flex; justify-content: center; width: 100%; padding: 14px 22px; }

.pulse { position: relative; }
.pulse::after {
    content: ''; position: absolute; inset: -4px; border-radius: 999px;
    border: 2px solid var(--brand);
    animation: pulseRing 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: .9; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* ============================================================
   Navbar
   ============================================================ */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(11,18,32,.6);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(11,18,32,.85); border-bottom-color: var(--line); }
.nav-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 800; font-size: 19px;
    color: var(--white);
}
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-links {
    display: flex; gap: 28px;
    font-size: 15px; color: var(--text-soft);
}
.nav-links a { transition: color .2s ease; position: relative; }
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
    height: 2px; background: var(--brand); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    width: 40px; height: 40px; justify-content: center; align-items: center;
    border-radius: 10px; background: rgba(255,255,255,.06);
}
.nav-burger span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 56px 0 32px; position: relative; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(34,197,94,.12);
    color: var(--brand-3);
    border: 1px solid rgba(34,197,94,.25);
    font-size: 13px; font-weight: 600;
    margin-bottom: 24px;
}
.eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(34,197,94,.25);
    animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100%{box-shadow:0 0 0 4px rgba(34,197,94,.25)}
    50%{box-shadow:0 0 0 8px rgba(34,197,94,0)}
}

.display {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.4vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--white);
    margin: 0 0 22px;
}
.display-sm {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0 0 14px;
}

.word-rotator {
    display: inline-block;
    vertical-align: baseline;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3) 60%, #bef264);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity .35s ease, transform .35s ease;
    will-change: opacity, transform;
    /* Reserve enough room for the longest word so swaps don't shift layout */
    min-width: 5ch;
    text-align: left;
}
.word-rotator.swap {
    opacity: 0;
    transform: translateY(-12px);
}

.lead {
    font-size: 16.5px; line-height: 1.6;
    color: var(--text-soft);
    margin: 0 0 28px;
    max-width: 560px;
}
.lead b { color: var(--white); font-weight: 600; }
.lead-sm {
    font-size: 15.5px; color: var(--text-soft);
    max-width: 640px; margin: 0 auto;
    line-height: 1.55;
}
.section-head { text-align: center; margin-bottom: 56px; }
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--brand-3);
    border: 1px solid var(--line);
    font-size: 13px; font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: .08em;
}
.kicker i { color: var(--brand); }
.grad {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-trust { display: flex; align-items: center; gap: 16px; }
.avatars { display: inline-flex; }
.avatars span {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    border: 2px solid var(--ink);
    margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.trust-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-soft); }
.stars { display: inline-flex; gap: 3px; align-items: center; color: #facc15; font-size: 13px; }
.stars strong { color: var(--white); margin-left: 6px; }

/* ----- Hero phone "video" ----- */
.hero-visual { position: relative; perspective: 1400px; }

.scene-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    margin: 0 auto 18px;
    background: rgba(11,18,32,.7);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 13px;
    backdrop-filter: blur(10px);
    position: relative; z-index: 2;
    left: 50%; transform: translateX(-50%);
}
.scene-label strong { color: var(--brand-3); font-weight: 700; }
.scene-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.25);
    animation: pulseDot 1.4s ease-in-out infinite;
}
.scene-label strong {
    display: inline-block;
    animation: sceneSwap .4s ease;
}
@keyframes sceneSwap {
    0%   { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}
.phone {
    position: relative;
    width: 290px; height: 580px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1f2937, #0f172a);
    border-radius: 44px;
    padding: 14px;
    box-shadow:
        0 50px 100px -20px rgba(0,0,0,.7),
        0 30px 60px -15px color-mix(in srgb, var(--brand) 40%, transparent),
        inset 0 0 0 2px rgba(255,255,255,.06);
    transform: rotateY(-10deg) rotateX(6deg);
    transform-style: preserve-3d;
    transition: transform .4s ease;
    animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%,100% { transform: rotateY(-10deg) rotateX(6deg) translateY(0); }
    50%     { transform: rotateY(-10deg) rotateX(6deg) translateY(-14px); }
}
.phone-notch {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 22px; background: #000; border-radius: 12px; z-index: 3;
}
.phone-screen {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #075e54 0%, #0b1426 60px, #ece5dd 60px);
    border-radius: 32px;
    overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
}
.wa-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: #075e54;
    color: #fff;
    font-size: 13px;
    height: 60px;
}
.wa-bar i { font-size: 14px; opacity: .9; }
.wa-bar i:last-of-type { margin-left: auto; }
.wa-avatar {
    width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
    background: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-avatar-fallback {
    width:100%; height:100%; display:flex; align-items:center; justify-content:center;
    color:#fff; font-weight:700; font-size:14px;
}
.wa-meta { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.wa-meta strong { font-size: 13px; font-weight: 600; }
.wa-meta span { font-size: 11px; opacity: .85; display: inline-flex; align-items: center; gap: 4px; }
.wa-meta span i { font-size: 6px; color: #25d366; }

.wa-thread {
    flex: 1; padding: 12px;
    display: flex; flex-direction: column; gap: 8px;
    background: #ece5dd url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='20' cy='20' r='1' fill='%23d8c9bd'/></svg>");
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.wa-thread::-webkit-scrollbar { display: none; }
.bubble {
    max-width: 78%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
    color: #0f172a;
    animation: bubbleIn .35s ease both;
    box-shadow: 0 1px 1px rgba(0,0,0,.08);
    word-wrap: break-word;
}
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 4px; }
.bubble.sys {
    align-self: center;
    background: rgba(15,23,42,.92);
    color: #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    padding: 8px 12px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.bubble.sys b { color: var(--brand-3); }
.bubble.typing { background:#fff; display:inline-flex; gap:3px; padding:10px 14px; }
.bubble.typing i { width:5px; height:5px; border-radius:50%; background:#94a3b8; display:inline-block; animation: typing 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2){animation-delay:.15s} .bubble.typing i:nth-child(3){animation-delay:.3s}
@keyframes typing { 0%,100%{transform:translateY(0); opacity:.4} 50%{transform:translateY(-4px); opacity:1} }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.bubble small { display:block; font-size:9px; color:#64748b; text-align:right; margin-top:2px; }
.bubble small i { color:#34b7f1; }

.wa-input {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    background: #ece5dd;
    border-top: 1px solid rgba(0,0,0,.05);
    color: #64748b; font-size: 12px;
}
.wa-input span { flex: 1; background:#fff; border-radius:18px; padding:8px 14px; }
.wa-input i:last-child { background: var(--brand); color: #fff; padding: 8px; border-radius: 50%; }

/* Floating result cards around the phone */
.float-card {
    position: absolute;
    background: rgba(18,26,48,.85);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-1);
    min-width: 160px;
    animation: floatCard 5s ease-in-out infinite;
}
.float-card strong { display: block; color: #fff; font-size: 18px; font-weight: 700; }
.float-card span { color: var(--text-soft); font-size: 11px; }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.fc-1 { top: 8%; right: -10%; animation-delay: 0s; }
.fc-2 { bottom: 22%; left: -15%; animation-delay: 1.5s; }
.fc-3 { bottom: 6%; right: -5%; animation-delay: 3s; }
@keyframes floatCard {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

/* Logo strip */
.logo-strip {
    margin-top: 56px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.logo-strip > span { color: var(--text-mute); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track {
    display: flex; gap: 60px;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-family: var(--font-display);
    font-weight: 700; font-size: 22px;
    color: var(--text-mute);
    white-space: nowrap;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   Stats
   ============================================================ */
.stats { padding: 40px 0 32px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: linear-gradient(135deg, rgba(34,197,94,.06), rgba(255,255,255,.02));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.stat { text-align: center; }
.stat strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--white);
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat span { font-family: var(--font-display); font-weight:800; font-size: clamp(22px,3vw,38px); color: var(--brand-3); }
.stat p { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 72px 0; position: relative; }
.section.compact { padding: 56px 0; }
.section-head { margin-bottom: 40px; }

/* ---- Features grid (3D tilt) ---- */
.feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    perspective: 1400px;
}
.feat {
    --accent: var(--brand);
    --sx: 0deg;
    --sz: 0px;
    position: relative;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transform-style: preserve-3d;
    transform: rotateX(var(--sx)) translateZ(var(--sz));
    transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background .25s ease;
    will-change: transform;
}
.feat::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 50%);
    opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.feat:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.feat:hover::before { opacity: 1; }
.feat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
    transform: translateZ(20px);
}
.feat h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white); margin: 0 0 6px; transform: translateZ(15px); }
.feat p { color: var(--text-soft); font-size: 13.5px; line-height: 1.55; margin: 0; transform: translateZ(10px); }
.feat-arrow {
    position: absolute; top: 20px; right: 20px;
    width: 32px; height: 32px; border-radius: 50%; font-size: 12px;
    background: rgba(255,255,255,.05);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .25s ease, background .25s ease;
    transform: translateZ(20px);
}
.feat:hover .feat-arrow { background: color-mix(in srgb, var(--accent) 22%, transparent); transform: translate(4px,-4px) translateZ(20px); }

/* ---- How it works — connected timeline (redesigned) ---- */
.how-v2 { position: relative; }
.how-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 28px;
    padding-top: 32px;
    perspective: 1400px;
}

/* Glowing rail running horizontally behind the markers */
.how-rail {
    position: absolute;
    top: 56px; left: 8%; right: 8%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(34,197,94,.25) 8%,
        rgba(34,197,94,.45) 50%,
        rgba(34,197,94,.25) 92%,
        transparent 100%);
    border-radius: 999px;
    z-index: 0;
    overflow: hidden;
}
.how-rail-progress {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--brand-2), var(--brand-3), #bef264);
    box-shadow: 0 0 14px rgba(34,197,94,.6);
    animation: railFill 4s ease-in-out infinite;
    transform-origin: left center;
}
@keyframes railFill {
    0%   { transform: scaleX(0); opacity: .8; }
    60%  { transform: scaleX(1); opacity: 1; }
    80%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; transform-origin: right; }
}

/* Each step is a node sitting on the rail */
.how-node {
    --sx: 0deg;
    --sz: 0px;
    --hover-y: 0px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    transform: rotateX(var(--sx)) translateZ(var(--sz)) translateY(var(--hover-y));
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}

/* The marker = the dot on the rail */
.how-marker {
    position: relative;
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), #22c55e);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.01em;
    box-shadow:
        0 12px 30px -8px rgba(22,163,74,.55),
        inset 0 0 0 2px rgba(255,255,255,.18);
    z-index: 2;
}
.how-marker-num { position: relative; z-index: 2; }
.how-marker-ring {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(34,197,94,.4);
    animation: markerPulse 2.4s ease-out infinite;
}
.how-node:nth-child(2) .how-marker-ring { animation-delay: .8s; }
.how-node:nth-child(3) .how-marker-ring { animation-delay: 1.6s; }
@keyframes markerPulse {
    0%   { transform: scale(1);    opacity: .9; }
    100% { transform: scale(1.6);  opacity: 0; }
}

/* Card body below the marker */
.how-body {
    width: 100%;
    margin-top: 22px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    transition: border-color .25s ease, background .25s ease;
}
.how-node:hover .how-body { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: linear-gradient(180deg, rgba(34,197,94,.06), rgba(255,255,255,.02)); }

.how-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(34,197,94,.12);
    color: var(--brand-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.how-text { margin-bottom: 16px; }
.how-time {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.25);
    border-radius: 999px;
    color: var(--brand-3);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.how-time i { font-size: 10px; }
.how-text h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 6px;
    letter-spacing: -.01em;
}
.how-text p {
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* Preview block — each step has a unique visual */
.how-preview {
    position: relative;
    background: rgba(0,0,0,.32);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.how-preview-qr .qr-anim {
    width: 108px; height: 108px;
}
.how-preview-tag {
    position: absolute;
    bottom: 12px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.how-preview-tag i { font-size: 9px; }

/* Code preview: now styled like a tiny window */
.how-preview-code {
    padding: 0;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
}
.how-code-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid var(--line);
}
.how-code-head .dot {
    width: 9px; height: 9px; border-radius: 50%;
}
.how-code-head .dot.r { background: #ff5f56; }
.how-code-head .dot.y { background: #ffbd2e; }
.how-code-head .dot.g { background: #27c93f; }
.how-code-head .how-code-file {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mute);
}
.how-preview-code .code {
    padding: 12px;
    font-size: 11.5px;
    line-height: 1.6;
    overflow-x: auto;
}

/* Chart preview: bars + live stats strip */
.how-preview-chart {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
}
.how-preview-chart .bars {
    height: 70px;
    gap: 6px;
}
.how-stats-strip {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-soft);
}
.how-stats-strip b { color: var(--brand-3); font-weight: 700; margin-right: 4px; }

/* Bottom CTA */
.how-cta {
    margin-top: 36px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.how-cta-meta {
    color: var(--text-mute);
    font-size: 13px;
    display: inline-flex; align-items: center; gap: 4px;
    flex-wrap: wrap; justify-content: center;
}
.how-cta-meta i { color: var(--brand-2); font-size: 10px; }

/* QR animation */
.qr-anim {
    width: 160px; height: 160px; border-radius: 14px;
    background:
        linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%) 0 0,
        linear-gradient(-45deg, rgba(255,255,255,.05) 25%, transparent 25%) 0 0,
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.05) 75%) 0 0,
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.05) 75%) 0 0;
    background-size: 18px 18px;
    background-color: #0f172a;
    position: relative;
    border: 2px solid var(--brand);
    box-shadow: 0 0 30px rgba(34,197,94,.4);
}
.qr-scan {
    position: absolute; left: 0; right: 0; top: 0;
    height: 3px; background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
    animation: scan 2s linear infinite;
}
@keyframes scan { 0% { top: 0; } 100% { top: calc(100% - 3px); } }

/* Code block */
.code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0; padding: 0;
    line-height: 1.7;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}
.code .c-com { color: #64748b; }
.code .c-key { color: #c084fc; }
.code .c-str { color: #86efac; }

/* Bars chart */
.bars { display: flex; align-items: end; gap: 12px; width: 100%; height: 140px; padding: 0 8px; }
.bars span {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, var(--brand-3), var(--brand));
    border-radius: 6px 6px 0 0;
    animation: barRise 1.2s ease-out both;
    transform-origin: bottom;
}
.bars span:nth-child(1) { animation-delay: .05s; }
.bars span:nth-child(2) { animation-delay: .15s; }
.bars span:nth-child(3) { animation-delay: .25s; }
.bars span:nth-child(4) { animation-delay: .35s; }
.bars span:nth-child(5) { animation-delay: .45s; }
.bars span:nth-child(6) { animation-delay: .55s; }
.bars span:nth-child(7) { animation-delay: .65s; }
@keyframes barRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---- Use cases ---- */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1400px; }
.uc {
    --sx: 0deg;
    --sz: 0px;
    --hover-y: 0px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
    transform-style: preserve-3d;
    transform: rotateX(var(--sx)) translateZ(var(--sz)) translateY(var(--hover-y));
    transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background .3s ease;
    will-change: transform;
}
.uc:hover { --hover-y: -4px; border-color: var(--brand); background: linear-gradient(180deg, rgba(34,197,94,.06), rgba(255,255,255,0)); }
.uc-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(34,197,94,.12);
    color: var(--brand-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}
.uc h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: var(--white); margin: 0 0 6px; }
.uc p { color: var(--text-soft); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ---- Results ---- */
.results-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1400px; }
.result-card {
    --sx: 0deg;
    --sz: 0px;
    --hover-y: 0px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(34,197,94,.05), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transform-style: preserve-3d;
    transform: rotateX(var(--sx)) translateZ(var(--sz)) translateY(var(--hover-y));
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}
.result-card:hover { --hover-y: -6px; }
.result-card .big {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}
.result-card .big sup { font-size: .5em; vertical-align: super; }
.result-card p { color: var(--text); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.quote { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.qa {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, var(--brand));
    color: #fff; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.quote strong { display: block; color: var(--white); font-size: 14px; }
.quote span { color: var(--text-soft); font-size: 12px; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; perspective: 1400px; }
.price {
    position: relative;
    padding: 26px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; gap: 12px;
    transition: transform .3s ease, border-color .3s ease;
}
.price:hover { transform: translateY(-4px); border-color: var(--brand); }
.price.popular {
    background: linear-gradient(180deg, rgba(34,197,94,.10), rgba(255,255,255,.01));
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
    transform: scale(1.03);
}
.price.popular:hover { transform: scale(1.03) translateY(-4px); }
.popular-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff;
    padding: 5px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase;
}
.price h3 { font-family: var(--font-display); font-size: 18px; color: var(--brand-3); margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.price .amt {
    font-family: var(--font-display);
    font-weight: 800; font-size: 40px; color: var(--white); line-height: 1;
}
.price .amt .cur { font-size: 22px; vertical-align: super; color: var(--text-soft); margin-right: 4px; }
.price .amt .per { font-size: 16px; color: var(--text-soft); font-weight: 500; margin-left: 4px; }
.price .amt-note { color: var(--text-soft); font-size: 13px; margin: -8px 0 0; }
.price ul { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14.5px; }
.price li i { color: var(--brand-2); font-size: 12px; width: 18px; height: 18px; border-radius: 50%; background: rgba(34,197,94,.18); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---- FAQ ---- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq-intro { position: sticky; top: 100px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .25s ease;
}
.faq-item[open] { border-color: var(--brand); }
.faq-item summary {
    padding: 16px 22px;
    list-style: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600; font-size: 16px;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(34,197,94,.12); color: var(--brand-2);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .3s ease;
    flex-shrink: 0;
}
.faq-item[open] summary i { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-item p { padding: 0 22px 18px; color: var(--text-soft); margin: 0; font-size: 14px; line-height: 1.6; }

/* ---- CTA final ---- */
.cta-final { padding: 56px 0 72px; }
.cta-box {
    text-align: center;
    padding: 52px 28px;
    background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(56,189,248,.08));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; inset: -50%;
    background: radial-gradient(circle, rgba(34,197,94,.2), transparent 50%);
    animation: spin 30s linear infinite;
    z-index: 0;
}
.cta-box > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: var(--white); margin: 0 0 12px; line-height: 1.15; letter-spacing: -.02em; }
.cta-box p { color: var(--text-soft); font-size: 17px; margin: 0 0 28px; }
.cta-box .hero-cta { justify-content: center; }
.cta-box small { display: block; margin-top: 18px; color: var(--text-mute); font-size: 13px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    border-top: 1px solid var(--line);
    background: rgba(7,16,31,.6);
    padding: 60px 0 24px;
    margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.foot-brand p { color: var(--text-soft); margin: 16px 0 20px; max-width: 320px; font-size: 14.5px; }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.05);
    color: var(--text-soft);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.socials a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.foot-col h4 { font-family: var(--font-display); font-weight: 700; color: var(--white); margin: 0 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.foot-col a { display: block; color: var(--text-soft); padding: 6px 0; font-size: 14.5px; transition: color .2s ease; }
.foot-col a:hover { color: var(--brand-3); }
.foot-bottom {
    display: flex; justify-content: space-between; gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-mute); font-size: 13px;
    flex-wrap: wrap;
}

/* ============================================================
   Floating WhatsApp toggle
   ============================================================ */
.wa-toggle { position: fixed; bottom: 24px; right: 24px; z-index: 60; }
.wa-fab {
    width: 60px; height: 60px; border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 35px -5px rgba(37,211,102,.6);
    position: relative;
    transition: transform .25s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    background: #25d366; opacity: .5;
    animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: .5; }
    100% { transform: scale(1.6); opacity: 0; }
}
.wa-badge {
    position: absolute; top: -4px; right: -4px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #ef4444; color: #fff;
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--ink);
}
.wa-popup {
    position: absolute; bottom: 78px; right: 0;
    width: 320px;
    background: linear-gradient(180deg, #1a2342, #0f172a);
    border: 1px solid var(--line-2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
    transform: translateY(20px) scale(.95);
    opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
}
.wa-toggle.open .wa-popup { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.wa-popup-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: #075e54;
    color: #fff;
}
.wa-popup-avatar {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    background: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
}
.wa-popup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-popup-head strong { display: block; font-size: 14px; font-weight: 600; }
.wa-popup-head span { font-size: 11px; opacity: .85; display: inline-flex; align-items: center; gap: 4px; }
.wa-popup-head span i { font-size: 6px; color: #25d366; }
.wa-popup-close {
    margin-left: auto; color: #fff; font-size: 20px;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background .2s ease;
}
.wa-popup-close:hover { background: rgba(255,255,255,.1); }
.wa-popup-body {
    padding: 20px 16px;
    background: #ece5dd url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='20' cy='20' r='1' fill='%23d8c9bd'/></svg>");
    display: flex; flex-direction: column; gap: 8px;
}
.wa-msg {
    background: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    border-top-left-radius: 4px;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 90%;
    align-self: flex-start;
    box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.wa-popup-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #25d366; color: #fff;
    padding: 14px;
    font-weight: 600;
    transition: background .2s ease;
}
.wa-popup-cta:hover { background: #128c4f; }

/* ============================================================
   Back to top
   ============================================================ */
.to-top {
    position: fixed; bottom: 24px; left: 24px; z-index: 55;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(18,26,48,.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-2);
    color: var(--text);
    opacity: 0; pointer-events: none;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--brand); color: #fff; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
/* Reveal uses the standalone `translate` property so cards with their own
   `transform` (for 3D scroll tilt) compose cleanly instead of fighting it. */
.reveal {
    opacity: 0;
    translate: 0 40px;
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), translate .8s cubic-bezier(.2,.7,.2,1);
}
.reveal[data-reveal="right"] { translate: 40px 0; }
.reveal[data-reveal="left"]  { translate: -40px 0; }
.reveal.in {
    opacity: 1;
    translate: 0 0;
}

/* ============================================================
   Comparison table
   ============================================================ */
.cmp-wrap {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: var(--shadow-1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.cmp-wrap::-webkit-scrollbar { height: 6px; }
.cmp-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 999px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.cmp thead th {
    text-align: left;
    padding: 18px 20px;
    background: rgba(255,255,255,.03);
    color: var(--text-soft);
    font-family: var(--font-display);
    font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .08em;
    border-bottom: 1px solid var(--line);
}
.cmp thead th.us {
    background: linear-gradient(180deg, rgba(34,197,94,.18), rgba(34,197,94,.06));
    color: var(--brand-3);
    border-bottom-color: var(--brand);
}
.cmp tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
}
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody td:first-child { color: var(--white); font-weight: 600; }
.cmp tbody td.us { color: var(--white); background: rgba(34,197,94,.06); }
.cmp tbody td.us i { color: var(--brand-2); margin-right: 8px; }
.cmp tbody td.x { color: #ef4444; }
.cmp tbody td.x i { color: #ef4444; }

/* ============================================================
   Integrations grid
   ============================================================ */
.int-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
    perspective: 1400px;
}
.int-card {
    --sx: 0deg;
    --sz: 0px;
    --hover-y: 0px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 22px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    transform-style: preserve-3d;
    transform: rotateX(var(--sx)) translateZ(var(--sz)) translateY(var(--hover-y));
    transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background .25s ease;
    will-change: transform;
}
.int-card:hover { --hover-y: -3px; border-color: var(--brand); }
.int-card i { font-size: 28px; }
.int-card span { font-size: 12.5px; color: var(--text-soft); font-weight: 500; }
.int-card.int-more i { color: var(--brand-3); }
.int-card.int-more { background: linear-gradient(180deg, rgba(34,197,94,.08), rgba(255,255,255,.01)); }

/* ============================================================
   Resellers welcome
   ============================================================ */
.reseller-wrap {
    position: relative;
    background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(56,189,248,.06));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    overflow: hidden;
}
.reseller-bg { position: absolute; inset: 0; pointer-events: none; }
.reseller-bg .ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(34,197,94,.18);
    right: -120px; top: 50%; transform: translateY(-50%);
}
.reseller-bg .r1 { width: 360px; height: 360px; }
.reseller-bg .r2 { width: 520px; height: 520px; border-color: rgba(34,197,94,.12); }
.reseller-bg .r3 { width: 680px; height: 680px; border-color: rgba(34,197,94,.06); }

.reseller-grid {
    position: relative;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
    align-items: center;
}
.reseller-copy .kicker { margin-bottom: 14px; }
.reseller-copy h2 { margin-bottom: 10px; }
.reseller-copy .lead-sm { margin: 0 0 22px; max-width: 100%; }
.reseller-copy .lead-sm b { color: var(--brand-3); font-weight: 700; }
.reseller-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.reseller-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14.5px; }
.reseller-list i {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(34,197,94,.18); color: var(--brand-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
}
.reseller-copy .hero-cta { margin: 0; }

.reseller-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
    perspective: 1400px;
}
.rs-card {
    --sx: 0deg;
    --sz: 0px;
    --hover-y: 0px;
    padding: 22px;
    background: rgba(11,18,32,.6);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    text-align: center;
    transform-style: preserve-3d;
    transform: rotateX(var(--sx)) translateZ(var(--sz)) translateY(var(--hover-y));
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}
.rs-card:hover { --hover-y: -4px; }
.rs-label { display: block; color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.rs-num {
    display: block;
    font-family: var(--font-display); font-weight: 900;
    font-size: 40px; line-height: 1;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 4px 0 8px;
}
.rs-num sup { font-size: .5em; vertical-align: super; }
.rs-sub { color: var(--text-soft); font-size: 12.5px; }

/* ============================================================
   Pocket-friendly pricing card
   ============================================================ */
.pp-card {
    position: relative;
    background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(56,189,248,.05));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 48px;
    overflow: hidden;
}
.pp-bg {
    position: absolute; inset: -50%;
    background: radial-gradient(circle at 70% 50%, rgba(34,197,94,.22), transparent 50%);
    animation: spin 35s linear infinite;
}
.pp-grid {
    position: relative;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
    align-items: center;
}
.pp-left .kicker { margin-bottom: 14px; }
.pp-left h2 { margin-bottom: 10px; }
.pp-left .lead-sm { margin: 0 0 22px; max-width: 100%; }
.pp-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.pp-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14.5px; }
.pp-list i {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(34,197,94,.18); color: var(--brand-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
}
.pp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pp-meta { color: var(--text-soft); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pp-meta i { color: var(--brand-2); }

.pp-right { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.pp-orb {
    width: 220px; height: 220px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #22c55e);
    box-shadow:
        0 30px 80px -20px rgba(22,163,74,.55),
        inset 0 0 0 2px rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    color: #fff;
    position: relative;
    animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.pp-cur { font-size: 32px; font-weight: 700; opacity: .9; line-height: 1; }
.pp-amt { font-family: var(--font-display); font-size: 96px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.pp-per { font-size: 14px; opacity: .85; margin-top: 4px; }

.pp-tag {
    position: absolute;
    padding: 8px 14px;
    background: rgba(11,18,32,.85);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text);
    font-size: 12.5px; font-weight: 600;
    backdrop-filter: blur(10px);
    display: inline-flex; align-items: center; gap: 6px;
    animation: floatCard 5s ease-in-out infinite;
}
.pp-tag i { color: var(--brand-2); font-size: 11px; }
.pp-t1 { top: 12%; left: -6%; animation-delay: 0s; }
.pp-t2 { top: 50%; right: -8%; animation-delay: 1.6s; }
.pp-t3 { bottom: 8%; left: 8%; animation-delay: 3s; }

/* ============================================================
   Guarantee / Trust grid
   ============================================================ */
.guarantee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 1400px; }
.g-card {
    --sx: 0deg;
    --sz: 0px;
    --hover-y: 0px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    transform-style: preserve-3d;
    transform: rotateX(var(--sx)) translateZ(var(--sz)) translateY(var(--hover-y));
    transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s ease;
    will-change: transform;
}
.g-card:hover { --hover-y: -4px; border-color: var(--brand); }
.g-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(34,197,94,.12); color: var(--brand-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}
.g-card h3 { font-family: var(--font-display); font-size: 15.5px; color: var(--white); margin: 0 0 6px; font-weight: 700; }
.g-card p { color: var(--text-soft); font-size: 13px; line-height: 1.5; margin: 0; }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet — 1024px and below */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-copy { text-align: center; }
    .hero-copy .lead, .hero-copy .eyebrow { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .feat-grid, .uc-grid, .results-row, .price-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .faq-intro { position: static; text-align: center; }
    .how-flow { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
    .how-rail {
        top: 0; bottom: 0; left: 28px; right: auto;
        width: 2px; height: auto;
        background: linear-gradient(180deg,
            transparent 0%,
            rgba(34,197,94,.25) 6%,
            rgba(34,197,94,.45) 50%,
            rgba(34,197,94,.25) 94%,
            transparent 100%);
    }
    .how-rail-progress {
        background: linear-gradient(180deg, var(--brand-2), var(--brand-3), #bef264);
        animation-name: railFillV;
    }
    @keyframes railFillV {
        0%   { transform: scaleY(0); transform-origin: top; opacity: .8; }
        60%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
        80%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
        100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
    }
    .how-node { flex-direction: row; align-items: flex-start; gap: 22px; padding: 18px 0; }
    .how-marker { flex-shrink: 0; }
    .how-body { margin-top: 0; flex: 1; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .int-grid { grid-template-columns: repeat(4, 1fr); }
    .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
    .reseller-grid, .pp-grid { grid-template-columns: 1fr; gap: 36px; }
    .reseller-wrap, .pp-card { padding: 40px 28px; }
    .reseller-bg .ring { display: none; }
    .reseller-copy { text-align: center; }
    .reseller-copy .reseller-list { max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* Phone — 720px and below */
@media (max-width: 720px) {
    .container { padding: 0 18px; }

    /* Nav */
    .nav-links { display: none; }
    .nav-burger { display: inline-flex; }
    .nav.menu-open .nav-links {
        display: flex; flex-direction: column; gap: 8px;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink-2);
        padding: 18px 24px;
        border-bottom: 1px solid var(--line);
    }
    .nav.menu-open .nav-links a { padding: 12px 0; font-size: 16px; }
    .nav-cta .btn-ghost, .nav-cta .btn-primary span { display: none; }
    .nav.menu-open .nav-cta .btn-ghost { display: none; }
    .nav-cta .btn-primary { padding: 10px 14px; }
    .nav-row { padding: 12px 18px; gap: 12px; }

    /* Hero */
    .hero { padding: 40px 0 24px; }
    .display { font-size: clamp(30px, 8vw, 40px); line-height: 1.1; }
    .display-sm { font-size: clamp(24px, 6vw, 30px); }
    .lead { font-size: 15.5px; }
    .lead-sm { font-size: 14.5px; }
    .eyebrow { font-size: 12px; padding: 7px 14px; }
    .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
    .hero-cta .btn-primary, .hero-cta .btn-outline { width: 100%; justify-content: center; }
    .phone { width: 260px; height: 520px; transform: rotateY(-4deg) rotateX(3deg); }
    .phone-screen { border-radius: 28px; }
    .float-card { display: none; }
    .scene-badge { font-size: 12px; padding: 6px 14px; }
    .logo-strip { margin-top: 40px; }
    .marquee-track { gap: 36px; }
    .marquee-track span { font-size: 16px; }

    /* Section spacing — tighter on phone */
    .section { padding: 48px 0; }
    .section.compact { padding: 40px 0; }
    .section-head { margin-bottom: 28px; }
    .stats { padding: 28px 0 20px; }

    /* Stats */
    .stats-grid { padding: 20px 14px; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat strong { font-size: 28px; }
    .stat span { font-size: 20px; }
    .stat p { font-size: 12.5px; margin-top: 2px; }

    /* Grids collapse to single column */
    .feat-grid, .uc-grid, .results-row, .price-grid { grid-template-columns: 1fr; }
    .price.popular { transform: none; }
    .price.popular:hover { transform: translateY(-4px); }

    /* Integrations — keep brand icons visible */
    .int-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .int-card { padding: 14px 6px; gap: 8px; }
    .int-card i { font-size: 20px; }
    .int-card span { font-size: 10.5px; }

    /* Guarantee row → list */
    .guarantee-grid { grid-template-columns: 1fr; gap: 10px; }
    .g-card { padding: 16px; text-align: left; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 4px; }
    .g-icon { margin-bottom: 0; grid-row: span 2; width: 42px; height: 42px; font-size: 17px; border-radius: 12px; }
    .g-card h3 { margin: 0; font-size: 14.5px; }
    .g-card p { font-size: 12.5px; line-height: 1.45; }

    /* Resellers */
    .reseller-wrap { padding: 32px 20px; }
    .reseller-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rs-card { padding: 16px; }
    .rs-num { font-size: 28px; }
    .rs-sub { font-size: 11.5px; }
    .reseller-copy .hero-cta { justify-content: center; align-items: stretch; }
    .reseller-list li { font-size: 13.5px; }

    /* Pocket pricing */
    .pp-card { padding: 32px 22px; }
    .pp-grid { gap: 28px; }
    .pp-right { min-height: 240px; padding: 0 8px; }
    .pp-orb { width: 170px; height: 170px; }
    .pp-amt { font-size: 70px; }
    .pp-cur { font-size: 24px; }
    .pp-per { font-size: 12px; }
    .pp-tag { font-size: 11px; padding: 6px 10px; }
    .pp-t1 { top: 4%; left: 0%; }
    .pp-t2 { top: 50%; right: 0%; }
    .pp-t3 { bottom: 2%; left: 14%; }
    .pp-cta { flex-direction: column; align-items: stretch; }
    .pp-cta .btn-primary { width: 100%; justify-content: center; }
    .pp-meta { justify-content: center; }
    .pp-list li { font-size: 13.5px; }

    /* Comparison: horizontal scroll */
    .cmp-wrap { overflow-x: auto; }
    .cmp { min-width: 480px; }
    .cmp thead th, .cmp tbody td { padding: 11px 12px; font-size: 12.5px; }
    .cmp tbody td:first-child { font-size: 12.5px; }

    /* How it works on phones — tighter, marker stacks above content */
    .how-flow { padding-top: 4px; }
    .how-rail { left: 22px; }
    .how-node { padding: 14px 0; gap: 16px; }
    .how-marker { width: 46px; height: 46px; font-size: 15px; }
    .how-body { padding: 18px; border-radius: var(--radius); }
    .how-preview { min-height: 110px; padding: 12px; }
    .how-preview-qr .qr-anim { width: 88px; height: 88px; }
    .how-preview-code .code { font-size: 11px; padding: 10px; }
    .how-preview-chart .bars { height: 60px; gap: 4px; }
    .how-stats-strip { font-size: 10.5px; flex-wrap: wrap; }
    .how-text h3 { font-size: 17px; }
    .how-text p { font-size: 13px; }
    .how-cta { margin-top: 24px; gap: 10px; }
    .how-cta .btn-primary { width: 100%; max-width: 360px; justify-content: center; }
    .how-cta-meta { font-size: 12px; }

    /* Disable scroll-tilt on phones — looks awkward at single-column widths */
    .feat, .uc, .result-card, .price, .g-card, .rs-card, .int-card, .how-node,
    .feat-grid, .uc-grid, .results-row, .price-grid,
    .guarantee-grid, .reseller-stats, .int-grid, .how-flow { perspective: none; }
    .feat, .uc, .result-card, .g-card, .rs-card, .int-card, .how-node { --sx: 0deg !important; --sz: 0px !important; transform-style: flat; }
    .qr-anim { width: 130px; height: 130px; }
    .bars { height: 100px; gap: 8px; }
    .code { font-size: 11.5px; line-height: 1.6; }

    /* Features */
    .feat { padding: 20px; }
    .feat h3 { font-size: 16.5px; }
    .feat-arrow { top: 16px; right: 16px; width: 28px; height: 28px; }

    /* Use cases */
    .uc { padding: 20px; }

    /* Result cards */
    .result-card { padding: 22px; }

    /* Pricing tiers (legacy) */
    .price { padding: 24px 20px; }

    /* FAQ */
    .faq-item summary { padding: 14px 18px; font-size: 14.5px; gap: 10px; }
    .faq-item summary i { width: 28px; height: 28px; font-size: 12px; }
    .faq-item p { padding: 0 18px 16px; font-size: 13.5px; }

    /* Footer */
    .foot-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
    .foot-col h4 { margin-bottom: 10px; }
    .foot-bottom { flex-direction: column; text-align: center; gap: 6px; padding-top: 18px; font-size: 12px; }

    /* CTA */
    .cta-final { padding: 40px 0 56px; }
    .cta-box { padding: 36px 20px; }
    .cta-box h2 { font-size: 24px; }
    .cta-box p { font-size: 15px; }
    .cta-box .hero-cta { flex-direction: column; }

    /* Floating WhatsApp + back-to-top — bigger touch targets */
    .wa-popup { width: calc(100vw - 24px); right: 0; }
    .wa-toggle { right: 14px; bottom: 14px; }
    .wa-fab { width: 56px; height: 56px; font-size: 26px; }
    .wa-popup-close { width: 44px; height: 44px; font-size: 24px; }
    .to-top { left: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* Tiny phones — 480px and below */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .display { font-size: clamp(26px, 9vw, 34px); }
    .display-sm { font-size: 22px; }
    .lead { font-size: 15px; margin-bottom: 22px; }
    .hero-trust { flex-direction: column; gap: 10px; text-align: center; }
    .avatars span { width: 32px; height: 32px; font-size: 11px; }

    .phone { width: 232px; height: 470px; }
    .scene-badge { font-size: 11.5px; padding: 5px 12px; margin-bottom: 14px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 18px 12px; }
    .stat strong { font-size: 24px; }
    .stat span { font-size: 16px; }
    .stat p { font-size: 11.5px; }

    .pp-orb { width: 150px; height: 150px; }
    .pp-amt { font-size: 58px; }
    .pp-cur { font-size: 22px; }
    .pp-t1, .pp-t2, .pp-t3 { font-size: 10.5px; padding: 5px 9px; }
    .pp-t1 i, .pp-t2 i, .pp-t3 i { font-size: 9px; }

    .int-grid { grid-template-columns: repeat(2, 1fr); }
    .reseller-stats { grid-template-columns: repeat(2, 1fr); }

    .nav-row { padding: 10px 14px; }
    .brand { font-size: 17px; }
    .brand img { width: 28px; height: 28px; }

    .wa-popup { width: calc(100vw - 16px); }
    .disclaimer-ribbon p { font-size: 12px; line-height: 1.5; }
}

/* Stop horizontal scroll on the document if any animation overflows */
html, body { max-width: 100%; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .phone, .aurora, .wa-pulse, .pulse::after, .marquee-track, .word-rotator { animation: none !important; }
    .reveal { opacity: 1; translate: 0 0; }
    /* Disable scroll-driven 3D too */
    .feat, .uc, .result-card, .price, .g-card, .rs-card, .int-card, .how-node {
        --sx: 0deg !important; --sz: 0px !important;
    }
    .how-rail-progress, .how-marker-ring { animation: none !important; }
}
