/* ============================================================
   appdev.nz — design tokens
   Display: Sora | Body: Inter | Utility/Mono: JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* color */
  --bg: #090d13;
  --bg-elevated: #0d131c;
  --surface: #121a26;
  --surface-hover: #172131;
  --border: #212b3c;
  --border-soft: #1a2331;
  --text: #eaedf3;
  --text-muted: #8d96ab;
  --text-dim: #5c6680;
  --teal: #45e0c7;
  --teal-dim: #2a9d8a;
  --amber: #ffb648;
  --violet: #9b8cff;
  --danger: #ff6b6b;

  /* type */
  --f-display: 'Sora', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* layout */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ambient gradient mesh backdrop, sits behind everything */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 500px at 12% 8%, rgba(69, 224, 199, 0.10), transparent 60%),
    radial-gradient(700px 600px at 88% 22%, rgba(155, 140, 255, 0.09), transparent 60%),
    radial-gradient(500px 500px at 50% 95%, rgba(255, 182, 72, 0.07), transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* ---------- eyebrow / mono labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(69,224,199,0.15), 0 0 12px rgba(69,224,199,0.6);
}

/* ---------- headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin-top: 16px; }

p { color: var(--text-muted); }

.text-gradient {
  background: linear-gradient(100deg, var(--teal) 0%, var(--violet) 60%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s, background 0.35s, border-color 0.35s, color .35s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #06110f;
  box-shadow: 0 0 0 0 rgba(69,224,199,0.5);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px rgba(69,224,199,0.55);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-3px);
}
.btn-arrow { transition: transform 0.35s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(9, 13, 19, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.nav.scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(9, 13, 19, 0.82);
}
.nav-logo {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.nav-logo .dot { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 200;
}
.nav-burger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s, opacity 0.35s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9,13,19,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.7,0,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; color: var(--text); }

/* ---------- window chrome motif (signature) ---------- */
.win {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.win-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.win-bar .win-label {
  margin-left: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1){transition-delay:.03s}
.reveal-stagger.in > *:nth-child(2){transition-delay:.09s}
.reveal-stagger.in > *:nth-child(3){transition-delay:.15s}
.reveal-stagger.in > *:nth-child(4){transition-delay:.21s}
.reveal-stagger.in > *:nth-child(5){transition-delay:.27s}
.reveal-stagger.in > *:nth-child(6){transition-delay:.33s}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 168px var(--pad) 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-meta {
  display: flex;
  gap: 34px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.hero-meta b { color: var(--text); font-weight: 600; }

/* terminal / live build signature element */
.terminal {
  position: relative;
}
.terminal-code {
  padding: 22px 22px 10px;
  font-family: var(--f-mono);
  font-size: 13.2px;
  line-height: 1.85;
  min-height: 230px;
  color: var(--text-muted);
}
.terminal-code .c1 { color: var(--violet); }
.terminal-code .c2 { color: var(--teal); }
.terminal-code .c3 { color: var(--amber); }
.terminal-code .c4 { color: var(--text-dim); }
.terminal-cursor {
  display: inline-block;
  width: 7px; height: 15px;
  background: var(--teal);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.preview {
  margin-top: -6px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.preview-inner {
  height: 150px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.preview-inner.show { opacity: 1; }
.preview-bar1 { width: 46%; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--violet)); }
.preview-bar2 { width: 78%; height: 8px; border-radius: 4px; background: var(--border); }
.preview-bar3 { width: 60%; height: 8px; border-radius: 4px; background: var(--border); }
.preview-row { display: flex; gap: 10px; margin-top: 8px; }
.preview-chip { width: 64px; height: 26px; border-radius: 999px; background: var(--surface-hover); border: 1px solid var(--border); }
.preview-chip.on { background: rgba(69,224,199,0.14); border-color: var(--teal-dim); }

/* floating badges around terminal */
.float-badge {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
.float-badge span.pip { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.fb-1 { top: -18px; right: 24px; animation-delay: 0s; }
.fb-2 { bottom: -16px; left: -14px; animation-delay: 1.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section { padding: 34px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: scroll-left 28s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.marquee-item .dot2 { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }

/* ============================================================
   CARDS — services / cards grid
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), border-color 0.4s, background 0.4s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 160px at var(--mx, 50%) var(--my, 0%), rgba(69,224,199,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-soft);
  background: var(--surface-hover);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(69,224,199,0.1);
  color: var(--teal);
  margin-bottom: 22px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; }
.card .num {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: block;
}
.card-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s, transform 0.35s;
}
.card:hover .card-link { opacity: 1; transform: translateX(0); }

/* ============================================================
   PROCESS timeline
   ============================================================ */
.process { position: relative; }
.process-line {
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.process-step .step-num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--bg);
  background: var(--teal);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s, box-shadow 0.4s;
}
.process-step:hover .step-num { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(69,224,199,0.1); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 12px; border-left: 1px solid var(--border-soft); }
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  display: block;
}
.stat .num .suffix { color: var(--teal); }
.stat .label {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-wrap { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.testi-slide { display: none; }
.testi-slide.active { display: block; animation: fadeUp 0.6s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.testi-slide blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 28px;
}
.testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: #06110f;
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12.5px; color: var(--text-dim); }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.3s; }
.testi-dots button.active { background: var(--teal); width: 22px; border-radius: 4px; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  border-radius: 24px;
  padding: 70px var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(69,224,199,0.08), rgba(155,140,255,0.08), rgba(255,182,72,0.08), rgba(69,224,199,0.08));
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { max-width: 500px; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--border-soft); padding: 64px 0 30px; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--text-muted); transition: color 0.25s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); font-family: var(--f-mono); }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  color: var(--text-muted);
}
.footer-socials a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }
.footer-socials svg { width: 15px; height: 15px; }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  padding: 158px var(--pad) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.page-header h1 { max-width: 700px; }
.page-header p.lead { font-size: 1.1rem; max-width: 540px; margin-top: 20px; }
.crumb {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.crumb .sep { margin: 0 8px; color: var(--border); }
.crumb .now { color: var(--teal); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-dim); }
.filter-btn.active { background: var(--teal); border-color: var(--teal); color: #06110f; }

.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pf-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), border-color .4s;
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.pf-card.hidden-item { display: none; }
.pf-card:hover { transform: translateY(-6px); border-color: var(--border-soft); }
.pf-thumb {
  height: 210px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(9,13,19,0.85));
}
.pf-thumb-mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: rgba(255,255,255,0.16);
  letter-spacing: -0.02em;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.pf-card:hover .pf-thumb-mark { transform: scale(1.12) rotate(-2deg); }
.t-1 { background: linear-gradient(135deg, #123832 0%, #0a1a24 60%); }
.t-2 { background: linear-gradient(135deg, #2a2247 0%, #14162a 60%); }
.t-3 { background: linear-gradient(135deg, #3a2a12 0%, #1c1710 60%); }
.t-4 { background: linear-gradient(135deg, #142a3a 0%, #0d1622 60%); }
.t-5 { background: linear-gradient(135deg, #24123a 0%, #150c22 60%); }
.t-6 { background: linear-gradient(135deg, #123a24 0%, #0c1c16 60%); }
.pf-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(9,13,19,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  z-index: 2;
  letter-spacing: 0.04em;
}
.pf-body { padding: 22px 24px 26px; }
.pf-body .pf-title-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pf-body h3 { font-size: 1.15rem; }
.pf-body .yr { font-family: var(--f-mono); font-size: 12px; color: var(--text-dim); }
.pf-body p { font-size: 13.8px; margin-bottom: 16px; }
.pf-stack { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-stack span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border-soft); position: relative; }
.tl-item:first-child { border-top: none; }
.tl-year { font-family: var(--f-mono); font-size: 13px; color: var(--teal); padding-top: 3px; }
.tl-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tl-body p { font-size: 13.8px; }

.value-card { text-align: left; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.4s, border-color 0.4s;
}
.team-card:hover { transform: translateY(-6px); border-color: var(--border-soft); }
.team-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: #06110f;
}
.team-card h4 { font-size: 1rem; margin-bottom: 4px; font-family: var(--f-display); }
.team-role { font-family: var(--f-mono); font-size: 12px; color: var(--teal); margin-bottom: 12px; }
.team-bio { font-size: 13px; }

/* ============================================================
   SERVICES page
   ============================================================ */
.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding: 76px 0;
  border-top: 1px solid var(--border-soft);
}
.service-row:first-child { border-top: none; }
.service-row.reverse .service-copy { order: 2; }
.service-row.reverse .service-visual { order: 1; }
.service-copy .num { font-family: var(--f-mono); color: var(--teal); font-size: 13px; display:block; margin-bottom: 14px; }
.service-copy ul { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.service-copy li { font-size: 14.5px; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.service-copy li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); width: 15px; height: 15px; }

.service-visual .win { transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.service-row:hover .win { transform: translateY(-6px); }
.sv-body { padding: 26px; }
.sv-bar { height: 10px; border-radius: 4px; background: var(--border); margin-bottom: 12px; }
.sv-bar.w1 { width: 80%; }
.sv-bar.w2 { width: 60%; }
.sv-bar.w3 { width: 40%; background: linear-gradient(90deg, var(--teal), var(--violet)); }
.sv-grid-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.sv-tile { aspect-ratio: 1; border-radius: 8px; background: var(--surface-hover); border: 1px solid var(--border); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.4s, border-color 0.4s;
  position: relative;
}
.price-card.featured { border-color: var(--teal-dim); background: linear-gradient(180deg, rgba(69,224,199,0.06), var(--surface) 40%); }
.price-card.featured .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--teal); color: #06110f;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.price-card:hover { transform: translateY(-6px); }
.price-card .plan-name { font-family: var(--f-mono); font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.price-card .plan-price { font-family: var(--f-display); font-size: 2.1rem; font-weight: 800; margin-bottom: 6px; }
.price-card .plan-desc { font-size: 13.5px; margin-bottom: 26px; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.price-card li { font-size: 13.8px; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); width: 14px; height: 14px; }

/* faq accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
.faq-q .plus { width: 20px; height: 20px; position: relative; flex-shrink: 0; margin-left: 20px; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute; background: var(--teal); top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; transition: transform 0.3s; }
.faq-item.open .plus::after { transform: translate(-50%,-50%) rotate(90deg) scale(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.2,.8,.2,1);
}
.faq-a p { padding: 0 4px 24px; font-size: 14.5px; max-width: 620px; }
.faq-item.open .faq-a { max-height: 240px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
.field { margin-bottom: 24px; position: relative; }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface-hover);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-error { font-size: 12px; color: var(--danger); font-family: var(--f-mono); margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .field-error { display: block; }

.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(69,224,199,0.1);
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  font-size: 14px;
  margin-top: 18px;
}
.form-status.show { display: flex; animation: fadeUp 0.5s ease; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.4s, border-color 0.4s;
}
.info-card:hover { transform: translateX(4px); border-color: var(--border-soft); }
.info-card .icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(69,224,199,0.1); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card .icon svg { width: 19px; height: 19px; }
.info-card h4 { font-size: 0.95rem; margin-bottom: 4px; font-family: var(--f-display); }
.info-card p { font-size: 13.8px; }
.info-card a { color: var(--text); transition: color 0.25s; }
.info-card a:hover { color: var(--teal); }

.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(69,224,199,0.08);
  border: 1px solid var(--teal-dim);
  margin-bottom: 30px;
}
.avail-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  position: relative;
}
.avail-badge .pulse::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

.map-visual {
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}
.map-pin {
  position: relative;
  z-index: 2;
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--teal);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(69,224,199,0.15);
}
.map-pin::after { content:''; position:absolute; inset:5px; background: var(--bg); border-radius: 50%; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-line { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; padding: 50px 0; }
  .service-row.reverse .service-copy { order: 1; }
  .service-row.reverse .service-visual { order: 2; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n+1) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .team-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .cta-banner { padding: 50px 24px; }
}
