/* ---------- Design tokens (matched to zapsoft.ai) ---------- */
:root {
  --background: 220 30% 98%;
  --foreground: 222 47% 11%;
  --primary:    225 73% 57%;
  --secondary:  220 30% 96%;
  --muted:      220 20% 94%;
  --muted-fg:   220 10% 45%;
  --border:     220 20% 88%;
  --card:       0 0% 100%;

  --gold:       43 74% 49%;
  --gold-light: 43 74% 65%;
  --gold-dark:  43 74% 38%;

  --hero-1: 222 47% 11%;   /* deep navy */
  --hero-2: 225 73% 22%;
  --hero-3: 225 73% 34%;

  --shadow-gold: 0 12px 40px -12px hsl(var(--gold) / .45);
  --shadow-lift: 0 20px 60px -20px hsl(var(--hero-1) / .35);

  --container: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 17px;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-gold { color: hsl(var(--gold)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, hsl(var(--gold-light)), hsl(var(--gold)), hsl(var(--gold-dark)));
  color: hsl(var(--hero-1));
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 48px -12px hsl(var(--gold) / .6); }
.btn-secondary { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.btn-secondary:hover { border-color: hsl(var(--gold)); color: hsl(var(--gold-dark)); }
.on-dark.btn-secondary, .hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.28); }
.hero .btn-secondary:hover { border-color: hsl(var(--gold)); color: hsl(var(--gold)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: hsl(var(--background) / 0.75);
  border-bottom: 1px solid hsl(var(--border) / 0.7);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: hsl(var(--foreground)); }
.brand-mark { display: inline-flex; box-shadow: 0 6px 20px -8px rgba(15,23,41,0.35); border-radius: 8px; }
.brand-word .brand-dot { color: hsl(var(--muted-fg)); font-weight: 500; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14.5px; color: hsl(var(--muted-fg)); font-weight: 500; }
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav-cta .btn-secondary { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, hsl(var(--hero-1)) 0%, hsl(var(--hero-2)) 50%, hsl(var(--hero-3)) 100%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(hsla(0,0%,100%,0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0,0%,100%,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 55%, transparent 80%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1; }
.hero-glow-1 { width: 520px; height: 520px; background: hsl(var(--gold) / .28); top: -160px; right: -120px; }
.hero-glow-2 { width: 460px; height: 460px; background: hsl(var(--primary) / .35); bottom: -160px; left: -160px; }

.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; position: relative; }
.hero-copy > * + * { margin-top: 20px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: hsl(var(--gold) / .12);
  border: 1px solid hsl(var(--gold) / .35);
  color: hsl(var(--gold-light));
  font-size: 13px; font-weight: 500;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: hsl(var(--gold)); box-shadow: 0 0 0 4px hsl(var(--gold) / .18); }

.hero-title { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; color: #fff; max-width: 18ch; }
.hero-lede { font-size: 18px; line-height: 1.55; color: hsl(220 20% 82%); max-width: 60ch; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 13.5px; font-weight: 500;
}
.pill svg { color: hsl(var(--gold)); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.hero-note { font-size: 13px; color: hsl(220 20% 72%); }

/* Hero visual card */
.hero-card {
  position: relative;
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform .5s ease;
}
.hero-card:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.card-shell {
  background: hsl(220 30% 12%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
}
.card-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: hsl(220 30% 9%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.card-topbar .dot-r, .card-topbar .dot-y, .card-topbar .dot-g { width: 10px; height: 10px; border-radius: 999px; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.card-url { margin-left: 10px; font-size: 12px; color: hsl(220 10% 60%); font-family: ui-monospace, SFMono-Regular, monospace; }

.card-body { padding: 18px; }
.stack-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mini {
  background: hsl(220 30% 14%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px;
}
.mini-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; color: hsl(var(--gold-light)); margin-bottom: 10px; letter-spacing: 0.02em; text-transform: uppercase; }
.bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--gold))); width: var(--w, 60%); margin-bottom: 8px; }
.mini-web .cta-mock { display: inline-block; margin-top: 6px; padding: 6px 12px; background: hsl(var(--gold)); color: hsl(var(--hero-1)); border-radius: 999px; font-size: 12px; font-weight: 600; }

.chat { display: grid; gap: 6px; }
.bubble { display: inline-block; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; max-width: 86%; }
.b-ai { background: hsl(220 20% 20%); color: #fff; border-top-left-radius: 4px; }
.b-me { background: hsl(var(--primary)); color: #fff; border-top-right-radius: 4px; justify-self: end; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.bubble.typing em { width: 6px; height: 6px; border-radius: 999px; background: hsl(220 10% 70%); display: inline-block; animation: bounce 1.2s infinite ease-in-out; }
.bubble.typing em:nth-child(2) { animation-delay: .15s; }
.bubble.typing em:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.metric { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed rgba(255,255,255,0.08); font-size: 12.5px; color: hsl(220 10% 78%); }
.metric:first-of-type { border-top: 0; padding-top: 0; }
.metric-val { color: hsl(var(--gold-light)); font-family: ui-monospace, monospace; font-weight: 600; }

.chip {
  position: absolute; padding: 8px 14px; border-radius: 999px;
  background: hsl(var(--gold)); color: hsl(var(--hero-1));
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-gold);
  animation: floaty 4.5s ease-in-out infinite;
}
.chip-tl { top: -14px; left: -14px; }
.chip-br { bottom: -14px; right: -14px; background: #fff; color: hsl(var(--hero-1)); animation-delay: .8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Marquee */
.hero-marquee { margin-top: 72px; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
.marquee-track { display: inline-flex; gap: 26px; animation: mq 32s linear infinite; white-space: nowrap; color: hsl(220 15% 70%); font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.marquee-track > * { flex: 0 0 auto; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { transform: none; margin-top: 24px; }
  .hero-card:hover { transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.bg-secondary { background: hsl(var(--secondary)); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: hsl(var(--gold) / .1); color: hsl(var(--gold-dark));
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow-light { background: hsl(var(--gold) / .18); color: hsl(var(--gold-light)); }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.section h2.on-dark { color: #fff; }
.section-sub { color: hsl(var(--muted-fg)); font-size: 17px; }
.section-sub.on-dark, .on-dark { color: hsl(220 20% 82%); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: hsl(var(--gold) / .5); }
.svc-card.featured { border-color: hsl(var(--gold) / .5); box-shadow: 0 20px 60px -25px hsl(var(--gold) / .35); }
.badge-gold { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 999px; background: hsl(var(--gold)); color: hsl(var(--hero-1)); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--gold) / .12); color: hsl(var(--gold-dark));
  margin-bottom: 18px;
}
.svc-card h3 { font-size: 22px; margin-bottom: 10px; }
.svc-card p { color: hsl(var(--muted-fg)); font-size: 15.5px; }
.svc-list { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 8px; }
.svc-list li { position: relative; padding-left: 22px; color: hsl(var(--foreground)); font-size: 14.5px; }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 999px;
  background: hsl(var(--gold) / .18);
  box-shadow: inset 0 0 0 2px hsl(var(--gold));
}
.svc-link { color: hsl(var(--gold-dark)); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14.5px; }
.svc-link:hover { color: hsl(var(--gold)); }

/* Proof */
.proof { background: hsl(var(--hero-1)); color: #fff; padding: 40px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 720px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
.proof-stat { padding: 8px 0; }
.stat-num { display: block; font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: hsl(var(--gold-light)); letter-spacing: -0.02em; }
.stat-num em { font-style: normal; color: hsl(var(--gold-light) / .8); font-size: .6em; margin-left: 2px; }
.stat-lbl { color: hsl(220 20% 78%); font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; font-family: 'Space Grotesk', sans-serif; }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 26px 22px 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.step:hover { border-color: hsl(var(--gold) / .5); transform: translateY(-3px); }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; color: hsl(var(--gold) / .35); line-height: 1; display: block; margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: hsl(var(--muted-fg)); font-size: 14.5px; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 24px;
}
.cap .tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; background: hsl(var(--gold) / .12); color: hsl(var(--gold-dark)); }
.cap h4 { font-size: 18px; margin-bottom: 6px; }
.cap p { color: hsl(var(--muted-fg)); font-size: 14.5px; }

/* Split (about) */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.split-copy p { color: hsl(var(--muted-fg)); font-size: 16px; margin-top: 10px; }
.split-cta { margin-top: 22px; }
.split-list { display: grid; gap: 12px; }
.ck { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; font-size: 15px; }
.ck svg { flex: 0 0 auto; margin-top: 2px; color: hsl(var(--gold-dark)); }

/* Contact */
.bg-hero { background: linear-gradient(135deg, hsl(var(--hero-1)) 0%, hsl(var(--hero-2)) 60%, hsl(var(--hero-3)) 100%); color: #fff; position: relative; overflow: hidden; }
.bg-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(hsla(0,0%,100%,0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0,0%,100%,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 40%, transparent 80%);
  pointer-events: none;
}
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-meta { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-meta li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: hsl(220 20% 84%); }
.contact-meta .lbl { display: inline-block; min-width: 90px; color: hsl(var(--gold-light)); font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-meta a { color: #fff; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: hsl(220 30% 12% / .7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 24px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: hsl(var(--gold-light)); }
.contact-form input, .contact-form textarea, .contact-form select {
  font-family: 'Inter', sans-serif; font-size: 15px;
  padding: 12px 14px; border-radius: 10px;
  background: hsl(220 30% 8% / .8); color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  outline: none; transition: border-color .15s ease, background .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: hsl(var(--gold)); }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form .full { grid-column: 1 / -1; }
.form-success { grid-column: 1 / -1; margin: 0; color: hsl(var(--gold-light)); font-family: 'Inter'; text-transform: none; letter-spacing: 0; font-size: 14px; }

/* Footer */
.site-footer { background: hsl(var(--hero-1)); color: hsl(220 20% 78%); padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 780px) { .foot { grid-template-columns: 1fr; text-align: center; } .foot-brand { justify-content: center; } }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-word { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; font-size: 18px; }
.foot-sub { font-size: 12.5px; color: hsl(220 10% 65%); }
.foot-nav { display: flex; gap: 22px; justify-content: center; }
.foot-nav a { color: hsl(220 10% 72%); font-size: 14px; }
.foot-nav a:hover { color: hsl(var(--gold-light)); }
.foot-legal { font-size: 12.5px; color: hsl(220 10% 60%); text-align: right; }
@media (max-width: 780px) { .foot-legal { text-align: center; } }

/* Reveal-in animations */
.svc-card, .step, .cap, .split-copy, .split-list, .contact-copy, .contact-form, .proof-stat, .section-head { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.svc-card.in, .step.in, .cap.in, .split-copy.in, .split-list.in, .contact-copy.in, .contact-form.in, .proof-stat.in, .section-head.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .marquee-track { animation: none; }
  .chip { animation: none; }
  .svc-card, .step, .cap, .split-copy, .split-list, .contact-copy, .contact-form, .proof-stat, .section-head { opacity: 1; transform: none; }
}
