/* ==========================================================================
   Skyfire Network — Design System
   Dark blue. Motion-led. Animating transform + opacity wherever possible.
   ========================================================================== */

:root {
  /* --- Surface: deep navy ladder --- */
  --navy-950: #030711;
  --navy-900: #060d1f;
  --navy-850: #081330;
  --navy-800: #0b1a3d;
  --navy-700: #12274f;
  --navy-600: #1b3566;

  /* --- Accent: electric blue -> cyan --- */
  --blue-500: #3b6ef6;
  --blue-400: #5b8cff;
  --cyan-400: #38d9f0;
  --accent-grad: linear-gradient(115deg, var(--blue-500) 0%, var(--cyan-400) 100%);

  /* --- Text --- */
  --text-100: #f4f8ff;
  --text-200: #cfdcf5;
  --text-300: #94a7c9;
  --text-400: #6b7fa3;

  /* --- Lines & glass --- */
  --line: rgba(120, 160, 230, 0.14);
  --line-strong: rgba(130, 175, 255, 0.28);

  /* --- Type --- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* --- Motion: custom curves. The built-in easings are too weak. --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* --- Rhythm --- */
  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 72px;
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font-sans);
  background: var(--navy-950);
  color: var(--text-200);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--blue-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy-700);
  color: var(--text-100);
  font-size: 0.9rem;
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(74px); }

/* ---------------------------------------------------------- Typography -- */
h1, h2, h3, h4 {
  color: var(--text-100);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }

.serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  color: var(--text-300);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-300);
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 32, 70, 0.5);
  backdrop-filter: blur(8px);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  animation: pulse 2.6s var(--ease-out) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 217, 240, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(56, 217, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 217, 240, 0); }
}

/* ------------------------------------------------------------- Layout --- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

section { position: relative; }
.section { padding-block: clamp(72px, 11vw, 136px); }
.section-tight { padding-block: clamp(48px, 7vw, 86px); }

.section-head { max-width: 62ch; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head h2 { margin-block: 18px 16px; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* ---------------------------------------------------------- Ambience ---- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora span:nth-child(1) {
  width: 46vw; height: 46vw; min-width: 340px; min-height: 340px;
  top: -14%; left: -8%;
  background: radial-gradient(circle, rgba(59, 110, 246, 0.55), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora span:nth-child(2) {
  width: 38vw; height: 38vw; min-width: 300px; min-height: 300px;
  top: 4%; right: -10%;
  background: radial-gradient(circle, rgba(56, 217, 240, 0.3), transparent 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.aurora span:nth-child(3) {
  width: 44vw; height: 30vw; min-width: 320px; min-height: 260px;
  bottom: -18%; left: 22%;
  background: radial-gradient(circle, rgba(27, 53, 102, 0.85), transparent 70%);
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 8%, 0) scale(1.14); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-8%, 6%, 0) scale(0.94); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(120, 165, 240, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 165, 240, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
}

/* ------------------------------------------------------------ Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease,
              border-color 200ms ease, box-shadow 240ms ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #030711;
  background: var(--accent-grad);
  /* Transparent border so filled and outlined buttons are the same height
     and line up when sat side by side. */
  border: 1px solid transparent;
  box-shadow: 0 6px 22px -8px rgba(59, 110, 246, 0.9);
  font-weight: 600;
}

.btn-ghost {
  color: var(--text-100);
  border: 1px solid var(--line-strong);
  background: rgba(16, 34, 74, 0.42);
  backdrop-filter: blur(10px);
}

.btn-text { color: var(--text-100); padding-inline: 4px; }
.btn .arrow { transition: transform 200ms var(--ease-out); width: 15px; height: 15px; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 10px 34px -8px rgba(59, 110, 246, 1); }
  .btn-ghost:hover { background: rgba(28, 56, 112, 0.62); border-color: rgba(140, 185, 255, 0.45); }
  .btn:hover .arrow { transform: translateX(3px); }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 260ms ease, border-color 260ms ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(3, 7, 17, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-100);
  font-size: 1.02rem;
  transition: transform 160ms var(--ease-out);
}
.brand:active { transform: scale(0.97); }

.brand-mark {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px -6px rgba(59, 110, 246, 0.9);
}
.brand-mark svg { width: 15px; height: 15px; color: #041027; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--text-300);
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a[aria-current="page"] { color: var(--text-100); }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text-100); background: rgba(27, 53, 102, 0.42); }
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap, not margins: grid row stretching made the bars land 14px apart,
     so the X on open came out as a chevron. */
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text-100);
  border-radius: 2px;
  transition: transform 260ms var(--ease-out), opacity 160ms ease;
}


body[data-menu="open"] .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body[data-menu="open"] .nav-toggle span:nth-child(2) { opacity: 0; }
body[data-menu="open"] .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  padding: 14px var(--gutter) 30px;
  background: rgba(4, 10, 26, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-101%);
  visibility: hidden;
  transition: transform 340ms var(--ease-drawer), visibility 340ms;
}

body[data-menu="open"] .mobile-menu { transform: translateY(0); visibility: visible; }

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  font-size: 1.1rem;
  color: var(--text-100);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { width: 100%; margin-top: 20px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* --------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 10vw, 108px));
  padding-bottom: clamp(56px, 9vw, 104px);
  overflow: hidden;
}

.hero-inner { max-width: 940px; }
.hero h1 { margin-block: 24px 26px; }
.hero .lede { font-size: clamp(1.06rem, 1.9vw, 1.24rem); }
.hero .btn-row { margin-top: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 38px;
  font-size: 0.86rem;
  color: var(--text-400);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--cyan-400); flex: none; }

/* Browser mock */
.mock {
  position: relative;
  margin-top: clamp(50px, 7vw, 80px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(11, 26, 61, 0.9), rgba(4, 10, 26, 0.96));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: perspective(1600px) rotateX(7deg);
  transform-origin: center top;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 19, 48, 0.8);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy-600); display: block; }
.mock-url {
  flex: 1;
  font-size: 0.73rem;
  color: var(--text-400);
  background: rgba(3, 7, 17, 0.7);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 12px;
  text-align: center;
}

.mock-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  padding: clamp(24px, 4vw, 44px);
  align-items: center;
  min-height: 250px;
}
@media (max-width: 620px) { .mock-body { grid-template-columns: 1fr; } }

.skeleton-line {
  height: 12px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(59, 110, 246, 0.38), rgba(56, 217, 240, 0.16));
  margin-bottom: 12px;
}
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-50 { width: 50%; height: 9px; background: rgba(148, 167, 201, 0.16); }
.skeleton-line.w-80 { width: 80%; height: 9px; background: rgba(148, 167, 201, 0.16); }
.skeleton-btn {
  width: 116px; height: 34px;
  border-radius: 9px;
  background: var(--accent-grad);
  margin-top: 22px;
}
.skeleton-card {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 25%, rgba(56, 217, 240, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(27, 53, 102, 0.7), rgba(6, 13, 31, 0.8));
}

/* Hero entrance — transitions, not keyframes, so they retarget cleanly */
[data-animate="hero"] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
body[data-ready="true"] [data-animate="hero"] > * {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------- Marquee ----- */
.marquee {
  --gap: 56px;
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: 24px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee ul {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding-right: var(--gap);
  flex: none;
  min-width: 100%;
  animation: scroll-x 34s linear infinite;
}
.marquee li {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-400);
  white-space: nowrap;
}
@keyframes scroll-x {
  to { transform: translateX(calc(-100% - var(--gap))); }
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover ul { animation-play-state: paused; }
}

/* ---------------------------------------------------------- Card grid -- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(11, 26, 61, 0.68), rgba(6, 13, 31, 0.5));
  overflow: hidden;
  transition: transform 300ms var(--ease-out), border-color 300ms ease;
}

/* Cursor spotlight — the var is set on the card itself, never a shared parent */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(72, 130, 255, 0.16), transparent 62%);
  transition: opacity 320ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
  .card:hover::before { opacity: 1; }
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--text-300); }
.card > * { position: relative; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(27, 53, 102, 0.55);
  color: var(--cyan-400);
  transition: transform 300ms var(--ease-out), background-color 300ms ease;
}
.card-icon svg { width: 19px; height: 19px; }

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-icon { transform: scale(1.06); background: rgba(38, 76, 148, 0.7); }
}

.card-list { margin-top: 18px; display: grid; gap: 9px; }
.card-list li { display: flex; gap: 9px; font-size: 0.88rem; color: var(--text-300); }
.card-list li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--cyan-400);
}

/* ----------------------------------------------------------- Process --- */
.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 30px 26px 34px;
  background: var(--navy-900);
  transition: background-color 320ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .step:hover { background: var(--navy-850); }
}
.step-no {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-300); }

/* ------------------------------------------------------------- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(18, 39, 79, 0.7), rgba(6, 13, 31, 0.55));
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

.stat-value {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-100);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.84rem; color: var(--text-400); margin-top: 10px; }

/* -------------------------------------------------------- Split media -- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(11, 26, 61, 0.85), rgba(4, 10, 26, 0.9));
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.panel h3 { font-size: 1.02rem; margin-bottom: 20px; }

.bar-chart { display: grid; gap: 14px; }
.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 46px;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-300);
}
.bar-track { display: block; height: 9px; border-radius: 6px; background: rgba(120, 160, 230, 0.12); overflow: hidden; }
.bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in .bar-fill { transform: scaleX(var(--v, 0.5)); }
.bar-row b { color: var(--text-100); font-weight: 550; font-variant-numeric: tabular-nums; text-align: right; }

/* ------------------------------------------------------------ Quotes --- */
.quote {
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(11, 26, 61, 0.6), rgba(6, 13, 31, 0.45));
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 300ms var(--ease-out), border-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .quote:hover { transform: translateY(-3px); border-color: var(--line-strong); }
}
.quote p { color: var(--text-200); font-size: 0.97rem; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.84rem; font-weight: 600;
  color: #04101f;
  background: var(--accent-grad);
  flex: none;
}
.quote cite { font-style: normal; font-size: 0.88rem; color: var(--text-100); display: block; }
.quote footer span { font-size: 0.8rem; color: var(--text-400); }
.stars { display: flex; gap: 3px; color: var(--cyan-400); }
.stars svg { width: 14px; height: 14px; }

/* ------------------------------------------------- Partner (Rated Tradies) */
.partner-band {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 4.5vw, 54px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px circle at 10% 0%, rgba(56, 217, 240, 0.14), transparent 58%),
    linear-gradient(160deg, rgba(14, 32, 72, 0.9), rgba(4, 10, 26, 0.92));
}
@media (max-width: 900px) { .partner-band { grid-template-columns: 1fr; } }
.partner-copy h2 { margin-block: 18px 16px; }
.partner-panel { background: rgba(3, 7, 17, 0.55); }

/* ---------------------------------------------------- Google reviews --- */
.reviews[hidden] { display: none; }

.reviews-score {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 32, 70, 0.55);
}
.g-mark { width: 18px; height: 18px; flex: none; }
.reviews-score .score {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-100);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.reviews-score .score-count { font-size: 0.85rem; color: var(--text-400); }

/* Gold half-star fill: one greyed row, one clipped gold row on top. */
.stars-rate {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 0.96rem;
  letter-spacing: 2px;
  white-space: nowrap;
}
.stars-bg { color: rgba(120, 160, 230, 0.26); }
.stars-fg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fbbc05;
}

/* Beats `.quote footer span`, which otherwise greys out the initials. */
.quote footer .avatar { color: #04101f; font-size: 0.84rem; font-weight: 600; }

.review-card .stars-rate { font-size: 1rem; }
.review-card blockquote p { color: var(--text-200); }
.review-card img.avatar { object-fit: cover; }

.reviews-actions { justify-content: center; margin-top: 34px; }
.reviews-actions .btn-text { display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------ Pricing -- */
.price-card { display: flex; flex-direction: column; }
.price-card[data-featured] {
  border-color: var(--line-strong);
  background: linear-gradient(170deg, rgba(23, 49, 100, 0.9), rgba(6, 13, 31, 0.7));
  box-shadow: 0 30px 70px -40px rgba(59, 110, 246, 0.8);
}
.price-tag { display: flex; align-items: baseline; gap: 7px; margin-block: 14px 6px; }
.price-tag strong {
  font-size: clamp(1.85rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-100);
}
.price-tag span { font-size: 0.84rem; color: var(--text-400); }
/* Pinned to the bottom of the card, not to the end of the list, so the
   three CTAs sit on one line whatever the inclusions run to. */
.price-card .card-list { margin-bottom: 26px; }
.price-card .btn { margin-top: auto; width: 100%; }
.badge {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: #04101f;
  background: var(--accent-grad);
  font-weight: 600;
}

/* ---------------------------------------------------------------- FAQ -- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-100);
}
.faq-icon {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  position: relative;
  transition: transform 260ms var(--ease-out), background-color 240ms ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-100);
  border-radius: 2px;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.faq-icon::before { width: 11px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 11px; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); background: rgba(59, 110, 246, 0.3); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); opacity: 0; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out);
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 4px 24px;
  color: var(--text-300);
  font-size: 0.95rem;
  max-width: 76ch;
  opacity: 0;
  transition: opacity 260ms ease;
}
.faq-q[aria-expanded="true"] + .faq-a p { opacity: 1; transition-delay: 60ms; }

/* ----------------------------------------------------------------- CTA -- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-strong);
  padding: clamp(44px, 7vw, 82px) clamp(26px, 5vw, 62px);
  text-align: center;
  background:
    radial-gradient(900px circle at 50% -10%, rgba(59, 110, 246, 0.35), transparent 60%),
    linear-gradient(160deg, rgba(14, 32, 72, 0.9), rgba(4, 10, 26, 0.95));
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }
.cta-note { margin-top: 20px; font-size: 0.84rem; color: var(--text-400); }

/* -------------------------------------------------------------- Footer -- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 60px 32px;
  margin-top: clamp(68px, 9vw, 116px);
  background: var(--navy-950);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px 28px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-400);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { font-size: 0.92rem; color: var(--text-300); transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: var(--text-100); } }
.footer-about p { font-size: 0.92rem; color: var(--text-400); margin-top: 16px; max-width: 36ch; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--text-400);
}

/* --------------------------------------------------------------- Blog --- */
.post-card { display: flex; flex-direction: column; padding: 0; height: 100%; }
.post-thumb {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(27, 53, 102, 0.9), rgba(6, 13, 31, 0.9));
}
.post-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(120, 165, 240, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 165, 240, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  transition: transform 600ms var(--ease-out);
}
.post-thumb-orb {
  position: absolute;
  width: 58%; aspect-ratio: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 217, 240, 0.5), rgba(59, 110, 246, 0.16) 55%, transparent 70%);
  filter: blur(14px);
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover .post-thumb::after { transform: scale(1.08); }
  .post-card:hover .post-thumb-orb { transform: translate(-50%, -50%) scale(1.16); }
}
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.76rem; color: var(--text-400); letter-spacing: 0.04em; }
.post-body h3 { font-size: 1.12rem; margin-block: 14px 10px; line-height: 1.25; }
.post-body p { font-size: 0.92rem; color: var(--text-300); }
/* Same reason: level the "Read the guide" links across uneven excerpts. */
.post-body p { margin-bottom: 20px; }
.post-body .btn-text { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-400);
  border: 1px solid rgba(56, 217, 240, 0.3);
  background: rgba(56, 217, 240, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ------------------------------------------------------------- Article -- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent-grad);
}

.article-head {
  padding-top: calc(var(--nav-h) + clamp(46px, 8vw, 88px));
  padding-bottom: clamp(26px, 4vw, 42px);
}
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-block: 20px 22px; max-width: 23ch; }
.article-head .lede { font-size: clamp(1.02rem, 1.7vw, 1.15rem); }
.article-head .post-meta { margin-top: 24px; }

.prose {
  max-width: 72ch;
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--text-200);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  margin-top: 2.1em;
  margin-bottom: 0.1em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose a { color: var(--blue-400); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { color: var(--cyan-400); } }
.prose strong { color: var(--text-100); font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 10px; }
/* Markers are positioned, not flex items: a flex li turns every inline run
   (a <strong> label and the sentence after it) into its own column. */
.prose ul li { position: relative; padding-left: 18px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-grad);
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 38px; counter-increment: n; }
.prose ol li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: 5px;
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan-400);
  background: rgba(27, 53, 102, 0.7);
  border: 1px solid var(--line);
}
.prose blockquote {
  border-left: 2px solid var(--blue-500);
  padding: 4px 0 4px 22px;
  color: var(--text-100);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.5;
}
.callout {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: linear-gradient(160deg, rgba(18, 39, 79, 0.8), rgba(6, 13, 31, 0.5));
  font-size: 0.97rem;
}
.callout strong { display: block; margin-bottom: 6px; color: var(--text-100); }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: rgba(8, 19, 48, 0.5);
}
.toc h2 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-400);
  margin: 0 0 14px;
  font-weight: 500;
}
.toc ol { counter-reset: none; gap: 8px; }
.toc ol li { counter-increment: none; padding-left: 0; }
.toc ol li::before { display: none; }
.toc a { color: var(--text-300); font-size: 0.93rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--cyan-400); } }

.article-foot {
  max-width: 72ch;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.author-row { display: flex; align-items: center; gap: 14px; }
.author-row p { font-size: 0.88rem; color: var(--text-400); }

/* ---------------------------------------------------- Contact / form --- */
.field { display: grid; gap: 8px; }
.field label { font-size: 0.84rem; color: var(--text-300); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-100);
  background: rgba(6, 13, 31, 0.8);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(11, 26, 61, 0.9);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-400); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }

.form-done {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 0 6px;
}
.form-tick {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #04101f;
  background: var(--accent-grad);
  margin-bottom: 6px;
}
.form-tick svg { width: 22px; height: 22px; }
.form-done h3 { font-size: 1.2rem; }
.form-done p { color: var(--text-300); font-size: 0.95rem; }

/* --------------------------------------------------- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* The clipped element is the CHILD, never the observed host: Chrome reports a
   fully clip-path'd element as not intersecting, so it would never reveal. */
.reveal-clip > * {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 820ms var(--ease-in-out);
}
.reveal-clip.in > * { clip-path: inset(0 0 0 0); }

/* ---------------------------------------------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-animate="hero"] > * { transform: none !important; }
  .reveal-clip > * { clip-path: none !important; }
  .aurora span, .marquee ul, .eyebrow::before { animation: none !important; }
  .mock { transform: none !important; }
  *, *::before, *::after {
    transition-duration: 180ms !important;
    transition-property: opacity, background-color, color, border-color !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
