:root {
  --ink: oklch(0.2 0.02 255);
  --ink-soft: oklch(0.32 0.02 255);
  --accent: oklch(0.7 0.2 47);
  --accent-dark: oklch(0.6 0.19 47);
  --accent-tint: oklch(0.97 0.03 47);
  --muted: oklch(0.45 0.02 255);
  --muted-2: oklch(0.55 0.02 250);
  --surface: oklch(0.97 0.004 255);
  --border: oklch(0.85 0.01 250);
  --border-strong: oklch(0.32 0.02 255);

  --font-display: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  background: #ffffff;
  color: var(--ink);
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
::placeholder { color: oklch(0.6 0.03 47 / 0.6); opacity: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============ SHARED ============ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.btn {
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn-primary {
  color: #fff;
  background: var(--accent);
  padding: 19px 36px;
  font-size: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  border: none;
}
.btn-primary:hover { color: #fff; transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.btn-small { padding: 11px 20px; font-size: 13px; box-shadow: none; }
.btn-small:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-secondary {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 17px 30px;
  background: transparent;
}
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.logo-img { display: block; height: 22px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a:not(.btn) {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--ink);
  padding: 14px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.85 0.008 255);
  padding: 0 28px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 28px;
}
.marquee-star { color: var(--accent); font-size: 18px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 100px 40px 90px;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}
.ai-badge {
  position: absolute;
  z-index: 2;
  top: 64px;
  right: 64px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.75 0.19 47), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 12px 28px oklch(0.62 0.2 47 / 0);
  transition: transform .3s ease, box-shadow .4s ease;
}
.ai-badge:hover { transform: scale(1.1) rotate(-8deg); box-shadow: 0 12px 28px oklch(0.62 0.2 47 / 0.4); }
.hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.5 0.17 47);
  background: var(--accent-tint);
  border: 1.5px solid var(--accent);
  padding: 8px 16px;
  margin-bottom: 28px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 104px;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 1000px;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 32px;
  max-width: 560px;
  font-weight: 500;
}
.hero-ctas { display: flex; gap: 18px; align-items: center; margin-top: 44px; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
.services, .process { padding: 100px 40px; background: #ffffff; }
.section-inner { display: flex; flex-direction: column; gap: 52px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h2 em { color: var(--accent); font-style: italic; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

/* ============ SERVICES ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.card-num { font-family: var(--font-display); font-weight: 900; font-size: 40px; color: oklch(0.85 0.03 47); letter-spacing: -0.02em; }
.card h3 { font-weight: 800; font-size: 21px; color: var(--ink); }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ============ WHY AI ============ */
.why-ai {
  padding: 100px 40px;
  background: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.why-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 25% 40%, oklch(0.7 0.2 47 / 0.22), transparent 70%);
}
.why-ai .section-inner { position: relative; gap: 52px; }
.why-ai-head {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.why-ai-head h2 { color: #ffffff; max-width: 640px; }
.why-ai-head p { font-size: 17px; line-height: 1.65; color: oklch(0.78 0.008 255); max-width: 420px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
}
.stat {
  background: var(--ink);
  padding: 32px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background .25s, transform .25s;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.stat:hover {
  background: var(--ink-soft);
  transform: translateY(-6px);
}
.stat:hover::before { transform: scaleX(1); }
.stat-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  color: var(--accent);
  transition: transform .25s ease;
}
.stat:hover .stat-title { transform: translateX(4px); }
.stat-desc { font-size: 14px; color: oklch(0.7 0.008 255); transition: color .25s; }
.stat:hover .stat-desc { color: oklch(0.85 0.008 255); }

/* ============ PROCESS ============ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-right: 2px solid var(--ink);
  transition: background .2s ease;
}
.step:hover { background: var(--accent-tint); }
.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-weight: 800; font-size: 19px; color: var(--ink); }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ============ CONTACT ============ */
.contact {
  padding: 110px 40px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, oklch(0.7 0.2 47 / 0.22), transparent 70%);
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
}
.contact-head { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.contact-head h2 { font-size: 44px; color: #ffffff; }
.contact-head p { font-size: 16px; line-height: 1.6; color: oklch(0.75 0.01 255); }

.contact-success {
  border: 2px solid var(--accent);
  background: oklch(0.25 0.03 255);
  padding: 44px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-success[hidden] { display: none; }
.contact-success-title { font-weight: 800; font-size: 19px; color: #fff; }
.contact-success-desc { font-size: 14px; color: oklch(0.75 0.01 255); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  padding: 36px;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
}
.contact-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input, .field textarea {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  border: 2px solid var(--border);
  padding: 13px 14px;
  background: #ffffff;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn-submit { border: none; margin-top: 8px; box-shadow: 3px 3px 0 var(--ink); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }
.contact-error { color: oklch(0.55 0.2 25); font-size: 13px; margin: 4px 0 0; }
.contact-consent { font-size: 12px; line-height: 1.5; color: var(--muted-2); margin: 0; }
.contact-consent a { color: var(--ink-soft); text-decoration: underline; }
.contact-consent a:hover { color: var(--accent-dark); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); padding: 40px 0; border-top: 2px solid var(--border-strong); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 40px;
}
.logo-footer .logo-img { height: 19px; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: oklch(0.65 0.01 250); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-family: var(--font-mono); font-size: 12px; color: oklch(0.65 0.01 250); text-decoration: none; }
.footer-links a:hover { color: #ffffff; }

/* ============ LEGAL PAGES ============ */
.legal { padding: 90px 40px 110px; background: #ffffff; }
.legal-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.legal-head { display: flex; flex-direction: column; gap: 12px; }
.legal-head h1 { font-family: var(--font-display); font-weight: 900; font-size: 44px; letter-spacing: -0.03em; color: var(--ink); }
.legal-updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.legal-body { display: flex; flex-direction: column; gap: 30px; }
.legal-body h2 { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink); }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.legal-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { text-decoration: underline; }
.legal-body strong { color: var(--ink); }
.legal-section { display: flex; flex-direction: column; gap: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table td { padding: 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.legal-table td:first-child { font-weight: 700; color: var(--ink); width: 200px; padding-right: 16px; }
@media (max-width: 720px) {
  .legal { padding: 70px 24px 80px; }
  .legal-head h1 { font-size: 32px; }
  .legal-table td:first-child { width: 140px; }
  .footer-links { gap: 16px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .hero { padding: 80px 24px 70px; }
  .hero h1 { font-size: 56px; }
  .ai-badge { display: none; }
  h2 { font-size: 36px; }
  .services, .process, .why-ai { padding: 70px 24px; }
  .contact { padding: 80px 24px; }
  .nav-inner { padding: 14px 20px; gap: 12px; }
  .logo-img { height: 18px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { font-size: 13px; }
  .nav-links .btn-small { padding: 9px 14px; font-size: 12px; }
  .footer-inner { padding: 0 24px; }
}
@media (max-width: 480px) {
  .nav-links a:not(.btn) { display: none; }
}
