@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f6;
  --muted: #9198ab;
  --dim: #5d6478;
  --violet: #8b7bff;
  --indigo: #5b7cff;
  --cyan: #4fd8e0;
  --pink: #ff7ac6;
  --ok: #3ddc97;
  --warn: #ffc857;
  --grad: linear-gradient(100deg, #a99bff 0%, #6f9bff 45%, #4fd8e0 100%);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139, 123, 255, .35); }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(7, 8, 12, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.03em; line-height: 1; }
.brand b { font-weight: 680; }
.brand-word { white-space: nowrap; }
.brand-dim { color: var(--muted); font-weight: 450; }
.nav-links { display: flex; gap: 4px; margin-left: 24px; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; padding: 6px 12px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--dim); padding: 4px 10px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- BUTTONS ---------- */
.btn {
  --b: var(--text);
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: #0a0b10;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 30px -8px rgba(139, 123, 255, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 12px 40px -8px rgba(139, 123, 255, .75); }
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 168px 0 40px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.grid-lines {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.a1 { width: 620px; height: 420px; left: 50%; top: -160px; margin-left: -520px; background: #5b4bff; }
.a2 { width: 520px; height: 380px; left: 50%; top: -120px; margin-left: 40px; background: #1f8bff; animation-delay: -6s; opacity: .45; }
.a3 { width: 420px; height: 300px; left: 50%; top: 120px; margin-left: -180px; background: #20c6d6; animation-delay: -12s; opacity: .22; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 10px, 0) scale(.96); }
}

.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; padding: 6px 14px 6px 10px;
  border-radius: 999px; font-size: 13.5px; font-weight: 500; color: #cfd3ff;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(90deg, rgba(169,155,255,.6), rgba(79,216,224,.4)) border-box;
  border: 1px solid transparent;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: ping 2.4s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } }

h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(44px, 7.6vw, 92px); line-height: 1.02;
  font-weight: 600; letter-spacing: -.045em;
  background: linear-gradient(180deg, #ffffff 30%, #b9bdd0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 em, h2 em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  letter-spacing: -.01em; padding-right: .06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.65; max-width: 60ch; margin: 26px 0 0; }
.lead i { color: var(--text); font-style: italic; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

.trust {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  color: var(--muted); font-size: 14px;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- PRODUCT SHOT ---------- */
.shot-wrap { margin-top: 84px; perspective: 1800px; }
.shot {
  position: relative;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #11131c, #0b0c12);
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 50px 120px -30px rgba(91, 75, 255, .45),
    0 30px 60px -30px rgba(0,0,0,.8),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotateX(14deg) scale(.96);
  transform-origin: 50% 0%;
  transition: transform 1.2s var(--ease);
}
.shot.flat { transform: rotateX(0) scale(1); }
.shot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.shot-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #2a2d3a; }
.shot-url {
  margin: 0 auto; padding: 4px 16px; border-radius: 7px; background: rgba(255,255,255,.04);
  color: var(--dim); font-size: 12px; transform: translateX(-20px);
}
.shot-body { display: grid; grid-template-columns: 200px 1fr; min-height: 400px; }
.shot-side { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); margin: 0 8px 18px; opacity: .9; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.side-item i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .7; }
.side-item.active { background: var(--surface-2); color: var(--text); }
.shot-main { padding: 22px 26px; text-align: left; }
.shot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.shot-title { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.shot-sub { color: var(--dim); font-size: 13px; }
.shot-btn { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px; background: var(--violet); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.kpi span { color: var(--dim); font-size: 12px; }
.kpi strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 600; }
.kpi em.up { color: var(--ok); }
.shot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 12px; }
.chart, .list { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.chart-label { color: var(--dim); font-size: 12px; margin-bottom: 8px; }
.chart svg { width: 100%; height: 120px; }
.chart .line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.shot.flat .chart .line { animation: draw 2.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row span { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }

/* ---------- SECTIONS ---------- */
.section { padding: 130px 0 0; }
.kicker {
  margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
h2 {
  margin: 0 0 52px; max-width: 20ch;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 40%, #aeb3c7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden;
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139,123,255,.14), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; max-width: 58ch; }
.c-wide { grid-column: span 2; }
.ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(139,123,255,.22), rgba(139,123,255,.06));
  box-shadow: inset 0 0 0 1px rgba(169,155,255,.28), 0 8px 24px -10px rgba(139,123,255,.6);
}
.ic svg { width: 22px; height: 22px; fill: none; stroke: #c9c1ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px; color: #c9cde0; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.uptime { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.bars { display: flex; gap: 3px; }
.bars i { width: 5px; height: 22px; border-radius: 2px; background: var(--ok); opacity: .85; }
.bars i:nth-child(17) { background: var(--warn); }
.uptime span { color: var(--dim); font-size: 12.5px; white-space: nowrap; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative;
}
.steps li {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.steps li::after {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169,155,255,.6), transparent);
}
.steps .n {
  display: inline-block; margin-bottom: 18px;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 34px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.why-head { position: sticky; top: 110px; }
.why-head h2 { margin-bottom: 0; }
.why-head .lead { margin-top: 22px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.why-list li { padding: 26px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list h3 { display: flex; align-items: center; gap: 12px; }
.why-list h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--grad); box-shadow: 0 0 12px rgba(139,123,255,.8);
}
.why-list p { margin: 0; color: var(--muted); padding-left: 20px; }

/* CTA */
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 88px 32px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, #0f1120, #0a0b12);
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center;
}
.cta-glow {
  position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 900px; height: 520px; margin-left: -450px;
  background: radial-gradient(closest-side, rgba(111,155,255,.45), rgba(139,123,255,.18) 50%, transparent);
  filter: blur(20px);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent);
}
.cta-card h2 { margin: 0 auto; max-width: none; }
.cta-card .lead { margin: 18px auto 34px; }

/* Footer */
.footer { margin-top: 130px; border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--dim); font-size: 14px; }
.footer .lang { margin-left: auto; }
.footer .lang a { font-size: 12.5px; letter-spacing: 0; font-weight: 500; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why-head { position: static; }
  .shot-body { grid-template-columns: 1fr; }
  .shot-side { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 12px; }
  .brand-dim { display: none; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: 128px; }
  .section { padding-top: 96px; }
  .bento, .steps { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; }
  .card { padding: 24px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { display: none; }
  .shot-grid { grid-template-columns: 1fr; }
  .list { display: none; }
  .shot-head .shot-btn { display: none; }
  .shot-main { padding: 18px; }
  .shot-wrap { margin-top: 56px; }
  .cta-card { padding: 64px 20px; }
  .footer .lang { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .shot { transform: none; }
  .chart .line { stroke-dashoffset: 0; }
}
