/* Routed, UI only. Layout follows the Routed site (icon rail, search header,
   hero, feature cards, closing note); look follows the uxento landing
   (Figtree display type, Geist body, glass pills, blue accent, dot grid and
   soft glows, fade-up reveals, frosted header once the page scrolls). */

:root {
  --primary: #4a5aff;
  --primary-foreground: #fafafa;
  --background: #080810;
  --foreground: #fafafa;
  --card: #0f0f17;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-soft: rgba(255, 255, 255, 0.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rail: 72px;
  --font-body: "Geist", Arial, sans-serif;
  --font-display: "Figtree", "Geist", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: clip;
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- rail ---------- */
.rail {
  position: fixed; left: 0; top: 0; z-index: 40;
  display: flex; flex-direction: column;
  width: var(--rail); height: 100vh;
  padding: 16px 0;
  border-right: 1px solid var(--line);
  background: rgba(12, 12, 20, 0.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.rail__logo { display: flex; justify-content: center; margin-bottom: 32px; padding: 0 8px; transition: transform 300ms var(--ease); }
.rail__logo:hover { transform: scale(1.05); }
.rail__logo img { width: 40px; height: 40px; padding: 7px; border-radius: 12px; border: 1px solid var(--line); background: #000; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.rail__nav { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 0 8px; }
.rail__link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 14px;
  font-size: 10px; font-weight: 500; color: var(--muted-foreground);
  border: 1px solid transparent;
  transition: color 300ms, background 300ms, border-color 300ms, transform 300ms var(--ease);
}
.rail__link svg { width: 18px; height: 18px; }
.rail__link:hover { color: var(--foreground); background: rgba(255,255,255,0.06); }
.rail__link.is-active {
  color: var(--foreground);
  background: var(--glass);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.rail__card {
  margin: 0 8px;
  padding: 10px 6px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass-soft);
}
.rail__card b { display: block; font-size: 10px; font-weight: 600; }
.rail__card span { display: block; font-size: 9px; color: #52525b; }

/* ---------- page ---------- */
.page { padding-left: var(--rail); overflow-x: clip; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 30; padding: 12px 24px 0; }
.header__band {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgba(8,8,16,0.9), rgba(8,8,16,0));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to bottom, black 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
  transition: opacity 500ms;
}
.header__pill {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  max-width: 1152px; margin: 0 auto;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 1000ms var(--ease), border-color 1000ms var(--ease), box-shadow 1000ms var(--ease);
}
.header.is-down .header__band { opacity: 1; }
.header.is-down .header__pill {
  border-color: var(--line);
  background: rgba(12, 12, 12, 0.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  transition-duration: 700ms;
}
.search { position: relative; display: block; flex: 1; max-width: 420px; }
.search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-soft);
  color: var(--foreground);
  font: inherit; font-size: 14px;
  outline: none;
  transition: border-color 300ms, background 300ms;
}
.search input::placeholder { color: #52525b; }
.search input:focus { border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #52525b; pointer-events: none; }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: transform 500ms var(--ease), background 500ms var(--ease), border-color 500ms var(--ease), color 500ms var(--ease), box-shadow 500ms var(--ease);
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn svg { width: 16px; height: 16px; transition: transform 300ms; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary {
  color: #fff;
  background: var(--primary);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 2px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn--glass {
  color: var(--muted-foreground);
  background: var(--glass);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn--glass:hover { color: var(--foreground); background: rgba(255,255,255,0.12); border-color: var(--line-strong); }
.btn--ghost { color: var(--muted-foreground); background: rgba(255,255,255,0.03); }
.btn--ghost:hover { color: var(--foreground); background: rgba(255,255,255,0.06); border-color: var(--line-strong); }
.btn--lg { padding: 14px 28px; font-size: 15px; }

/* ---------- main ---------- */
.main { position: relative; max-width: 1152px; margin: 0 auto; padding: 40px 24px 80px; }
.bg { position: absolute; pointer-events: none; }
.bg--dots {
  inset: 0; opacity: 0.08;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 20%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 20%, black, transparent);
}
.bg--glow1 { top: -160px; left: -160px; width: 500px; height: 500px; border-radius: 50%; background: rgba(74,90,255,0.08); filter: blur(120px); }
.bg--glow2 { top: -80px; right: -128px; width: 400px; height: 400px; border-radius: 50%; background: rgba(99,102,241,0.05); filter: blur(120px); }
.bg--glow3 { top: 260px; left: 50%; width: 600px; height: 300px; transform: translateX(-50%); border-radius: 50%; background: rgba(139,92,246,0.04); filter: blur(140px); }
.stack { position: relative; display: flex; flex-direction: column; gap: 72px; }

/* ---------- hero ---------- */
.hero { max-width: 820px; margin: 0 auto; padding-top: 48px; text-align: center; }
.notice {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 20px; padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--glass-soft);
  font-size: 13px; color: #fff;
  backdrop-filter: blur(4px);
  cursor: help; user-select: none;
  transition: transform 500ms var(--ease), background 500ms, border-color 500ms;
}
.notice:hover { transform: scale(1.03); background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }
.notice__dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--glass); }
.notice__dot i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #34d57f; box-shadow: 0 0 10px #34d57f; }
.shine {
  color: rgba(181,181,181,0.64);
  background-image: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shine 5s linear infinite;
}
@keyframes shine { 0% { background-position: 100%; } 100% { background-position: -100%; } }

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--primary); }
.type-in span { display: inline-block; animation: typein 500ms var(--ease) both; }
@keyframes typein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero p { max-width: 580px; margin: 0 auto 36px; font-size: 19px; color: var(--muted-foreground); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 920px; margin: 0 auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 22px 12px; text-align: center; border-left: 1px solid var(--line); transition: transform 300ms var(--ease); }
.stat:first-child { border-left: 0; }
.stat:hover { transform: scale(1.03); }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.stat b em { font-style: normal; color: var(--primary); }
.stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted-foreground); }

/* ---------- section headings ---------- */
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 4px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass-soft);
  font-size: 12px; font-weight: 500; color: var(--muted-foreground); letter-spacing: 0.02em;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.section-head h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.section-head p { margin: 0; font-size: 17px; color: var(--muted-foreground); text-wrap: balance; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 210px; padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 500ms var(--ease), border-color 500ms, box-shadow 500ms;
}
.card::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0;
  background: radial-gradient(400px 160px at 20% 0%, rgba(74,90,255,0.18), transparent 70%);
  transition: opacity 500ms;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--line); background: var(--glass);
  color: var(--foreground);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.card__icon svg { width: 18px; height: 18px; }
.card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.card p { flex: 1; margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.card code { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--foreground); }
.card__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--foreground); }
.card__link svg { width: 14px; height: 14px; transition: transform 300ms; }
.card__link:hover svg { transform: translateX(3px); }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare .card { min-height: 0; }
.compare .card--dead { opacity: 0.85; }
.compare .card--dead h3 { color: var(--muted-foreground); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
.compare .card--live { border-color: rgba(74,90,255,0.35); }
.compare .card--live::before { opacity: 1; }
.tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line); }
.tag--dead { color: #fb7185; background: rgba(251,113,133,0.08); border-color: rgba(251,113,133,0.25); }
.tag--live { color: #34d57f; background: rgba(52,213,127,0.08); border-color: rgba(52,213,127,0.25); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.compare ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.compare li { display: flex; gap: 10px; font-size: 14px; color: var(--muted-foreground); }
.compare li svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.compare .card--live li svg { color: #34d57f; }
.compare .card--dead li svg { color: #fb7185; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass-soft); }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 999px; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; box-shadow: 0 0 0 4px rgba(74,90,255,0.15); }
.step h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }

/* ---------- closing ---------- */
.closing {
  position: relative; overflow: hidden;
  padding: 56px 24px; text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: #0a0a12;
}
.closing::before { content: ""; position: absolute; left: 50%; top: -120px; width: 520px; height: 260px; transform: translateX(-50%); border-radius: 50%; background: rgba(74,90,255,0.14); filter: blur(100px); pointer-events: none; }
.closing small { display: block; font-size: 13px; color: var(--muted-foreground); }
.closing h2 { position: relative; margin: 8px auto 24px; max-width: 560px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.closing h2 .accent { color: var(--primary); }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 1152px; margin: 0 auto; padding: 0 24px 40px; font-size: 13px; color: #52525b; }
.footer a { color: var(--muted-foreground); transition: color 200ms; }
.footer a:hover { color: var(--foreground); }
.footer nav { display: flex; gap: 18px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .type-in span { animation: none; }
  .shine { animation: none; }
}

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --rail: 0px; }
  .rail { top: auto; bottom: 0; height: auto; width: 100%; flex-direction: row; align-items: center; padding: 8px 12px; border-right: 0; border-top: 1px solid var(--line); }
  .rail__logo { display: none; }
  .rail__nav { flex-direction: row; justify-content: space-around; padding: 0; }
  .rail__card { display: none; }
  .header { padding: 8px 16px 0; }
  .search { display: none; }
  .header__pill { padding: 8px; }
  .header__actions { margin-left: 0; width: 100%; justify-content: space-between; }
  .main { padding: 24px 16px 100px; }
  .stack { gap: 56px; }
  .hero { padding-top: 24px; }
  .cards, .compare { grid-template-columns: 1fr; }
  .footer { padding-bottom: 96px; }
}
