/* ============================================================
   Focus Forge — landing page
   Pure CSS · no framework · designed for performance & SEO
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #070A12;
  --bg-2: #0A0F1B;
  --surface: #101624;
  --surface-2: #141B2D;
  --elevated: #1A2236;

  /* Lines */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --fg: #F5F7FA;
  --fg-mid: #C8D0E0;
  --fg-mut: #8A95AE;

  /* Accents */
  --accent: #7C8CFF;          /* indigo-violet */
  --accent-2: #5BD7E8;        /* cyan */
  --accent-violet: #A88BFF;
  --accent-cyan: #5BD7E8;
  --accent-amber: #F5B968;
  --accent-green: #5EEAD4;
  --accent-red: #F87171;

  /* Effects */
  --glow: 0 0 0 1px rgba(124, 140, 255, 0.18), 0 12px 60px -10px rgba(124, 140, 255, 0.35);
  --shadow-card: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.6);

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Container */
  --container: 1180px;
}

/* ─────── Reset ─────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
code { font-family: var(--font-mono); font-size: 0.92em; }

.skip-link {
  position: absolute; top: -100px; left: 0; padding: 10px 14px; background: var(--accent); color: #fff;
  border-radius: 0 0 var(--r) 0; z-index: 100;
}
.skip-link:focus { top: 0; }

/* ─────── Typography ─────── */
.display, .display-2 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 22px;
}
.display-2 {
  font-size: clamp(34px, 5.4vw, 60px);
  margin: 0 0 18px;
}
.h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 16px;
}
.h2.max-w-7 { max-width: 720px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--fg-mid); margin: 0 0 14px; max-width: 38em; }
.sub  { font-size: 15px; color: var(--fg-mut); margin: 0 0 28px; max-width: 36em; }
.p-lg { font-size: 16.5px; color: var(--fg-mid); line-height: 1.7; margin: 14px 0; max-width: 50em; }
.p-lg.muted { color: var(--fg-mut); }
.p-lg.em { color: var(--fg); font-style: italic; }
.p-lg.center { margin-left: auto; margin-right: auto; }
.p-lg.max-w-7 { max-width: 740px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mut); font-weight: 600;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent));
}

.muted { color: var(--fg-mut); }
.small { font-size: 12.5px; }
.center { text-align: center; }

.grad {
  background: linear-gradient(95deg, var(--accent-cyan) 0%, var(--accent) 50%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────── Layout ─────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 800px; }

.section {
  padding: clamp(72px, 9vw, 130px) 0;
  position: relative;
}
.section.section-soft {
  background: linear-gradient(180deg, transparent 0%, rgba(124, 140, 255, 0.025) 50%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 820px; margin: 0 0 56px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ─────── Buttons ─────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(180deg, #8A99FF, #6776F0);
  color: #06080F;
  box-shadow: 0 0 0 1px rgba(124, 140, 255, 0.4), 0 14px 32px -12px rgba(124, 140, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(124, 140, 255, 0.5), 0 18px 36px -10px rgba(124, 140, 255, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); }
.btn.disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 11px;
  border-radius: 999px;
  font: 600 11.5px var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--fg-mut);
  border: 1px solid transparent;
  transition: all .2s ease;
}
.lang-btn:hover { color: var(--fg); }
.lang-btn.active {
  background: rgba(124, 140, 255, 0.15);
  border-color: rgba(124, 140, 255, 0.3);
  color: var(--accent);
}
.lang-switch-mobile { align-self: stretch; justify-content: center; margin-bottom: 8px; }

/* Demo CTA — animated live dot + tag */
.demo-cta { padding-right: 6px; }
.demo-cta:hover { border-color: rgba(91, 215, 232, 0.45); }
.demo-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: demo-pulse 1.8s ease-in-out infinite;
}
@keyframes demo-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
.demo-tag {
  font: 700 10px var(--font-mono);
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(91, 215, 232, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(91, 215, 232, 0.3);
  margin-left: 4px;
}

/* ─────── Badge ─────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  font-size: 12.5px; color: var(--fg-mid);
  margin-bottom: 22px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent-2);
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(91, 215, 232, 0.55);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(91, 215, 232, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(91, 215, 232, 0); }
  100% { box-shadow: 0 0 0 0   rgba(91, 215, 232, 0); }
}

/* ─────── Header ─────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.85), rgba(7, 10, 18, 0.6));
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
  min-width: 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.25), rgba(168, 139, 255, 0.15));
  color: var(--accent);
  border: 1px solid rgba(124, 140, 255, 0.25);
}
.brand-name { font-size: 16px; }
.brand-tag {
  font-size: 11px; letter-spacing: 0.05em; color: var(--fg-mut); font-weight: 500;
  padding: 3px 7px; border: 1px solid var(--border); border-radius: 6px;
  margin-left: 4px;
}

.site-nav {
  display: flex; align-items: center; gap: 2px;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.site-nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 13.5px; color: var(--fg-mid);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; padding: 12px 16px 24px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 6px; color: var(--fg-mid); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-cta { display: flex; gap: 8px; padding-top: 16px; }
.mobile-nav-cta .btn { flex: 1; }

/* Hide the secondary "View Demo" button first to free up space */
@media (max-width: 1180px) {
  .header-actions .btn-ghost { display: none; }
}
/* Hide brand version tag on tighter screens */
@media (max-width: 1080px) {
  .brand-tag { display: none; }
}
/* Switch to burger menu before nav can wrap */
@media (max-width: 1024px) {
  .site-nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: flex; }
}

/* ─────── Hero ─────── */
.hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 700px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(124, 140, 255, 0.28), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(91, 215, 232, 0.15), transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(168, 139, 255, 0.18), transparent 65%);
  filter: blur(40px);
  opacity: 0.85;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.6;
}

.hero-grid-layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 1080px) {
  .hero-grid-layout { grid-template-columns: 1fr; gap: 60px; }
}

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; }
.hero-cta.center { justify-content: center; }
.hero-meta { font-size: 13.5px; color: var(--fg-mut); display: inline-flex; align-items: center; gap: 6px; }
.hero-meta code { color: var(--fg); padding: 2px 7px; border: 1px solid var(--border); border-radius: 6px; background: rgba(255, 255, 255, 0.03); }

/* ─────── Hero Mockup ─────── */
.hero-mockup { position: relative; }
.mockup-frame {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(124, 140, 255, 0.12), 0 60px 120px -40px rgba(124, 140, 255, 0.35);
}
.mockup-shadow {
  position: absolute; inset: auto 0 -60px 0; height: 120px;
  background: radial-gradient(ellipse 60% 100% at 50% 0, rgba(124, 140, 255, 0.25), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.mockup-bar .dot {
  width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2);
}
.mockup-bar .dot.red    { background: #FF6058; }
.mockup-bar .dot.yellow { background: #FFBE2F; }
.mockup-bar .dot.green  { background: #29C840; }
.mockup-url {
  margin-left: 12px;
  font: 500 12px var(--font-mono);
  color: var(--fg-mut);
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.mockup-body {
  padding: 18px;
  display: grid; gap: 12px;
}
.mockup-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  transition: border-color .25s ease, transform .25s ease;
}
.mockup-card:hover { border-color: var(--border-strong); }

.mc-eyebrow {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mut); font-weight: 600; margin-bottom: 8px;
}
.mc-title { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 12px; }
.mc-meta { font-size: 12px; color: var(--fg-mut); display: flex; gap: 6px; margin-top: 8px; }

.progress {
  position: relative;
  height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent), var(--accent-violet));
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(124, 140, 255, 0.45);
  transition: width .8s ease;
}
.progress-label {
  position: absolute; right: 8px; top: -22px;
  font-size: 11.5px; color: var(--fg);
  font-weight: 600;
}

.stats-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.stat {
  display: flex; align-items: center; gap: 10px;
}
.stat-icon {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-size: 16px;
}
.stat-value { font-size: 18px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 11px; color: var(--fg-mut); }

.mockup-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .mockup-grid-2 { grid-template-columns: 1fr; } }

.reward-name { font-weight: 600; margin-bottom: 4px; }
.reward-progress { font-size: 12px; color: var(--fg-mut); margin-bottom: 8px; }
.mini-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.mini-bar span {
  display: block; height: 100%; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--accent-amber), #FFD580);
  border-radius: inherit;
}

.wins-list { display: grid; gap: 6px; font-size: 13px; }
.wins-list li { display: flex; align-items: center; gap: 8px; color: var(--fg-mid); }
.wins-list li.done { color: var(--fg-mut); text-decoration: line-through; }
.wins-list .check {
  width: 16px; height: 16px; display: grid; place-items: center;
  border-radius: 4px; font-size: 11px;
  border: 1px solid var(--border-strong);
  color: var(--accent-green);
}
.wins-list li.done .check {
  background: rgba(94, 234, 212, 0.15); border-color: rgba(94, 234, 212, 0.45);
}

.mode-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-chip {
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12px; color: var(--fg-mid);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.mode-chip.active { background: rgba(245, 185, 104, 0.12); color: var(--accent-amber); border-color: rgba(245, 185, 104, 0.35); }
.mode-chip.warn  { color: var(--accent-red); border-color: rgba(248, 113, 113, 0.35); }
.mode-hint { font-size: 11.5px; color: var(--fg-mut); margin-top: 8px; }

.proj-list { font-size: 13px; }
.proj-list li { display: flex; justify-content: space-between; padding: 5px 0; color: var(--fg-mid); border-bottom: 1px dashed var(--border); }
.proj-list li:last-child { border: 0; }
.proj-count { color: var(--fg-mut); font-variant-numeric: tabular-nums; }

.note-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--fg-mid); border-bottom: 1px dashed var(--border); }
.note-row:last-child { border: 0; }
.note-tag {
  font: 500 10.5px var(--font-mono);
  padding: 2px 7px; border-radius: 5px;
  background: rgba(124, 140, 255, 0.12);
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ─────── Cards grid ─────── */
.cards-grid {
  display: grid; gap: 16px;
}
.cards-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .cards-grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px)  { .cards-grid.grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cards-grid.grid-4, .cards-grid.grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c, var(--accent)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
  color: var(--c, var(--accent));
  font-size: 18px; margin-bottom: 14px;
}
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--fg-mut); font-size: 13.8px; margin: 0; }

/* ─────── Focus Engine ─────── */
.engine-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 980px) { .engine-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .engine-grid { grid-template-columns: 1fr; } }

.engine-card {
  position: relative;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(124, 140, 255, 0.04), transparent 70%), var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .25s ease;
}
.engine-card::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, transparent 30%, rgba(124, 140, 255, 0.25) 60%, transparent 80%);
  opacity: 0; transition: opacity .25s ease;
  border-radius: inherit;
  z-index: -1;
}
.engine-card:hover { border-color: var(--border-strong); }
.engine-num {
  font: 600 12px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.engine-title { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 10px; }
.engine-card p { color: var(--fg-mut); font-size: 14px; margin: 0; }

.engine-extra {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.ee-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px; color: var(--fg-mid);
}
.ee-item span { color: var(--accent-2); }

/* ─────── Self-hosted ─────── */
.check-list { display: grid; gap: 10px; margin: 18px 0 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--fg-mid); }
.check-list .ck {
  width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 6px; background: rgba(94, 234, 212, 0.12); color: var(--accent-green);
  border: 1px solid rgba(94, 234, 212, 0.3);
  font-size: 12px; font-weight: 700;
}

.code-frame {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #0B1120, #0A0F1B);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.code-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.code-bar .dot { width: 10px; height: 10px; border-radius: 999px; }
.code-bar .dot.red { background: #FF6058; }
.code-bar .dot.yellow { background: #FFBE2F; }
.code-bar .dot.green { background: #29C840; }
.code-title { margin-left: 12px; font: 500 12px var(--font-mono); color: var(--fg-mut); }
.code {
  margin: 0;
  padding: 22px 24px;
  font: 14px/1.7 var(--font-mono);
  color: var(--fg-mid);
  overflow-x: auto;
}
.c-mut { color: var(--fg-mut); }
.c-cmd { color: var(--accent-2); }
.code-foot {
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--fg-mut);
}

/* ─────── Installer steps ─────── */
.installer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 980px) { .installer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .installer-grid { grid-template-columns: 1fr; } }

.installer-step {
  display: flex; gap: 14px; padding: 18px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .25s ease;
}
.installer-step:hover { border-color: var(--border-strong); }
.installer-step .num {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(124, 140, 255, 0.12);
  color: var(--accent); font: 700 13px var(--font-mono);
  border: 1px solid rgba(124, 140, 255, 0.25);
}
.installer-step strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.installer-step p { margin: 0; font-size: 13px; color: var(--fg-mut); }

/* ─────── Ecosystem ─────── */
.eco-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 880px) { .eco-grid { grid-template-columns: 1fr; } }

.eco-col {
  padding: 26px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
}
.eco-head { margin-bottom: 18px; }
.eco-head h3 { font-size: 19px; font-weight: 700; margin: 8px 0 6px; letter-spacing: -0.015em; }
.eco-head p { font-size: 13.5px; color: var(--fg-mut); margin: 0; }
.eco-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c, var(--accent)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
  color: var(--c, var(--accent));
  font-size: 18px;
}
.eco-list {
  display: grid; gap: 8px;
}
.eco-list li {
  padding: 9px 12px; font-size: 13.5px; color: var(--fg-mid);
  border-radius: 8px; background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.eco-foot {
  margin-top: 24px; text-align: center;
  font-size: 13.5px; color: var(--fg-mut);
}

/* ─────── Update Card ─────── */
.update-card {
  padding: 26px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
.uc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.uc-eyebrow { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mut); font-weight: 600; }
.uc-title { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-top: 4px; }
.uc-from { font-size: 13px; color: var(--fg-mut); font-weight: 500; }
.uc-badge {
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
  background: rgba(94, 234, 212, 0.15); color: var(--accent-green);
  border: 1px solid rgba(94, 234, 212, 0.3); font-weight: 600;
}
.uc-changes { display: grid; gap: 6px; margin: 14px 0; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.uc-changes li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-mid); }
.uc-tag {
  font: 600 10.5px var(--font-mono);
  padding: 2px 7px; border-radius: 5px; letter-spacing: 0.04em;
}
.uc-tag.added    { background: rgba(94, 234, 212, 0.12); color: var(--accent-green); }
.uc-tag.fixed    { background: rgba(245, 185, 104, 0.12); color: var(--accent-amber); }
.uc-tag.improved { background: rgba(124, 140, 255, 0.12); color: var(--accent); }
.uc-checks { display: grid; gap: 6px; margin: 12px 0 18px; }
.uc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-mid); }
.uc-check.pass span { color: var(--accent-green); }
.uc-check.warn span { color: var(--accent-amber); }
.uc-actions { display: flex; gap: 8px; }

/* ─────── Roadmap timeline ─────── */
.timeline {
  position: relative;
  display: grid; gap: 18px;
  padding-left: 0;
  max-width: 880px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute;
  left: 19px; top: 18px; bottom: 18px; width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.4;
}
.ti {
  position: relative;
  display: grid; grid-template-columns: 40px 1fr; gap: 18px;
  padding: 14px 0;
}
.ti-marker {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font: 700 13px var(--font-mono);
  color: var(--fg-mut);
  z-index: 1;
}
.ti-marker.active {
  background: linear-gradient(180deg, rgba(124, 140, 255, 0.25), rgba(124, 140, 255, 0.05));
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.1);
}
.ti-body {
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.ti-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ti-head h3 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.015em; }
.ti-tag {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(124, 140, 255, 0.15); color: var(--accent);
  border: 1px solid rgba(124, 140, 255, 0.3);
}
.ti-tag.soft { background: rgba(255, 255, 255, 0.04); color: var(--fg-mut); border-color: var(--border); }
.ti-body ul { display: grid; gap: 4px; margin-top: 6px; }
.ti-body li { font-size: 13.5px; color: var(--fg-mid); padding-left: 14px; position: relative; }
.ti-body li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ─────── YouTube card ─────── */
.yt-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.yt-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0F1729 0%, #1A2240 50%, #0F1729 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}
.yt-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(124, 140, 255, 0.4), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(91, 215, 232, 0.3), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: grid; place-items: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: transform .3s ease;
}
.yt-card:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-eyebrow {
  position: relative;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: 8px;
}
.yt-title {
  position: relative;
  font-size: 18px; font-weight: 700; line-height: 1.25;
  margin: 0; max-width: 18em;
  letter-spacing: -0.015em;
}
.yt-meta {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--fg-mut);
}
.dot-sep { color: var(--fg-mut); opacity: 0.6; }

/* ─────── Final CTA ─────── */
.final-cta {
  text-align: center;
  position: relative;
  padding-top: 24px; padding-bottom: 20px;
}
.final-cta::before {
  content: ''; position: absolute; inset: -40px 0 -40px 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124, 140, 255, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.domains {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 32px;
}
.domains span code {
  display: inline-block; padding: 6px 12px;
  font-size: 12px; color: var(--fg-mid);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

/* ─────── Footer ─────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2.5fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: 48px;
}
.footer-brand p { margin: 12px 0 0; max-width: 22em; }
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.footer-cols h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mut); margin: 0 0 14px; font-weight: 700; }
.footer-cols ul { display: grid; gap: 8px; }
.footer-cols a { font-size: 13.5px; color: var(--fg-mid); transition: color .2s ease; }
.footer-cols a:hover { color: var(--fg); }
.footer-cols a[aria-disabled="true"] { color: var(--fg-mut); opacity: 0.7; pointer-events: none; }

@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.footer-bottom .built-by { transition: color .2s ease; }
.footer-bottom .built-by:hover { color: var(--fg); }

/* ─────── Reveal on scroll ─────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ─────── Selection ─────── */
::selection { background: rgba(124, 140, 255, 0.3); color: var(--fg); }
