/* ==========================================================================
   HNventis — styles
   ========================================================================== */

:root {
  --navy: #090d2b;
  --navy-2: #121644;
  --purple: #2b1658;
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --gold: #e3b866;
  --text: #eef0fb;
  --muted: #b9bedb;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* safety net only — nothing should overflow */
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  overflow-x: hidden;
  overflow-x: clip;
}

/* Base gradient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 45%, var(--purple) 100%);
}

/* Large soft gradient blobs + cursor glow (moved by script.js) */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-1 {
  width: 720px; height: 720px;
  top: -220px; right: -220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24), transparent 65%);
}
.blob-2 {
  width: 640px; height: 640px;
  top: 45%; left: -260px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 65%);
}
.blob-3 {
  width: 520px; height: 520px;
  bottom: -200px; right: 10%;
  background: radial-gradient(circle, rgba(227, 184, 102, 0.1), transparent 65%);
}
.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), rgba(59, 130, 246, 0.06) 40%, transparent 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: #93c5fd; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.gold { color: var(--gold); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  background: linear-gradient(90deg, var(--blue), #8b5cf6, var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), translate 0.3s var(--ease-out), border-color 0.2s ease, box-shadow 0.25s ease;
}
/* Shine sweep */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(260%) skewX(-20deg);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #6366f1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59, 130, 246, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { color: #fff; border-color: var(--gold); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 43, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, -webkit-backdrop-filter 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(9, 13, 43, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link { display: inline-flex; align-items: center; border-radius: 6px; flex-shrink: 0; }
.logo { height: 34px; width: auto; }
.logo-footer { height: 40px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--glass);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: #0a0e2e; /* solid: a translucent panel inside the blurred header shows content through */
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }
  .nav-open .site-nav { display: flex; }
  .site-header.nav-open { background: #0a0e2e; }
  .nav-links { flex-direction: column; gap: 0; text-align: center; width: 100%; }
  .nav-links a { display: block; padding: 12px; font-size: 1.05rem; }
  .site-nav .btn { width: 100%; max-width: 420px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.hero-photo { order: 2; display: flex; justify-content: center; }
.hero-text { order: 1; min-width: 0; }

.photo-parallax { will-change: transform; }
.photo-ring {
  position: relative;
  isolation: isolate;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 8px;
}
/* Gradient ring (SVG so it can "draw in") */
.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ring-svg circle {
  fill: none;
  stroke: url(#ring-grad);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
/* Soft glow behind the ring. It spins inside a fixed round clip box, so the
   rotating square never grows the page's scroll area. */
.ring-glow {
  position: absolute;
  inset: -36px;
  z-index: -1;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.ring-glow::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), #8b5cf6, var(--gold), #6366f1, var(--blue));
  filter: blur(22px);
}
.ring-glow { opacity: 0.5; }
.photo-ring img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-2);
}

.hero-name { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.hero-title { font-weight: 500; color: var(--blue-soft); font-size: 1.05rem; margin-bottom: 14px; }
.hero-tagline { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 560px; }

.trust-chips {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-chips li {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--glass);
  border: 1px solid var(--border);
}
.count { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Audit ---------- */
.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.audit-form { padding: 28px; min-width: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  font-size: 1rem; /* prevents iOS zoom */
  color: var(--text);
  background: rgba(9, 13, 43, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select { appearance: none; -webkit-appearance: none; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--navy); color: var(--text); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: #8a90b5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.field .is-invalid { border-color: #f87171; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }
.form-status {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-status.is-success { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.45); }
.form-status.is-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.45); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { padding: 26px; min-width: 0; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card .card-sub { color: var(--blue-soft); font-size: 0.88rem; font-weight: 500; margin-bottom: 8px; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hover: lift 6px + glow border; light 3D tilt on desktop (angles set by script.js) */
.tilt { --rx: 0deg; --ry: 0deg; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .tilt:hover {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px);
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18), 0 18px 40px rgba(59, 130, 246, 0.22);
  }
}

/* ---------- Process ---------- */
.steps-wrap { position: relative; isolation: isolate; padding-top: 28px; }
.steps-line {
  position: absolute;
  top: 8px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  z-index: -1;
}
.steps-line-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #8b5cf6, var(--gold));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  transform-origin: 0 50%;
  transform: scaleX(var(--line, 1));
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step { position: relative; padding: 26px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }
/* Dot on the line above each step (desktop) */
.step::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(227, 184, 102, 0.5);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.step.is-lit::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(227, 184, 102, 0.8); }
.step-num {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(227, 184, 102, 0.4);
  border-radius: 999px;
  background: var(--navy);
  transition: color 0.4s ease;
}
/* Lights up when the line reaches the step */
.step-num::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, #f5d79a, var(--gold));
  box-shadow: 0 0 18px rgba(227, 184, 102, 0.6);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.step.is-lit .step-num { color: #1a1306; }
.step.is-lit .step-num::before { opacity: 1; }

/* ---------- Why ---------- */
.founder {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 16px 20px;
}
.founder img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5), 0 0 24px rgba(59, 130, 246, 0.4);
}
.founder-name { font-weight: 600; margin: 0; }
.founder-title { margin: 0; color: var(--muted); font-size: 0.92rem; }
.why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Reviews carousel ---------- */
.carousel { margin-bottom: 36px; }
.carousel-viewport {
  overflow: hidden;
  padding: 14px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: max-content;
}
.review-card {
  flex: 0 0 auto;
  width: 340px;
  margin-right: 20px; /* margin (not gap) keeps the -50% loop seamless */
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  /* No backdrop blur on moving cards — keeps scrolling smooth on phones */
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}
.is-animated .review-card { will-change: transform; }
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 10px; }
.review-text { margin: 0 0 18px; flex: 1; font-size: 0.95rem; }
.review-text p { margin: 0; }
.review-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.review-user { display: block; font-weight: 600; }
.review-country { display: block; font-size: 0.85rem; color: var(--muted); }
.review-link { font-size: 0.85rem; font-weight: 500; white-space: nowrap; }

/* Animated mode (added by JS) */
.carousel-viewport.is-animated { touch-action: pan-y; }
.is-animated .carousel-track {
  animation: hn-marquee var(--marquee-duration, 80s) linear infinite;
  will-change: transform;
}
.is-animated .carousel-track.is-dragging { animation: none; }
.is-animated:focus-within .carousel-track { animation-play-state: paused; }
@media (hover: hover) {
  .is-animated:hover .carousel-track { animation-play-state: paused; }
}
@keyframes hn-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Static mode (reduced motion): plain horizontal scroll */
.carousel-viewport.is-static {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  -webkit-mask-image: none;
  mask-image: none;
}
.is-static .review-card { scroll-snap-align: start; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding-top: 12px;
}
.price-card {
  position: relative;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.price-card h3 { margin-bottom: 6px; }
.price-card > p:not(.price) { color: var(--muted); font-size: 0.92rem; flex: 1; }
.price { font-size: 2rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.price .from { font-size: 0.85rem; font-weight: 500; color: var(--gold); margin-right: 2px; }
.price .per { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.pricing-note { text-align: center; color: var(--muted); margin: 28px 0 0; }

/* Featured plan: soft glowing gold border + slow shimmer */
.price-card.featured {
  border-color: rgba(227, 184, 102, 0.4);
  background: linear-gradient(170deg, rgba(227, 184, 102, 0.08), rgba(255, 255, 255, 0.05));
}
.price-card.featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(227, 184, 102, 0.45), 0 0 34px rgba(227, 184, 102, 0.3);
  opacity: 0.55;
  animation: hn-glow 3.2s ease-in-out infinite;
}
@keyframes hn-glow {
  50% { opacity: 1; }
}
.shimmer {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.shimmer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 45%;
  height: 200%;
  background: linear-gradient(100deg, transparent, rgba(245, 215, 154, 0.95), transparent);
  transform: translateX(-120%) rotate(12deg);
  animation: hn-shimmer 4.5s ease-in-out infinite;
}
@keyframes hn-shimmer {
  0% { transform: translateX(-120%) rotate(12deg); }
  60%, 100% { transform: translateX(340%) rotate(12deg); }
}
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #1a1306;
  background: linear-gradient(135deg, #f5d79a, var(--gold));
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  position: relative;
  font-weight: 600;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-inner {
  text-align: center;
  padding: 56px 24px;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(59, 130, 246, 0.25), transparent 70%),
    var(--glass);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-brand p { margin: 10px 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }

.payments { margin-top: 32px; padding: 0 var(--gutter); text-align: center; }
.payments-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.payment-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.payment-badges li { line-height: 0; }
.payment-badges svg {
  display: block;
  width: 46px;
  height: 30px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.copyright { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 24px 0 0; padding: 0 var(--gutter); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 80;
  width: min(560px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 18, 52, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(227, 184, 102, 0.08);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.cookie-banner.is-shown { opacity: 1; transform: translate(-50%, 0); }
.cookie-text { margin: 0; flex: 1; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.cookie-text a { white-space: nowrap; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn { min-height: 38px; padding: 8px 16px; font-size: 0.86rem; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.link-btn:hover { color: #fff; }

@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; text-align: center; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- Privacy page ---------- */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--muted); }
.legal-card { padding: 32px; }

/* ==========================================================================
   Animations
   Hidden states apply ONLY while an element is not yet in view
   (:not(.is-in)). Once in view, no offset rule matches, so every element
   ends at its natural position — on every screen size.
   Only opacity, transform (translate/scale) and filter are animated.
   ========================================================================== */

/* --- Generic reveals --- */
.js .reveal,
.js .reveal-left,
.js .reveal-right,
.js .reveal-card {
  transition:
    opacity 0.7s var(--ease-out) var(--d, 0ms),
    translate 0.7s var(--ease-out) var(--d, 0ms),
    scale 0.7s var(--ease-out) var(--d, 0ms),
    filter 0.7s var(--ease-out) var(--d, 0ms),
    transform 0.3s var(--ease-out),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.js .reveal:not(.is-in),
.js .reveal-left:not(.is-in),
.js .reveal-right:not(.is-in) {
  opacity: 0;
  translate: 0 24px;
}
/* Cards: blur → sharp, fade, slight scale */
.js .reveal-card:not(.is-in) {
  opacity: 0;
  translate: 0 28px;
  scale: 0.96;
  filter: blur(8px);
}
/* Sideways slides on desktop only — mobile is vertical-only.
   Distance = side gutter, so even the hidden state never pokes past the screen edge. */
@media (min-width: 900px) {
  .js .reveal-left:not(.is-in) { translate: calc(var(--gutter) * -1) 0; }
  .js .reveal-right:not(.is-in) { translate: var(--gutter) 0; }
}

/* --- Headings: words slide up from a mask (split by script.js) --- */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.word-inner {
  display: inline-block;
  transition: translate 0.75s var(--ease-out) calc(var(--wd, 120ms) + var(--i, 0) * 70ms);
}
.js .section-head:not(.is-in) .word-inner,
.js .hero:not(.is-in) .word-inner { translate: 0 110%; }

/* Gold label fades in first, then words, then the lead line */
.js .section-head .eyebrow,
.js .section-head .lead {
  transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out);
}
.js .section-head .lead { transition-delay: 0.45s; }
.js .section-head:not(.is-in) .eyebrow { opacity: 0; translate: 0 10px; }
.js .section-head:not(.is-in) .lead { opacity: 0; translate: 0 14px; }

/* --- Hero load sequence: ring draws in → photo → name → chips → buttons --- */
.js .hero .ring-svg circle { transition: stroke-dashoffset 0.8s var(--ease-out); }
.js .hero:not(.is-in) .ring-svg circle { stroke-dashoffset: 100; }
.js .hero .photo-ring img,
.js .hero .ring-glow { transition: opacity 0.7s var(--ease-out) 0.2s, scale 0.7s var(--ease-out) 0.2s; }
.js .hero:not(.is-in) .photo-ring img { opacity: 0; scale: 0.9; }
.js .hero:not(.is-in) .ring-glow { opacity: 0; }

.js .hero .hero-text .eyebrow,
.js .hero .hero-title,
.js .hero .hero-tagline,
.js .hero .btn-row {
  transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out);
}
.js .hero .hero-text .eyebrow { transition-delay: 0.2s; }
.js .hero .hero-name { --wd: 300ms; }
.js .hero .hero-title { transition-delay: 0.5s; }
.js .hero .hero-tagline { transition-delay: 0.6s; }
.js .hero .btn-row { transition-delay: 1.05s; }
.js .hero:not(.is-in) .hero-text .eyebrow,
.js .hero:not(.is-in) .hero-title,
.js .hero:not(.is-in) .hero-tagline,
.js .hero:not(.is-in) .btn-row { opacity: 0; translate: 0 16px; }

.js .hero .trust-chips li { transition: opacity 0.5s var(--ease-out), scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.js .hero .trust-chips li:nth-child(1) { transition-delay: 0.75s; }
.js .hero .trust-chips li:nth-child(2) { transition-delay: 0.84s; }
.js .hero .trust-chips li:nth-child(3) { transition-delay: 0.93s; }
.js .hero:not(.is-in) .trust-chips li { opacity: 0; scale: 0.8; }

/* Continuous hero motion: floating photo, rotating ring + glow */
.js .photo-float { animation: hn-float 6s ease-in-out infinite; }
.js .ring-svg circle { animation: hn-spin-ring 16s linear infinite; }
.js .ring-glow::before { animation: hn-spin 16s linear infinite; }

@keyframes hn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes hn-spin {
  to { transform: rotate(360deg); }
}
@keyframes hn-spin-ring {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .photo-ring { width: 280px; height: 280px; }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Vertical connecting line through the middle when steps wrap */
  .steps-wrap { padding-top: 0; }
  .step::before { display: none; }
  .steps-line {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }
  .steps-line-fill {
    background: linear-gradient(180deg, var(--blue), #8b5cf6, var(--gold));
    transform-origin: 50% 0;
    transform: scaleY(var(--line, 1));
  }
}

@media (max-width: 899px) {
  :root { --gutter: 20px; --header-h: 62px; }
  .section { padding: 68px 0; }
  .hero { padding: 40px 0 24px; }
  .hero-grid,
  .audit-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-photo { order: 1; }
  .hero-text { order: 2; text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .trust-chips,
  .btn-row { justify-content: center; }
  .audit-intro { text-align: center; }
  .check-list { display: inline-block; text-align: left; max-width: 100%; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid .price-card:last-child { grid-column: 1 / -1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand .logo-link { justify-content: center; }
  .footer-links { justify-content: center; }
  .logo { height: 28px; }
  .logo-footer { height: 36px; }
}

/* Phones: full-width buttons (max 420px), centered */
@media (max-width: 640px) {
  .btn-row { flex-direction: column; align-items: center; }
  .btn-row .btn,
  .cta-inner .btn,
  .reviews .center .btn { width: 100%; max-width: 420px; }
}

@media (max-width: 600px) {
  .photo-ring { width: 220px; height: 220px; padding: 6px; }
  .services-grid,
  .why-grid,
  .steps,
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-grid .price-card:last-child { grid-column: auto; }
  .card, .step { text-align: center; }
  .card-icon { margin-left: auto; margin-right: auto; }
  .founder { flex-direction: column; text-align: center; }
  .audit-form { padding: 20px; }
  .review-card { width: 85vw; max-width: 340px; margin-right: 14px; padding: 20px; }
  .carousel-viewport { -webkit-mask-image: none; mask-image: none; }
  .faq-item summary { padding-left: 18px; }
  .faq-item p { padding: 0 18px 18px; }
  .legal-card { padding: 22px; }
  .cta-inner { padding: 44px 20px; }
  .blob-1 { width: 460px; height: 460px; }
  .blob-2 { width: 420px; height: 420px; }
  .blob-3 { width: 360px; height: 360px; }
}

@media (max-width: 379px) {
  :root { --gutter: 16px; }
}

/* ---------- Reduced motion: no animation, just show content ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .js .reveal,
  .js .reveal-left,
  .js .reveal-right,
  .js .reveal-card,
  .js .section-head .eyebrow,
  .js .section-head .lead,
  .js .hero .hero-text *,
  .js .hero .photo-ring img {
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
    filter: none !important;
  }
  .js .hero .ring-svg circle { stroke-dashoffset: 0 !important; }
  .js .hero .ring-glow { opacity: 0.5 !important; }
  .tilt:hover { transform: none; }
  .scroll-progress,
  .cursor-glow { display: none; }
}
