@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0a0a12;
  --bg-alt: #0f0f1a;
  --surface: #151524;
  --border: #25253a;
  --text: #f4f3fb;
  --muted: #a9a7c4;
  --purple: #8b3dff;
  --blue: #2f6bff;
  --blue-soft: #4d8bff;
  --ok: #3ddc97;
  --grad: linear-gradient(135deg, var(--purple), var(--blue));
  --radius: 16px;
  --wrap: 1160px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 30px -10px rgba(111, 76, 255, 0.7);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(111, 76, 255, 0.9); }
.btn--ghost { background: transparent; border-color: var(--border); box-shadow: none; }
.btn--ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn--small { padding: 9px 16px; font-size: 0.85rem; }
.btn--large { padding: 16px 28px; font-size: 1.05rem; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37, 37, 58, 0.7);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero__glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 780px;
  height: 780px;
  background: radial-gradient(closest-side, rgba(139, 61, 255, 0.32), rgba(47, 107, 255, 0.14) 55%, transparent 75%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(169, 167, 196, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero__copy h1 { margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.terminal {
  background: rgba(21, 21, 36, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(47, 107, 255, 0.45);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c2c44; }
.terminal__bar em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: var(--muted); }
.terminal__body {
  margin: 0;
  padding: 22px 20px 26px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.85;
  color: #d9d7ee;
  white-space: pre-wrap;
}
.t-dim { color: #6e6c8c; }
.t-ok { color: var(--ok); }
.t-hl { color: var(--blue-soft); }
.cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--blue-soft);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { margin-bottom: 44px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: #3b3b5c; transform: translateY(-2px); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.22), rgba(47, 107, 255, 0.22));
  border: 1px solid rgba(139, 61, 255, 0.35);
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: #c9b8ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split .lead { margin-bottom: 30px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 6px;
  background: var(--grad);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' rx='6'/%3E%3C/svg%3E");
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 50%;
  width: 6px;
  height: 10px;
  margin-top: -7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist strong { color: var(--text); font-weight: 600; }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product {
  display: block;
  position: relative;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.product:hover { border-color: var(--purple); }
.product h3 { font-size: 1.5rem; margin: 18px 0 10px; }
.product p { color: var(--muted); max-width: 46ch; }
.product__link { display: inline-block; margin-top: 22px; font-size: 0.9rem; font-weight: 600; color: var(--blue-soft); }
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge--live { color: var(--ok); border-color: rgba(61, 220, 151, 0.35); background: rgba(61, 220, 151, 0.08); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 24px 22px; border-top: 2px solid var(--border); }
.steps li:first-child { border-image: var(--grad) 1; }
.steps span { font-size: 0.8rem; font-weight: 600; color: var(--blue-soft); }
.steps h3 { margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 0.93rem; }

.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.about h2 { margin-bottom: 0; }
.about p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }
.chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  color: #cfcde6;
}

.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(139, 61, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: none; margin-bottom: 16px; }
.cta .lead { margin-bottom: 34px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer__legal { margin-top: 14px; color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { grid-column: 1 / -1; color: #6e6c8c; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 1000px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .split, .about { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 72px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .topbar__inner { justify-content: space-between; }
  .section { padding: 68px 0; }
  .section h2 { margin-bottom: 30px; }
  .cards, .steps, .products { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .terminal__body { font-size: 0.76rem; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* Social */
.social { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.social p { color: var(--muted); font-size: 0.95rem; }
.social__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.social__links a:hover { border-color: var(--purple); }
.social__links svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social__links svg .fill { fill: currentColor; stroke: none; }
