/* ---------- Tokens ---------- */
:root {
  --bg: oklch(23% 0.025 258);
  --bg-alt: oklch(26.5% 0.028 258);
  --bg-elev: oklch(30% 0.03 258);
  --bg-elev2: oklch(35% 0.035 256);
  --border: oklch(46% 0.035 256 / 0.5);
  --border-soft: oklch(46% 0.035 256 / 0.3);
  --text: oklch(97% 0.004 260);
  --text-muted: oklch(77% 0.02 258);
  --text-muted-2: oklch(63% 0.02 258);
  --accent: oklch(78% 0.14 200);
  --accent-contrast: oklch(15% 0.02 255);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; color: oklch(99% 0.003 260); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.muted.small { font-size: 13px; }
.accent-text { color: var(--accent); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: oklch(83% 0.13 200); color: var(--accent-contrast); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: oklch(23% 0.025 258 / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark-sm { width: 26px; height: 26px; border-radius: 6px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: 0.01em; }
.logo-sub { font-size: 9.5px; color: var(--text-muted-2); letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 14.5px; color: oklch(90% 0.005 260); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden; font-size: 12px; background: transparent; padding: 0;
}
.lang-toggle span { padding: 6px 12px; color: var(--text-muted-2); transition: background .15s, color .15s; }
.lang-toggle span.is-active { background: var(--bg-elev2); color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: transparent; border: none; padding: 0;
}
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 84px;
  background-image: radial-gradient(oklch(97% 0.004 260 / 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-traces { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.24; pointer-events: none; }
.hero-inner { position: relative; max-width: 760px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }

.hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -0.01em; }
.hero .lede { margin-top: 24px; font-size: 18.5px; line-height: 1.6; color: var(--text-muted); max-width: 600px; }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.delivered-for {
  margin-top: 48px; font-size: 12px; letter-spacing: 0.02em; color: var(--text-muted-2);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.delivered-for .sep { color: oklch(50% 0.02 258); }

/* ---------- Sections ---------- */
.section {
  position: relative; overflow: hidden; padding: 88px 0;
  background-image: radial-gradient(oklch(97% 0.004 260 / 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.section-alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(oklch(97% 0.004 260 / 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.section .wrap { position: relative; }
.section .eyebrow { display: block; }

.section-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.2; pointer-events: none;
}
.chip-watermark { position: absolute; opacity: 0.12; pointer-events: none; }
.bit { font-family: var(--font-mono); font-weight: 500; fill: var(--accent); }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); max-width: 640px; }
.section-lede { margin-top: 16px; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); max-width: 620px; }

.card { position: relative; background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 16px; }
.card::before, .card::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 1.5px solid var(--accent); opacity: 0.45; pointer-events: none;
}
.card::before { top: -7px; left: -7px; border-right: none; border-bottom: none; }
.card::after { bottom: -7px; right: -7px; border-left: none; border-top: none; }

/* ---------- Services pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.pillar { padding: 38px; }
.pillar-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--bg-elev2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.pillar h3 { font-size: 22px; margin-bottom: 18px; }
.check-list { display: flex; flex-direction: column; gap: 13px; }
.check-list li { position: relative; padding-left: 28px; font-size: 15px; color: oklch(87% 0.01 260); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Pipeline ---------- */
.pipeline { margin-top: 28px; padding: 34px 40px; }
.pipeline-row { display: flex; align-items: center; justify-content: space-between; }
.pipeline-node { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; }
.node-circle {
  width: 50px; height: 50px; border-radius: 999px; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.pipeline-node span:last-child { font-size: 13.5px; font-weight: 600; color: oklch(92% 0.005 260); }
.pipeline-link {
  flex: 1; height: 1px; margin: 0 6px;
  background: repeating-linear-gradient(90deg, oklch(52% 0.03 258) 0 8px, transparent 8px 16px);
}
.pipeline-caption { text-align: center; margin-top: 24px; font-size: 11.5px; letter-spacing: 0.03em; color: var(--text-muted-2); }

/* ---------- Case studies ---------- */
.case-study {
  display: flex; align-items: center; gap: 48px;
  margin-top: 56px;
}
.case-study:first-of-type { margin-top: 48px; }
.case-study.reverse { flex-direction: row-reverse; }
.case-media, .case-text { flex: 1; min-width: 0; }
.case-media-pair { display: flex; gap: 12px; }
.case-media-pair .browser-frame { flex: 1; }

.browser-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-elev); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border-soft); }
.dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.dot-red { background: oklch(62% 0.14 25); }
.dot-amber { background: oklch(76% 0.13 80); }
.dot-green { background: oklch(72% 0.13 150); }
.browser-bar .url { margin-left: 8px; font-size: 11px; color: var(--text-muted-2); }

.tag-row, .tech-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row { margin-bottom: 16px; }
.tech-row { margin-top: 20px; }
.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  padding: 5px 10px; border-radius: 6px; background: var(--bg-elev2); color: var(--text-muted);
}
.tag-accent { background: oklch(45% 0.09 200 / 0.25); color: var(--accent); }

.case-text h3 { font-size: 24px; line-height: 1.25; margin-bottom: 16px; }
.case-text p { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }

.mini-highlights { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.mini-highlights li {
  position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: oklch(85% 0.01 260);
}
.mini-highlights li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 48px; }
.why-item { display: flex; gap: 18px; }
.why-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--bg-elev);
  border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-item h3 { font-size: 17.5px; margin-bottom: 8px; }
.why-item p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Tech stack ---------- */
.tech-list { display: flex; flex-direction: column; gap: 20px; margin-top: 44px; }
.tech-row-labeled { display: flex; gap: 24px; align-items: flex-start; }
.row-label { width: 100px; flex-shrink: 0; font-size: 12px; letter-spacing: 0.06em; color: var(--text-muted-2); padding-top: 9px; }

/* ---------- Contact ---------- */
.contact-wrap { display: flex; gap: 64px; }
.contact-info { flex: 1; max-width: 440px; }
.contact-info h2 { font-size: 34px; margin-top: 14px; }
.contact-info p { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.direct-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.direct-contact .mono { font-size: 16px; margin-top: 6px; }

.contact-form { flex: 1; max-width: 480px; padding: 36px; display: flex; flex-direction: column; }
.contact-form label { font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 18px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 14.5px; font-family: var(--font-body);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }

.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 14px 0 0 0; font-size: 13.5px; min-height: 1.4em; }
.form-status.is-success { color: oklch(72% 0.13 150); }
.form-status.is-error { color: oklch(66% 0.16 25); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 32px; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-nav { display: flex; align-items: center; gap: 28px; }
.footer-nav a { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillar-grid, .why-grid { grid-template-columns: 1fr; }
  .case-study, .case-study.reverse { flex-direction: column; }
  .case-media-pair { flex-direction: row; }
  .contact-wrap { flex-direction: column; gap: 40px; }
  .contact-info, .contact-form { max-width: none; }
  .pipeline-node span:last-child { font-size: 12px; }
  .pipeline { padding: 28px 20px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .wrap { padding: 0 20px; }
  .header-inner { padding: 16px 20px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .pipeline-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .pipeline-node { width: auto; }
  .pipeline-link { display: none; }
  .case-media-pair { flex-direction: column; }

  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border-soft);
    padding: 12px 20px 20px;
  }
  .site-header.menu-open .nav-links a { padding: 10px 0; width: 100%; }
}

@media (max-width: 480px) {
  .delivered-for { display: none; }
}
