/* ============================================================
   Vertexa — Design tokens
   Palette: #1a73e8 (primary blue), #174ea6 (deep blue), #34a853 (defence green),
            #a142f4 (automation purple), #ea4335 (alert red)
            #202124 (ink), #5f6368 (muted), #f8f9fa (section bg), #dadce0 (border)
   Type: Poppins (display) + Roboto (body)
   ============================================================ */

:root {
  --blue: #1a73e8;
  --blue-deep: #174ea6;
  --blue-tint: #e8f0fe;
  --green: #34a853;
  --green-tint: #e6f4ea;
  --purple: #a142f4;
  --purple-tint: #f3e8fd;
  --red: #ea4335;
  --red-tint: #fce8e6;
  --ink: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --shadow-sm: 0 1px 2px rgba(60,64,67,.1), 0 1px 3px rgba(60,64,67,.15);
  --shadow-md: 0 4px 12px rgba(60,64,67,.12), 0 1px 3px rgba(60,64,67,.1);
  --shadow-lg: 0 12px 32px rgba(60,64,67,.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;
  --max: 1200px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  padding: .7em 1.4em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-text { color: var(--ink); padding: .7em .6em; }
.btn-text:hover { color: var(--blue); }
.btn-large { padding: .85em 1.8em; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 1px 0 rgba(0,0,0,.02); }

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-right: auto;
}

.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--blue); border-color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-signin { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .4rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ============ HERO ============ */
.hero { padding: 4.5rem 1.5rem 3rem; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  margin-bottom: .55em;
}
.hero-sub { font-size: 1.12rem; max-width: 46ch; }
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 2.2rem; }
.hero-trust { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.trust-item span { font-size: .82rem; color: var(--muted); }

/* Hero visual — mockup dashboard */
.hero-visual { position: relative; }
.mockup-window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .6rem .8rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ea4335; } .dot-y { background: #fbbc04; } .dot-g { background: #34a853; }
.mockup-url { margin-left: .6rem; font-size: .75rem; color: var(--muted); font-family: monospace; }

.mockup-body { display: grid; grid-template-columns: 60px 1fr; min-height: 300px; }
.mockup-sidebar { background: var(--bg-alt); border-right: 1px solid var(--border); padding: .9rem .5rem; display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.side-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--green)); margin-bottom: .5rem; }
.side-item { width: 26px; height: 8px; border-radius: 4px; background: var(--border); }
.side-active { background: var(--blue); width: 26px; }

.mockup-main { padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.mockup-row { display: flex; gap: .7rem; }
.stat-card {
  position: relative;
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.stat-label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.pulse-dot { position: absolute; top: .7rem; right: .7rem; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,168,83,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,168,83,.5); } 70% { box-shadow: 0 0 0 8px rgba(52,168,83,0); } 100% { box-shadow: 0 0 0 0 rgba(52,168,83,0); } }

.mockup-chart { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem; height: 90px; }
.mockup-chart svg { width: 100%; height: 100%; }
.chart-line { stroke: var(--blue); stroke-width: 2.5; }
.chart-fill { fill: var(--blue); opacity: .08; }

.mockup-list { display: flex; flex-direction: column; gap: .5rem; }
.list-row {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 500;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .5rem .7rem;
}
.list-badge { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.badge-green { background: var(--green); } .badge-blue { background: var(--blue); } .badge-purple { background: var(--purple); }
.list-tag { margin-left: auto; font-size: .72rem; color: var(--muted); font-weight: 400; }

.floating-chip {
  position: absolute;
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: 100px; padding: .55rem 1rem;
  font-size: .78rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: float 4.5s ease-in-out infinite;
}
.chip-1 { top: -1.2rem; right: 2rem; animation-delay: 0s; }
.chip-2 { bottom: 1.5rem; left: -1.6rem; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ PROOF STRIP ============ */
.proof-strip { padding: 2.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.proof-label { text-align: center; font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.proof-marquee {
  display: flex; gap: 3.2rem;
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: #b0b4b9;
  animation: marquee 22s linear infinite;
  width: max-content;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECTION HEAD ============ */
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 32ch; margin-left: auto; margin-right: auto; }
.process .section-head, .process .section-head .btn { margin-top: 1rem; }

/* ============ PILLAR TABS ============ */
.pillars { padding: 4rem 1.5rem 1rem; }
.pillar-tabs {
  max-width: 640px; margin: 2rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
}
.pillar-tab {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: 100px; padding: .6em 1.2em;
  font-family: var(--font-display); font-weight: 500; font-size: .88rem;
  color: var(--muted);
  transition: all .15s ease;
}
.pillar-tab:hover { border-color: var(--blue); color: var(--blue); }
.pillar-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============ FEATURE BLOCKS ============ */
.feature-block { padding: 4rem 1.5rem; scroll-margin-top: 80px; }
.alt-bg { background: var(--bg-alt); }
.feature-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.feature-reverse .feature-inner { grid-template-columns: 1fr 1fr; }
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .feature-visual { order: 1; }
.feature-copy h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.check-list { display: flex; flex-direction: column; gap: .65rem; margin: 1.3rem 0; }
.check-list li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: .96rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l2.7 2.7 6.3-6.4' fill='none' stroke='%2334a853' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-display); font-weight: 500; color: var(--blue); transition: gap .15s ease; }
.link-arrow:hover { gap: .7em; }

/* code window */
.code-window { background: #1b1f24; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.code-window .mockup-topbar { background: #23272e; border-color: #30353d; }
.code-body {
  margin: 0; padding: 1.3rem 1.2rem; font-family: 'Roboto Mono', monospace;
  font-size: .82rem; line-height: 1.9; color: #c9d1d9; overflow-x: auto;
}
.tok-comment { color: #6b7280; }
.tok-key { color: #79c0ff; }
.tok-str { color: #a5d6ff; }
.tok-ok { color: #34a853; }
.tok-accent { color: #7ee787; font-weight: 600; }

/* browser window (website feature) */
.browser-window { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-body { padding: 1rem; }
.browser-hero { height: 90px; border-radius: var(--radius-sm); background: linear-gradient(120deg, var(--blue-tint), var(--purple-tint)); margin-bottom: .8rem; }
.browser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.b-card { height: 60px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }

/* phone mockup */
.phone-mockup {
  width: 220px; margin: 0 auto;
  background: #1b1f24; border-radius: 34px; padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 60px; height: 16px; background: #1b1f24; border-radius: 0 0 12px 12px; z-index: 2; }
.phone-screen { background: #fff; border-radius: 24px; padding: 1.4rem .9rem .9rem; min-height: 380px; display: flex; flex-direction: column; gap: .6rem; }
.phone-status { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: .4rem; }
.phone-status span { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.phone-card { border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); height: 46px; }
.phone-card-lg { height: 100px; background: linear-gradient(135deg, var(--blue-tint), var(--green-tint)); }
.phone-nav { margin-top: auto; display: flex; justify-content: space-around; padding-top: .8rem; border-top: 1px solid var(--border); }
.phone-nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.phone-nav-dot.is-active { background: var(--blue); }

/* AI diagram */
.ai-diagram { position: relative; max-width: 360px; margin: 0 auto; padding: 2rem 0; }
.ai-node {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  text-align: center; box-shadow: var(--shadow-sm); position: relative; z-index: 1;
}
.ai-node span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .72rem; margin-top: .2rem; }
.ai-node-in { position: absolute; top: 8px; left: 0; width: 130px; }
.ai-node-core { position: absolute; top: 78px; left: 110px; width: 140px; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-tint); }
.ai-node-out { position: absolute; top: 150px; right: 0; width: 100px; border-color: var(--green); }
.ai-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-lines path { stroke: var(--border); stroke-width: 1.6; }

/* Shield mockup (cybersecurity) */
.shield-mockup { position: relative; max-width: 260px; margin: 0 auto; }
.shield-svg { width: 100%; }
.shield-check { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.6s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scan-line {
  position: absolute; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  top: 10%; animation: scan 2.6s ease-in-out infinite;
  opacity: .8;
}
@keyframes scan { 0%,100% { top: 8%; } 50% { top: 90%; } }
.shield-readout { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.readout-row { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .7rem; }

/* ============ SERVICES GRID ============ */
.services-grid-section { padding: 4.5rem 1.5rem; background: var(--bg-alt); }
.services-grid {
  max-width: var(--max); margin: 2.6rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.6rem; transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card h3 { font-size: 1rem; margin-bottom: .4em; }
.service-card p { font-size: .87rem; margin: 0; }
.service-card-wide { grid-column: span 2; }
.service-icon {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 22px; height: 22px; }
.icon-blue { background: var(--blue-tint); color: var(--blue); }
.icon-green { background: var(--green-tint); color: var(--green); }
.icon-purple { background: var(--purple-tint); color: var(--purple); }
.icon-red { background: var(--red-tint); color: var(--red); }

/* ============ RESULTS / TESTIMONIALS ============ */
.results { padding: 4.5rem 1.5rem; }
.testimonial-track {
  max-width: 720px; margin: 2.5rem auto 0; position: relative; min-height: 190px;
}
.testimonial-card {
  margin: 0; text-align: center;
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.testimonial-card.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.testimonial-card p { font-size: 1.25rem; color: var(--ink); font-family: var(--font-display); font-weight: 500; line-height: 1.45; }
.testimonial-card footer { margin-top: 1rem; font-size: .88rem; color: var(--muted); display: flex; flex-direction: column; gap: .1rem; }
.testimonial-card footer strong { color: var(--ink); }
.testimonial-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; }
.testimonial-dots button.is-active { background: var(--blue); width: 22px; border-radius: 5px; transition: width .2s ease; }

/* ============ STATS BAND ============ */
.stats-band {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  padding: 3rem 1.5rem; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 3.5rem; text-align: center;
}
.stat-block { display: flex; flex-direction: column; color: #fff; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.stat-block span:last-child { font-size: .88rem; opacity: .85; }

/* ============ PROCESS ============ */
.process { padding: 4.5rem 1.5rem; }
.process-steps {
  max-width: var(--max); margin: 3rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem;
}
.process-step { text-align: left; }
.process-media { width: 64px; height: 64px; margin-bottom: 1.1rem; }
.process-step h3 { font-size: 1.15rem; }
.process-step p { font-size: .93rem; }

/* ============ CTA BAND ============ */
.cta-band {
  text-align: center; padding: 4.5rem 1.5rem;
  background: var(--ink); color: #fff; border-radius: 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 26ch; margin: 0 auto .4em; }
.cta-band p { color: #b7bac0; max-width: 46ch; margin: 0 auto 1.8rem; }

/* ============ FAQ ============ */
.faq { padding: 4.5rem 1.5rem; }
.faq-list { max-width: 760px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.2rem 0; font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink);
}
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .25s ease; }
.faq-icon::before { width: 100%; height: 2px; top: 8px; left: 0; }
.faq-icon::after { width: 2px; height: 100%; top: 0; left: 8px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding-bottom: 1.2rem; margin: 0; font-size: .95rem; }

/* ============ CONTACT ============ */
.contact { padding: 4.5rem 1.5rem 5rem; background: var(--bg-alt); }
.contact-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; }
.contact-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact-details { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .9rem; }
.contact-details div { font-size: .95rem; color: var(--ink); }
.contact-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .15rem; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: .95rem; padding: .7em .85em;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); outline: none; }
.contact-form textarea { resize: vertical; }
.form-note { text-align: center; font-size: .85rem; color: var(--green); min-height: 1.2em; margin: .8rem 0 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: #d3d5da; padding: 3.5rem 1.5rem 1.5rem; }
.footer-top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #3c4043; }
.footer-brand p { color: #9aa0a6; font-size: .9rem; margin: .9rem 0 1.2rem; max-width: 32ch; }
.footer-logo { color: #fff; margin-bottom: 0; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #3c4043; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 600; color: #d3d5da; }
.footer-social a:hover { border-color: var(--blue); color: var(--blue); }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-col a { display: block; color: #9aa0a6; font-size: .9rem; padding: .35rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: .82rem; color: #9aa0a6; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a:hover { color: #fff; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 1.8rem; right: 1.8rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none;
  font-size: 1.1rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-deep); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner, .feature-inner, .contact-inner { grid-template-columns: 1fr; }
  .feature-reverse .feature-copy, .feature-reverse .feature-visual { order: initial; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
  .process-steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-signin { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0; box-shadow: var(--shadow-md);
  }
  .main-nav.is-open a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .hero { padding-top: 2.5rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-trust { gap: 1.4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-band { gap: 2rem; }
  .stat-num { font-size: 2rem; }
}
