:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f2f4f8;
  --ink-2: #a3a9b8;
  --ink-3: #6b7180;
  --accent: #2f6bff;
  --accent-2: #a9c4ff;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }
@media (max-width: 860px) { section[id] { scroll-margin-top: 100px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--accent-2); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
}
.nav {
  display: flex;
  gap: 4px;
  font-size: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--panel-2); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.header-cta:hover { color: var(--ink); background: var(--panel-2); }
.arrow-chip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.arrow-chip svg { width: 14px; height: 14px; }

/* Sections */
section { padding: 104px 0; border-bottom: 1px solid var(--line); position: relative; }
.label {
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 20px;
}
h1, h2, h3 { letter-spacing: -0.025em; margin: 0; font-weight: 500; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; max-width: 22ch; }
h3 { font-size: 18px; line-height: 1.35; }
p { margin: 0; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin-top: 24px; }
.muted { color: var(--ink-2); }
.grad {
  background: linear-gradient(90deg, #ffffff 0%, #dfe6f5 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  text-decoration: none;
  font: 500 15px/1.2 var(--font);
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
}
.btn:hover { color: var(--ink); background: var(--panel-2); }
.btn-primary { padding: 6px 6px 6px 18px; }
.btn-primary .arrow-chip { background: var(--accent); border-color: transparent; color: #fff; }

/* Hero */
.hero {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  padding: 96px 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* faint grid that fades out toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.hero::after {
  /* the glowing arc */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 18%;
  width: 150vw;
  max-width: 1900px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border-top: 1px solid rgba(169, 196, 255, 0.35);
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.0) 80%, rgba(47, 107, 255, 0.22) 97%, transparent 100%);
  box-shadow: 0 -40px 120px -40px rgba(47, 107, 255, 0.45);
}
.hero .wrap { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}
.badge-chip svg { width: 13px; height: 13px; color: var(--accent-2); }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.08;
  max-width: none;
}
.hero h1 .line { display: block; }
.typed { color: var(--ink); }
.caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--ink-2);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .lead { margin: 24px auto 0; text-align: center; }

.hero-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-form input {
  width: min(320px, 100%);
  padding: 12px 16px;
  font-size: 15px;
}

/* Floating icon tiles */
.tile {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  animation: float 7s ease-in-out infinite;
  z-index: -1;
}
.tile svg { width: 18px; height: 18px; }
.tile.t1 { left: 22%; top: 16%; transform: rotate(-14deg); }
.tile.t2 { right: 28%; top: 5%; animation-delay: -2s; }
.tile.t3 { right: 13%; top: 30%; transform: rotate(10deg); animation-delay: -4s; }
.tile.t4 { left: 3%; top: 56%; animation-delay: -1s; }
.tile.t5 { right: 1%; top: 64%; transform: rotate(18deg); animation-delay: -3s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Hero flow diagram */
.flow {
  margin: 72px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-3);
}
.flow-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 14, 24, 0.8);
}
.flow-node b { color: var(--ink); font-weight: 500; }
.flow-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.flow-icon svg { width: 13px; height: 13px; }
.flow-link {
  width: 48px;
  border-top: 1px dashed var(--line-2);
}
.flow-tag {
  padding: 3px 10px;
  border-radius: 7px;
  background: #e8eefc;
  color: #0b1220;
  font-size: 13px;
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.scroll-hint span { color: var(--ink-3); }

/* Section head */
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin: 0 auto 56px;
  max-width: 640px;
}
.sec-head h2 { max-width: 20ch; }
.sec-head .muted { font-size: 17px; }
.sec { overflow: hidden; }
.sec::before {
  /* soft glow behind each section heading */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -160px;
  width: 720px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.14), transparent);
  pointer-events: none;
}
.sec { isolation: isolate; }

/* Shared bits */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.chips span {
  font: 500 12px/1 var(--mono);
  color: var(--ink-2);
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
}
.svc-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.18), rgba(47, 107, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.svc-icon svg { width: 20px; height: 20px; }
.badge-chip { font-size: 13px; }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.svc:hover { border-color: var(--line-2); transform: translateY(-2px); }
.svc h3 { font-size: 19px; margin-top: 8px; }
.svc p { color: var(--ink-2); font-size: 15px; }
.svc.feature::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.22), transparent);
  pointer-events: none;
}
.svc.feature h3 { font-size: 22px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.svc.wide { flex-direction: row; align-items: center; gap: 24px; }
.svc.wide h3 { margin: 0 0 4px; }
.svc.wide .chips { margin: 0 0 0 auto; padding: 0; justify-content: flex-end; max-width: 320px; }

/* Work */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.work:hover { border-color: var(--line-2); transform: translateY(-2px); }
.work-art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 50% 100%, hsl(var(--hue) 80% 55% / 0.35), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-2);
}
.work-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: hsl(var(--hue) 90% 80%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 40px -10px hsl(var(--hue) 80% 40% / 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.work-icon svg { width: 32px; height: 32px; }
.work-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.work .tag { font: 500 12px/1 var(--mono); color: hsl(var(--hue) 90% 78%); }
.work h3 { font-size: 20px; }
.work p { color: var(--ink-2); font-size: 15px; }

/* Process timeline */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 49px;
  left: 12%;
  right: 12%;
  border-top: 1px dashed var(--line-2);
  z-index: -1;
}
.pstep {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
}
.pstep-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pstep-num { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.pstep-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 50% 30%, #5b8bff, var(--accent));
  box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.12), 0 10px 30px -6px rgba(47, 107, 255, 0.7);
}
.pstep-icon svg { width: 20px; height: 20px; }
.pstep h3 { font-size: 19px; }
.pstep p { color: var(--ink-2); font-size: 15px; }
.pstep-out {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent-2);
}
.pstep-out svg { width: 14px; height: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.about-title { margin-top: 18px; }
.values { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; }
.values li { display: flex; gap: 16px; align-items: flex-start; }
.values h3 { font-size: 17px; margin-bottom: 2px; }
.values p { color: var(--ink-2); font-size: 15px; }
.company-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  box-shadow: 0 30px 80px -30px rgba(47, 107, 255, 0.35);
}
.company-top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.company-top img { border-radius: 12px; }
.company-top strong { display: block; font-weight: 500; font-size: 18px; }
.company-top span { font-size: 14px; color: var(--ink-3); }
.facts { margin: 0 0 24px; display: grid; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { text-decoration: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: 13px; color: var(--ink-3); }
form { display: grid; gap: 16px; }
label { font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
select option { background: var(--bg-2); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
form .btn { justify-self: start; }

/* Footer */
.site-footer { padding: 40px 0; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }

/* Legal pages */
.legal { padding: 80px 0 96px; border: 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; max-width: none; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-2); }
.legal .btn { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .tile, .caret { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .hero { padding: 72px 0 96px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3 { grid-column: span 2; }
  .svc.wide { flex-direction: column; align-items: flex-start; }
  .svc.wide .chips { margin: 0; justify-content: flex-start; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
  .site-header .wrap { height: auto; padding-block: 12px; flex-wrap: wrap; gap: 10px; }
  .nav { width: 100%; justify-content: space-between; padding: 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 8px; }
  .tile.t2, .tile.t4 { display: none; }
  .flow { flex-direction: column; gap: 0; }
  .flow-link { width: 0; height: 22px; border-top: 0; border-left: 1px dashed var(--line-2); }
}
@media (max-width: 520px) {
  .bento, .process { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .svc, .pstep, .company-card { padding: 22px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .tile { display: none; }
  .scroll-hint { display: none; }
  .flow { display: none; }
  .hero h1 { font-size: 34px; }
  .nav { font-size: 13px; }
}
