/* =============================================================================
   W CONTROL — Design System
   Light, editorial, high-craft. Warm paper canvas + dark product windows.
   RTL-first: logical properties throughout.
   ========================================================================== */

:root {
    /* --- Paper: the canvas ---------------------------------------------- */
    --paper:    #F8F7F4;
    --paper-2:  #FFFFFF;
    --paper-3:  #F1EFEA;
    --paper-4:  #E8E5DE;

    /* --- Ink -------------------------------------------------------------- */
    --ink:   #0F1A20;
    --ink-2: #4B5A63;
    --ink-3: #8B959C;
    --ink-4: #B4BCC1;

    /* --- Brand: teal ------------------------------------------------------ */
    --brand-800: #0C3242;
    --brand-700: #123F51;
    --brand-600: #17596F;
    --brand-500: #256A80;
    --brand-400: #3E93AC;
    --brand-300: #7CC4D8;
    --brand-200: #B9E2EE;
    --brand-100: #E4F2F6;
    --brand-50:  #F2F9FB;

    /* --- Accent: ember ---------------------------------------------------- */
    --ember-600: #A63B17;
    --ember-500: #CE4C20;
    --ember-400: #EE6B38;
    --ember-300: #F79A72;
    --ember-100: #FCEBE3;

    /* --- Signal ----------------------------------------------------------- */
    --ok:   #1D9F6B;
    --warn: #D4900F;
    --bad:  #D6455A;

    /* --- Dark product panels (screenshots of the app are dark) ------------ */
    --panel-950: #06090E;
    --panel-900: #0A0F16;
    --panel-800: #10161F;
    --panel-700: #1A2230;
    --panel-line: rgba(255, 255, 255, 0.09);
    --panel-line-2: rgba(255, 255, 255, 0.15);
    --panel-txt: #EEF3F8;
    --panel-txt-2: #9DABBC;
    --panel-txt-3: #667484;

    /* --- Lines & surfaces ------------------------------------------------- */
    --line:      rgba(15, 26, 32, 0.09);
    --line-2:    rgba(15, 26, 32, 0.14);
    --line-soft: rgba(15, 26, 32, 0.055);
    --glass:     rgba(255, 255, 255, 0.7);

    /* --- Legacy aliases so older markup keeps resolving -------------------- */
    --primary: var(--brand-500);
    --primary-dark: var(--brand-700);
    --primary-light: var(--brand-50);
    --primary-10: rgba(37, 106, 128, 0.1);
    --primary-20: rgba(37, 106, 128, 0.2);
    --accent: var(--ember-500);
    --accent-dark: var(--ember-600);
    --accent-10: rgba(206, 76, 32, 0.1);
    --text-dark: var(--ink);
    --text-medium: var(--ink-2);
    --text-light: var(--ink-3);
    --bg-light: var(--paper-3);
    --bg-white: var(--paper-2);
    --border-color: var(--line);

    /* --- Type -------------------------------------------------------------- */
    --font-main: 'Rubik', 'Assistant', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Rubik', sans-serif;

    /* --- Geometry ---------------------------------------------------------- */
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 13px;
    --radius-sm: 9px;
    --header-h: 78px;

    /* --- Motion ------------------------------------------------------------ */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
    --transition-smooth: all 0.32s cubic-bezier(0.25, 1, 0.5, 1);

    /* --- Elevation: layered, low-opacity, warm-tinted --------------------- */
    --shadow-xs: 0 1px 2px rgba(15, 26, 32, 0.05);
    --shadow-sm: 0 1px 2px rgba(15, 26, 32, 0.04), 0 4px 12px -6px rgba(15, 26, 32, 0.09);
    --shadow-md: 0 1px 2px rgba(15, 26, 32, 0.04), 0 12px 28px -12px rgba(15, 26, 32, 0.16);
    --shadow-lg: 0 2px 4px rgba(15, 26, 32, 0.04), 0 28px 60px -24px rgba(15, 26, 32, 0.24);
    --shadow-xl: 0 2px 6px rgba(15, 26, 32, 0.05), 0 50px 100px -36px rgba(15, 26, 32, 0.34);
    --glow-brand: 0 0 60px -18px rgba(37, 106, 128, 0.5);
}

/* =============================================================================
   BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--paper);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis-weight: none;
}

::selection { background: var(--brand-200); color: var(--brand-800); }

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease-out-quart); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   ATMOSPHERE — one fixed background stack, injected by script.js
   Back to front: paper wash > soft aurora > engineering grid > grain.
   ========================================================================== */

.site-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}

.fx-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(110% 70% at 82% -8%, rgba(124, 196, 216, 0.32) 0%, transparent 58%),
        radial-gradient(85% 55% at 6% 4%, rgba(247, 154, 114, 0.20) 0%, transparent 58%),
        linear-gradient(180deg, #FFFFFF 0%, var(--paper) 38%, var(--paper) 100%);
}

.fx-aurora { position: absolute; inset: -25%; filter: blur(80px); opacity: 0.5; }

.fx-aurora span {
    position: absolute;
    display: block;
    border-radius: 50%;
    mix-blend-mode: multiply;
    will-change: transform;
}
.fx-aurora span:nth-child(1) {
    width: 44vw; height: 44vw;
    inset-block-start: -4vw; inset-inline-end: -4vw;
    background: radial-gradient(circle, rgba(124, 196, 216, 0.55) 0%, transparent 68%);
    animation: drift-a 28s var(--ease-out-quart) infinite alternate;
}
.fx-aurora span:nth-child(2) {
    width: 36vw; height: 36vw;
    inset-block-start: 36vh; inset-inline-start: -8vw;
    background: radial-gradient(circle, rgba(247, 154, 114, 0.40) 0%, transparent 68%);
    animation: drift-b 34s var(--ease-out-quart) infinite alternate;
}
.fx-aurora span:nth-child(3) {
    width: 32vw; height: 32vw;
    inset-block-start: 64vh; inset-inline-start: 46vw;
    background: radial-gradient(circle, rgba(185, 226, 238, 0.55) 0%, transparent 68%);
    animation: drift-c 40s var(--ease-out-quart) infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(-6vw, 8vh, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(8vw, -6vh, 0) scale(1.2); } }
@keyframes drift-c { to { transform: translate3d(-5vw, -9vh, 0) scale(0.88); } }

/* Fine grid, masked to a soft ellipse so it never touches an edge. */
.fx-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 26, 32, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 26, 32, 0.05) 1px, transparent 1px);
    background-size: 74px 74px;
    -webkit-mask-image: radial-gradient(115% 85% at 50% 0%, #000 8%, transparent 70%);
    mask-image: radial-gradient(115% 85% at 50% 0%, #000 8%, transparent 70%);
}

/* Grain stops the big flat gradients from reading as dead vector fill. */
.fx-grain {
    position: absolute;
    inset: -8%;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    animation: grain-shift 7s steps(6) infinite;
}
@keyframes grain-shift {
    0%   { transform: translate3d(0, 0, 0); }
    16%  { transform: translate3d(-3%, -2%, 0); }
    33%  { transform: translate3d(2%, -4%, 0); }
    50%  { transform: translate3d(-2%, 3%, 0); }
    66%  { transform: translate3d(3%, 1%, 0); }
    83%  { transform: translate3d(-1%, -3%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* --- Scroll progress ----------------------------------------------------- */
.scroll-progress {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: 2px;
    z-index: 1200;
    transform-origin: 100% 50%; /* RTL: grows from the right edge */
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--ember-500), var(--brand-400), var(--brand-600));
    pointer-events: none;
}

/* --- Cursor spotlight (fine pointers only) ------------------------------- */
.cursor-glow {
    position: fixed;
    inset-block-start: 0; inset-inline-start: 0;
    width: 460px; height: 460px;
    margin: -230px 0 0 -230px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: radial-gradient(circle, rgba(124, 196, 216, 0.20) 0%, transparent 60%);
    transition: opacity 0.5s ease;
    will-change: transform;
}
body.has-cursor .cursor-glow { opacity: 1; }

.cursor-dot {
    position: fixed;
    inset-block-start: 0; inset-inline-start: 0;
    width: 9px; height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--brand-500);
    pointer-events: none;
    z-index: 1300;
    opacity: 0;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease, width 0.35s var(--ease-spring),
                height 0.35s var(--ease-spring), margin 0.35s var(--ease-spring),
                background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
body.has-cursor .cursor-dot { opacity: 1; }
body.cursor-hot .cursor-dot {
    width: 46px; height: 46px; margin: -23px 0 0 -23px;
    background: rgba(37, 106, 128, 0.1);
    box-shadow: inset 0 0 0 1px rgba(37, 106, 128, 0.4);
}

/* =============================================================================
   TYPOGRAPHY
   ========================================================================== */

.section-header { margin-bottom: 62px; max-width: 760px; }
.section-header.text-center { margin-inline: auto; text-align: center; }
.text-center { text-align: center; }

.section-tagline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 20px;
    padding: 7px 15px 7px 13px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-xs);
}
.section-tagline::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--ember-500);
    box-shadow: 0 0 0 3px rgba(206, 76, 32, 0.15);
}

.section-title {
    font-size: clamp(2rem, 1.15rem + 2.6vw, 3.3rem);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.028em;
    color: var(--ink);
    margin-bottom: 20px;
    text-wrap: balance;
}

.section-subtitle {
    font-size: 1.06rem;
    color: var(--ink-2);
    line-height: 1.78;
    max-width: 62ch;
    text-wrap: pretty;
}
.section-header.text-center .section-subtitle { margin-inline: auto; }

.gradient-text {
    background: linear-gradient(258deg, var(--brand-600) 0%, var(--brand-400) 34%, var(--ember-500) 76%, var(--ember-400) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-pan 9s ease-in-out infinite alternate;
}
@keyframes gradient-pan { to { background-position: 100% 50%; } }

/* Word-mask reveal — script.js wraps each word as .w > .w-i */
.w {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-block-end: 0.14em;
    margin-block-end: -0.14em;
}
.w-i {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    will-change: transform;
}
.split-in .w-i {
    animation: word-rise 0.95s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--wi) * 42ms + var(--wd, 0ms));
}
@keyframes word-rise {
    from { transform: translateY(115%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* =============================================================================
   BUTTONS
   ========================================================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out-quart),
                background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn i, .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-lg { padding: 16px 34px; font-size: 1.03rem; }
.btn-block { width: 100%; }

/* Shine sweep, travelling right-to-left to read correctly in RTL. */
.btn::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -140%;
    width: 55%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start 0.75s var(--ease-out-quart);
    z-index: -1;
}
.btn:hover::after { inset-inline-start: 160%; }

.btn-primary {
    background: linear-gradient(140deg, var(--brand-500) 0%, var(--brand-700) 100%);
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 26, 32, 0.1), 0 10px 24px -12px rgba(37, 106, 128, 0.85),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(15, 26, 32, 0.1), 0 18px 36px -14px rgba(37, 106, 128, 0.95),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-700);
    border-color: var(--line-2);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: #fff;
    border-color: var(--brand-300);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Sits on dark panels. */
.btn-secondary-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}
.btn-secondary-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
    color: #fff;
}

/* The demo button is the loudest thing on the page, so it gets the ember. */
.btn-demo-pulse {
    background: linear-gradient(140deg, var(--ember-500) 0%, var(--ember-600) 100%);
    color: #fff !important;
    border: none;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 26, 32, 0.1), 0 10px 24px -12px rgba(206, 76, 32, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-demo-pulse::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(206, 76, 32, 0.55);
    animation: ember-ring 2.6s ease-out infinite;
    z-index: -1;
}
@keyframes ember-ring {
    0%   { transform: scale(1);    opacity: 0.65; }
    70%  { transform: scale(1.2);  opacity: 0; }
    100% { transform: scale(1.2);  opacity: 0; }
}
.btn-demo-pulse:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 2px 4px rgba(15, 26, 32, 0.1), 0 18px 38px -14px rgba(206, 76, 32, 1);
}

/* =============================================================================
   HEADER / NAV
   ========================================================================== */

.main-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-block-end: 1px solid transparent;
    transition: background-color 0.4s var(--ease-out-quart), backdrop-filter 0.4s ease,
                border-color 0.4s ease, height 0.4s var(--ease-out-quart), box-shadow 0.4s ease;
}
.main-header.scrolled {
    height: 66px;
    background: rgba(248, 247, 244, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-block-end-color: var(--line);
    box-shadow: 0 1px 24px -12px rgba(15, 26, 32, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
}

.logo-link { display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; }
.logo-mark-img {
    width: 40px; height: 40px;
    transition: transform 0.6s var(--ease-spring);
}
.logo-link:hover .logo-mark-img { transform: rotate(-12deg) scale(1.08); }
.logo-text-group { line-height: 1.15; }
.logo-title {
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 700;
    letter-spacing: -0.022em;
    color: var(--ink);
}
.logo-tagline { font-size: 0.7rem; color: var(--ink-3); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    position: relative;
    padding: 9px 15px;
    font-size: 0.95rem;
    color: var(--ink-2);
    border-radius: 999px;
}
.main-nav a::after {
    content: "";
    position: absolute;
    inset-block-end: 3px;
    inset-inline-start: 50%;
    width: 0; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-500), var(--ember-500));
    transform: translateX(50%);
    transition: width 0.42s var(--ease-out-expo);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 40%; }
.main-nav a.active { color: var(--ink); font-weight: 500; }
.main-nav a.active::after { width: 40%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-demo-btn { padding: 10px 20px; }

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}
.mobile-menu-toggle:hover { background: #fff; box-shadow: var(--shadow-sm); }
.mobile-menu-toggle i { width: 20px; height: 20px; }

/* --- Mobile drawer -------------------------------------------------------- */
.mobile-nav {
    display: none;
    position: fixed;
    inset-block-start: calc(var(--header-h) - 6px);
    inset-inline: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.mobile-nav a {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 1rem;
}
.mobile-nav a:not(.btn):hover,
.mobile-nav a.active:not(.btn) { background: var(--paper-3); color: var(--ink); }
.mobile-nav .btn { margin-block-start: 8px; }

/* =============================================================================
   HERO
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: calc(var(--header-h) + 54px) 88px;
    overflow: hidden;
}

/* The old per-page atmosphere nodes are folded into the global .site-fx layer. */
.hero-atmosphere { display: none; }

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.03fr;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.badge-container { margin-bottom: 26px; }

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-sm);
}
.badge-ping {
    position: relative;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex-shrink: 0;
}
.badge-ping::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ok);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    0%   { transform: scale(1); opacity: 0.7; }
    75%, 100% { transform: scale(3.2); opacity: 0; }
}

.hero-title {
    font-size: clamp(2.3rem, 1.05rem + 3.9vw, 4.05rem);
    font-weight: 600;
    line-height: 1.09;
    letter-spacing: -0.033em;
    color: var(--ink);
    margin-bottom: 26px;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.06rem;
    line-height: 1.82;
    color: var(--ink-2);
    max-width: 58ch;
    margin-bottom: 36px;
    text-wrap: pretty;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --- The stage ------------------------------------------------------------ */
.hero-visual { perspective: 1600px; }

.hero-stage {
    --px: 0; --py: 0;
    position: relative;
    transform:
        rotateY(calc(var(--px) * -7deg))
        rotateX(calc(var(--py) * 6deg))
        translate3d(calc(var(--px) * -14px), calc(var(--py) * -12px), 0);
    transform-style: preserve-3d;
    transition: transform 0.7s var(--ease-out-quart);
    will-change: transform;
}

/* Light spilling off the product panel onto the paper. */
.hero-stage::before {
    content: "";
    position: absolute;
    inset: 10% -8% -14% -8%;
    background: radial-gradient(58% 52% at 50% 50%, rgba(37, 106, 128, 0.28), transparent 70%);
    filter: blur(48px);
    z-index: -1;
    animation: stage-breathe 8s ease-in-out infinite alternate;
}
@keyframes stage-breathe {
    from { opacity: 0.5; transform: scale(0.94); }
    to   { opacity: 0.95; transform: scale(1.06); }
}

/* =============================================================================
   PRODUCT CONSOLE — dark panel, deliberately inverted against the paper
   ========================================================================== */

.console {
    position: relative;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--panel-700) 0%, var(--panel-950) 62%);
    border: 1px solid rgba(15, 26, 32, 0.5);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    overflow: hidden;
    isolation: isolate;
    color: var(--panel-txt);
}

/* Slow conic hairline travelling around the panel. */
.console::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--ang, 0deg),
        transparent 0deg, rgba(124, 196, 216, 0.9) 40deg,
        transparent 110deg, transparent 240deg,
        rgba(238, 107, 56, 0.75) 290deg, transparent 350deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: border-spin 9s linear infinite;
    pointer-events: none;
    z-index: 3;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --ang: 360deg; } }

.console-sheen {
    position: absolute;
    inset-block-start: -60%;
    inset-inline-start: -30%;
    width: 60%; height: 220%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: rotate(14deg);
    animation: sheen-pass 7.5s var(--ease-out-quart) infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes sheen-pass {
    0%, 62%  { inset-inline-start: -40%; opacity: 0; }
    70%      { opacity: 1; }
    100%     { inset-inline-start: 130%; opacity: 0; }
}

.console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-block-end: 1px solid var(--panel-line);
    background: rgba(255, 255, 255, 0.025);
}
.win-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    color: var(--panel-txt);
}
.win-brand img { width: 20px; height: 20px; }
.win-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--panel-txt-2);
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-line);
}
.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #3ECF8E;
    box-shadow: 0 0 10px #3ECF8E;
    animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft { 50% { opacity: 0.35; } }

.console-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

/* --- Stat strip ----------------------------------------------------------- */
.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.cstat {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--panel-line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-smooth);
}
.cstat:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--panel-line-2);
    transform: translateY(-2px);
}
.cstat-label { font-size: 0.71rem; color: var(--panel-txt-3); }
.cstat-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--panel-txt);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.cstat-note { font-size: 0.7rem; color: var(--panel-txt-3); }
.cstat-note.up { color: #3ECF8E; }

.cstat-spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.cstat-spark i {
    display: block;
    flex: 1;
    height: var(--h);
    border-radius: 2px;
    background: linear-gradient(180deg, var(--brand-300), rgba(124, 196, 216, 0.2));
    transform-origin: bottom;
    animation: spark-grow 0.8s var(--ease-out-expo) backwards;
}
.cstat-spark i:nth-child(1) { animation-delay: 0.5s; }
.cstat-spark i:nth-child(2) { animation-delay: 0.56s; }
.cstat-spark i:nth-child(3) { animation-delay: 0.62s; }
.cstat-spark i:nth-child(4) { animation-delay: 0.68s; }
.cstat-spark i:nth-child(5) { animation-delay: 0.74s; }
.cstat-spark i:nth-child(6) { animation-delay: 0.8s; }
.cstat-spark i:nth-child(7) {
    animation-delay: 0.86s;
    background: linear-gradient(180deg, var(--ember-400), rgba(238, 107, 56, 0.2));
}
@keyframes spark-grow { from { transform: scaleY(0); opacity: 0; } }

/* --- AI conversation block ------------------------------------------------ */
.console-chat {
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, rgba(62, 147, 172, 0.14), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--panel-line);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-height: 186px;
}
.cc-head { display: flex; align-items: center; gap: 9px; }
.cc-avatar {
    width: 26px; height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
    box-shadow: 0 0 16px -4px rgba(62, 147, 172, 0.9);
}
.cc-name { font-size: 0.85rem; color: var(--panel-txt-2); flex: 1; }
.cc-badge {
    font-family: var(--font-display);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--brand-200);
    background: rgba(124, 196, 216, 0.14);
    border: 1px solid rgba(124, 196, 216, 0.3);
}

.fc-user {
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-line);
    font-size: 0.88rem;
    color: var(--panel-txt);
    min-height: 42px;
    line-height: 1.5;
    word-break: break-word;
}
.typewriter-text { color: var(--panel-txt); }
.cursor {
    display: inline-block;
    color: var(--brand-300);
    font-weight: 300;
    animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.fc-resp {
    min-height: 62px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s var(--ease-out-quart), transform 0.45s var(--ease-out-quart);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fc-resp.show { opacity: 1; transform: none; }
.terminal-resp-row {
    display: flex;
    gap: 7px;
    font-size: 0.82rem;
    line-height: 1.55;
    padding-inline-start: 4px;
}
.terminal-resp-key { color: var(--brand-300); font-weight: 500; flex-shrink: 0; }
.terminal-resp-val { color: var(--panel-txt-2); }

.fc-typing { display: flex; gap: 5px; padding-inline-start: 4px; }
.fc-typing span {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--panel-txt-3);
    animation: dot-bounce 1.3s ease-in-out infinite;
}
.fc-typing span:nth-child(2) { animation-delay: 0.16s; }
.fc-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes dot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* --- Activity feed --------------------------------------------------------- */
.console-feed {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--panel-line);
    padding: 14px;
}
.cfeed-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--panel-txt-3);
    margin-bottom: 10px;
}
.cfeed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 7px;
    font-size: 0.8rem;
    color: var(--panel-txt-2);
    border-block-start: 1px solid rgba(255, 255, 255, 0.05);
}
.cfeed-row:first-of-type { border-block-start: none; }
.cfeed-text { flex: 1; }
.cfeed-text strong { color: var(--panel-txt); font-weight: 500; }
.cfeed-time { font-size: 0.71rem; color: var(--panel-txt-3); flex-shrink: 0; }
.cfeed-icon { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cfeed-icon.ok { background: #3ECF8E; box-shadow: 0 0 8px #3ECF8E; }
.cfeed-icon.run {
    background: var(--ember-400);
    box-shadow: 0 0 8px var(--ember-400);
    animation: pulse-soft 1.4s ease-in-out infinite;
}

/* =============================================================================
   SOCIAL PROOF / STATS
   ========================================================================== */

.social-proof-section {
    padding-block: 70px;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.stat-card { flex: 1; min-width: 160px; text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 1.3rem + 2.2vw, 3.05rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(165deg, var(--brand-600) 8%, var(--brand-400) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.stat-label { font-size: 0.87rem; color: var(--ink-3); line-height: 1.45; }
.stat-divider {
    width: 1px;
    align-self: stretch;
    min-height: 56px;
    background: linear-gradient(180deg, transparent, var(--line-2), transparent);
}

/* =============================================================================
   PROBLEM / SOLUTION
   ========================================================================== */

.problem-section { padding-block: 118px; }
.problem-section .section-header { margin-inline: auto; text-align: center; }

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

.problem-card {
    position: relative;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    overflow: hidden;
    transition: transform 0.5s var(--ease-out-quart), border-color 0.4s ease, box-shadow 0.5s var(--ease-out-quart);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.problem-card.old-way { background: rgba(241, 239, 234, 0.6); }
.problem-card.old-way h3 { color: var(--ink-2); }
.problem-card.old-way .problem-list span { color: var(--ink-3); }
.problem-card.old-way .problem-list li i { color: rgba(214, 69, 90, 0.55); }

.problem-card.new-way {
    background: linear-gradient(155deg, rgba(228, 242, 246, 0.95) 0%, rgba(255, 255, 255, 0.85) 62%);
    border-color: rgba(37, 106, 128, 0.2);
    box-shadow: var(--shadow-md);
}
.problem-card.new-way:hover { box-shadow: var(--shadow-lg); }
.problem-card.new-way .card-glow {
    position: absolute;
    inset-block-start: -30%;
    inset-inline-end: -20%;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 196, 216, 0.55), transparent 68%);
    filter: blur(40px);
    pointer-events: none;
    animation: stage-breathe 9s ease-in-out infinite alternate;
}

.card-icon-wrapper {
    position: relative;
    width: 54px; height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid var(--line-2);
}
.card-icon-wrapper i { width: 24px; height: 24px; }
.card-icon-wrapper.red-theme {
    background: #fff;
    color: var(--bad);
    border-color: rgba(214, 69, 90, 0.22);
    box-shadow: var(--shadow-xs);
}
.card-icon-wrapper.teal-theme {
    background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px -12px rgba(37, 106, 128, 0.9);
}

.problem-card h3 {
    position: relative;
    font-size: 1.34rem;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin-bottom: 24px;
}

.problem-list { position: relative; display: flex; flex-direction: column; gap: 15px; }
.problem-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--ink-2);
}
.problem-list li i { width: 19px; height: 19px; flex-shrink: 0; margin-block-start: 4px; }
.problem-card.new-way .problem-list li i { color: var(--brand-500); }
.problem-list strong { color: var(--ink); font-weight: 600; }

/* =============================================================================
   MOBILE / REMOTE SECTION
   ========================================================================== */

.mobile-section {
    padding-block: 118px;
    border-block-start: 1px solid var(--line);
}

.mobile-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 78px;
    align-items: center;
}

.mobile-visual { display: flex; justify-content: center; perspective: 1400px; }

.phone-mockup {
    position: relative;
    width: 308px;
    border-radius: 44px;
    padding: 11px;
    background: linear-gradient(160deg, #2A3441 0%, #0A0F16 55%, #1A2230 100%);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.phone-mockup::before {
    content: "";
    position: absolute;
    inset: -16%;
    background: radial-gradient(circle at 50% 45%, rgba(124, 196, 216, 0.45), transparent 62%);
    filter: blur(46px);
    z-index: -1;
}

.phone-screen {
    border-radius: 34px;
    background: var(--panel-950);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--panel-txt);
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 20px 6px;
    font-size: 0.72rem;
    color: var(--panel-txt-2);
    position: relative;
}
.phone-speaker {
    position: absolute;
    inset-block-start: 9px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 72px; height: 20px;
    border-radius: 999px;
    background: #04060A;
}
.phone-battery i { width: 17px; height: 17px; }

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-block-end: 1px solid var(--panel-line);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--panel-txt);
}
.logo-w {
    width: 24px; height: 24px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
}
.phone-user-icon { width: 17px; height: 17px; margin-inline-start: auto; color: var(--panel-txt-3); }

.phone-app-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    background: var(--panel-950);
}

.phone-app-card {
    padding: 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-line);
}
.phone-app-card.dark-card {
    background: linear-gradient(150deg, rgba(62, 147, 172, 0.2), rgba(255, 255, 255, 0.02));
    border-color: rgba(124, 196, 216, 0.24);
}
.phone-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--panel-txt-3);
    margin-bottom: 7px;
}
.phone-card-title i { width: 15px; height: 15px; }
.phone-card-num {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--panel-txt);
    letter-spacing: -0.02em;
}
.phone-card-subtitle { font-size: 0.72rem; color: var(--panel-txt-3); margin-block-start: 3px; }
.phone-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #3ECF8E;
    box-shadow: 0 0 9px #3ECF8E;
    animation: pulse-soft 2s ease-in-out infinite;
}
.ai-spark-icon { color: var(--ember-400); }

.phone-quick-actions { display: flex; gap: 8px; }
.phone-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 6px;
    font-size: 0.72rem;
    color: var(--panel-txt-2);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--panel-line);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.phone-action-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--panel-txt); }
.phone-action-btn i { width: 14px; height: 14px; }

.phone-chat-preview { display: flex; flex-direction: column; gap: 7px; }
.chat-u, .chat-ai {
    font-size: 0.75rem;
    padding: 8px 11px;
    border-radius: 11px;
    line-height: 1.5;
}
.chat-u {
    background: rgba(255, 255, 255, 0.08);
    color: var(--panel-txt);
    align-self: flex-start;
    border-end-start-radius: 3px;
}
.chat-ai {
    background: rgba(62, 147, 172, 0.28);
    color: var(--brand-200);
    align-self: flex-end;
    border-end-end-radius: 3px;
}

.mobile-desc {
    font-size: 1.02rem;
    line-height: 1.82;
    color: var(--ink-2);
    margin-bottom: 18px;
    text-wrap: pretty;
}
.mobile-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-block-start: 30px;
}
.mobile-features-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--ink-2);
    padding: 14px 17px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    transition: var(--transition-smooth);
}
.mobile-features-list li:hover {
    background: #fff;
    border-color: var(--brand-300);
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}
.mobile-features-list li i {
    width: 19px; height: 19px;
    flex-shrink: 0;
    margin-block-start: 3px;
    color: var(--brand-500);
}
.mobile-features-list strong { color: var(--ink); font-weight: 600; }

/* =============================================================================
   FEATURE CARDS
   ========================================================================== */

.features-preview-section,
.features-section { padding-block: 118px; border-block-start: 1px solid var(--line); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    --mx: 50%; --my: 0%;
    position: relative;
    padding: 34px 30px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s var(--ease-out-quart), border-color 0.4s ease,
                background-color 0.4s ease, box-shadow 0.5s var(--ease-out-quart);
}

/* Pointer-tracked spotlight; --mx/--my are written by script.js. */
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 196, 216, 0.22), transparent 62%);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: -1;
}
.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 106, 128, 0.22);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: #fff;
    background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
    box-shadow: 0 8px 20px -12px rgba(37, 106, 128, 0.95);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}
.feature-card:hover .feature-icon {
    transform: translateY(-3px) rotate(-6deg);
    box-shadow: 0 14px 28px -12px rgba(37, 106, 128, 1);
}
.feature-icon i { width: 23px; height: 23px; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.018em;
    margin-bottom: 12px;
    line-height: 1.42;
}
.feature-card p {
    font-size: 0.94rem;
    line-height: 1.74;
    color: var(--ink-2);
    text-wrap: pretty;
}
.feature-card p strong { color: var(--brand-700); font-weight: 600; }
.feature-card em { color: var(--ink); font-style: italic; }

/* =============================================================================
   FINAL CTA — the one deliberately dark moment on the marketing pages
   ========================================================================== */

.final-cta-section { padding-block: 118px; }

.cta-box {
    position: relative;
    padding: 82px 56px;
    border-radius: 32px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(90% 130% at 50% 0%, rgba(62, 147, 172, 0.4), transparent 62%),
        linear-gradient(160deg, var(--brand-800) 0%, var(--panel-950) 100%);
    box-shadow: var(--shadow-xl);
}
.cta-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 78%);
    mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 78%);
    z-index: -1;
}
.cta-glow {
    position: absolute;
    inset-block-end: -55%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(206, 76, 32, 0.42), transparent 66%);
    filter: blur(60px);
    z-index: -1;
    animation: stage-breathe 10s ease-in-out infinite alternate;
}
.cta-box h2 {
    font-size: clamp(1.85rem, 1.1rem + 2.4vw, 2.95rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    text-wrap: balance;
}
.cta-box p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 62ch;
    margin: 0 auto 36px;
    line-height: 1.78;
    text-wrap: pretty;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn-primary {
    background: #fff;
    color: var(--brand-800);
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.8);
}
.cta-box .btn-primary:hover { background: #fff; color: var(--brand-800); }

/* =============================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    position: relative;
    padding-block: 52px 40px;
    border-block-start: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
}

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

.footer-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--ink-3);
}
.footer-sep { color: var(--line-2); }
.footer-credit { color: var(--ink-2); }
.footer-credit:hover { color: var(--brand-500); }

.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-links a {
    font-size: 0.87rem;
    color: var(--ink-3);
    padding: 6px 12px;
    border-radius: 999px;
}
.footer-links a:hover { color: var(--ink); background: var(--paper-3); }
.footer-links a.active { color: var(--brand-600); font-weight: 500; }

/* =============================================================================
   SUBPAGE HERO BANNER
   ========================================================================== */

.page-title-banner {
    position: relative;
    padding-block: calc(var(--header-h) + 72px) 56px;
    overflow: hidden;
}
.page-title-banner::before {
    content: "";
    position: absolute;
    inset-block-start: -34%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 940px; height: 620px;
    background: radial-gradient(circle, rgba(124, 196, 216, 0.4), transparent 64%);
    filter: blur(70px);
    pointer-events: none;
}

.page-title-card { position: relative; text-align: center; max-width: 880px; margin-inline: auto; }
.page-title-card h1 {
    font-size: clamp(2.1rem, 1.15rem + 3.3vw, 3.6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.033em;
    color: var(--ink);
    margin-bottom: 20px;
    text-wrap: balance;
}
.page-title-card p {
    font-size: 1.07rem;
    color: var(--ink-2);
    line-height: 1.8;
    max-width: 64ch;
    margin-inline: auto;
    text-wrap: pretty;
}

/* =============================================================================
   DASHBOARD SHOWCASE (features page)
   ========================================================================== */

.demo-section { padding-block: 30px 118px; position: relative; }

.tabs-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block-end: 4px;
}
.tabs-nav-wrapper::-webkit-scrollbar { display: none; }

.showcase-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 19px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-3);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.35s var(--ease-out-quart);
    z-index: 1;
}
.tab-btn i { width: 17px; height: 17px; transition: transform 0.4s var(--ease-spring); }
.tab-btn:hover { color: var(--ink); }
.tab-btn:hover i { transform: translateY(-2px); }
.tab-btn.active { color: #fff; font-weight: 500; }
.tab-btn.active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
    box-shadow: 0 8px 18px -10px rgba(37, 106, 128, 1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: -1;
    animation: tab-pop 0.45s var(--ease-spring);
}
@keyframes tab-pop { from { transform: scale(0.86); opacity: 0; } }

.showcase-viewport { position: relative; }
.showcase-viewport::before {
    content: "";
    position: absolute;
    inset: 8% 2% -8%;
    background: radial-gradient(58% 50% at 50% 50%, rgba(37, 106, 128, 0.26), transparent 70%);
    filter: blur(55px);
    pointer-events: none;
}

/* Dark browser chrome: the app screenshots inside it are dark. */
.browser-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(160deg, var(--panel-700) 0%, var(--panel-950) 60%);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    color: var(--panel-txt);
}

.browser-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 18px;
    border-block-end: 1px solid var(--panel-line);
    background: rgba(255, 255, 255, 0.025);
}
.browser-dots { display: flex; gap: 7px; }
.b-dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.b-dot.close { background: #F0616D; }
.b-dot.minimize { background: #F3B24A; }
.b-dot.maximize { background: #3ECF8E; }

.browser-address {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 380px;
    margin-inline: auto;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-line);
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: var(--panel-txt-3);
    direction: ltr;
}
.lock-icon { width: 13px; height: 13px; color: #3ECF8E; }

.browser-content { padding: 26px; }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: pane-in 0.6s var(--ease-out-expo); }
@keyframes pane-in {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to   { opacity: 1; transform: none; }
}

.pane-split {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: center;
}

.pane-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--panel-line-2);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 1);
    transition: transform 0.6s var(--ease-out-quart);
}
.pane-image:hover { transform: scale(1.012); }
.pane-image img { width: 100%; display: block; }

.pane-desc h4 {
    font-size: 1.26rem;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin-bottom: 14px;
    line-height: 1.35;
    color: var(--panel-txt);
}
.pane-desc p {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--panel-txt-2);
    margin-bottom: 14px;
    text-wrap: pretty;
}
.pane-desc em { color: var(--brand-200); font-style: italic; }

.highlight-p {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 15px 17px;
    border-radius: var(--radius-md);
    background: linear-gradient(140deg, rgba(238, 107, 56, 0.16), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(238, 107, 56, 0.24);
    border-inline-start: 3px solid var(--ember-500);
}
.highlight-p i { width: 19px; height: 19px; flex-shrink: 0; margin-block-start: 3px; color: var(--ember-400); }
.highlight-p strong { color: var(--ember-300); font-weight: 600; }

.tech-specs { display: flex; flex-wrap: wrap; gap: 9px; margin-block-start: 20px; }
.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--panel-txt-2);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--panel-line);
    transition: var(--transition-smooth);
}
.spec-badge:hover {
    border-color: rgba(124, 196, 216, 0.45);
    color: var(--panel-txt);
    background: rgba(255, 255, 255, 0.09);
}
.spec-badge i { width: 14px; height: 14px; color: var(--brand-300); }

/* =============================================================================
   HOW IT WORKS — timeline
   ========================================================================== */

.how-works-section {
    padding-block: 118px;
    border-block-start: 1px solid var(--line);
}

.steps-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* The rail, plus a coloured overlay drawn on scroll via --draw. */
.steps-timeline::before,
.steps-timeline::after {
    content: "";
    position: absolute;
    inset-block-start: 32px;
    inset-inline: 14%;
    height: 2px;
    border-radius: 2px;
}
.steps-timeline::before {
    background: linear-gradient(90deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent);
}
.steps-timeline::after {
    background: linear-gradient(90deg, var(--ember-500), var(--brand-500));
    transform: scaleX(var(--draw, 0));
    transform-origin: 100% 50%;
    transition: transform 1.6s var(--ease-out-expo);
}

.step-item { position: relative; text-align: center; padding: 0 14px; }

.step-number {
    position: relative;
    width: 64px; height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
    box-shadow: 0 0 0 8px var(--paper), 0 14px 28px -14px rgba(37, 106, 128, 1);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}
.step-item:hover .step-number {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 0 0 8px var(--paper), 0 20px 34px -14px rgba(37, 106, 128, 1);
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.018em;
    margin-bottom: 11px;
}
.step-content p {
    font-size: 0.93rem;
    line-height: 1.72;
    color: var(--ink-2);
    max-width: 34ch;
    margin-inline: auto;
    text-wrap: pretty;
}

/* =============================================================================
   FAQ
   ========================================================================== */

.faq-section { padding-block: 118px; border-block-start: 1px solid var(--line); }

.faq-accordion {
    max-width: 860px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.faq-item:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.9); }
.faq-item.active {
    border-color: rgba(37, 106, 128, 0.22);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    cursor: pointer;
    font-size: 1.03rem;
    font-weight: 500;
    color: var(--ink);
    user-select: none;
}
.faq-question i {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--brand-500);
    transition: transform 0.45s var(--ease-out-expo);
}
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.5s var(--ease-out-expo);
}
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-answer p {
    padding: 0 26px 24px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ink-2);
    text-wrap: pretty;
}

/* =============================================================================
   CONTACT
   ========================================================================== */

.contact-section { padding-block: 30px 108px; }

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 58px;
    align-items: start;
}

.contact-desc {
    font-size: 1.02rem;
    line-height: 1.82;
    color: var(--ink-2);
    margin-bottom: 32px;
    text-wrap: pretty;
}

.contact-details { display: flex; flex-direction: column; gap: 12px; }
.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    transition: var(--transition-smooth);
}
.detail-item:hover {
    background: #fff;
    border-color: var(--brand-300);
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}
.detail-icon {
    width: 44px; height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
    box-shadow: 0 8px 18px -12px rgba(37, 106, 128, 0.95);
}
.detail-icon i { width: 20px; height: 20px; }
.detail-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.detail-text span:first-child { font-size: 0.78rem; color: var(--ink-3); }
.detail-text a, .detail-text span:last-child { font-size: 1rem; color: var(--ink); font-weight: 500; }
.detail-text a:hover { color: var(--brand-500); }

/* --- Form ----------------------------------------------------------------- */
.contact-form-wrapper {
    position: relative;
    padding: 38px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.contact-form-wrapper::before {
    content: "";
    position: absolute;
    inset-block-start: -40%;
    inset-inline-end: -20%;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 196, 216, 0.22), transparent 70%);
    filter: blur(55px);
    pointer-events: none;
}

.contact-form { position: relative; display: flex; flex-direction: column; gap: 17px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.86rem; font-weight: 500; color: var(--ink-2); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    font-family: var(--font-main);
    font-size: 0.97rem;
    color: var(--ink);
    padding: 13px 16px;
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 1px solid var(--line-2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-4); }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px rgba(37, 106, 128, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-block: 4px 8px;
}
.checkbox-group input[type="checkbox"] {
    width: 17px; height: 17px;
    margin-block-start: 4px;
    accent-color: var(--brand-500);
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-group label {
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink-3);
    cursor: pointer;
    user-select: none;
}
.checkbox-group label a { color: var(--brand-600); font-weight: 500; text-decoration: underline; }
.checkbox-group label a:hover { color: var(--brand-500); }

.form-alert {
    display: none;
    align-items: center;
    gap: 11px;
    padding: 15px 18px;
    border-radius: var(--radius-md);
    font-size: 0.93rem;
    line-height: 1.5;
}
.form-alert i { width: 20px; height: 20px; flex-shrink: 0; }
.success-alert {
    color: #14764E;
    background: rgba(29, 159, 107, 0.1);
    border: 1px solid rgba(29, 159, 107, 0.28);
}

/* =============================================================================
   ABOUT
   ========================================================================== */

.about-content-section { padding-block: 90px 118px; }

.about-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 66px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.7rem, 1.1rem + 1.7vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.18;
    margin-bottom: 22px;
    color: var(--ink);
}
.about-text p {
    font-size: 1.02rem;
    line-height: 1.86;
    color: var(--ink-2);
    margin-bottom: 20px;
    text-wrap: pretty;
}
.about-text strong { color: var(--ink); font-weight: 600; }

.about-text blockquote {
    position: relative;
    margin-block: 32px 0;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--ember-500);
    background: linear-gradient(140deg, var(--ember-100), rgba(255, 255, 255, 0.7));
    font-size: 1.07rem;
    font-style: italic;
    line-height: 1.72;
    color: var(--ink);
    text-wrap: pretty;
    box-shadow: var(--shadow-xs);
}

.about-features-visual {
    position: relative;
    padding: 44px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.about-features-visual .card-glow {
    position: absolute;
    inset-block-start: -70px;
    inset-inline-start: -70px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 154, 114, 0.4), transparent 68%);
    filter: blur(45px);
    pointer-events: none;
    animation: stage-breathe 9s ease-in-out infinite alternate;
}
.about-features-visual h3 {
    position: relative;
    font-size: 1.33rem;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin-bottom: 26px;
    color: var(--ink);
}

.about-value-item {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-inline: -16px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}
.about-value-item:hover { background: var(--brand-50); }
.value-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
    box-shadow: 0 8px 18px -12px rgba(37, 106, 128, 0.95);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}
.about-value-item:hover .value-icon {
    transform: rotate(-8deg) scale(1.05);
    box-shadow: 0 14px 26px -12px rgba(37, 106, 128, 1);
}
.value-icon i { width: 21px; height: 21px; }
.about-value-item h4 {
    font-size: 1.04rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}
.about-value-item p {
    font-size: 0.91rem;
    line-height: 1.66;
    color: var(--ink-2);
    text-wrap: pretty;
}

.w-control-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-block-start: 92px;
    padding-block-start: 58px;
    border-block-start: 1px solid var(--line);
}
.w-control-info h2 {
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.w-control-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-2);
    max-width: 68ch;
    text-wrap: pretty;
}
.w-control-info strong { color: var(--ink); font-weight: 600; }

/* =============================================================================
   POLICY PAGE
   ========================================================================== */

.policy-container { padding-block: 30px 118px; }

.policy-content {
    max-width: 900px;
    margin-inline: auto;
    padding: 52px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}
.policy-section-title {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-block: 54px 22px;
    padding-block-end: 16px;
    border-block-end: 1px solid var(--line);
    color: var(--ink);
}
.policy-content h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--brand-600);
    margin-block: 30px 10px;
}
.policy-content p,
.policy-content li {
    font-size: 0.96rem;
    line-height: 1.86;
    color: var(--ink-2);
    margin-bottom: 12px;
    text-wrap: pretty;
}
.policy-content li { position: relative; padding-inline-start: 20px; }
.policy-content li::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    inset-block-start: 12px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand-400);
}
.policy-content strong { color: var(--ink); font-weight: 600; }
.policy-content a { color: var(--brand-600); text-decoration: underline; }

/* =============================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.95s var(--ease-out-expo), transform 0.95s var(--ease-out-expo);
    transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-blur {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(24px) scale(0.985);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo), filter 1s var(--ease-out-expo);
    transition-delay: var(--rd, 0ms);
}
.reveal-blur.in { opacity: 1; filter: none; transform: none; }

/* Legacy hook: keep anything still referencing it visible. */
.scroll-reveal { opacity: 1; }

/* =============================================================================
   WHATSAPP — a direct link, pinned opposite the chatbot widget
   ========================================================================== */

.whatsapp-float-button {
    position: fixed;
    inset-block-end: 26px;
    left: 26px;
    z-index: 1100;
    width: 58px; height: 58px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #35D06A 0%, #1EA855 100%);
    box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}
.whatsapp-float-button svg { width: 29px; height: 29px; fill: #fff; }
.whatsapp-float-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(37, 211, 102, 0.6);
    animation: ember-ring 2.8s ease-out infinite;
    pointer-events: none;
}
.whatsapp-float-button:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 18px 38px -10px rgba(37, 211, 102, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* =============================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .hero-container { grid-template-columns: 1fr; gap: 56px; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-inline: auto; }
    .hero-ctas { justify-content: center; }
    .hero-section { min-height: auto; padding-block: calc(var(--header-h) + 48px) 80px; }
    .hero-stage { transform: none !important; }

    .mobile-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
    .mobile-visual { order: -1; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pane-split { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 992px) {
    :root { --header-h: 70px; }

    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-demo-btn, .header-actions .btn-primary { display: none; }

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

    .steps-timeline { grid-template-columns: 1fr; gap: 40px; }
    .steps-timeline::before, .steps-timeline::after { display: none; }

    .stats-grid { gap: 32px 12px; }
    .stat-card { flex: 1 1 40%; min-width: 130px; }
    .stat-divider { display: none; }

    .cursor-glow, .cursor-dot { display: none; }
}

@media (max-width: 720px) {
    .container { padding: 0 20px; }

    .problem-section, .mobile-section, .features-preview-section, .features-section,
    .how-works-section, .faq-section, .final-cta-section, .demo-section,
    .about-content-section, .policy-container { padding-block: 76px; }
    .demo-section, .contact-section, .policy-container { padding-block-start: 24px; }

    .section-header { margin-bottom: 44px; }

    .features-grid { grid-template-columns: 1fr; }
    .problem-card, .contact-form-wrapper, .about-features-visual { padding: 28px 24px; }
    .policy-content { padding: 30px 24px; }
    .cta-box { padding: 56px 26px; border-radius: 26px; }
    .browser-content { padding: 18px; }
    .browser-address { display: none; }

    .console-stats { grid-template-columns: 1fr; }
    .console-body { padding: 15px; gap: 12px; }
    .cstat { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .cstat-spark { width: 76px; flex: none; }

    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
    .footer-links { margin-inline-start: -12px; }

    .page-title-banner { padding-block: calc(var(--header-h) + 56px) 52px; }

    .whatsapp-float-button { inset-block-end: 18px; left: 18px; }

    .btn-lg { padding: 14px 26px; font-size: 0.98rem; }
    .hero-ctas .btn { flex: 1 1 auto; }
}

/* =============================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal, .reveal-blur { opacity: 1 !important; transform: none !important; filter: none !important; }
    .w-i { transform: none !important; opacity: 1 !important; }
    .fx-grain, .fx-aurora span { animation: none !important; }
    .cursor-glow, .cursor-dot { display: none !important; }
    .hero-stage { transform: none !important; }
}

/* =============================================================================
   PRINT
   ========================================================================== */

@media print {
    .site-fx, .scroll-progress, .cursor-glow, .cursor-dot,
    .whatsapp-float-button, .main-header, .mobile-nav { display: none !important; }
    body { background: #fff; color: #000; }
    .reveal, .reveal-blur { opacity: 1 !important; transform: none !important; }
}

/* =============================================================================
   HERO ENTRANCE
   Gated on .js so the content is never hidden when scripting is unavailable.
   ========================================================================== */

.js .hero-content > *:not(.hero-title),
.js .hero-visual {
    opacity: 0;
    transform: translateY(26px);
}
.js .hero-visual { transform: translateY(30px) scale(0.975); }

.hero-ready .hero-content > *:not(.hero-title) {
    animation: hero-in 0.9s var(--ease-out-expo) forwards;
}
.hero-ready .badge-container   { animation-delay: 0.05s; }
.hero-ready .hero-subtitle     { animation-delay: 0.34s; }
.hero-ready .hero-ctas         { animation-delay: 0.46s; }
.hero-ready .hero-visual       { animation: hero-in-stage 1.25s var(--ease-out-expo) 0.2s forwards; }

@keyframes hero-in       { to { opacity: 1; transform: none; } }
@keyframes hero-in-stage { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .js .hero-content > *:not(.hero-title),
    .js .hero-visual { opacity: 1 !important; transform: none !important; }
}

/* A parent's background-clip:text does not paint through the nested word spans,
   so a split headline hands each word its own slice of one shared gradient.
   script.js measures the offsets and writes background-size/position. */
.gradient-text.gradient-split {
    background: none;
    animation: none;
    -webkit-text-fill-color: transparent;
}
.gradient-text.gradient-split .w-i {
    background-image: linear-gradient(258deg, var(--brand-600) 0%, var(--brand-400) 34%, var(--ember-500) 76%, var(--ember-400) 100%);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Short desktop viewports: keep the whole console inside the first screen. */
@media (min-width: 1101px) and (max-height: 820px) {
    .hero-section { padding-block: calc(var(--header-h) + 30px) 52px; }
    .console-body { padding: 16px; gap: 12px; }
    .console-chat { min-height: 158px; }
    .console-feed { padding: 12px; }
}

/* --- Small structural helpers ------------------------------------------- */
.section-cta { margin-block-start: 52px; }
.policy-content > .policy-section-title:first-child { margin-block-start: 0; }


/* =============================================================================
   EDITORIAL DETAIL
   ========================================================================== */

/* Ghost numerals: the cards are a numbered set, so the count is typographic
   rather than typed into each heading. */
.features-grid { counter-reset: feat; }
.feature-card { counter-increment: feat; }
.feature-card::after {
    content: counter(feat, decimal-leading-zero);
    position: absolute;
    inset-block-start: 22px;
    inset-inline-end: 28px;
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(15, 26, 32, 0.16);
    pointer-events: none;
    transition: transform 0.5s var(--ease-out-quart), -webkit-text-stroke-color 0.4s ease;
}
.feature-card:hover::after {
    transform: translateY(-4px);
    -webkit-text-stroke-color: rgba(37, 106, 128, 0.45);
}

/* Footer watermark: the brand at display scale, fading into the paper. */
.footer-brand {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8.6vw, 7.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-align: center;
    direction: ltr;
    white-space: nowrap;
    user-select: none;
    margin-block-end: 36px;
    background: linear-gradient(180deg, rgba(37, 106, 128, 0.17) 0%, rgba(37, 106, 128, 0) 72%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 720px)  { .footer-brand { margin-block-end: 30px; } }
