:root {
  --bg: #0a0c0f;
  --bg-alt: #0e1115;
  --surface: #12161b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecef;
  --muted: #8b939e;
  --accent: #5eead4;
  --accent-ink: #04201b;
  --radius: 14px;
  --max: 1120px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 12, 15, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-small { font-size: 16px; }
.brand-small .brand-mark { width: 20px; height: 20px; }

.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 600 15px/1 var(--sans); cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: #7ff0de; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 128px 0 120px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; left: 50%; top: -240px; width: 720px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(94, 234, 212, 0.14), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  font: 500 13px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.02em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero h1 { margin-top: 28px; font-size: clamp(44px, 7.5vw, 88px); font-weight: 600; letter-spacing: -0.04em; }
.lede { margin-top: 28px; max-width: 600px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.55; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Statement */
.statement { padding: 96px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.statement-lead { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; max-width: 900px; }
.statement-body { margin-top: 20px; max-width: 640px; color: var(--muted); font-size: 18px; }
.accent { color: var(--accent); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.label { font: 500 13px/1 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.section-head h2, .contact-copy h2 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.035em; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%), var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-num { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.card h3 { margin-top: 28px; font-size: 22px; }
.card > p:not(.card-num) { margin-top: 14px; color: var(--muted); font-size: 16px; flex: 1; }
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; font: 400 12px/1.2 var(--mono); color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-strong); }
.step { padding: 28px 28px 0 0; position: relative; }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--accent); }
.step-num { font: 500 13px/1 var(--mono); color: var(--accent); }
.step h3 { margin-top: 18px; font-size: 20px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why .section-head { margin-bottom: 0; }
.principles { list-style: none; padding: 0; margin: 0; }
.principles li { padding: 26px 0; border-bottom: 1px solid var(--border); }
.principles li:first-child { padding-top: 0; }
.principles h3 { font-size: 19px; }
.principles p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.form { display: grid; gap: 16px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg);
  color: var(--text); font: 400 16px/1.4 var(--sans); resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #fca5a5; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 14px; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound h1 { font-size: clamp(56px, 10vw, 96px); letter-spacing: -0.05em; }
.notfound p { margin: 16px 0 32px; color: var(--muted); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

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

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .why, .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 88px 0 80px; }
  .section { padding: 88px 0; }
  .statement { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
  .field-row { grid-template-columns: 1fr; }
  .form, .card { padding: 24px; }
}
