:root {
  --navy-950: #050f1c;
  --navy-900: #0a1f33;
  --navy-800: #0f2c47;
  --navy-700: #163d5e;
  --teal: #1f93b0;
  --teal-light: #4db6d4;
  --teal-ink: #14738a;
  --green: #7ed957;
  --green-dark: #5cb837;
  --gray-300: #b8c4cd;
  --gray-500: #6f8393;
  --gray-700: #3d4c58;
  --ink: #0d1b28;
  --paper: #f5f8fa;
  --white: #ffffff;
  --border: #e1e8ec;
  --shadow: 0 20px 40px -20px rgba(10, 31, 51, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(5, 15, 28, 0.45);
  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--navy-950);
  box-shadow: 0 10px 24px -8px rgba(126, 217, 87, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(126, 217, 87, 0.65); }
.btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--border);
  color: var(--navy-800);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn-ghost:hover { border-color: var(--teal-ink); color: var(--teal-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand-logo { height: 34px; width: auto; }
.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}
.main-nav a {
  position: relative;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--teal-ink);
  border-radius: 2px;
  transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--teal-ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--teal-ink); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 14px;
}
.eyebrow-glow {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(126, 217, 87, 0.12);
  color: var(--green-dark);
  border: 1px solid rgba(126, 217, 87, 0.35);
}
.hero .eyebrow-glow { color: var(--green); border-color: rgba(126,217,87,0.4); background: rgba(126,217,87,0.1); }
.status .eyebrow-glow { color: var(--green-dark); }
.how-it-works .eyebrow { color: var(--teal-ink); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; color: var(--navy-950); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-sub { color: var(--gray-700); font-size: 1.05rem; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 110px;
  background: radial-gradient(ellipse at top left, var(--navy-800), var(--navy-950) 65%);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126,217,87,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,217,87,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black, transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); color: var(--white); letter-spacing: -0.01em; }
.hero .accent { color: var(--green); }
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-lead em { color: var(--teal-light); font-style: normal; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-feeds { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-feeds-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-right: 4px;
}
.feed-chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray-300);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Hero visual / mockup ---------- */
.hero-visual { position: relative; }
.mockup-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 60% 30%, rgba(126,217,87,0.18), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.mockup-window {
  position: relative;
  z-index: 1;
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--navy-800);
  border-bottom: 1px solid var(--navy-700);
}
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-red { background: #e0533c; }
.dot-yellow { background: #e0b93c; }
.dot-green { background: #5cb837; }
.mockup-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray-300);
}
.mockup-body { max-height: 420px; overflow: hidden; position: relative; }
.mockup-img { width: 100%; display: block; object-fit: cover; object-position: top; }
.mockup-body::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--navy-900));
}
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
}
.float-card strong { display: block; font-family: var(--mono); font-size: 1.15rem; color: var(--navy-950); }
.float-card strong span { font-size: 0.7rem; color: var(--gray-700); font-weight: 500; }
.float-card small { color: var(--gray-700); font-size: 0.72rem; }
.float-card-1 { top: -22px; right: 30px; }
.float-card-2 { bottom: -20px; left: -18px; }
.float-ring {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid var(--green-dark);
  border-top-color: transparent;
  flex-shrink: 0;
}
.float-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.float-dot.dot-critical { background: #e0533c; box-shadow: 0 0 0 4px rgba(224,83,60,0.18); }

/* ---------- Why / Stats ---------- */
.why { padding: 100px 0; background: var(--white); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-light); }
.stat-number {
  display: block;
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
.stat-card p { margin: 0; color: var(--gray-700); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Product / dashboard showcase ---------- */
.product { padding: 100px 0; background: var(--paper); }
.product-shot {
  position: relative;
  max-width: 760px;
  margin: 0 auto 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.product-img { width: 100%; display: block; }
.callout {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  border: 2px solid var(--green);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(126,217,87,0.18);
}
.callout::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  animation: callout-pulse 2.2s ease-out infinite;
}
@keyframes callout-pulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.product-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.product-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.note-index {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-note h4 { font-size: 0.98rem; margin-bottom: 6px; }
.product-note p { margin: 0; color: var(--gray-700); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Modules ---------- */
.modules { padding: 100px 0; background: var(--white); }
.module-group { margin-bottom: 56px; }
.module-group:last-child { margin-bottom: 0; }
.group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.2rem;
  color: var(--navy-900);
  margin-bottom: 24px;
}
.group-index {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--white);
  background: var(--navy-800);
  border-radius: 8px;
  padding: 4px 9px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.module-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-light); }
.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(31, 147, 176, 0.1);
  color: var(--teal-ink);
  margin-bottom: 14px;
}
.module-icon svg { width: 20px; height: 20px; }
.module-card h4 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy-950); }
.module-card p { margin: 0; color: var(--gray-700); font-size: 0.92rem; line-height: 1.55; }
.module-card code, .limitation-item code {
  font-family: var(--mono);
  background: rgba(31, 147, 176, 0.1);
  color: var(--teal-ink);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.85em;
}

/* ---------- How it works ---------- */
.how-it-works { padding: 100px 0; background: var(--navy-950); color: var(--white); }
.how-it-works .section-sub { color: var(--gray-300); }
.how-it-works h2 { color: var(--white); }

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 64px;
}
.pipeline-node {
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.pipeline-node-accent { border-color: var(--green); box-shadow: 0 0 0 1px rgba(126,217,87,0.2), 0 20px 40px -20px rgba(126,217,87,0.3); }
.pipeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(126,217,87,0.1);
  color: var(--green);
  margin-bottom: 14px;
}
.pipeline-icon svg { width: 22px; height: 22px; }
.pipeline-node h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 8px; }
.pipeline-node p { color: var(--gray-300); font-size: 0.85rem; line-height: 1.5; margin: 0; }
.pipeline-line {
  position: relative;
  height: 2px;
  width: 100%;
  min-width: 24px;
  background: var(--navy-700);
}
.pipeline-pulse {
  position: absolute;
  top: 50%; left: 0;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px 2px rgba(126,217,87,0.6);
  animation: pulse-travel 1.8s linear infinite;
}
@keyframes pulse-travel {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.hiw-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hiw-text p { color: var(--gray-300); line-height: 1.75; font-size: 1.02rem; margin-bottom: 18px; }
.hiw-text strong { color: var(--teal-light); }
.hiw-severity {
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.hiw-severity h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 24px; }
.severity-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--navy-700);
  margin-bottom: 10px;
  overflow: hidden;
}
.severity-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 45%, var(--green) 65%, #e0b93c 82%, #e0533c 100%);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.sev-tick {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: rgba(255,255,255,0.7);
  z-index: 1;
}
.sev-critical { background: var(--white); box-shadow: 0 0 0 3px rgba(224, 83, 60, 0.4); }
.severity-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray-300);
  margin-bottom: 20px;
}
.severity-note { color: var(--gray-300); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.severity-note strong { color: var(--green); }

/* ---------- Limitations ---------- */
.limitations { padding: 100px 0; background: var(--white); }
.limitations-list { display: grid; gap: 16px; max-width: 780px; margin: 0 auto; }
.limitation-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}
.limitation-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--teal-ink);
  font-size: 0.95rem;
  flex-shrink: 0;
  padding-top: 2px;
}
.limitation-item p { margin: 0; color: var(--gray-700); line-height: 1.65; font-size: 0.97rem; }

/* ---------- Status ---------- */
.status {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.status .hero-bg { opacity: 0.6; }
.status-inner { position: relative; max-width: 640px; margin: 0 auto; }
.status h2 { color: var(--white); }
.status p { color: var(--gray-300); font-size: 1.05rem; line-height: 1.7; margin-bottom: 32px; }
.status strong { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--gray-300); padding: 56px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-700);
}
.footer-brand .brand-logo { height: 30px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 0.9rem; line-height: 1.6; color: var(--gray-500); margin: 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--gray-300); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--teal-light); }
.footer-bottom { padding: 22px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--gray-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .hero-copy { text-align: left; }
}

@media (max-width: 900px) {
  .hiw-grid { grid-template-columns: 1fr; gap: 40px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-line { width: 2px; height: 32px; margin: 0 auto; }
  @keyframes pulse-travel-v {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  .pipeline-pulse { animation-name: pulse-travel-v; left: 50%; margin-left: -4px; top: 0; }
  .product-notes { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .hero { padding: 70px 0 60px; }
  .why, .product, .modules, .how-it-works, .limitations, .status { padding: 70px 0; }
  .footer-inner { flex-direction: column; }
  .float-card { display: none; }
  .mockup-body { max-height: 320px; }
  .callout { width: 24px; height: 24px; font-size: 0.72rem; }
}

/* ---------- Floating download button ---------- */
.float-download {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--navy-950);
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 16px 32px -12px rgba(126, 217, 87, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-download:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(126, 217, 87, 0.7); }
.float-download svg { width: 19px; height: 19px; flex-shrink: 0; }
.float-download span { display: flex; flex-direction: column; line-height: 1.25; }
.float-download small { font-family: var(--mono); font-weight: 500; font-size: 0.68rem; opacity: 0.75; }

@media (max-width: 520px) {
  .float-download { right: 16px; bottom: 16px; padding: 12px 16px; }
  .float-download small { display: none; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-anim, .js-stagger { opacity: 1 !important; transform: none !important; }
}
