/* ============ Design tokens ============ */
:root {
  --orange: #FF7F00;
  --orange-dark: #E56F00;
  --orange-light: #FFF1E3;
  --orange-glow: rgba(255, 127, 0, 0.28);
  --ink: #0A0A0A;
  --ink-soft: #1C1F26;
  --slate: #475569;
  --slate-light: #7C8AA0;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --border: #E6E9EF;
  --grid-line: rgba(10, 10, 10, 0.05);
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);
  --font-heading: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ Reset ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Subtle technological dot-grid texture across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 700px, transparent 1400px);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #FFB35C);
  z-index: 999;
  transition: width 0.1s linear;
}

/* ============ Scroll-reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Staggered entrance for grouped items */
.grid-3.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.grid-3.reveal-group > *:nth-child(2) { transition-delay: 90ms; }
.grid-3.reveal-group > *:nth-child(3) { transition-delay: 180ms; }
.grid-2.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.grid-2.reveal-group > *:nth-child(2) { transition-delay: 100ms; }
.steps.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.steps.reveal-group > *:nth-child(2) { transition-delay: 90ms; }
.steps.reveal-group > *:nth-child(3) { transition-delay: 180ms; }
.steps.reveal-group > *:nth-child(4) { transition-delay: 270ms; }
.contact-methods.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.contact-methods.reveal-group > *:nth-child(2) { transition-delay: 90ms; }
.contact-methods.reveal-group > *:nth-child(3) { transition-delay: 180ms; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 28px var(--orange-glow); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; color: var(--ink); font-size: 1rem; flex-shrink: 0; }
.logo small { font-weight: 500; font-size: 0.65rem; letter-spacing: 0.06em; color: var(--slate); font-family: var(--font-mono); }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 28px; flex-wrap: wrap; }
.main-nav a { position: relative; font-size: 0.94rem; font-weight: 500; color: var(--ink); padding: 6px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -1px;
  height: 2px;
  background: var(--orange);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.nav-cta { flex-shrink: 0; padding: 11px 24px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-light);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 22px; }
.hero p.lead { font-size: 1.1rem; max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 18px),
    linear-gradient(145deg, #FFB35C 0%, var(--orange) 55%, #C24E00 100%);
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: transform 0.1s linear;
}
.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.hero-art::before { width: 160px; height: 160px; top: -40px; right: -40px; }
.hero-art::after { width: 220px; height: 220px; bottom: -80px; left: -60px; background: rgba(10, 10, 10, 0.10); }
.hero-art .art-card {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.hero-art .art-card strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; color: var(--ink); }
.hero-art .art-card span { font-size: 0.85rem; color: var(--slate); }

.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow-x: auto;
}
.trust-bar .container { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.trust-bar span { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; color: var(--slate-light); white-space: nowrap; }

/* ============ Sections ============ */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }

/* ============ Cards / Services ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s ease;
}
.card-icon svg { stroke: var(--orange); }
.card:hover .card-icon { background: var(--orange); }
.card:hover .card-icon svg { stroke: #fff; }
.card h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; }
.card p { font-size: 0.96rem; margin-bottom: 18px; }
.card .card-link { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink); }
.card .card-link::after { content: " →"; transition: margin 0.2s ease; }
.card:hover .card-link { color: var(--orange-dark); }
.card:hover .card-link::after { margin-left: 4px; }

/* ============ Steps / process (connected timeline) ============ */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--orange) 50%, var(--border) 90%, transparent);
  opacity: 0.7;
}
.step { position: relative; z-index: 1; }
.step-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--bg);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.section-alt .step-num { box-shadow: 0 0 0 6px var(--bg-alt); }
.step:hover .step-num { background: var(--orange); color: #fff; transform: scale(1.08); }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.94rem; }

/* ============ CTA banner ============ */
.cta-banner {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 85% 30%, black, transparent 70%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 32ch; }
.cta-banner p { color: #C9CDD6; margin-top: 10px; max-width: 50ch; }

/* ============ Testimonials ============ */
.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial p.quote { font-size: 1.05rem; color: var(--ink); font-style: italic; margin-bottom: 18px; }
.testimonial .author { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.testimonial .role { font-size: 0.82rem; color: var(--slate-light); }
.stat-block { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.stat-block .num { font-family: var(--font-mono); font-size: 3.4rem; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

/* ============ FAQ accordion ============ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--orange-dark); }
.faq-question .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--orange);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease), background 0.25s ease;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  font-size: 0.96rem;
  padding: 0 4px;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* ============ Forms ============ */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 4px var(--orange-light);
}
.field-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; }
.field-checkbox input { width: auto; margin-top: 3px; }
.form-note { font-size: 0.85rem; color: var(--slate-light); margin-top: 14px; text-align: center; }

/* ============ Contact method cards ============ */
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }

/* ============ Footer ============ */
.site-footer { background: var(--bg-alt); padding: 72px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { text-align: center; max-width: 640px; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; margin-bottom: 24px; }
.footer-desc { margin-bottom: 32px; font-size: 0.96rem; }
.footer-eyebrow { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 10px; }
.footer-contact { font-size: 0.9rem; margin-bottom: 28px; }
.social-bar { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; }
.social-bar a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-bar a:hover { background: var(--orange); transform: translateY(-3px); }
.copyright { font-size: 0.82rem; color: var(--slate-light); font-family: var(--font-mono); }

/* ============ Utilities ============ */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; }
  .grid-3, .steps, .contact-methods { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 4px; }
  .site-header.nav-open .main-nav a::after { display: none; }
  .site-header.nav-open .nav-cta { display: inline-flex; margin: 16px 24px 20px; }
  .grid-3, .steps, .contact-methods, .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  section { padding: 60px 0; }
}
