/* ==========================================================================
   Ytech Schoolina — landing page
   Design tokens are derived from the Ytech mark: a sky → deep-blue gradient
   (#7fd4f5 → #1aa0dc → #0b679e) anchored by deep navy (#062033).
   ========================================================================== */

:root {
    /* Brand */
    --navy-950: #03111d;
    --navy-900: #062033;
    --navy-800: #0a2f4b;
    --navy-700: #0f3f63;
    --blue-700: #0b679e;
    --blue-600: #1286cc;
    --blue-500: #1aa0dc;
    --sky-300: #7fd4f5;
    --sky-100: #e3f5fd;
    --sky-50: #f2fafe;

    /* Neutrals */
    --ink: #0b2234;
    --ink-2: #33506a;
    --muted: #5b7388;
    --line: rgba(11, 34, 52, 0.1);
    --line-strong: rgba(11, 34, 52, 0.16);
    --surface: #ffffff;
    --bg: #f6f9fc;
    --bg-tint: #eef5fa;

    /* Status */
    --ok: #12a26b;
    --ok-bg: #e2f6ee;
    --warn: #c98612;
    --warn-bg: #fdf2dc;
    --bad: #d64545;
    --bad-bg: #fde6e6;

    --grad: linear-gradient(135deg, #7fd4f5 0%, #1aa0dc 45%, #0b679e 100%);
    --grad-btn: linear-gradient(135deg, #22a9e4 0%, #1286cc 55%, #0b679e 100%);

    /* Type */
    --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
    --display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
    --fs-hero: clamp(2.1rem, 1.3rem + 3vw, 3.45rem);
    --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
    --fs-h3: 1.2rem;
    --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);

    /* Space & shape */
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(72px, 9vw, 128px);
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(6, 32, 51, 0.06), 0 2px 8px rgba(6, 32, 51, 0.05);
    --shadow-md: 0 2px 4px rgba(6, 32, 51, 0.05), 0 12px 32px rgba(6, 32, 51, 0.09);
    --shadow-lg: 0 4px 10px rgba(6, 32, 51, 0.06), 0 30px 70px rgba(6, 32, 51, 0.18);
    --shadow-blue: 0 10px 30px rgba(18, 134, 204, 0.35);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wrap {
    width: min(var(--wrap), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.text-grad {
    background: linear-gradient(120deg, #a5e3fa 0%, #4cc0ef 45%, #1aa0dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn .ico { transition: transform 0.3s var(--ease); }
.btn:hover .ico { transform: translateX(-4px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.04rem; }

.btn-primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, var(--shadow-blue);
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
    transform: translateX(120%);
    transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 40px rgba(18, 134, 204, 0.45); }
.btn-primary:hover::after { transform: translateX(-120%); }

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }

.btn-ghost-dark {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}
.btn-ghost-dark:hover { border-color: var(--blue-600); color: var(--blue-700); }

.link { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 60;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    background: var(--grad);
    transform-origin: right center;
    transform: scaleX(var(--p, 0));
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-h);
    color: #fff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
/* Solid background: backdrop-filter blur re-rendered the page under the header on every scroll frame. */
.site-header.is-scrolled {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(6, 32, 51, 0.06);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-tile {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(3, 17, 29, 0.25);
    transition: transform 0.4s var(--ease);
}
.brand:hover .brand-tile { transform: rotate(-6deg) scale(1.04); }
.brand-word {
    display: flex;
    flex-direction: column;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.1;
    direction: ltr;
    text-align: start;
}
.brand-word small {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.82;
    transition: opacity 0.2s, background-color 0.2s;
}
.nav-links > a:hover { opacity: 1; background: rgba(127, 212, 245, 0.12); }
.nav-links > a.is-active { opacity: 1; }
.nav-links > a.is-active::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}
.nav-links-cta { display: none; }

.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}
.nav-login:hover { background: rgba(127, 212, 245, 0.14); }
.site-header:not(.is-scrolled) .nav-demo { box-shadow: 0 6px 20px rgba(18, 134, 204, 0.4); }

.menu-btn {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-color: rgba(127, 212, 245, 0.35);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}
.menu-btn span {
    position: absolute;
    inset-inline-start: 12px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(80px, 10vw, 140px);
    background: radial-gradient(120% 90% at 85% -10%, #0f4b75 0%, var(--navy-900) 48%, var(--navy-950) 100%);
    color: #fff;
}
.hero::after {
    /* soft fade into the page */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(3, 17, 29, 0.35));
    z-index: -1;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
}
.glow-a {
    width: 46vw; height: 46vw;
    max-width: 640px; max-height: 640px;
    inset-inline-start: -8%;
    top: 4%;
    background: radial-gradient(circle, rgba(26, 160, 220, 0.4), rgba(26, 160, 220, 0.12) 40%, transparent 70%);
}
.glow-b {
    width: 38vw; height: 38vw;
    max-width: 520px; max-height: 520px;
    inset-inline-end: -6%;
    bottom: -12%;
    background: radial-gradient(circle, rgba(127, 212, 245, 0.26), rgba(127, 212, 245, 0.08) 40%, transparent 70%);
}
.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(127, 212, 245, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 212, 245, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.circuit-paths path {
    fill: none;
    stroke: rgba(127, 212, 245, 0.22);
    stroke-width: 2;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw 2.4s var(--ease) 0.4s forwards;
}
.circuit-nodes circle {
    fill: var(--navy-900);
    stroke: rgba(127, 212, 245, 0.5);
    stroke-width: 3;
    opacity: 0;
    animation: fade-in 0.6s ease 2s forwards;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 16px;
    border: 1px solid rgba(127, 212, 245, 0.28);
    border-radius: 999px;
    background: rgba(127, 212, 245, 0.08);
    color: #c6ebfa;
    font-size: 0.88rem;
    font-weight: 500;
}
.chip-dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4cd29a;
}
.chip-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #4cd29a;
    opacity: 0;
    animation: ping 2.2s ease-out infinite;
}

.hero h1 {
    margin-top: 22px;
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hero h1 .text-grad { display: block; }
.hero .lead {
    margin-top: 22px;
    max-width: 36em;
    color: #b9d3e6;
    font-size: var(--fs-lead);
    line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions.center { justify-content: center; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 30px;
    color: #a9c7dc;
    font-size: 0.92rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--sky-300); width: 1.05em; height: 1.05em; stroke-width: 2.4; }

/* Hero product visual */
.hero-visual { position: relative; }
.app-window {
    position: relative;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(127, 212, 245, 0.25), 0 30px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.app-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #f7fafc;
    font-size: 0.82rem;
}
.dots { display: flex; gap: 6px; direction: ltr; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #dbe4ec; }
.dots i:first-child { background: #ff6b5e; }
.dots i:nth-child(2) { background: #f6bd3b; }
.dots i:nth-child(3) { background: #3fc66b; }
.app-title { font-weight: 600; color: var(--ink-2); }
.sample-tag {
    margin-inline-start: auto;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--sky-100);
    color: var(--blue-700);
    font-size: 0.72rem;
    font-weight: 600;
}

.app-body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.app-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-inline-end: 1px solid var(--line);
    background: #fbfdfe;
}
.side-logo { margin-bottom: 6px; }
.side-i {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    color: #8aa0b3;
}
.side-i.is-on { background: var(--sky-100); color: var(--blue-600); }
.side-i .ico { width: 18px; height: 18px; }

.app-main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.kpis { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
}
.kpi:first-child { justify-content: flex-start; }
.kpi small { display: block; color: var(--muted); font-size: 0.74rem; }
.kpi strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.kpi strong em { font-style: normal; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.ring { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #e7eff5; stroke-width: 5; }
.ring-value {
    fill: none;
    stroke: var(--blue-500);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--v));
    animation: ring-in 1.6s var(--ease) 0.9s both;
}
.spark { width: 80px; height: 28px; }
.spark path {
    fill: none;
    stroke: var(--ok);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: draw 1.6s var(--ease) 1.1s forwards;
}

.panel-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.panel { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.panel-h { margin-bottom: 8px; color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.periods { display: grid; gap: 6px; }
.periods li {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 0.8rem;
    transition: background-color 0.5s var(--ease), color 0.5s;
}
.periods b {
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 7px;
    background: #edf3f7;
    color: var(--muted);
    font-size: 0.7rem;
    transition: background-color 0.5s, color 0.5s;
}
.periods small { color: var(--muted); font-size: 0.72rem; direction: ltr; }
.periods li.is-now { background: var(--sky-100); color: var(--blue-700); font-weight: 600; }
.periods li.is-now b { background: var(--blue-600); color: #fff; }

.bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 92px;
    padding-top: 6px;
}
.bars span {
    flex: 1;
    height: calc(var(--h) * 1%);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(to top, #1286cc, #7fd4f5);
    transform-origin: bottom;
    animation: grow 1s var(--ease) both;
}
.bars span:nth-child(1) { animation-delay: 1s; }
.bars span:nth-child(2) { animation-delay: 1.08s; }
.bars span:nth-child(3) { animation-delay: 1.16s; }
.bars span:nth-child(4) { animation-delay: 1.24s; }
.bars span:nth-child(5) { animation-delay: 1.32s; }
.bars-x { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 0.62rem; }
.bars-x i { font-style: normal; flex: 1; text-align: center; }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
    font-size: 0.82rem;
}
.float-card strong { display: block; font-size: 0.86rem; }
.float-card small { color: var(--muted); font-size: 0.74rem; }
.fc-a { inset-inline-start: -28px; top: 58%; }
.fc-b { inset-inline-end: -22px; top: -26px; }
.fc-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.fc-amber { background: var(--warn-bg); color: var(--warn); }
.fc-green { background: var(--ok-bg); color: var(--ok); }

/* Hero photo collage */
.hero-photos { isolation: isolate; padding-bottom: 56px; padding-inline-end: 64px; }
.hero-photos figure { margin: 0; overflow: hidden; }
.hero-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-main {
    position: relative;
    aspect-ratio: 4 / 3.25;
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(127, 212, 245, 0.25), 0 40px 80px rgba(0, 0, 0, 0.45);
}
.hp-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6, 32, 51, 0.5));
}
.hp-side {
    position: absolute;
    inset-inline-end: 0;
    bottom: 0;
    width: 36%;
    aspect-ratio: 3 / 4;
    border: 5px solid var(--navy-900);
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.hp-ring {
    position: absolute;
    z-index: -1;
    inset-inline-start: -46px;
    top: -46px;
    width: 190px;
    height: 190px;
    border: 2px dashed rgba(127, 212, 245, 0.35);
    border-radius: 50%;
    animation: hp-spin 60s linear infinite;
}
.hero-photos .float-card { z-index: 2; animation: hp-bob 6s ease-in-out infinite; }
.hero-photos .fc-b { inset-inline-end: auto; inset-inline-start: 28px; top: -24px; animation-delay: -2s; }
.hero-photos .fc-a { inset-inline-start: -30px; top: 52%; animation-delay: -4s; }
.fc-kpi { inset-inline-start: 12%; bottom: 14px; padding-block: 10px; }
.fc-kpi .ring { width: 44px; height: 44px; }
.fc-kpi small { display: block; }
.fc-kpi strong { font-family: var(--display); font-size: 1.3rem; direction: ltr; unicode-bidi: isolate; }
@keyframes hp-bob { 50% { transform: translateY(-8px); } }
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* ---------- Strip ---------- */
.strip {
    position: relative;
    margin-top: -36px;
    z-index: 2;
}
.strip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.strip-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.93rem;
    font-weight: 500;
}
.strip-list .ico { color: var(--blue-600); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section-tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 700; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--blue-600);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; }
.compare-card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface);
}
.compare-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.compare-card ul { display: grid; gap: 14px; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.compare-card .ico {
    margin-top: 4px;
    padding: 3px;
    width: 22px; height: 22px;
    border-radius: 50%;
    stroke-width: 2.6;
}
.is-before { background: #fbfcfd; }
.is-before h3 { color: var(--muted); }
.is-before .ico { background: var(--bad-bg); color: var(--bad); }
.is-after {
    border-color: rgba(18, 134, 204, 0.3);
    background: linear-gradient(160deg, #ffffff 40%, var(--sky-50));
    box-shadow: var(--shadow-md);
}
.is-after h3 { color: var(--blue-700); }
.is-after .ico { background: var(--ok-bg); color: var(--ok); }

/* Bento */
.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 18px;
}
.card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(18, 134, 204, 0.28); }
.card h3 { font-size: var(--fs-h3); margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-xl { grid-column: span 2; }
.card-wide p { max-width: 34em; }
.card-ico {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--sky-100);
    color: var(--blue-600);
    transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s;
}
.card:hover .card-ico { transform: rotate(-8deg) scale(1.06); background: var(--blue-600); color: #fff; }
.card-ico .ico { width: 24px; height: 24px; }

.card-dark {
    background: radial-gradient(120% 120% at 100% 0%, #10507d 0%, var(--navy-900) 55%);
    border-color: transparent;
    color: #fff;
}
.card-dark p { color: #b4cde0; }
.card-dark .card-ico { background: rgba(127, 212, 245, 0.14); color: var(--sky-300); }

.mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    background: var(--sky-50);
}
.avatar {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    flex: none;
}
.av-2 { background: linear-gradient(135deg, #ffd27f, #f59f3a); }
.mp-lines { display: flex; flex-direction: column; line-height: 1.4; }
.mp-lines small { color: var(--muted); font-size: 0.8rem; }
.pill { margin-inline-start: auto; padding: 3px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }

.mini-invoice {
    position: relative;
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding: 16px 16px 16px 76px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(127, 212, 245, 0.18);
    font-size: 0.9rem;
}
.mi-row { display: flex; justify-content: space-between; color: #cfe2ef; }
.mi-row b { direction: ltr; unicode-bidi: isolate; color: #fff; font-weight: 600; }
.mi-row b.neg { color: #8be0bd; }
.mi-total { padding-top: 8px; border-top: 1px solid rgba(127, 212, 245, 0.2); }
.mi-total b { color: var(--sky-300); font-size: 1.05rem; }
.mi-qr {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 10px;
    background: #fff;
    color: var(--navy-900);
}
.mi-qr .ico { width: 30px; height: 30px; }

.more-mods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 28px;
}
.more-label { color: var(--muted); font-weight: 600; }
.more-mods ul { display: flex; flex-wrap: wrap; gap: 10px; }
.more-mods li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 0.9rem;
    transition: border-color 0.25s, transform 0.25s var(--ease);
}
.more-mods li:hover { border-color: rgba(18, 134, 204, 0.4); transform: translateY(-2px); }
.more-mods .ico { color: var(--blue-600); width: 1.05em; height: 1.05em; }

/* Steps */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    counter-reset: step;
}
.steps::before {
    /* connector line, filled as the section scrolls into view */
    content: "";
    position: absolute;
    top: 27px;
    inset-inline: 12.5%;
    height: 2px;
    background: var(--line-strong);
}
.steps::after {
    content: "";
    position: absolute;
    top: 27px;
    inset-inline-start: 12.5%;
    width: 75%;
    height: 2px;
    background: var(--grad);
    transform-origin: right center;
    transform: scaleX(0);
    transition: transform 1.6s var(--ease) 0.3s;
}
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-n {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid rgba(18, 134, 204, 0.25);
    color: var(--blue-600);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px var(--bg);
    transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}
.steps.is-in .step-n { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.steps.is-in .step:nth-child(2) .step-n { transition-delay: 0.5s; }
.steps.is-in .step:nth-child(3) .step-n { transition-delay: 0.9s; }
.steps.is-in .step:nth-child(4) .step-n { transition-delay: 1.3s; }
.step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* Roles (dark) */
.section-dark {
    background: var(--navy-900);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.section-dark-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 60% at 0% 0%, rgba(26, 160, 220, 0.25), transparent 70%),
        radial-gradient(40% 50% at 100% 100%, rgba(127, 212, 245, 0.14), transparent 70%);
}
.section-dark .section-head p:not(.eyebrow) { color: #a9c4d8; }
.section-dark .eyebrow { color: var(--sky-300); }

.role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(127, 212, 245, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}
.role-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #a9c4d8;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.role-tabs button:hover { color: #fff; }
.role-tabs button[aria-selected="true"] {
    background: #fff;
    color: var(--navy-900);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.role-tabs button[aria-selected="true"] .ico { color: var(--blue-600); }

.role-panels { margin-top: 32px; }
.role-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}
.role-panel + .role-panel { margin-top: 48px; }
.js .role-panel + .role-panel { margin-top: 0; }
.role-panel[hidden] { display: none; }
.role-panel.is-entering .role-copy,
.role-panel.is-entering .mock { animation: panel-in 0.55s var(--ease) both; }
.role-panel.is-entering .mock { animation-delay: 0.06s; }
.role-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 20px; }
.ticks { display: grid; gap: 12px; }
.ticks li {
    position: relative;
    padding-inline-start: 32px;
    color: #c7dbe9;
}
.ticks li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 6px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(127, 212, 245, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd4f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.mock {
    padding: 18px;
    border-radius: var(--r-lg);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(127, 212, 245, 0.2);
}
.mock-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; font-size: 0.95rem; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { padding: 12px; border-radius: var(--r-md); background: var(--sky-50); border: 1px solid var(--line); }
.mock-kpis small { display: block; color: var(--muted); font-size: 0.74rem; }
.mock-kpis b { font-family: var(--display); font-size: 1.35rem; direction: ltr; unicode-bidi: isolate; }
.mock-list { display: grid; gap: 8px; }
.mock-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-amber { background: var(--warn); }
.dot-blue { background: var(--blue-500); }
.dot-green { background: var(--ok); }
.mock-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--sky-50);
    color: var(--blue-700);
    font-size: 0.88rem;
    font-weight: 500;
}
.roster { display: grid; gap: 6px; }
.roster div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.9rem;
}
.tag { font-style: normal; padding: 2px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-late { background: var(--warn-bg); color: var(--warn); }
.tag-no { background: var(--bad-bg); color: var(--bad); }
.table { display: grid; gap: 4px; font-size: 0.86rem; }
.tr {
    display: grid;
    grid-template-columns: 0.7fr 1.6fr 1fr 0.9fr;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
}
.tr:not(.th) { border: 1px solid var(--line); }
.tr.th { color: var(--muted); font-size: 0.76rem; font-weight: 600; padding-block: 4px; }
.tr .tag { justify-self: start; }
.kids { display: grid; gap: 8px; }
.kid {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.kid b { display: block; line-height: 1.3; }
.kid small { color: var(--muted); font-size: 0.8rem; }
.kid-stat { margin-inline-start: auto; text-align: center; font-family: var(--display); font-weight: 700; color: var(--ok); line-height: 1.2; }
.kid-stat small { display: block; font-family: var(--sans); font-weight: 500; }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.why-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why > .ico { width: 30px; height: 30px; color: var(--blue-600); }
.why h3 { font-size: var(--fs-h3); margin: 16px 0 8px; }
.why p { color: var(--muted); font-size: 0.97rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.faq[open] { border-color: rgba(18, 134, 204, 0.3); box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.04rem;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico {
    padding: 4px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--sky-100);
    color: var(--blue-600);
    transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
.faq[open] summary .ico { transform: rotate(45deg); background: var(--blue-600); color: #fff; }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; color: var(--muted); }

/* CTA */
.cta { padding: 0 0 var(--section); }
.cta-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
    border-radius: var(--r-xl);
    background: radial-gradient(110% 120% at 50% 0%, #11568a 0%, var(--navy-900) 55%, var(--navy-950) 100%);
    color: #fff;
    text-align: center;
}
.cta-glow {
    position: absolute;
    inset: -40% 20% auto;
    height: 80%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(26, 160, 220, 0.4), transparent);
}
.cta-mark {
    margin: 0 auto 24px;
    padding: 14px;
    width: 88px; height: 88px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.cta-box h2 { font-size: var(--fs-h2); }
.cta-box p { margin: 16px auto 0; max-width: 34em; color: #b4cde0; font-size: var(--fs-lead); }

/* Footer */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 30em; color: var(--muted); font-size: 0.95rem; }
.footer-brand .brand-tile { box-shadow: 0 0 0 1px var(--line); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 0.95rem; margin-bottom: 4px; }
.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue-600); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

/* ---------- Motion: entrance & reveal (only when JS is running) ---------- */
.js [data-enter] {
    opacity: 0;
    transform: translateY(18px);
    animation: enter 0.9s var(--ease) forwards;
    animation-delay: calc(0.12s + var(--d, 0) * 0.1s);
}
.js .hero-visual[data-enter] { transform: translateY(30px) scale(0.97); animation-duration: 1.2s; }

.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--d, 0) * 0.08s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* cards keep their own hover transform once revealed */
.js .card[data-reveal].is-in, .js .why[data-reveal].is-in { transition: opacity 0.8s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s; }

@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes ring-in { from { stroke-dashoffset: 100; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-links > a { padding-inline: 10px; }
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .menu-btn { display: block; }
    .nav-login span { display: none; }
    .nav-login { padding: 10px; border: 1px solid rgba(127, 212, 245, 0.35); border-radius: 12px; }
    .is-scrolled .nav-login, .is-scrolled .menu-btn { border-color: var(--line-strong); }

    .nav-links {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px var(--gutter) 20px;
        background: rgba(255, 255, 255, 0.98);
        color: var(--ink);
        box-shadow: 0 24px 40px rgba(6, 32, 51, 0.16);
        border-top: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    }
    .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-links > a { padding: 14px 12px; border-radius: 12px; font-size: 1.02rem; opacity: 1; }
    .nav-links > a.is-active::after { display: none; }
    .nav-links > a.is-active { background: var(--sky-50); color: var(--blue-700); }
    .nav-links-cta { display: grid; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
    .nav-links-cta .btn { width: 100%; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero .lead { margin-inline: auto; }
    .hero-actions, .hero-points { justify-content: center; }
    .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
    .app-window { --ry: 0deg; --rx: 0deg; }

    .compare { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .steps::before, .steps::after { display: none; }
    .role-panel { grid-template-columns: 1fr; }
    .why-grid, .faq-grid { grid-template-columns: 1fr; }
    .why-grid .section-head { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .nav-demo { display: none; }
    .hero-actions .btn { flex: 1 1 100%; }
    .fc-a { inset-inline-start: -6px; top: auto; bottom: -26px; }
    .fc-b { inset-inline-end: -6px; top: -30px; }
    .hero-photos { padding-inline-end: 28px; padding-bottom: 40px; }
    .hero-photos .fc-a, .hp-ring { display: none; }
    .hero-photos .fc-b { inset-inline-start: 10px; top: -20px; }
    .fc-kpi { inset-inline-start: 10px; bottom: 6px; }
    .app-body { grid-template-columns: 1fr; min-height: 0; }
    .app-side { display: none; }
    .kpis, .panel-row { grid-template-columns: 1fr; }
    .panel-row .panel:last-child { display: none; }
    .strip { margin-top: -28px; }
    .strip-list { justify-content: flex-start; padding: 10px; }
    .strip-list li { padding: 8px 10px; font-size: 0.88rem; }
    .bento { grid-template-columns: 1fr; }
    .card-xl { grid-column: auto; }
    .mini-invoice { padding-inline-end: 16px; padding-inline-start: 16px; padding-bottom: 76px; }
    .mi-qr { top: auto; bottom: 14px; transform: none; }
    .steps { grid-template-columns: 1fr; }
    .why-cards { grid-template-columns: 1fr; }
    .role-tabs { border-radius: var(--r-md); width: 100%; }
    .role-tabs button { flex: 1 1 auto; justify-content: center; padding-inline: 12px; }
    .mock-kpis b { font-size: 1.1rem; }
    .tr { grid-template-columns: 0.7fr 1.5fr 1fr 1fr; font-size: 0.8rem; padding-inline: 8px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
    .js [data-enter], .js [data-reveal] { opacity: 1; transform: none; }
    .circuit-pulses { display: none; }
    .app-window { --ry: 0deg; --rx: 0deg; }
}
