:root {
  --bg: #0a0b0f;
  --bg-alt: #0f1117;
  --surface: #14161e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f5;
  --muted: #9aa0ad;
  --accent: #7c8cff;
  --accent-2: #4fd1c5;
  --radius: 16px;
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

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

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

:focus-visible { outline: 2px solid var(--accent); 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.is-scrolled {
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand__mark { width: 30px; height: 30px; color: var(--text); }
.brand__name span { color: var(--muted); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--text);
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(124, 140, 255, .6); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--large { padding: 18px 28px; font-size: 17px; }

/* Hero */
.hero { position: relative; padding: 180px 0 120px; overflow: hidden; isolation: isolate; }
.hero__glow {
  position: absolute; z-index: -1; inset: -20% -10% auto -10%; height: 900px;
  background:
    radial-gradient(600px 380px at 25% 30%, rgba(124, 140, 255, .28), transparent 70%),
    radial-gradient(520px 360px at 80% 20%, rgba(79, 209, 197, .16), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .55;
}
@keyframes drift { to { transform: translate3d(4%, 3%, 0) scale(1.05); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; color: var(--muted); background: rgba(255,255,255,.02);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }

.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 28px; max-width: 580px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.pills { list-style: none; padding: 0; margin: 72px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 14px; }
.pills li { display: flex; align-items: center; gap: 10px; }
.pills li::before { content: ""; width: 18px; height: 1px; background: var(--line-strong); }

/* Sections */
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.section h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 600; }
.section__sub { margin-top: 20px; color: var(--muted); font-size: 18px; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(124, 140, 255, .12); color: var(--accent); margin-bottom: 24px;
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.service {
  display: flex; gap: 28px; padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--line);
}
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 32px; }
.service__num { font-family: var(--display); font-size: 14px; color: var(--accent); padding-top: 4px; min-width: 24px; }
.service h3 { font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.service p { color: var(--muted); max-width: 42ch; }

.products { margin-top: 48px; color: var(--muted); font-size: 17px; }
.products a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--accent); transition: color .2s; }
.products a:hover { color: var(--accent); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); counter-increment: step; }
.step::before {
  content: "0" counter(step);
  position: absolute; top: -11px; left: 0;
  background: var(--bg); padding-right: 12px;
  font-family: var(--display); font-size: 14px; color: var(--accent);
}
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* Statement */
.statement { padding: 130px 0; border-top: 1px solid var(--line); background: radial-gradient(800px 300px at 50% 100%, rgba(124,140,255,.12), transparent 70%), var(--bg-alt); }
.statement blockquote {
  margin: 0 auto; max-width: 960px; text-align: center;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.25; letter-spacing: -0.02em;
}
.statement blockquote span { color: var(--accent-2); }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  padding: 64px; border-radius: 24px; border: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(79,209,197,.12), transparent 70%),
    radial-gradient(500px 260px at 0% 100%, rgba(124,140,255,.14), transparent 70%),
    var(--surface);
}
.contact__actions { display: flex; justify-content: flex-end; }
.contact .btn--large { word-break: break-all; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .services .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .services .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4), .services .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__glow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .cards--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .contact { grid-template-columns: 1fr; padding: 44px; }
  .contact__actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav__links a:not(.btn) { display: none; }
  .hero { padding: 140px 0 88px; }
  .pills { margin-top: 48px; }
  .section { padding: 88px 0; }
  .section__head { margin-bottom: 40px; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 32px 0; border-right: 0; }
  .service:nth-child(odd) { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .statement { padding: 96px 0; }
  .contact { padding: 32px 24px; border-radius: 20px; }
  .btn--large { padding: 16px 22px; font-size: 15px; }
}
