/* Float.Kituwa — lumenwave-finance retheme.
   Layout structure, responsive breakpoints and the tilted card / analytics
   composition come from the lumenwave-finance layout; colour, type scale and
   spacing are retuned here and the CS2 float bar / seed chip / skin tile are
   added. Fonts are local (see fonts.css). */

:root {
  --max: 1180px;
  --radius: 22px;
  --radius-sm: 12px;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --bg: #f4f8ef;
  --surface: #ffffff;
  --surface-2: #eef4e6;
  --ink: #0a1410;
  --muted: #4c5a52;
  --soft: #6d7a72;
  --line: #dce6d8;
  --accent: #c8ff3d;
  --accent-ink: #0a1410;
  --accent-deep: #3d7a2a;
  --signal: #0a1410;
  --warn: #a5570b;
  --warn-bg: #fdf0d8;
  --ok: #2f7a3a;
  --ok-bg: #e4f7dd;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.section { padding: 96px 0; background: var(--bg); }
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.section.white { background: #fff; }
.section.ink { background: var(--ink); color: #f4f8ef; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,.72);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); }
.pill.ok .dot { background: var(--ok); }
.pill.warn .dot { background: var(--warn); }
.pill strong { color: var(--ink); font-weight: 600; }

.display {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6.2vw, 84px); line-height: .98; letter-spacing: -.045em;
}
.display em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--accent-deep); }
.h2 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 50px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; font-weight: 650; }
.lede { margin: 0; max-width: 60ch; font-size: 17.5px; line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 22px;
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: #a9df27; }
.btn-primary:hover { background: #d4ff70; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 9px 15px; font-size: 12.5px; }
.btn-wide { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Shared uiverse button element (short-lion-13, MIT) */
.cir-btn {
  --ink: var(--color-ink, #0e1116);
  --cloud: var(--color-cloud, #ffffff);
  display: inline-flex; align-items: center; gap: 10px; height: 48px;
  padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink);
  color: var(--cloud); font-family: var(--font-body); font-size: 15px;
  font-weight: 500; letter-spacing: -.005em; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 1px rgba(14,17,22,.06), 0 14px 28px -18px rgba(14,17,22,.4);
  transition: transform 140ms cubic-bezier(.22,1,.36,1), background-color 220ms cubic-bezier(.22,1,.36,1), box-shadow 220ms cubic-bezier(.22,1,.36,1);
}
.cir-btn__arrow { width: 16px; height: 16px; transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.cir-btn:hover { background: #1a1f28; }
.cir-btn:hover .cir-btn__arrow { transform: translate(2px, -2px); }
.cir-btn:focus-visible { outline: 3px solid rgba(61,122,42,.45); outline-offset: 2px; }
.lumen .cir-btn { background: var(--accent); color: var(--accent-ink); border: 1px solid #a9df27; }
.lumen .cir-btn:hover { background: #d4ff70; }

/* Nav */
.site-nav {
  position: relative; z-index: 20; display: flex; align-items: center;
  gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .link { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: clip; }
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding: 64px 0 72px; }
.hero-split .display { max-width: 12ch; }
.hero-split .lede { margin-top: 22px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions > .btn { flex: 0 0 auto; width: auto; }
/* The network bar uses Canvas/CanvasText inside its shadow root; pin the
   scheme so it stays readable on this light page in dark-preferring browsers. */
kituwa-network { color-scheme: light; --kn-color: #3d7a2a; }
.hero-note { margin-top: 16px; font-size: 12px; color: var(--soft); font-family: var(--font-mono); letter-spacing: .02em; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.lw-visual { position: relative; min-height: 460px; }
.lw-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -40px; top: 0;
  background: radial-gradient(circle at 40% 40%, #d9ff82 0%, #c8ff3d 30%, rgba(200,255,61,.15) 65%, transparent 72%); filter: blur(6px); }
.lw-card { position: absolute; right: 42px; top: 36px; width: 340px; min-height: 232px; border-radius: 20px; padding: 20px;
  color: #f4f8ef; background: linear-gradient(140deg,#18251c 0%,#0a1410 55%,#1f3524 100%);
  box-shadow: 0 30px 60px -26px rgba(10,20,16,.55); transform: rotate(-6deg); overflow: hidden; }
.lw-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -80px;
  background: radial-gradient(circle,#c8ff3d33,transparent 70%); }
.lw-card-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #b9c6b7; position: relative; z-index: 1; }
.lw-chip { width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(135deg,#e9ff9e,#a9df27); }
.lw-item { position: relative; z-index: 1; margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.lw-num { position: relative; z-index: 1; margin-top: 3px; font-family: var(--font-mono); font-size: 26px; letter-spacing: -.02em; }
.lw-num small { font-size: 10px; letter-spacing: .14em; color: #b9c6b7; display: block; margin-top: 2px; }
.lw-card-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 12px; font-size: 9px; color: #b9c6b7; }
.lw-card-bottom b { display: block; color: #f4f8ef; font-size: 10.5px; letter-spacing: .06em; margin-top: 2px; }
.lw-analytics { position: absolute; left: 0; bottom: 0; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: 0 24px 50px -28px rgba(10,20,16,.32); transform: rotate(2deg); }
.lw-a-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.lw-a-head b { color: var(--ink); font-size: 12px; }
.lw-a-kpi { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.lw-a-kpi b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.04em; }
.lw-a-kpi span { font-size: 10px; color: var(--muted); }
.lw-chart { margin-top: 6px; }
.lw-mini { display: flex; gap: 8px; margin-top: 10px; }
.lw-mini div { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px; font-size: 8px; color: var(--muted); }
.lw-mini b { display: block; color: var(--ink); font-size: 11px; margin-top: 2px; font-family: var(--font-mono); }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-top: 10px; overflow: hidden; }
.stat { padding: 26px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 7px; font-size: 12.5px; color: var(--muted); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.feature h3 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-head .lede { max-width: 48ch; }

/* Board / status */
.status-panel { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 22px; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.status-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 11px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: #c7e9bb; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: #f2dcb4; }
.feed-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); max-width: 74ch; }
.feed-note b { color: var(--ink); }

.table-wrap { overflow-x: auto; margin-top: 18px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: middle; white-space: nowrap; }
table.data td:first-child { color: var(--ink); font-weight: 550; white-space: normal; min-width: 210px; }
table.data tr:last-child td { border-bottom: 0; }
table.data .empty-row td { color: var(--muted); font-style: italic; white-space: normal; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.disc { color: var(--accent-deep); font-weight: 600; }
.disc.neg { color: var(--warn); }

.skin { display: flex; align-items: center; gap: 10px; }
.skin-tile { width: 40px; height: 28px; border-radius: 7px; flex: none; border: 1px solid rgba(10,20,16,.12); background: linear-gradient(135deg,#d9ff82,#a9df27 55%,#6f9a2a); position: relative; overflow: hidden; }
.skin-tile::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(10,20,16,.16) 0 1px, transparent 1px 6px); }
.skin-tile.fn { background: linear-gradient(135deg,#c9f7ff,#7dd3fc 55%,#38bdf8); }
.skin-tile.mw { background: linear-gradient(135deg,#d9ff82,#a9df27 55%,#6f9a2a); }
.skin-tile.ft { background: linear-gradient(135deg,#ffe1a8,#f6b94a 55%,#c98a1a); }
.skin-tile.ww { background: linear-gradient(135deg,#ffd1b8,#f5935a 55%,#c25c25); }
.skin-tile.bs { background: linear-gradient(135deg,#f7c1c1,#e26d6d 55%,#a73b3b); }
.skin-name { font-size: 13px; font-weight: 550; color: var(--ink); line-height: 1.3; }
.skin-sub { font-family: var(--font-mono); font-size: 10px; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; }

.floatbar { position: relative; width: 110px; height: 6px; border-radius: 999px; background: linear-gradient(90deg,#7dd3fc 0%,#a9df27 35%,#f6b94a 62%,#e26d6d 82%,#a73b3b 100%); }
.floatbar i { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink); border-radius: 1px; }
.floatval { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.sample-banner { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed #c9d8c0; background: #f8fbf4; color: var(--muted); border-radius: 999px; padding: 6px 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }

/* Pattern grid */
.pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pattern { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 16px; }
.pattern .cat { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.pattern h4 { margin: 6px 0 2px; font-size: 14px; letter-spacing: -.01em; }
.pattern .wear { font-size: 11.5px; color: var(--muted); }
.seeds { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.seed { font-family: var(--font-mono); font-size: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; color: var(--ink); background: var(--surface-2); }
.seed.top { background: var(--ink); color: var(--accent); border-color: var(--ink); }

/* Split / checklist */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy .lede { margin-top: 18px; }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.checklist .ticks { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-size: 11px; }
.checklist b { color: var(--ink); }

.lw-dash { background: #0a1410; border-radius: 24px; padding: 24px; color: #f4f8ef; box-shadow: 0 30px 70px -40px rgba(10,20,16,.6); }
.lw-dash-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #26332a; padding-bottom: 14px; }
.lw-dash-top b { font-size: 14px; }
.lw-dash-top span { font-family: var(--font-mono); font-size: 9px; color: #9fb09f; }
.lw-accounts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.lw-account { background: #121f17; border: 1px solid #26332a; border-radius: 12px; padding: 12px; }
.lw-account span { font-size: 8.5px; color: #9fb09f; text-transform: uppercase; letter-spacing: .06em; }
.lw-account b { display: block; font-size: 17px; letter-spacing: -.02em; margin-top: 4px; }
.lw-account i { font-style: normal; font-size: 8.5px; color: var(--accent); }
.lw-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 10px; }
.lw-table th { text-align: left; color: #7f9182; font-weight: 500; padding: 8px 6px; border-bottom: 1px solid #26332a; }
.lw-table td { padding: 9px 6px; border-bottom: 1px solid #1c2a20; color: #c3d0c1; white-space: nowrap; }
.lw-table td:first-child { color: #f4f8ef; }
.lw-pill { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #1f3524; color: var(--accent); font-size: 8px; }
.lw-pill.off { background: #35290f; color: #f6b94a; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.price-card.featured { background: var(--ink); color: #f4f8ef; border-color: var(--ink); }
.price-card.featured .price-sub, .price-card.featured .price-list { color: rgba(244,248,239,.7); }
.price-name { font-size: 15px; font-weight: 700; }
.price-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.price { font-family: var(--font-display); font-size: 46px; line-height: 1; letter-spacing: -.05em; margin: 20px 0 6px; }
.price small { font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.price-list { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.price-list li::before { content: "✓"; margin-right: 8px; color: var(--accent-deep); }
.price-card .btn { margin-top: auto; }
.tag { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 4px 8px; }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: 56px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band .h2 { max-width: 16ch; }
.cta-band .lede { color: #33421f; margin-top: 12px; }
.cta-band .btn-ghost { border-color: #8abf1d; color: var(--ink); }
.cta-band .btn-ink { background: var(--ink); color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 32px; margin-top: 30px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .6fr); gap: 32px; }
.footer-brand p { max-width: 36ch; color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.footer-col h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); font-family: var(--font-mono); font-weight: 500; }
.footer-col a { display: block; margin: 7px 0; font-size: 13.5px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; font-size: 12px; color: var(--soft); }
.footer-bottom .dry { font-family: var(--font-mono); letter-spacing: .04em; }

/* Offline banner */
.offline-bar { position: sticky; top: 0; z-index: 50; display: none; align-items: center; gap: 10px; padding: 10px 16px; background: #2b1a05; color: #ffd9a8; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.offline-bar.show { display: flex; }
.offline-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb454; box-shadow: 0 0 0 3px rgba(255,180,84,.2); }
.offline-bar b { color: #fff; font-weight: 600; }

/* Watchdog page */
.wd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wd-grid > * { min-width: 0; }
.wd-card { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 22px; }
.wd-card { min-width: 0; }
.wd-card h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-mono); font-weight: 500; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.check { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.check:last-child { border-bottom: 0; }
.check .name { color: var(--ink); }
.check .detail { color: var(--muted); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.check > div:first-child { min-width: 0; }
.check .state { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.check .state.pass { color: var(--ok); }
.check .state.warn { color: var(--warn); }
.check .state.fail { color: #a73b3b; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-split, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-copy { order: 0; }
  .grid-3, .pricing-grid, .pattern-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .lw-visual { min-height: 480px; max-width: 480px; margin: 0 auto; }
  .lw-card { right: 10px; width: 300px; }
  .wd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .display { font-size: clamp(36px, 11.5vw, 52px); }
  .h2 { font-size: 30px; }
  .grid-3, .grid-2, .pricing-grid, .pattern-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 30px; }
  .site-nav { gap: 12px; }
  .nav-actions .link { display: none; }
  .footer-bottom { flex-direction: column; }
  .lw-visual { min-height: 430px; }
  .lw-glow { width: 300px; height: 300px; right: -20px; }
  .lw-card { width: 76%; right: 0; top: 24px; padding: 15px; }
  .lw-num { font-size: 21px; }
  .lw-analytics { width: 86%; padding: 14px; }
  .hero-split { padding: 40px 0 48px; }
  /* Stack the tilted card and the analytics panel instead of overlapping them:
     at 390px the two absolute cards cover each other. */
  .lw-visual { min-height: 0; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
  .lw-glow { display: none; }
  .lw-card { position: relative; inset: auto; width: 100%; min-height: 210px; transform: none; }
  .lw-analytics { position: relative; inset: auto; width: 100%; transform: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .cir-btn:hover { transform: none; }
}
