/* ============ Intelera — design system ============ */
:root {
  --bg: #060813;
  --bg-2: #0a0f20;
  --surface: rgba(16, 22, 44, 0.55);
  --surface-2: rgba(22, 30, 60, 0.7);
  --text: #eef1fb;
  --muted: #a0a9c6;
  --faint: #6b7597;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --c1: #22d3ee;
  --c2: #7c5cff;
  --c3: #ff5ca8;
  --grad: linear-gradient(120deg, var(--c1), var(--c2));
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-d: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
::selection { background: rgba(124, 92, 255, 0.45); }

/* ---------- interactive background ---------- */
/* looping background video (assets/video/bg.mp4) — shown as-is: no overlay, no tint, no opacity change.
   If the file is missing, main.js removes this element entirely. */
.bg-video { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-fade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(1200px 500px at 50% 120%, rgba(255, 92, 168, 0.08), transparent 60%);
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 0; pointer-events: none;
  margin: -260px 0 0 -260px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.06) 55%, transparent 75%);
  transform: translate3d(-999px, -999px, 0);
  will-change: transform;
}
main, .footer { position: relative; z-index: 2; }
.nav { z-index: 50; }

/* ---------- layout ---------- */
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sec { padding: 110px 0; position: relative; }
.sec-tight { padding: 70px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c1); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
h2.title { font-size: clamp(32px, 4.4vw, 52px); }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin-top: 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 8, 19, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-d); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; }
.brand svg { width: 38px; height: 38px; transition: transform 0.6s var(--ease); }
.brand:hover svg { transform: rotate(60deg); }
.links { display: flex; gap: 6px; }
.links a { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.links a.active { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.lang button { border: 0; background: transparent; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); transition: all 0.25s; }
.lang button.on { background: var(--grad); color: #04060f; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, top 0.3s, opacity 0.3s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 24px; }
.nav.open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.open .burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--line-2);
  font-weight: 600; font-size: 16px; background: rgba(255, 255, 255, 0.04); color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  position: relative; will-change: transform;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.btn-primary { background: var(--grad); color: #04060f; border-color: transparent; box-shadow: 0 8px 32px -8px rgba(124, 92, 255, 0.7); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 12px 44px -6px rgba(34, 211, 238, 0.55); border-color: transparent; }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 150px 0 90px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(8px);
  font-size: 14px; color: var(--muted); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.035em; }
.hero .lead { max-width: 560px; margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hint { margin-top: 34px; font-size: 14px; color: var(--faint); display: flex; align-items: center; gap: 10px; }
.hint svg { width: 18px; height: 18px; color: var(--c1); }

.console {
  border-radius: 20px; border: 1px solid var(--line-2); background: rgba(10, 14, 30, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(124, 92, 255, 0.12), 0 0 70px -20px rgba(124, 92, 255, 0.5);
  overflow: hidden; transform-style: preserve-3d; transition: transform 0.15s ease-out;
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .console-bar i:nth-child(2) { background: #febc2e; } .console-bar i:nth-child(3) { background: #28c840; }
.console-bar span { margin-left: 10px; }
.console-body { padding: 22px 22px 26px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; display: grid; gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(8px); animation: stepin 0.6s var(--ease) forwards; }
.step:nth-child(1) { animation-delay: 0.6s; } .step:nth-child(2) { animation-delay: 1.4s; } .step:nth-child(3) { animation-delay: 2.2s; }
.step:nth-child(4) { animation-delay: 3s; } .step:nth-child(5) { animation-delay: 3.8s; }
@keyframes stepin { to { opacity: 1; transform: none; } }
.step b { color: var(--c1); font-weight: 600; min-width: 74px; }
.step.ok b { color: #4ade80; } .step.warn b { color: var(--c3); }
.step span { color: var(--muted); }
.step .chk { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #4ade80; }
.cursor-blink { display: inline-block; width: 8px; height: 15px; background: var(--c1); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s;
  --x: 50%; --y: 50%;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; pointer-events: none;
  background: radial-gradient(360px circle at var(--x) var(--y), rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.08) 45%, transparent 70%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity 0.35s; pointer-events: none;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(34, 211, 238, 0.9), rgba(124, 92, 255, 0.5) 50%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-4px); border-color: transparent; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(124, 92, 255, 0.2)); border: 1px solid var(--line-2); color: var(--c1); }
.ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { color: var(--muted); font-size: 15px; padding-left: 22px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 2px; background: var(--grad); border-radius: 2px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); backdrop-filter: blur(10px); overflow: hidden; }
.stat { padding: 44px 36px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-d); font-size: clamp(44px, 5.5vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.stat small { display: block; margin-top: 10px; color: var(--faint); font-size: 12.5px; }

/* ---------- steps (how it works) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: s; }
.flow .card { padding-top: 70px; }
.flow .card::marker { content: none; }
.flow .n { position: absolute; top: 24px; left: 32px; font-family: var(--font-d); font-size: 15px; font-weight: 600; color: var(--c1); letter-spacing: 0.1em; z-index: 2; }
.flow .n::after { content: ""; display: inline-block; width: 44px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }

/* ---------- cta band ---------- */
.cta-band {
  border-radius: 28px; padding: 72px 48px; text-align: center; position: relative; overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(700px 300px at 20% 0%, rgba(124, 92, 255, 0.35), transparent 70%), radial-gradient(700px 300px at 90% 100%, rgba(34, 211, 238, 0.28), transparent 70%), rgba(12, 17, 36, 0.7);
  backdrop-filter: blur(10px);
}
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); max-width: 760px; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 18px auto 0; }
.cta-band .cta-row { justify-content: center; }

/* ---------- page header (inner pages) ---------- */
.page-hero { padding: 170px 0 70px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.035em; max-width: 880px; }
.page-hero .lead { max-width: 640px; margin-top: 24px; }

/* ---------- builder demo ---------- */
.builder-shell { border-radius: 24px; border: 1px solid var(--line-2); background: rgba(8, 12, 26, 0.75); backdrop-filter: blur(12px); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8), 0 0 80px -30px rgba(124, 92, 255, 0.5); }
.builder-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.builder-top .ttl { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.builder-top .ttl i { width: 10px; height: 10px; border-radius: 50%; background: #febc2e; } .builder-top .ttl i:nth-child(2) { background: #28c840; } .builder-top .ttl i:nth-child(1) { background: #ff5f57; }
.builder-scroll { overflow-x: auto; }
.builder { position: relative; height: 440px; min-width: 880px; touch-action: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px); background-size: 26px 26px; }
.builder svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wire { fill: none; stroke: #7c8cff; stroke-width: 2.2; opacity: 0.5; transition: opacity 0.3s, stroke 0.3s; }
.wire.live { opacity: 1; stroke: #22d3ee; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.8)); }
.packet { fill: #fff; filter: drop-shadow(0 0 8px #22d3ee) drop-shadow(0 0 14px #7c5cff); }
.bnode {
  position: absolute; width: 168px; padding: 12px 14px 12px 14px; border-radius: 14px; cursor: grab; user-select: none; -webkit-user-select: none;
  background: rgba(18, 25, 52, 0.95); border: 1px solid var(--line-2); transition: border-color 0.3s, box-shadow 0.3s;
}
.bnode:active { cursor: grabbing; }
.bnode .t { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c1); display: flex; align-items: center; gap: 8px; }
.bnode .t svg { width: 14px; height: 14px; }
.bnode .s { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.bnode .d { font-size: 12px; color: var(--faint); margin-top: 2px; }
.bnode::before, .bnode::after { content: ""; position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c2); }
.bnode::before { left: -6px; } .bnode::after { right: -6px; }
.bnode.start::before, .bnode.end::after { display: none; }
.bnode.run { border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1), 0 0 36px -4px rgba(34, 211, 238, 0.6); }
.bnode.done { border-color: rgba(74, 222, 128, 0.7); }
.bnode.agent .t { color: #b8a6ff; } .bnode.tool .t { color: #7ce3f5; } .bnode.out .t { color: #ff9ac6; }
.builder-log { border-top: 1px solid var(--line); padding: 16px 20px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--muted); min-height: 86px; display: grid; gap: 4px; align-content: start; }
.builder-log div b { color: var(--c1); font-weight: 600; margin-right: 8px; }
.builder-log .hint-line { color: var(--faint); }

/* ---------- comparison ---------- */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); backdrop-filter: blur(10px); }
.cmp th, .cmp td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-family: var(--font-d); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); background: rgba(255, 255, 255, 0.03); }
.cmp td:first-child { font-weight: 600; width: 28%; }
.cmp td { color: var(--muted); }
.cmp tr.us td { background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), rgba(124, 92, 255, 0.1)); color: var(--text); }
.cmp-wrap { overflow-x: auto; border-radius: 20px; }
.cmp { min-width: 640px; }
.tick { color: #4ade80; font-weight: 700; margin-right: 6px; }

/* ---------- solutions ---------- */
.sol-card { min-height: 280px; display: flex; flex-direction: column; }
.sol-card .tag { margin-top: auto; padding-top: 22px; font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }
.sol-card .tag b { color: var(--c1); font-weight: 600; }

/* ---------- about / contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); backdrop-filter: blur(10px); }
.fact .ico { margin: 0; width: 44px; height: 44px; flex: none; }
.fact .ico svg { width: 22px; height: 22px; }
.fact small { display: block; color: var(--faint); font-size: 13px; }
.fact span { font-weight: 600; }
form.contact { display: grid; gap: 16px; padding: 32px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(12, 17, 36, 0.7); backdrop-filter: blur(12px); }
form.contact label { font-size: 13.5px; color: var(--muted); display: grid; gap: 8px; font-weight: 500; }
form.contact input, form.contact textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font: inherit; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
form.contact input:focus, form.contact textarea:focus { border-color: var(--c1); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14); }
form.contact textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--faint); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: rgba(6, 8, 19, 0.7); backdrop-filter: blur(10px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 360px; }
.foot-grid h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-family: var(--font); font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid li a { color: var(--muted); font-size: 15px; transition: color 0.2s; } .foot-grid li a:hover { color: var(--text); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.lang-swap { animation: langswap 0.35s ease; }
@keyframes langswap { from { opacity: 0.2; } to { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .g4, .flow { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .console { max-width: 560px; }
}
@media (max-width: 860px) {
  .links { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; padding: 14px 24px 24px; background: rgba(6, 8, 19, 0.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.3s; }
  .nav.open .links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open { background: rgba(6, 8, 19, 0.96); }
  .links a { padding: 14px 16px; font-size: 17px; }
  .burger { display: block; }
  .nav-actions .btn { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 80px 0; }
  .g2, .g3, .g4, .flow { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .cta-band { padding: 52px 24px; }
  .card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  }
