/* =====================================================================
   Hisab — Showcase styles
   Custom Navi fonts + deep-blue brand theme. Self-contained, static.
   ===================================================================== */

/* ---------- Custom brand fonts ---------- */
@font-face {
  font-family: "Navi Headline";
  src: url("assets/fonts/Navi_Headline_Regular.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Navi Body";
  src: url("assets/fonts/Navi_Body_Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Navi Body";
  src: url("assets/fonts/Navi_Body_DemiBold.ttf") format("truetype");
  font-weight: 600 700;
  font-display: swap;
}

/* ---------- Theme tokens ---------- */
:root {
  --blue-900: #0c1f52;
  --blue-800: #112a73;
  --blue-700: #163596;
  --blue-600: #1a3fb0;   /* brand */
  --blue-500: #2f54d6;
  --blue-400: #5a79ec;
  --blue-300: #93aaf6;

  --ink: #0b1430;
  --body: #45506b;
  --muted: #7b86a1;
  --line: #e4e8f3;
  --line-strong: #d2d9ec;

  --bg: #ffffff;
  --bg-soft: #f5f7fe;
  --bg-tint: #eef2fd;

  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(12 31 82 / .06), 0 2px 8px rgb(12 31 82 / .05);
  --shadow-md: 0 8px 30px rgb(12 31 82 / .10);
  --shadow-lg: 0 24px 60px rgb(12 31 82 / .18);
  --max: 1160px;
  --head: "Navi Headline", "Navi Body", "Segoe UI", system-ui, sans-serif;
  --text: "Navi Body", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .72rem; color: var(--blue-600);
  margin-bottom: 14px;
}
.grad {
  background: linear-gradient(100deg, var(--blue-400), var(--blue-600) 55%, var(--blue-800));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; font-family: var(--head); font-weight: 700; font-size: 1rem;
  color: var(--white); background: var(--blue-600);
  border: 1px solid var(--blue-600); border-radius: 999px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 24px rgb(26 63 176 / .28);
}
.btn:hover { transform: translateY(-2px); background: var(--blue-700); box-shadow: 0 16px 32px rgb(26 63 176 / .34); }
.btn-ghost {
  background: transparent; color: var(--blue-700);
  border-color: var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-tint); border-color: var(--blue-300); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: .9rem; box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: .96rem; color: var(--body); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue-600); transition: width .22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgb(90 121 236 / .35), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgb(26 63 176 / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(26 63 176 / .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 96px 24px 80px; text-align: center; }
.pill {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-strong);
  color: var(--blue-700); font-weight: 600; font-size: .82rem; letter-spacing: .02em;
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 800; letter-spacing: -.03em; }
.hero-sub { margin: 26px auto 0; max-width: 680px; font-size: 1.14rem; color: var(--body); }
.hero-sub strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 720px; margin: 64px auto 0;
  padding: 26px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--head); font-weight: 800; font-size: 2.3rem; color: var(--blue-600); line-height: 1; }
.stat-suffix { display: none; }
.stat-label { margin-top: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ---------- Trust strip ---------- */
.strip { background: var(--blue-900); color: #c7d2f7; }
.strip-inner {
  max-width: var(--max); margin: 0 auto; padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center;
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
}
.strip-inner span { position: relative; }
.strip-inner span + span::before {
  content: "•"; position: absolute; left: -22px; color: var(--blue-400); opacity: .7;
}

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 100px 24px; }
.section-alt { max-width: none; background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-alt > .section-head,
.section-alt > .arch,
.section-alt > .offline-wrap { max-width: var(--max); margin-inline: auto; }
.section-alt { padding-inline: 24px; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--body); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.card-ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--head); font-size: 1.5rem; font-weight: 800; color: var(--white);
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 8px 18px rgb(26 63 176 / .3); margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: .98rem; }

/* ---------- Architecture ---------- */
.arch { display: flex; align-items: stretch; gap: 10px; justify-content: center; flex-wrap: nowrap; }
.arch-col { display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; }
.arch-core-col { justify-content: center; }
.arch-node {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); height: 100%;
}
.arch-node h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.arch-node p { font-size: .9rem; }
.arch-client { border-top: 3px solid var(--blue-400); }
.arch-core {
  border: 1px solid var(--blue-600);
  background: linear-gradient(165deg, var(--blue-700), var(--blue-900));
  color: #d6e0fb; box-shadow: var(--shadow-md);
}
.arch-core h4 { color: var(--white); }
.arch-core p { color: #b9c6f3; }
.arch-db { border-top: 3px solid var(--blue-700); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chips span {
  font-family: var(--head); font-size: .74rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .12); color: #cdd9fb; border: 1px solid rgb(255 255 255 / .18);
}
.arch-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 2px; }
.arch-line { width: 2px; flex: 1; background: linear-gradient(var(--blue-300), var(--blue-500)); min-height: 26px; }
.arch-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 5px rgb(26 63 176 / .15); }

/* ---------- Compliance rules ---------- */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rule {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s;
}
.rule:hover { border-color: var(--blue-300); transform: translateY(-3px); }
.rule-k {
  font-family: var(--head); font-weight: 800; font-size: 1.4rem;
  color: var(--blue-300); line-height: 1; flex: none;
}
.rule h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.rule p { font-size: .92rem; }

/* ---------- Offline ---------- */
.offline-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.offline-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.offline-copy > p { margin-top: 16px; font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-size: .98rem; color: var(--body); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}
.offline-visual { display: flex; justify-content: center; }
.phone {
  width: 290px; background: var(--blue-900); border-radius: 34px; padding: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--blue-700);
}
.phone-top { display: flex; gap: 6px; justify-content: center; padding: 4px 0 12px; }
.phone-top .dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / .35); }
.phone-screen { background: var(--white); border-radius: 22px; padding: 18px; }
.ps-row, .ps-line { display: flex; justify-content: space-between; align-items: center; }
.ps-head { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 14px; }
.ps-line { font-size: .92rem; color: var(--ink); padding: 7px 0; }
.ps-muted { color: var(--muted); font-size: .86rem; }
.ps-sep { height: 1px; background: var(--line); margin: 8px 0; }
.ps-total { font-family: var(--head); font-weight: 800; font-size: 1.15rem; color: var(--blue-700); padding-top: 10px; }
.ps-pay {
  margin-top: 14px; text-align: center; padding: 13px; border-radius: 12px;
  background: var(--blue-600); color: #fff; font-family: var(--head); font-weight: 700;
}
.ps-foot { margin-top: 12px; text-align: center; }
.ps-badge { font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.ps-ok { background: #d9f3e5; color: #0d7a44; }
.ps-off { background: #fdeccd; color: #a65b06; }

/* ---------- Stack tabs ---------- */
.stack-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.tab {
  font-family: var(--head); font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--body); transition: .2s;
}
.tab:hover { border-color: var(--blue-300); color: var(--ink); }
.tab.is-active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); box-shadow: 0 8px 20px rgb(26 63 176 / .28); }
.stack-panels { position: relative; }
.panel { display: none; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.panel.is-active { display: grid; animation: fade .35s ease; }
.tech {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.tech h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 7px; }
.tech p { font-size: .88rem; }
.tech code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .82rem; color: var(--blue-700); background: var(--bg-tint); padding: 1px 6px; border-radius: 5px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(150deg, var(--blue-700), var(--blue-900));
  color: #d6e0fb;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgb(90 121 236 / .4), transparent 40%),
              radial-gradient(circle at 85% 90%, rgb(47 84 214 / .35), transparent 45%);
}
.cta-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 96px 24px; }
.cta-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 24px; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.cta p { margin: 18px auto 0; max-width: 580px; font-size: 1.1rem; color: #b9c6f3; }
.cta .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .4); }
.cta .btn-ghost:hover { background: rgb(255 255 255 / .1); border-color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); color: #a9b7e6; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 34px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 340px; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.footer-brand strong { font-family: var(--head); font-size: 1.2rem; color: #fff; }
.footer-brand p { font-size: .9rem; margin-top: 6px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-weight: 600; font-size: .95rem; color: #c7d2f7; }
.footer-links a:hover { color: #fff; }
.footer-base {
  max-width: var(--max); margin: 0 auto; padding: 20px 24px;
  border-top: 1px solid rgb(255 255 255 / .1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .84rem; color: #7f8dc0;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* Staggered children (set via --d on each child) */
.reveal.in [data-stagger] { animation: riseIn .6s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Extra motion
   ===================================================================== */

/* Hero title shimmer sweep across the gradient text */
.grad {
  background: linear-gradient(100deg, var(--blue-400), var(--blue-600) 40%, var(--blue-800) 60%, var(--blue-400) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% 0; } }

/* Floating background orbs in the hero */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(6px);
  opacity: .5; z-index: 0;
}
.hero-orb.o1 { width: 180px; height: 180px; top: 14%; left: 8%;
  background: radial-gradient(circle at 30% 30%, rgb(90 121 236 / .55), transparent 70%);
  animation: float1 11s ease-in-out infinite; }
.hero-orb.o2 { width: 120px; height: 120px; top: 24%; right: 10%;
  background: radial-gradient(circle at 30% 30%, rgb(47 84 214 / .5), transparent 70%);
  animation: float2 9s ease-in-out infinite; }
.hero-orb.o3 { width: 90px; height: 90px; bottom: 16%; left: 18%;
  background: radial-gradient(circle at 30% 30%, rgb(147 170 246 / .6), transparent 70%);
  animation: float1 13s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(24px,-30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-28px,22px); } }
.hero-inner { z-index: 1; }

/* Pill gentle entrance + pulse dot */
.pill { position: relative; animation: popIn .7s cubic-bezier(.2,.8,.2,1) both; }
.pill::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-500); margin-right: 9px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgb(47 84 214 / .5); animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgb(47 84 214 / .5); }
  70% { box-shadow: 0 0 0 10px rgb(47 84 214 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(47 84 214 / 0); }
}
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* Shine sweep on primary buttons */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 140%; }

/* Card icon pop + rotate on hover */
.card-ic { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-ic { transform: scale(1.12) rotate(-6deg); }

/* Rule number slides in color on hover */
.rule-k { transition: color .25s ease, transform .25s ease; }
.rule:hover .rule-k { color: var(--blue-600); transform: scale(1.08); }

/* Brand mark subtle idle float */
.brand-mark { transition: transform .3s ease; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

/* Trust strip marquee-feel: slow glow pass */
.strip-inner span { transition: color .2s ease; }
.strip-inner span:hover { color: #fff; }

/* Phone mockup: float + screen glint */
.phone { animation: phoneFloat 6s ease-in-out infinite; will-change: transform; }
@keyframes phoneFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(.6deg); } }
.phone-screen { position: relative; overflow: hidden; }
.phone-screen::after {
  content: ""; position: absolute; top: -60%; left: -30%; width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgb(90 121 236 / .14), transparent);
  transform: rotate(8deg); animation: glint 5.5s ease-in-out infinite;
}
@keyframes glint { 0%,100% { left: -40%; } 55% { left: 120%; } }
.ps-pay { transition: transform .2s ease, box-shadow .2s ease; animation: payPulse 2.6s ease-in-out infinite; }
@keyframes payPulse { 0%,100% { box-shadow: 0 0 0 0 rgb(26 63 176 / .4); } 60% { box-shadow: 0 0 0 12px rgb(26 63 176 / 0); } }
.ps-off { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* Architecture flow: traveling pulse along the connectors */
.arch-dot { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 5px rgb(26 63 176 / .15); }
  50% { transform: scale(1.3); box-shadow: 0 0 0 9px rgb(26 63 176 / .08); }
}
.arch-line { position: relative; overflow: hidden; }
.arch-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--blue-300), #fff, var(--blue-300));
  background-size: 100% 60%; animation: flow 1.8s linear infinite;
}
@keyframes flow { from { background-position: 0 -60%; } to { background-position: 0 160%; } }

/* Core node soft glow breathing */
.arch-core { animation: coreGlow 4s ease-in-out infinite; }
@keyframes coreGlow {
  0%,100% { box-shadow: var(--shadow-md); }
  50% { box-shadow: 0 10px 40px rgb(26 63 176 / .45); }
}

/* Stat card hover tilt */
.stat { transition: transform .25s ease; }
.stat:hover { transform: translateY(-4px); }

/* Scroll progress bar */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  z-index: 100; transition: width .1s linear;
}

/* Nav entrance */
.nav { animation: slideDown .5s ease both; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }

/* Hero text entrance */
.hero-title { animation: popIn .8s cubic-bezier(.2,.8,.2,1) .05s both; }
.hero-sub { animation: popIn .8s cubic-bezier(.2,.8,.2,1) .18s both; }
.hero-actions { animation: popIn .8s cubic-bezier(.2,.8,.2,1) .3s both; }
.hero-stats { animation: popIn .9s cubic-bezier(.2,.8,.2,1) .42s both; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .panel.is-active { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr; }
  .offline-wrap { grid-template-columns: 1fr; gap: 40px; }
  .arch { flex-direction: column; align-items: stretch; }
  .arch-flow { flex-direction: row; padding: 4px 0; }
  .arch-line { width: auto; height: 2px; flex: 1; min-height: 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 8px 0;
  }
  .nav-links.open a { padding: 14px 24px; }
  .nav-links.open a::after { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-inner .btn-sm { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .section { padding: 72px 20px; }
  .section-alt { padding: 72px 20px; }
}
@media (max-width: 480px) {
  .cards, .panel.is-active { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.in [data-stagger] { animation: none; }
  .card:hover, .rule:hover, .btn:hover, .stat:hover { transform: none; }
  .hero-orb, #progress { display: none; }
}
