/* ============================================================
   XEDER · Case Study
   Brand tokens lifted from xeder-app.web.app
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg:            #03070d;
  --bg-panel:      #060d17;
  --bg-panel-2:    #08111f;
  --glass-bg:      rgba(12, 30, 48, 0.68);
  --glass-border:  rgba(82, 152, 224, 0.16);
  --glass-border-light: rgba(86, 160, 245, 0.32);
  --blue:          #1d8cff;
  --blue-deep:     #167cff;
  --glow:          #43a4ff;
  --text:          #ffffff;
  --muted:         #8f9caf;
  --muted-2:       #aebacc;
  --hairline:      rgba(82, 152, 224, 0.14);

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --maxw: 1180px;
  --maxw-wide: 1320px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Fixed ambient background glows */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-field .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.bg-field .orb-1 {
  width: 760px; height: 760px;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(29,140,255,0.16) 0%, rgba(0,0,0,0) 62%);
}
.bg-field .orb-2 {
  width: 620px; height: 620px;
  top: 1400px; left: -200px;
  background: radial-gradient(circle, rgba(29,140,255,0.10) 0%, rgba(0,0,0,0) 60%);
}
.bg-field .orb-3 {
  width: 680px; height: 680px;
  top: 3200px; right: -240px;
  background: radial-gradient(circle, rgba(67,164,255,0.09) 0%, rgba(0,0,0,0) 60%);
}
.bg-field .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(82,152,224,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,152,224,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 70%);
}

main { position: relative; z-index: 1; }

/* ---------- shared layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 32px; }

section { position: relative; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.kicker.center { justify-content: center; }
.kicker.center::before { display: none; }

.eyebrow-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
}

h2.h-section {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #aab6c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  color: var(--muted-2);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 300;
  line-height: 1.65;
  max-width: 620px;
}
.blue { color: var(--glow); -webkit-text-fill-color: var(--glow); }

/* ---------- nav ---------- */
.cs-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.cs-nav-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cs-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cs-brand img {
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: 0 0 16px rgba(29,140,255,0.35);
}
.cs-brand span { font-weight: 700; font-size: 1.12rem; color: #fff; letter-spacing: -0.01em; }
.cs-nav-meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex; gap: 18px; align-items: center;
}
.cs-nav-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
@media (max-width: 720px){ .cs-nav-meta .hide-sm { display: none; } }

/* ============================================================
   HERO / COVER
   ============================================================ */
.hero {
  padding: clamp(70px, 11vh, 130px) 0 clamp(60px, 8vh, 100px);
  position: relative;
}
.hero-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  gap: 64px;
  align-items: center;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  padding: 7px 13px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.tag svg { width: 13px; height: 13px; color: var(--glow); }

.hero h1 {
  font-size: clamp(2.8rem, 5.6vw, 4.7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
  background: linear-gradient(176deg, #ffffff 0%, #c9d4e2 50%, #8f9caf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(176deg, #6fb8ff, #1d8cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hero-sub {
  color: var(--muted-2);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 34px;
}
.hero-credits { display: flex; flex-wrap: wrap; gap: 30px; }
.hero-credit .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero-credit .val { font-size: 0.95rem; font-weight: 500; color: #e6eefb; }

.hero-icon-float {
  width: 86px; height: 86px; border-radius: 20px;
  box-shadow: 0 18px 50px rgba(29,140,255,0.4), 0 0 0 1px rgba(86,160,245,0.25);
  margin-bottom: 28px;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }

.hero-stage { position: relative; display: flex; justify-content: center; }
.hero-halo {
  position: absolute;
  inset: 4% -8% -4%;
  background: radial-gradient(ellipse at center, rgba(29,140,255,0.24), rgba(29,140,255,0.06) 46%, transparent 72%);
  filter: blur(34px);
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================================
   WIDGET MOCKUPS (lifted + adapted from website)
   ============================================================ */
.widget-preview {
  width: min(396px, 100%);
  padding: 22px;
  border-radius: 26px;
  text-align: left;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 22% 18%, rgba(41,141,255,0.2) 0, rgba(41,141,255,0) 34%),
    radial-gradient(circle at 86% 75%, rgba(37,121,214,0.15) 0, rgba(37,121,214,0) 38%),
    linear-gradient(155deg, rgba(7,18,31,0.98) 0%, rgba(1,7,14,0.96) 100%);
  border: 1px solid rgba(62,101,142,0.45);
  backdrop-filter: blur(34px) saturate(130%);
  -webkit-backdrop-filter: blur(34px) saturate(130%);
  box-shadow: 0 32px 80px rgba(0,0,0,0.62), 0 0 0 1px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.widget-header { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 34px; margin-bottom: 18px; }
.widget-title {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 0.78rem; color: #c9d4e3; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.close-btn, .menu-dots {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.86);
}
.close-btn svg { width: 17px; height: 17px; }
.menu-dots { gap: 4px; }
.menu-dots span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.8; }

.mock-author-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mock-avatar {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid #1d8cff;
  box-shadow: 0 0 18px rgba(29,140,255,0.34), inset 0 0 12px rgba(29,140,255,0.08);
  overflow: hidden; flex-shrink: 0;
}
.mock-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-author-name { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 0.95rem; font-weight: 800; line-height: 1.2; }
.mock-verified { width: 16px; height: 16px; color: #1d9bf0; flex-shrink: 0; }
.mock-author-meta { display: flex; align-items: center; gap: 8px; color: #8f9caf; font-size: 0.82rem; font-weight: 600; }
.mock-dot { width: 5px; height: 5px; border-radius: 50%; background: #1d8cff; box-shadow: 0 0 10px rgba(29,140,255,0.6); flex-shrink: 0; }

.tweet-text { font-size: 1.04rem; font-weight: 520; line-height: 1.42; color: #f7fbff; margin-bottom: 16px; }

.mock-metrics-row { display: grid; grid-template-columns: repeat(4, minmax(50px,1fr)); align-items: center; gap: 8px; margin: 2px 0 16px; }
.mock-metric { display: inline-flex; align-items: center; gap: 6px; color: #8f9caf; font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-metric svg { width: 16px; height: 16px; fill: none; stroke: #1d8cff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mock-metric.like svg { fill: rgba(29,140,255,0.12); }

.audio-wave-container {
  display: flex; align-items: center; gap: 12px;
  margin: 18px -22px 18px; padding: 18px 22px 16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(67,164,255,0.16), rgba(67,164,255,0) 52%),
    linear-gradient(180deg, rgba(8,25,43,0.86), rgba(4,14,25,0.76));
  border-top: 1px solid rgba(82,152,224,0.15);
  border-bottom: 1px solid rgba(82,152,224,0.12);
}
.audio-wave {
  flex-grow: 1; height: 38px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40" preserveAspectRatio="none"><rect x="2" y="16" width="1.8" height="8" rx="1" fill="%231d8cff" opacity=".9"/><rect x="7" y="12" width="1.8" height="16" rx="1" fill="%231d8cff" opacity=".9"/><rect x="12" y="8" width="1.8" height="24" rx="1" fill="%231d8cff" opacity=".9"/><rect x="17" y="13" width="1.8" height="14" rx="1" fill="%231d8cff" opacity=".9"/><rect x="22" y="5" width="1.8" height="30" rx="1" fill="%231d8cff" opacity=".9"/><rect x="27" y="10" width="1.8" height="20" rx="1" fill="%231d8cff" opacity=".9"/><rect x="32" y="14" width="1.8" height="12" rx="1" fill="%231d8cff" opacity=".9"/><rect x="37" y="7" width="1.8" height="26" rx="1" fill="%231d8cff" opacity=".9"/><rect x="42" y="11" width="1.8" height="18" rx="1" fill="%231d8cff" opacity=".9"/><rect x="47" y="4" width="1.8" height="32" rx="1" fill="%231d8cff" opacity=".9"/><rect x="52" y="14" width="1.8" height="12" rx="1" fill="%231d8cff" opacity=".35"/><rect x="57" y="10" width="1.8" height="20" rx="1" fill="%231d8cff" opacity=".32"/><rect x="62" y="13" width="1.8" height="14" rx="1" fill="%231d8cff" opacity=".28"/><rect x="67" y="7" width="1.8" height="26" rx="1" fill="%231d8cff" opacity=".25"/><rect x="72" y="16" width="1.8" height="8" rx="1" fill="%231d8cff" opacity=".24"/><rect x="77" y="13" width="1.8" height="14" rx="1" fill="%231d8cff" opacity=".22"/><rect x="82" y="17" width="1.8" height="6" rx="1" fill="%231d8cff" opacity=".22"/><rect x="87" y="15" width="1.8" height="10" rx="1" fill="%231d8cff" opacity=".2"/><rect x="92" y="17" width="1.8" height="6" rx="1" fill="%231d8cff" opacity=".2"/></svg>') no-repeat center;
  background-size: 100% 100%;
}
.time-stamp { font-size: 0.8rem; color: #43a4ff; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.controls { display: flex; justify-content: center; align-items: center; gap: 24px; }
.play-btn {
  width: 60px; height: 60px;
  background: linear-gradient(145deg, #55b1ff 0%, #167cff 100%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(4,84,184,0.42), 0 0 36px rgba(67,164,255,0.28);
}
.play-icon { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid #fff; margin-left: 4px; }
.secondary-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(29,140,255,0.08); border: 1px solid rgba(67,164,255,0.18);
  display: flex; align-items: center; justify-content: center; color: #1d8cff;
}
.secondary-btn svg { width: 19px; height: 19px; }

/* ============================================================
   GENERIC SECTION SCAFFOLD
   ============================================================ */
.sec { padding: clamp(70px, 12vh, 130px) 0; }
.sec-head { margin-bottom: 56px; max-width: 760px; }
.sec-head .kicker { margin-bottom: 18px; }
.sec-head h2 { margin-bottom: 22px; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { border-top: 1px solid var(--hairline); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.problem-statement {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #eaf1fb;
}
.problem-statement .hl { color: var(--glow); }
.problem-statement .dim { color: var(--muted); }
.problem-body { color: var(--muted-2); font-size: 1.05rem; line-height: 1.7; font-weight: 300; }
.problem-body p + p { margin-top: 18px; }

.contrast-stack { display: flex; flex-direction: column; gap: 14px; }
.contrast-card {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
}
.contrast-card.win { border-color: rgba(67,164,255,0.4); background: linear-gradient(145deg, rgba(29,140,255,0.12), rgba(29,140,255,0.02)); }
.contrast-ico {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,140,255,0.1); border: 1px solid rgba(67,164,255,0.2); color: var(--glow);
}
.contrast-card.dimmed .contrast-ico { color: var(--muted); background: rgba(143,156,175,0.08); border-color: rgba(143,156,175,0.18); }
.contrast-ico svg { width: 22px; height: 22px; }
.contrast-txt h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.contrast-txt p { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

/* ============================================================
   PRODUCT OVERVIEW + WIDGET VIEWS
   ============================================================ */
.product { border-top: 1px solid var(--hairline); }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 72px; }
.feature-chip {
  padding: 24px 22px; border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.feature-chip .fc-ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,140,255,0.1); border: 1px solid rgba(67,164,255,0.22); color: var(--glow);
}
.feature-chip .fc-ico svg { width: 21px; height: 21px; }
.feature-chip h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 7px; }
.feature-chip p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

.views-frame {
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,140,255,0.08), transparent 70%),
    linear-gradient(180deg, rgba(8,15,26,0.7), rgba(3,7,13,0.4));
  padding: 56px 40px;
}
.views-frame-head { text-align: center; margin-bottom: 46px; }
.views-frame-head .kicker { margin-bottom: 12px; }
.views-frame-head h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.views-frame-head p { color: var(--muted); max-width: 540px; margin: 0 auto; font-weight: 300; }

.views-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: center; justify-items: center; }
.view-item { display: flex; flex-direction: column; align-items: center; width: 100%; }
.view-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.view-label h4 { color: #fff; font-size: 0.98rem; font-weight: 800; }
.view-label span { color: var(--muted); font-size: 0.74rem; font-weight: 600; font-family: var(--mono); }

.demo-shell {
  margin: 0 auto; color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(41,141,255,0.2), rgba(41,141,255,0) 38%),
    radial-gradient(circle at 84% 82%, rgba(37,121,214,0.15), rgba(37,121,214,0) 42%),
    linear-gradient(155deg, rgba(7,18,31,0.98), rgba(1,7,14,0.96));
  border: 1px solid rgba(62,101,142,0.48);
  box-shadow: 0 20px 48px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}
.view-main-demo { width: min(100%, 320px); border-radius: 24px; padding: 18px; }
.view-mini-demo { width: min(100%, 268px); border-radius: 23px; padding: 18px; }
.view-minier-demo { width: min(100%, 208px); aspect-ratio: 1/1; border-radius: 23px; padding: 18px; display: flex; flex-direction: column; }

.demo-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.demo-arrow { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #f8fbff; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.demo-arrow svg { width: 16px; height: 16px; }
.demo-time { display: inline-flex; align-items: center; gap: 8px; color: #8f9caf; font-weight: 800; font-size: 0.9rem; }
.demo-author-line { display: flex; align-items: center; gap: 8px; color: #1d8cff; font-size: 0.9rem; font-weight: 800; margin-bottom: 12px; }
.demo-author-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(29,140,255,0.85); box-shadow: 0 0 12px rgba(29,140,255,0.24); flex-shrink: 0; }
.demo-text { color: #f7fbff; font-size: 0.97rem; line-height: 1.34; font-weight: 600; margin-bottom: 14px; }
.demo-wave {
  height: 34px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40" preserveAspectRatio="none"><rect x="2" y="17" width="1.8" height="6" rx="1" fill="%231d8cff" opacity=".9"/><rect x="7" y="15" width="1.8" height="10" rx="1" fill="%231d8cff" opacity=".9"/><rect x="12" y="12" width="1.8" height="16" rx="1" fill="%231d8cff" opacity=".9"/><rect x="17" y="7" width="1.8" height="26" rx="1" fill="%231d8cff" opacity=".9"/><rect x="22" y="14" width="1.8" height="12" rx="1" fill="%231d8cff" opacity=".9"/><rect x="27" y="5" width="1.8" height="30" rx="1" fill="%231d8cff" opacity=".95"/><rect x="32" y="11" width="1.8" height="18" rx="1" fill="%231d8cff" opacity=".9"/><rect x="37" y="15" width="1.8" height="10" rx="1" fill="%231d8cff" opacity=".9"/><rect x="42" y="8" width="1.8" height="24" rx="1" fill="%231d8cff" opacity=".9"/><rect x="47" y="13" width="1.8" height="14" rx="1" fill="%231d8cff" opacity=".82"/><rect x="52" y="17" width="1.8" height="6" rx="1" fill="%231d8cff" opacity=".35"/><rect x="57" y="14" width="1.8" height="12" rx="1" fill="%231d8cff" opacity=".32"/><rect x="62" y="17" width="1.8" height="6" rx="1" fill="%231d8cff" opacity=".28"/><rect x="67" y="15" width="1.8" height="10" rx="1" fill="%231d8cff" opacity=".25"/><rect x="72" y="17" width="1.8" height="6" rx="1" fill="%231d8cff" opacity=".24"/><rect x="77" y="16" width="1.8" height="8" rx="1" fill="%231d8cff" opacity=".22"/><rect x="82" y="17" width="1.8" height="6" rx="1" fill="%231d8cff" opacity=".22"/><rect x="87" y="16" width="1.8" height="8" rx="1" fill="%231d8cff" opacity=".2"/><rect x="92" y="17" width="1.8" height="6" rx="1" fill="%231d8cff" opacity=".2"/></svg>') no-repeat center;
  background-size: 100% 100%;
}
.demo-time-row { display: flex; justify-content: space-between; color: #a7b7d6; font-size: 0.8rem; font-weight: 700; margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #1d8cff; }
.demo-speed { color: #1d8cff; font-size: 0.95rem; font-weight: 800; }
.demo-icon-btn { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #1d8cff; }
.demo-icon-btn svg { width: 20px; height: 20px; }
.demo-play-small { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #55b1ff 0%, #167cff 100%); box-shadow: 0 10px 24px rgba(4,84,184,0.38), 0 0 28px rgba(67,164,255,0.24); flex-shrink: 0; }
.demo-play-small::before { content: ''; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid #fff; margin-left: 4px; }
.minier-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.minier-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: auto; }
.minier-actions .demo-play-small { width: 60px; height: 60px; }
.minier-actions .demo-icon-btn { width: 44px; height: 44px; border: 1px solid rgba(67,164,255,0.18); background: rgba(29,140,255,0.06); }

/* main demo internal scale tweaks */
.view-main-demo .widget-header { margin-bottom: 13px; min-height: 28px; }
.view-main-demo .close-btn, .view-main-demo .menu-dots { width: 28px; height: 28px; }
.view-main-demo .widget-title { font-size: 0.68rem; }
.view-main-demo .mock-avatar { width: 40px; height: 40px; }
.view-main-demo .mock-author-row { margin-bottom: 12px; gap: 10px; }
.view-main-demo .mock-author-name { font-size: 0.86rem; }
.view-main-demo .mock-author-meta { font-size: 0.76rem; }
.view-main-demo .tweet-text { font-size: 0.94rem; line-height: 1.36; margin-bottom: 12px; }
.view-main-demo .mock-metrics-row { gap: 6px; margin-bottom: 13px; }
.view-main-demo .mock-metric { font-size: 0.7rem; gap: 5px; }
.view-main-demo .mock-metric svg { width: 14px; height: 14px; }
.view-main-demo .audio-wave-container { margin: 13px -18px 14px; padding: 14px 18px 12px; }
.view-main-demo .audio-wave { height: 32px; }
.view-main-demo .time-stamp { font-size: 0.74rem; }
.view-main-demo .controls { gap: 20px; }
.view-main-demo .play-btn { width: 50px; height: 50px; }
.view-main-demo .play-icon { border-top-width: 8px; border-bottom-width: 8px; border-left-width: 13px; }
.view-main-demo .secondary-btn { width: 36px; height: 36px; }
.view-main-demo .secondary-btn svg { width: 17px; height: 17px; }

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.arch { border-top: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(6,12,22,0.5), transparent); }

.arch-map {
  border-radius: 26px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(8,15,26,0.6), rgba(3,7,13,0.3));
  padding: 38px;
  margin-bottom: 30px;
}
.arch-layer-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.arch-layer-label .lname { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.arch-layer-label .lline { flex: 1; height: 1px; background: var(--hairline); }
.arch-layer-label .ldot { width: 8px; height: 8px; border-radius: 50%; }
.ldot.client { background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.ldot.server { background: #ffb347; box-shadow: 0 0 10px rgba(255,179,71,0.6); }

.arch-nodes { display: grid; gap: 16px; }
.arch-nodes.cols-3 { grid-template-columns: repeat(3, 1fr); }
.arch-node {
  border-radius: 16px; padding: 20px;
  background: linear-gradient(145deg, rgba(29,140,255,0.07), rgba(29,140,255,0.01));
  border: 1px solid rgba(67,164,255,0.22);
  position: relative;
}
.arch-node.server-node { background: linear-gradient(145deg, rgba(255,179,71,0.06), rgba(255,179,71,0.01)); border-color: rgba(255,179,71,0.22); }
.arch-node .nh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.arch-node .nh > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.arch-node .nh .nico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(29,140,255,0.12); border: 1px solid rgba(67,164,255,0.25); color: var(--glow); }
.arch-node.server-node .nh .nico { background: rgba(255,179,71,0.1); border-color: rgba(255,179,71,0.25); color: #ffc879; }
.arch-node .nh .nico svg { width: 18px; height: 18px; }
.arch-node .nh h4 { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.15; }
.arch-node .nh .ntag { display: block; font-family: var(--mono); font-size: 0.64rem; color: var(--muted); letter-spacing: 0.04em; line-height: 1.2; }
.arch-node p { font-size: 0.83rem; color: var(--muted-2); line-height: 1.5; }

.arch-connector { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; }
.arch-connector .pipe { width: 1px; height: 22px; background: linear-gradient(180deg, rgba(67,164,255,0.5), rgba(67,164,255,0.1)); }
.arch-connector .clabel { font-family: var(--mono); font-size: 0.68rem; color: var(--glow); letter-spacing: 0.06em; padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(67,164,255,0.25); background: rgba(29,140,255,0.06); display: inline-flex; align-items: center; gap: 8px; }
.arch-connector .clabel svg { width: 13px; height: 13px; }
.arch-connector.bi .clabel { color: var(--muted-2); }

/* email pipeline mini-flow */
.pipeline {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,179,71,0.28);
  background: rgba(255,179,71,0.02);
  padding: 22px;
}
.pipeline-title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ffc879; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pipeline-flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.pstep { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; }
.pstep .pbox { flex: 1; padding: 12px 14px; border-radius: 11px; background: rgba(255,255,255,0.025); border: 1px solid var(--glass-border); }
.pstep .pbox .pl { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 3px; }
.pstep .pbox .pv { font-size: 0.82rem; font-weight: 600; color: #e6eefb; line-height: 1.25; }
.pstep .parrow { color: rgba(255,179,71,0.6); flex-shrink: 0; }
.pstep .parrow svg { width: 18px; height: 18px; }
.pstep:last-child { flex: 0 0 auto; min-width: 0; }

/* decision callouts woven in */
.decisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.decision {
  border-radius: 18px; padding: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--blue);
}
.decision .dq { font-family: var(--mono); font-size: 0.68rem; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.decision h4 { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.25; }
.decision p { font-size: 0.9rem; color: var(--muted-2); line-height: 1.6; font-weight: 300; }
.decision .verdict { margin-top: 14px; font-size: 0.82rem; color: var(--glow); font-weight: 500; display: flex; align-items: flex-start; gap: 8px; }
.decision .verdict svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   PROBLEMS OVERCOME (war stories)
   ============================================================ */
.stories { border-top: 1px solid var(--hairline); }
.story {
  display: grid; grid-template-columns: 88px 1fr; gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.story:first-of-type { border-top: 1px solid var(--hairline); }
.story-num { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; color: rgba(67,164,255,0.32); line-height: 1; }
.story-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.story-lead h3 { font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin-bottom: 14px; line-height: 1.2; }
.story-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; margin-bottom: 16px; font-weight: 600;
}
.story-tag.bug { color: #ff8a8a; background: rgba(255,90,90,0.08); border: 1px solid rgba(255,90,90,0.22); }
.story-tag.infra { color: #ffc879; background: rgba(255,179,71,0.08); border: 1px solid rgba(255,179,71,0.22); }
.story-tag.fix { color: var(--glow); background: rgba(29,140,255,0.08); border: 1px solid rgba(67,164,255,0.22); }
.story-tag svg { width: 12px; height: 12px; }
.story-lead p { color: var(--muted-2); font-size: 0.96rem; line-height: 1.65; font-weight: 300; }
.story-solve {
  border-radius: 16px; padding: 22px 24px;
  background: linear-gradient(145deg, rgba(29,140,255,0.07), rgba(29,140,255,0.01));
  border: 1px solid rgba(67,164,255,0.18);
}
.story-solve .ss-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.story-solve .ss-label svg { width: 14px; height: 14px; }
.story-solve p { color: #d6e2f2; font-size: 0.92rem; line-height: 1.6; font-weight: 300; }
.story-solve code { font-family: var(--mono); font-size: 0.82em; color: var(--glow); background: rgba(29,140,255,0.1); padding: 1px 6px; border-radius: 5px; }

/* ============================================================
   TECH STACK
   ============================================================ */
.stack { border-top: 1px solid var(--hairline); }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-card {
  padding: 24px; border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  transition: border-color 0.3s, transform 0.3s;
}
.stack-card:hover { border-color: var(--glass-border-light); transform: translateY(-3px); }
.stack-card .sc-layer { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.stack-card .sc-tech { font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.3; }
.stack-card .sc-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(29,140,255,0.1); border: 1px solid rgba(67,164,255,0.2); color: var(--glow); margin-bottom: 16px; }
.stack-card .sc-ico svg { width: 18px; height: 18px; }

/* ============================================================
   LESSONS
   ============================================================ */
.lessons { border-top: 1px solid var(--hairline); }
.lesson-feature {
  border-radius: 26px;
  padding: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(ellipse 70% 100% at 100% 0%, rgba(29,140,255,0.1), transparent 60%),
    linear-gradient(145deg, rgba(12,30,48,0.5), rgba(3,7,13,0.3));
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.lesson-quote-mark { font-family: Georgia, serif; font-size: 7rem; line-height: 0.6; color: rgba(67,164,255,0.18); position: absolute; top: 32px; right: 44px; }
.lesson-feature .l-big { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: #eaf1fb; max-width: 760px; margin-bottom: 28px; }
.lesson-feature .l-big em { color: var(--glow); font-style: normal; }
.lesson-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 6px; }
.lesson-item { display: flex; gap: 14px; align-items: flex-start; }
.lesson-item .li-ico { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(29,140,255,0.1); border: 1px solid rgba(67,164,255,0.22); color: var(--glow); }
.lesson-item .li-ico svg { width: 17px; height: 17px; }
.lesson-item h4 { font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.lesson-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; font-weight: 300; }

/* ============================================================
   LAUNCH / PRODUCT HUNT
   ============================================================ */
.launch { border-top: 1px solid var(--hairline); }
.launch-card {
  border-radius: 28px;
  border: 1px solid rgba(67,164,255,0.28);
  border-top: 1px solid rgba(67,164,255,0.5);
  background:
    radial-gradient(ellipse at top, rgba(29,140,255,0.16), transparent 65%),
    linear-gradient(145deg, rgba(12,30,48,0.6), rgba(3,7,13,0.3));
  padding: clamp(40px, 5vw, 64px);
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4), 0 0 50px rgba(29,140,255,0.08);
}
.launch-card .kicker { margin-bottom: 18px; }
.launch-card h2 { margin-bottom: 14px; }
.launch-card .launch-sub { color: var(--muted-2); font-weight: 300; max-width: 560px; margin: 0 auto 44px; line-height: 1.6; }
.ph-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 44px; }
.ph-stat .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; background: linear-gradient(180deg, #fff, #6fb8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ph-stat .num .pre { font-size: 0.5em; vertical-align: 0.32em; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.ph-stat .lbl { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.ph-badge-wrap { display: flex; justify-content: center; }
.ph-badge-wrap img { border-radius: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.cs-footer { border-top: 1px solid var(--hairline); padding: 70px 0 50px; margin-top: 40px; }
.cs-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cs-footer .cs-brand img { width: 40px; height: 40px; }
.cs-footer .cs-brand span { font-size: 1.3rem; }
.cs-footer .foot-tagline { color: var(--muted); font-weight: 300; max-width: 440px; }
.cs-footer .foot-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.cs-footer .foot-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.cs-footer .foot-links a:hover { color: #fff; }
.cs-footer .copyright { color: rgba(143,156,175,0.55); font-size: 0.82rem; font-family: var(--mono); }
.cs-footer .foot-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: 0.98rem;
  box-shadow: 0 6px 20px rgba(0,85,255,0.32); transition: all 0.3s;
}
.cs-footer .foot-cta:hover { background: var(--glow); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,136,255,0.42); }
.cs-footer .foot-cta svg { width: 17px; height: 17px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Baseline = visible (screenshot/no-JS safe). Only elements JS marks
   .pre (below the fold at load) get the hidden start state. */
.reveal { transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.pre { opacity: 0; transform: translateY(34px); }
.reveal.pre.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; }
  .hero-icon-float { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: left; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .views-row { grid-template-columns: 1fr; gap: 40px; }
  .decisions { grid-template-columns: 1fr; }
  .arch-nodes.cols-3 { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 16px; }
  .story-body { grid-template-columns: 1fr; gap: 22px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-list { grid-template-columns: 1fr; }
  .ph-stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .pipeline-flow { flex-direction: column; }
  .pstep { width: 100%; }
  .pstep .parrow { transform: rotate(90deg); margin: 2px auto; }
}
@media (max-width: 560px) {
  .wrap, .wrap-wide, .hero-inner, .cs-nav-inner, .cs-footer-inner { padding-left: 20px; padding-right: 20px; }
  .feature-row { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .ph-stats { grid-template-columns: repeat(2, 1fr); }
  .views-frame { padding: 36px 20px; }
  .arch-map { padding: 24px 18px; }
}
