:root {
  --bg: #0a0d12;
  --bg-2: #0d1117;
  --bg-3: #12161f;
  --bg-4: #161b26;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.18);
  --text: #e5e7eb;
  --text-strong: #f3f4f6;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #ffffff;
  --grad-start: #ffffff;
  --grad-mid: #cbd5e1;
  --grad-end: #64748b;
  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 18, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-strong); }
.brand-text { font-size: 15px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0; text-transform: lowercase; }
.logo-mark {
  width: 24px; height: 24px; display: block;
  filter: invert(1) brightness(1.6);
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--text-strong); }
.cta-small {
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 4px;
  color: var(--text) !important;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.cta-small:hover { border-color: var(--accent); color: var(--accent) !important; background: rgba(255, 255, 255, 0.04); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s ease, transform .8s ease;
  border-bottom: 1px solid var(--line);
}
.hero.in { opacity: 1; transform: none; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 400px at 14% 12%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(560px 380px at 84% 8%, rgba(255, 255, 255, 0.035), transparent 60%),
    radial-gradient(720px 480px at 60% 90%, rgba(255, 255, 255, 0.025), transparent 60%);
  filter: blur(6px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 11.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  font-family: 'JetBrains Mono', monospace;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
.hero h1 {
  margin: 28px 0 22px;
  font-size: clamp(40px, 6.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text-strong);
  max-width: 1000px;
}
.grad {
  background: linear-gradient(90deg, var(--grad-mid), var(--grad-end));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  max-width: 660px; color: var(--muted); font-size: 17px; line-height: 1.6;
}
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 4px; font-weight: 600; font-size: 14px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--accent); color: #0a0d12;
}
.btn-primary:hover { background: #e2e8f0; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--text); background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 255, 255, 0.03); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 72px; padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 780px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 6px; }
.hero-stats strong {
  font-size: 30px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--text-strong);
  font-feature-settings: "tnum";
}
.hero-stats span {
  color: var(--muted); font-size: 12px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ===== Sections ===== */
.section {
  padding: 140px 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
  position: relative;
}
.section.in { opacity: 1; transform: none; }
.section-dim { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.kicker {
  font-family: 'JetBrains Mono', monospace;
  color: var(--grad-mid); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before {
  content: "//"; color: var(--muted-2); margin-right: 4px;
}
.section-head h2 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.05;
  color: var(--text-strong);
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 640px; }

/* ===== Grids ===== */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Service cards ===== */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  position: relative;
}
.card:hover { border-color: var(--line-3); background: var(--bg-4); transform: translateY(-2px); }
.card h3 { margin: 22px 0 10px; font-size: 17px; letter-spacing: -0.015em; color: var(--text-strong); font-weight: 600; }
.card p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }
.card-num {
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 12px;
  color: var(--muted-2); letter-spacing: 0.16em;
}

/* ===== Work cards ===== */
.work {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  position: relative; overflow: hidden;
}
.work::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 55%);
  pointer-events: none;
}
.work:hover { border-color: var(--line-3); background: var(--bg-4); transform: translateY(-2px); }
.work-link { display: block; color: inherit; text-decoration: none; }
.work-link .work-cta {
  display: inline-block; margin-top: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-strong); transition: transform .2s ease;
  text-transform: uppercase;
}
.work-link:hover .work-cta { transform: translateX(4px); }
.work-tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.work h3 { margin: 18px 0 10px; font-size: 22px; letter-spacing: -0.02em; color: var(--text-strong); font-weight: 600; line-height: 1.2; }
.work p { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.chips li {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.04); color: var(--muted); border: 1px solid var(--line);
  letter-spacing: 0.04em;
}

/* ===== Clients ===== */
.clients-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.clients-grid > .client-tile:last-child:nth-child(3n+1) { grid-column: 2; }
.clients-grid > .client-tile:last-child:nth-child(3n+2) { grid-column-end: -2; }
.client-tile {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 140px; padding: 24px 28px;
  transition: border-color .2s ease, background .2s ease;
}
.client-tile:hover { border-color: var(--line-3); background: var(--bg-4); }
.client-tile img {
  max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain;
  opacity: 0.75;
  filter: grayscale(1) brightness(2.2) contrast(0.9);
  transition: opacity .2s ease, filter .2s ease;
}
.client-tile img.client-square { max-height: 110px; }
.client-tile:hover img { opacity: 1; filter: grayscale(1) brightness(2.6) contrast(0.95); }
.client-tile-wordmark img { color: #cbd5e1; }
@media (max-width: 980px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-tile { height: 120px; }
  .client-tile img { max-height: 64px; }
}
@media (max-width: 560px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-tile { height: 96px; padding: 16px; }
  .client-tile img { max-height: 48px; }
}

/* ===== Apps ===== */
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-card {
  display: flex; align-items: flex-start; gap: 24px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  color: var(--text);
}
.app-card:hover { border-color: var(--line-3); background: var(--bg-4); transform: translateY(-2px); }
.app-icon {
  width: 80px; height: 80px; border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.app-meta { flex: 1; }
.app-cat {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.app-card h3 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -0.02em; color: var(--text-strong); font-weight: 600; }
.app-card p { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.app-link {
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none;
  padding: 7px 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03); border-radius: 4px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  text-transform: uppercase;
}
.app-link:hover { background: var(--accent); color: #0a0d12; border-color: var(--accent); transform: translateX(2px); }
@media (max-width: 760px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app-icon { width: 64px; height: 64px; border-radius: 14px; }
  .app-card { padding: 22px; gap: 18px; }
}

/* ===== By the numbers ===== */
.numbers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.num {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  position: relative; overflow: hidden;
}
.num::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 50%);
  pointer-events: none;
}
.num:hover { border-color: var(--line-3); background: var(--bg-4); transform: translateY(-2px); }
.num strong {
  display: block; font-size: clamp(48px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  color: var(--text-strong);
  font-feature-settings: "tnum";
}
.num-label {
  display: block; margin-top: 18px; font-size: 12.5px; font-weight: 500; color: var(--text-strong); letter-spacing: 0.08em;
  text-transform: uppercase; font-family: 'JetBrains Mono', monospace;
}
.num-sub {
  display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.55;
}
@media (max-width: 760px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .num { padding: 26px 22px; }
}
@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
}

/* ===== Process ===== */
.process .step {
  background: var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: border-color .2s ease, background .2s ease;
}
.process .step:hover { border-color: var(--line-3); background: var(--bg-4); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted-2); letter-spacing: 0.16em;
  font-weight: 500;
}
.step h3 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -0.02em; color: var(--text-strong); font-weight: 600; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.6; }

/* ===== Stack ===== */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-col {
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-3);
}
.stack-col h4 {
  margin: 0 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2);
}
.stack-col ul { list-style: none; margin: 0; padding: 0; }
.stack-col li {
  padding: 9px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px;
}
.stack-col li:first-child { border-top: 0; padding-top: 0; }

/* ===== FAQ ===== */
.faq { max-width: 900px; margin: 0 auto; }
.faq details {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: border-color .2s ease, background .2s ease;
  overflow: hidden;
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: var(--line-3); background: var(--bg-4); }
.faq summary {
  cursor: pointer; padding: 22px 26px; padding-right: 56px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em; color: var(--text-strong);
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transition: transform .2s ease, border-color .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); border-color: var(--text-strong); }
.faq-body { padding: 0 26px 24px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.faq-body p { margin: 0; }
.faq-body a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.faq-body a:hover { text-decoration-color: var(--text-strong); }
.faq-body strong { color: var(--text-strong); font-weight: 600; }

/* ===== Contact ===== */
.contact {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
}
.contact h2 { margin: 14px 0; font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.03em; color: var(--text-strong); }
.contact-card {
  background: var(--bg-3); padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.contact-card h4 {
  font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted-2); font-size: 11.5px; margin: 0 0 18px;
}
.check { list-style: none; padding: 0; margin: 0; }
.check li {
  padding: 12px 0 12px 24px; position: relative; color: var(--text); font-size: 14.5px;
  border-top: 1px solid var(--line);
}
.check li:first-child { border-top: 0; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--line); padding: 44px 0; background: var(--bg-2); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot p { margin: 0; color: var(--muted-2); font-size: 12.5px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
.foot a { color: var(--muted) !important; }
.foot a:hover { color: var(--text-strong) !important; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .nav-links a:not(.cta-small) { display: none; }
  .hero { padding: 96px 0 72px; }
  .section { padding: 96px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .wrap { padding: 0 24px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .stack { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
