/* ==========================================================================
   Indigo Solutions — design system
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2-variations"), url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2-variations"), url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07061a;
  --bg-2: #0d0b27;
  --text: #eef0ff;
  --muted: #a4a9cc;
  --dim: #7479a0;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --indigo-3: #c7d2fe;
  --violet: #8b5cf6;
  --cyan: #67e8f9;
  --ok: #34d399;
  --err: #fb7185;
  --grad: linear-gradient(100deg, #e0e7ff 0%, #a5b4fc 30%, #a78bfa 62%, #67e8f9 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(129, 140, 248, 0.4); color: #fff; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 860px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg);
}
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}
.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.bg__orb--1 {
  width: 520px; height: 520px;
  top: -140px; right: -80px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  animation: float-a 22s var(--ease) infinite alternate;
}
.bg__orb--2 {
  width: 460px; height: 460px;
  top: 38vh; left: -180px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  opacity: 0.35;
  animation: float-b 26s var(--ease) infinite alternate;
}
.bg__orb--3 {
  width: 380px; height: 380px;
  bottom: -160px; right: 18%;
  background: radial-gradient(circle, #0891b2, transparent 70%);
  opacity: 0.22;
  animation: float-a 30s var(--ease) infinite alternate-reverse;
}
.bg__noise {
  position: absolute;
  inset: -50%;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes float-a { to { transform: translate3d(-80px, 60px, 0) scale(1.1); } }
@keyframes float-b { to { transform: translate3d(90px, -50px, 0) scale(0.92); } }

/* --------------------------------------------------------------------------
   Glass
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

/* Cursor spotlight on cards */
[data-spot] { --mx: 50%; --my: 0%; isolation: isolate; }
[data-spot]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(129, 140, 248, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
[data-spot]::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(165, 180, 252, 0.55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
[data-spot]:hover::before,
[data-spot]:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #7c7ff5 0%, #5a55e8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(129, 140, 248, 0.5),
    0 10px 30px -8px rgba(99, 102, 241, 0.7);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(165, 180, 252, 0.7),
    0 16px 40px -8px rgba(99, 102, 241, 0.9);
}
.btn--primary svg { transition: transform 0.25s var(--ease); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(0) scale(0.98); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px var(--gutter) 0;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--container) - 2 * var(--gutter) + 24px);
  margin-inline: auto;
  height: 60px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled .nav__inner,
.nav.is-open .nav__inner {
  background: rgba(13, 11, 39, 0.66);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 17px;
  flex-shrink: 0;
}
.logo { display: block; filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.55)); }
.brand__dim { color: var(--muted); font-weight: 500; }
.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__cta-mobile { display: none; }
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 24px;
    background: #0e0c29;
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__links a { padding: 14px 16px; font-size: 16px; border-radius: 14px; }
  .nav__links .nav__cta-mobile {
    display: block;
    margin-top: 6px;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, #7c7ff5, #5a55e8);
  }
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--indigo-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}
.hero__title {
  margin: 0;
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  line-height: 0.98;
  font-weight: 620;
  letter-spacing: -0.052em;
}
.hero__title .grad { padding-bottom: 0.08em; display: inline-block; }
.hero__lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 32px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero__meta li { display: flex; flex-direction: column; gap: 2px; }
.hero__meta strong { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.hero__meta span { color: var(--dim); font-size: 13.5px; }

/* Hero visual */
.hero__visual {
  position: relative;
  height: 600px;
  perspective: 1400px;
  --rx: 0deg;
  --ry: 0deg;
}
.hero__visual > * { transition: transform 0.6s var(--ease); }

.code-card {
  position: absolute;
  top: 300px;
  left: -24px;
  z-index: 3;
  width: min(340px, 74%);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 22, 58, 0.82), rgba(14, 12, 38, 0.86));
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  animation: rise 1.2s var(--ease) 0.2s both;
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.code-card__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.code-card__bar i:nth-child(1) { background: #ff5f57; }
.code-card__bar i:nth-child(2) { background: #febc2e; }
.code-card__bar i:nth-child(3) { background: #28c840; }
.code-card__bar span { margin-left: 8px; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.code {
  margin: 0;
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #d6d9f5;
  white-space: pre;
  overflow: hidden;
}
.code .k { color: #c4a5ff; }
.code .t { color: #7dd3fc; }
.code .a { color: #f0abfc; }

.phone {
  position: absolute;
  right: 4%;
  top: 0;
  width: 290px;
  transform: rotateX(calc(var(--rx) * 1.6)) rotateY(calc(var(--ry) * 1.6)) translateZ(40px);
  animation: rise 1.2s var(--ease) 0.05s both;
}
.phone__frame {
  position: relative;
  aspect-ratio: 9 / 19.2;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #3a3960, #15142c 40%, #26244a);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.18),
    inset 0 0 0 4px #0b0a1d,
    0 50px 100px -30px rgba(79, 70, 229, 0.65),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.phone__island {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 27px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  padding: 18px 18px 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(99, 102, 241, 0.45), transparent 60%),
    linear-gradient(180deg, #11102b, #0a0920);
}
.ui-status {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
}
.ui-status__icons { display: flex; gap: 4px; align-items: center; }
.ui-status__icons i { width: 14px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.8); }
.ui-status__icons i:nth-child(1) { width: 12px; }
.ui-status__icons i:nth-child(3) { width: 20px; border-radius: 3px; }
.ui-kicker { margin: 30px 0 0; color: var(--indigo-2); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ui-title { margin: 2px 0 12px; font-size: 24px; font-weight: 650; letter-spacing: -0.03em; }
.ui-ring { position: relative; width: 150px; margin: 4px auto 14px; }
.ui-ring svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.5)); }
.ui-ring__arc { animation: ring 2.4s var(--ease) 0.6s both; }
@keyframes ring { from { stroke-dasharray: 0 100; } }
.ui-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}
.ui-ring__label b { font-size: 28px; letter-spacing: -0.04em; }
.ui-ring__label span { color: var(--muted); font-size: 11px; }
.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ui-row div { display: flex; flex-direction: column; line-height: 1.25; }
.ui-row b { font-size: 12.5px; font-weight: 600; }
.ui-row span { color: var(--dim); font-size: 11px; }
.ui-dot { flex: none; width: 30px; height: 30px; border-radius: 10px; }
.ui-dot--a { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.ui-dot--b { background: linear-gradient(135deg, #67e8f9, #0891b2); }
.ui-dot--c { background: linear-gradient(135deg, #f0abfc, #8b5cf6); }
.ui-tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-around;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ui-tabbar i { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); }
.ui-tabbar i.on { background: var(--indigo-2); box-shadow: 0 0 12px var(--indigo-2); }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  background: rgba(20, 18, 50, 0.6);
  border-color: var(--line-2);
  animation: rise 1s var(--ease) both, bob 6s ease-in-out infinite;
}
.chip__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.2);
  color: var(--indigo-3);
  font-size: 13px;
}
.chip__icon--ok { background: rgba(52, 211, 153, 0.18); color: var(--ok); }
.chip { z-index: 4; }
.chip--1 { top: 96px; left: 6%; animation-delay: 0.5s, 0s; }
.chip--2 { top: 190px; left: -2%; animation-delay: 0.7s, -2s; }
.chip--3 { bottom: 40px; right: -2%; animation-delay: 0.9s, -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.marquee li {
  display: flex;
  align-items: center;
  gap: 56px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee li::after { content: "✦"; color: rgba(129, 140, 248, 0.5); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__title {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  line-height: 1.04;
  font-weight: 620;
  letter-spacing: -0.045em;
}
.section__title--sm { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.section__title .grad { padding-bottom: 0.06em; }
.section__lead { max-width: 580px; margin: 20px 0 0; color: var(--muted); font-size: 1.1rem; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  padding: 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card--xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card--wide { grid-column: span 2; }
.card h3 { margin: 22px 0 8px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.025em; }
.card--xl h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card--xl p { max-width: 460px; font-size: 16.5px; }
.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.24), rgba(99, 102, 241, 0.08));
  box-shadow: inset 0 0 0 1px rgba(165, 180, 252, 0.28), 0 8px 24px -8px rgba(99, 102, 241, 0.6);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--indigo-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.card__art {
  position: relative;
  flex: 1;
  min-height: 190px;
  margin-top: 28px;
}
.mini-phone {
  position: absolute;
  bottom: -60px;
  left: 12%;
  width: 150px;
  height: 250px;
  padding: 36px 14px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.35), rgba(13, 11, 39, 0.9));
  border: 1px solid rgba(165, 180, 252, 0.3);
  box-shadow: 0 30px 60px -20px rgba(79, 70, 229, 0.6);
  transform: rotate(-8deg);
  transition: transform 0.6s var(--ease);
}
.mini-phone i { display: block; height: 30px; margin-bottom: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.mini-phone i:first-child { height: 56px; background: linear-gradient(135deg, rgba(165, 180, 252, 0.5), rgba(139, 92, 246, 0.3)); }
.mini-phone--b {
  left: auto;
  right: 12%;
  bottom: -30px;
  transform: rotate(7deg);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.25), rgba(13, 11, 39, 0.9));
  border-color: rgba(103, 232, 249, 0.3);
}
.mini-phone--b i:first-child { background: linear-gradient(135deg, rgba(103, 232, 249, 0.5), rgba(99, 102, 241, 0.3)); }
.card--xl:hover .mini-phone { transform: rotate(-4deg) translateY(-10px); }
.card--xl:hover .mini-phone--b { transform: rotate(3deg) translateY(-14px); }

/* Feature (apps teaser) */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.feature__copy p:not(.eyebrow) { margin: 18px 0 28px; max-width: 520px; color: var(--muted); font-size: 1.05rem; }
.icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  max-width: 380px;
  margin-inline: auto;
  transform: rotate(-6deg);
}
.app-icon {
  display: block;
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.app-icon::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 30%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.app-icon--1 { background: linear-gradient(145deg, #818cf8, #4338ca); --glyph: radial-gradient(circle, #000 45%, transparent 47%); }
.app-icon--2 { background: linear-gradient(145deg, #22d3ee, #1e40af); --glyph: linear-gradient(#000, #000) center / 100% 26% no-repeat; }
.app-icon--3 { background: linear-gradient(145deg, #c084fc, #6d28d9); --glyph: conic-gradient(#000 0 75%, transparent 0); }
.app-icon--4 { background: linear-gradient(145deg, #1f1d45, #0b0a1d); --glyph: linear-gradient(135deg, transparent 40%, #000 40% 60%, transparent 60%); }
.app-icon--5 { background: linear-gradient(145deg, #a5b4fc, #7c3aed); --glyph: radial-gradient(circle, transparent 30%, #000 31% 48%, transparent 50%); }
.app-icon--6 { background: linear-gradient(145deg, #67e8f9, #6366f1); --glyph: linear-gradient(#000, #000); }
.app-icon--4::after { background: var(--indigo-2); }
.feature:hover .app-icon:nth-child(odd) { transform: translateY(-6px); }
.feature:hover .app-icon:nth-child(even) { transform: translateY(6px); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step { padding: 28px; transition: transform 0.4s var(--ease); }
.step:hover { transform: translateY(-3px); }
.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--indigo-2);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
}
.step h3 { margin: 22px 0 8px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.025em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.principle { padding: 32px 28px; background: rgba(9, 8, 30, 0.88); }
.principle h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }
.principle a { color: var(--indigo-3); }

/* Company */
.company { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.company__copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin: 20px 0 0; max-width: 540px; }
.facts { margin: 0; padding: 12px 28px; }
.facts > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--indigo-3); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.25), transparent);
  pointer-events: none;
  z-index: -1;
}
.contact__intro p:not(.eyebrow) { color: var(--muted); margin: 18px 0 0; }
.contact__list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.contact__list svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  fill: none;
  stroke: var(--indigo-3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__list a { color: var(--text); text-decoration: none; }
.contact__list a:hover { color: var(--indigo-3); }

/* Form */
.form { display: grid; gap: 16px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.field em { color: var(--dim); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(5, 4, 20, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23a4a9cc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { background: #12102e; }
.field ::placeholder { color: #5b5f84; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo-2);
  background: rgba(5, 4, 20, 0.75);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.18);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__note { margin: 0; color: var(--dim); font-size: 13.5px; }
.form__note a { color: var(--muted); }
.form__status { margin: 0; min-height: 1.5em; font-size: 14.5px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.form.is-loading .btn__spinner { display: inline-block; }
.form.is-loading button[type="submit"] { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(64px, 10vw, 128px) 0 clamp(24px, 4vw, 48px); }
.page-hero--doc { padding-bottom: 12px; }
.page-hero--center { text-align: center; min-height: 62vh; display: grid; align-items: center; }
.page-hero--center .hero__actions { justify-content: center; }
.page-hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
  font-weight: 620;
  letter-spacing: -0.05em;
}
.page-hero__title .grad { padding-bottom: 0.06em; }
.page-hero__lead { max-width: 640px; margin: 24px 0 0; color: var(--muted); font-size: 1.15rem; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.code-404 { margin: 0 0 12px; font-family: var(--mono); font-size: clamp(5rem, 16vw, 9rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; }

.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card { padding: 30px; display: flex; flex-direction: column; transition: transform 0.4s var(--ease); }
.app-card:hover { transform: translateY(-3px); }
.app-card .app-icon,
.app-card__icon { width: 72px; height: 72px; border-radius: 23%; }
.app-card h2 { margin: 24px 0 8px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.025em; }
.app-card p { margin: 0; color: var(--muted); font-size: 15px; }
.app-card .tags { margin-top: auto; padding-top: 22px; }
.app-card__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.app-card--slot .app-icon { opacity: 0.9; filter: saturate(0.9); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 16px; }
.faq__intro { margin: 14px 0 0; color: var(--muted); }
.faq__group { margin: 44px 0 0; color: var(--indigo-3); font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.faq__item ul { margin: 10px 0 0; padding-left: 20px; }
.faq__item li { margin-bottom: 6px; }
.faq__item li::marker { color: var(--indigo-2); }
.faq__item p + p, .faq__item ul + p { margin-top: 10px; }
.faq__item { border-radius: 18px; transition: border-color 0.3s; }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary {
  position: relative;
  padding: 22px 64px 22px 24px;
  font-size: 1.05rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background:
    linear-gradient(var(--indigo-3), var(--indigo-3)) center / 10px 1.6px no-repeat,
    linear-gradient(var(--indigo-3), var(--indigo-3)) center / 1.6px 10px no-repeat,
    rgba(129, 140, 248, 0.14);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item > div { padding: 0 24px 22px; color: var(--muted); }
.faq__item p { margin: 0; }
.faq__item a { color: var(--indigo-3); }

/* Legal documents */
.section--doc { padding-top: 24px; }
.doc-meta { margin: 18px 0 0; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.doc { padding: clamp(28px, 5vw, 56px); color: #d3d6f0; font-size: 16px; line-height: 1.75; }
.doc h2 { margin: 48px 0 14px; color: var(--text); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; scroll-margin-top: 100px; }
.doc h3 { margin: 26px 0 8px; color: var(--text); font-size: 1.08rem; font-weight: 600; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--indigo-2); }
.doc a { color: var(--indigo-3); text-underline-offset: 3px; }
.doc strong { color: var(--text); font-weight: 600; }
.toc {
  margin: 32px 0 8px;
  padding: 22px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.toc__h { margin: 0 0 10px !important; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.doc-callout {
  margin: 18px 0 8px !important;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.1);
  font-size: 14.5px;
  line-height: 1.65;
}
.doc-address { font-style: normal; padding: 20px 24px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 64px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 11, 39, 0.4), rgba(5, 4, 18, 0.9));
}
.footer__top { display: grid; grid-template-columns: 1.3fr 2fr 1.1fr; gap: 48px; }
.footer__tag { margin: 18px 0 0; max-width: 300px; color: var(--dim); font-size: 14.5px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols div,
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__h { margin: 0 0 6px; color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.footer__cols a,
.footer__contact a,
.footer__contact span { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.footer__cols a:hover,
.footer__contact a:hover { color: var(--text); }
.footer__contact { font-style: normal; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.footer__bottom p { margin: 0; }
.footer__fine { max-width: 560px; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 560px; max-width: 620px; width: 100%; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl { grid-row: auto; }
  .steps, .principles { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 820px) {
  .feature, .company, .contact { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero__meta { grid-template-columns: 1fr; gap: 14px; }
  .hero__meta li { flex-direction: row; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .hero__visual { height: 500px; }
  .phone { width: 240px; right: 0; }
  .code-card { top: 250px; left: 0; width: 80%; }
  .code { font-size: 11.5px; padding: 14px 16px; }
  .chip { font-size: 12.5px; }
  .chip--1 { top: 40px; left: 0; }
  .chip--2 { top: 110px; left: 0; }
  .chip--3 { bottom: 12px; right: 0; }
  .bento, .steps, .principles { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .btn { --h: 50px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
