:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f6;
  --muted: #9aa0b4;
  --dim: #6b7086;
  --violet: #7c6cff;
  --teal: #2ee6c5;
  --sun: #ffb547;
  --coral: #ff6b6b;
  --grad: linear-gradient(120deg, var(--violet), var(--teal));
  --radius: 20px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::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: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(124, 108, 255, 0.4); }

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

/* ---------- Background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.55;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb.a { width: 520px; height: 520px; background: var(--violet); top: -180px; left: 8%; }
.orb.b { width: 440px; height: 440px; background: var(--teal); top: -120px; right: 4%; opacity: 0.32; animation-delay: -8s; }
@keyframes drift {
  to { transform: translate3d(60px, 80px, 0) scale(1.1); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 8, 12, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 700; }
.brand span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.25); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 110px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
}
.pill i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 230, 197, 0.15);
  margin-left: 4px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1; letter-spacing: -0.045em; font-weight: 600;
  margin: 28px auto 24px; max-width: 14ch;
}
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 600px; margin: 0 auto 40px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 15px; padding: 13px 22px; border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(124, 108, 255, 0.7); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn svg { width: 16px; height: 16px; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 720px; margin: 88px auto 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.stat { padding: 24px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--dim); }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
h2 {
  font-family: var(--display); font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 20px; max-width: 18ch;
}
.section-lead { color: var(--muted); font-size: 18px; max-width: 580px; margin: 0; }
.head { margin-bottom: 56px; }

/* Services */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(124, 108, 255, 0.12); border: 1px solid rgba(124, 108, 255, 0.25);
  margin-bottom: 24px; color: #b3a9ff;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Work */
.work {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 181, 71, 0.08), rgba(255, 107, 107, 0.04) 50%, transparent);
}
.work-body { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; color: var(--sun);
  background: rgba(255, 181, 71, 0.1); border: 1px solid rgba(255, 181, 71, 0.25); margin-bottom: 24px;
}
.work h3 {
  font-family: var(--display); font-size: clamp(40px, 5vw, 60px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; margin: 0 0 6px;
}
.work h3 em {
  font-style: normal; background: linear-gradient(120deg, var(--sun), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.work .sub { color: var(--dim); font-size: 14px; margin-bottom: 20px; }
.work p { color: var(--muted); font-size: 17px; margin: 0 0 28px; max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); }

.work-visual {
  position: relative; min-height: 460px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 181, 71, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 107, 107, 0.25), transparent 50%);
}
.phone {
  width: 220px; height: 440px; border-radius: 40px; padding: 10px;
  background: #111218; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(-6deg);
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
.work:hover .phone { transform: rotate(-2deg) translateY(-6px); }
.screen {
  height: 100%; border-radius: 31px; overflow: hidden; position: relative;
  background: linear-gradient(170deg, #ffcf6e 0%, #ff8a5c 55%, #ff5f7a 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
}
.screen .notch { position: absolute; top: 10px; width: 76px; height: 22px; border-radius: 999px; background: #111218; }
.screen .mark { font-family: var(--display); font-size: 72px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.15); }
.screen .mark small { font-size: 0.55em; }
.screen .line { margin-top: 14px; font-size: 13px; font-weight: 500; opacity: 0.9; }
.screen .bars { position: absolute; bottom: 28px; left: 22px; right: 22px; display: grid; gap: 8px; }
.screen .bars i { display: block; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.35); }
.screen .bars i:nth-child(2) { width: 70%; }
.screen .bars i:nth-child(3) { width: 45%; }

.more {
  margin-top: 16px; padding: 22px 28px; border-radius: var(--radius); border: 1px dashed var(--line-2);
  color: var(--dim); font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

/* Approach */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px 0 0; border-top: 1px solid var(--line-2); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--display); font-size: 14px; color: var(--teal); font-weight: 600;
}
.step h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Contact */
.contact {
  text-align: center; padding: 88px 32px; border-radius: 32px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124, 108, 255, 0.22), transparent 70%),
    var(--bg-2);
}
.contact h2 { margin: 0 auto 16px; }
.contact .section-lead { margin: 0 auto 36px; }
.mail {
  display: inline-block; font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600; letter-spacing: -0.02em; border-bottom: 2px solid rgba(124, 108, 255, 0.5);
  padding-bottom: 4px; transition: border-color 0.2s; word-break: break-all;
}
.mail:hover { border-color: var(--teal); }

/* Company facts */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 16px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.fact { background: var(--bg); padding: 22px 24px; }
.fact span { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.fact strong { font-weight: 500; font-size: 15px; }

/* Footer */
footer { padding: 56px 0 48px; border-top: 1px solid var(--line); margin-top: 110px; color: var(--dim); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: var(--text); }
.legal { margin-top: 24px; font-size: 13px; line-height: 1.7; max-width: 760px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Legal pages */
.doc { padding: 80px 0 0; max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); text-align: left; margin: 12px 0 12px; max-width: none; }
.doc .updated { color: var(--dim); font-size: 14px; margin-bottom: 48px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; max-width: none; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--text); border-bottom: 1px solid rgba(124, 108, 255, 0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .work { grid-template-columns: 1fr; }
  .work-visual { min-height: 400px; order: -1; }
  .work-body { padding: 40px 28px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 80px 0 72px; }
  section { padding: 80px 0; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .stats { grid-template-columns: 1fr; margin-top: 64px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .contact { padding: 64px 20px; }
  .more { flex-direction: column; align-items: flex-start; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
