/* cr0pht — dark, sharp, a little bit terminal. */
:root {
  --bg: #0b0d10;
  --bg-alt: #101419;
  --surface: #151a21;
  --line: #232a33;
  --text: #e8ecf1;
  --muted: #8a94a3;
  --accent: #00f0a8;
  --accent-dark: #00c98c;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 10px;
}

* { 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;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 6px 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--bg); font-weight: 600; font-size: 15px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.logo .zero { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; background: var(--bg); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.mobile-nav a:last-child { border: 0; color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -200px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 240, 168, 0.18), transparent 60%);
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow { color: var(--accent); margin-bottom: 20px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px 56px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--mono); font-size: 32px; font-weight: 500; color: var(--accent); line-height: 1; }
.hero-stats span { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Clients */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.clients .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.clients p { margin: 0; white-space: nowrap; }
.client-row { display: flex; flex-wrap: wrap; gap: 12px 40px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 0.4em; }
.section-intro { color: var(--muted); font-size: 17px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon { width: 44px; height: 44px; border-radius: 8px; background: rgba(0, 240, 168, 0.1); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--accent); }
.step-num { display: block; color: var(--accent); font-size: 28px; margin-bottom: 12px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: linear-gradient(180deg, var(--surface), var(--bg)); transition: border-color 0.2s; }
.work-item:hover { border-color: var(--muted); }
.work-item h3 { font-size: 24px; margin-top: 8px; }
.work-item > p:nth-of-type(2) { color: var(--muted); }
.result { margin: 20px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.result strong { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--accent); display: block; margin-bottom: 4px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.about-text { font-size: 17px; }
.about-text p { color: var(--muted); }
.principles { margin-top: 28px; display: grid; gap: 12px; }
.principles li { padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--surface); color: var(--muted); }
.principles strong { color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-grid .mono a { color: var(--accent); font-size: 15px; }
.contact-grid .mono a:hover { text-decoration: underline; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-family: var(--mono); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 12px 14px; transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; }
.form-note { font-size: 13px; margin: 14px 0 0; text-align: center; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff6b6b; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 14px; }
.footer-inner p { margin: 0; }

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

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px 40px; }
  .clients .container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav-toggle span { transition: none; }
}
