/* ============================================================
   REBUILT HQ — main.css
   v1 homepage stylesheet
   Brand color locked: #75b2dd (light clinic blue). Never teal, never navy.
   Voice translated to design: elite, clinical, smart, restrained.
   ============================================================ */

:root {
  /* Brand */
  --color-brand: #75b2dd;
  --color-brand-dark: #4e8fbe;
  --color-brand-darker: #2f6e9e;
  --color-brand-light: #e8f3fb;
  --color-brand-lighter: #f4f9fd;

  /* Neutrals */
  --color-text: #0f1419;
  --color-text-mid: #4a5568;
  --color-text-light: #737d8c;
  --color-border: #e6e8eb;
  --color-border-light: #f1f3f5;
  --color-bg: #ffffff;
  --color-bg-alt: #fafbfc;
  --color-bg-dark: #0a0e13;
  --color-bg-dark-2: #141a21;

  /* Type */
  --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-width: 1240px;
  --container-padding: 24px;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 20, 25, 0.10);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 360ms;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: var(--color-brand); color: white; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-darker);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--color-text-mid);
  max-width: 620px;
  line-height: 1.55;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.section-header .section-sub { margin: 0 auto; }

.section-header--minimal {
  margin-bottom: 56px;
}
.section-header--minimal .section-title {
  margin-bottom: 0;
}

/* ----- Rotating REBUILT subtitle header ----- */
.section-header--rotator {
  margin-bottom: 72px;
  text-align: center;
}

.rotator-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  line-height: 1;
}

.rotator-logo {
  display: block;
  width: clamp(280px, 38vw, 480px);
  height: auto;
  /* Logo PNG is blue outlined — recolor to white so it pops on the blue section bg */
  filter: brightness(0) invert(1);
}

.rotator-words {
  position: relative;
  display: block;
  width: 100%;
  /* Matches the small subtitle scale used in REBUILT sub-brand lockups */
  height: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
}

.rotator-word {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 100%);
  opacity: 0;
  color: #000;
  white-space: nowrap;
  /* Subtitle font style — clean sans, all-caps, wide tracking, light weight */
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 720ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 500ms ease;
  will-change: transform, opacity;
}

.rotator-word[data-rotator-state="active"] {
  transform: translate(-50%, 0);
  opacity: 1;
}

.rotator-word[data-rotator-state="above"] {
  transform: translate(-50%, -110%);
  opacity: 0;
}

.rotator-word[data-rotator-state="below"] {
  transform: translate(-50%, 110%);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rotator-word {
    transition: opacity 250ms ease;
  }
  .rotator-word[data-rotator-state="active"] {
    transform: translate(-50%, 0);
  }
  .rotator-word[data-rotator-state="above"],
  .rotator-word[data-rotator-state="below"] {
    transform: translate(-50%, 0);
  }
}

/* ============================================================
   NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px var(--container-padding);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--color-text);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.primary-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 16px;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-mid);
  transition: color var(--t-fast) var(--ease);
  position: relative;
}

.primary-nav a:hover { color: var(--color-text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.book-now-wrapper { position: relative; }

.book-now-btn {
  background: var(--color-brand);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.book-now-btn:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
}

.caret { font-size: 11px; opacity: 0.85; }

.book-now-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  min-width: 280px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
}

.book-now-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.book-now-menu a {
  display: block;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast) var(--ease);
}

.book-now-menu a:hover {
  background: var(--color-brand-light);
  color: var(--color-brand-darker);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 120px 0 140px;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: #0f1419; /* fallback while media loads */
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Strong dark gradient on the LEFT (where the text sits), fading right */
    linear-gradient(90deg, rgba(8, 18, 32, 0.78) 0%, rgba(8, 18, 32, 0.6) 35%, rgba(8, 18, 32, 0.35) 70%, rgba(8, 18, 32, 0.25) 100%),
    /* Subtle top/bottom darkening for safe text on any vertical position */
    linear-gradient(180deg, rgba(8, 18, 32, 0.25) 0%, transparent 30%, transparent 70%, rgba(8, 18, 32, 0.5) 100%),
    /* Brand-blue tint */
    radial-gradient(ellipse 1200px 700px at 20% 50%, rgba(117, 178, 221, 0.18), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.16em;
}

.hero-title {
  color: white;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .accent {
  color: white;
  -webkit-text-fill-color: white;
  background: none;
}

.hero-sub {
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  color: white;
  opacity: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero .btn-primary {
  background: white;
  color: var(--color-brand-darker);
}
.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-brand-darker);
}

.hero .btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-ghost:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.12);
}

.hero-container {
  display: block;
}

.hero-content {
  max-width: 780px;
}

/* Hero title typography (color is set in the .hero block above) */
.hero-title {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--color-brand);
  color: white;
}
.btn-primary:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-text); }

/* Hero media */
.hero-media { position: relative; }

.video-placeholder {
  aspect-ratio: 3 / 4;
  background-image:
    linear-gradient(180deg, rgba(10, 14, 19, 0.45), rgba(10, 14, 19, 0.75)),
    url('../images/kyle-trustrength.jpg');
  background-size: cover;
  background-position: center 25%;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform var(--t-base) var(--ease);
}

.video-placeholder:hover {
  transform: scale(1.01);
}

.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(117, 178, 221, 0.15), transparent 60%);
  pointer-events: none;
}

.play-button {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  padding-left: 6px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px rgba(117, 178, 221, 0.15);
  transition: transform var(--t-base) var(--ease);
}

.video-placeholder:hover .play-button {
  transform: scale(1.06);
}

.placeholder-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.placeholder-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
}

/* ============================================================
   3-WAY ROUTER
   ============================================================ */

.router {
  padding: 120px 0;
  background:
    /* Soft white highlight up top-left for depth */
    radial-gradient(ellipse 1000px 600px at 20% -10%, rgba(255, 255, 255, 0.28), transparent 55%),
    /* Deep blue pool bottom-right */
    radial-gradient(ellipse 900px 700px at 90% 110%, rgba(15, 50, 85, 0.45), transparent 60%),
    /* Diagonal gradient — lighter top-left to deeper bottom-right */
    linear-gradient(135deg, #8cc1e5 0%, #75b2dd 45%, #4e8fbe 100%);
  color: white;
  position: relative;
}

/* Subtle top + bottom edge fades into a darker tone for cleaner section separation */
.router::before,
.router::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 0;
}
.router::before {
  top: 0;
  background: linear-gradient(180deg, rgba(15, 50, 85, 0.15), transparent);
}
.router::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 50, 85, 0.2), transparent);
}
.router > .container { position: relative; z-index: 1; }

.router-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Liquid glass cards — middle ground: blue subtly visible, glass surface readable */
.router-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(0.55) brightness(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(0.55) brightness(1.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
  scroll-margin-top: 100px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(15, 50, 85, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25); /* subtle top rim of light, glass refraction */
}

.router-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 24px 60px rgba(15, 50, 85, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Cursor-following spotlight — radial gradient that tracks mouse via CSS vars set by JS */
.router-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, -100%) var(--my, -100%),
    rgba(255, 255, 255, 0.55),
    rgba(117, 178, 221, 0.12) 25%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 3;
}

.router-card:hover::after {
  opacity: 1;
}

.router-card-img {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #1a2129, #0f1419);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.router-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(117, 178, 221, 0.2), transparent 60%);
}

.router-card-img .placeholder-label {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* When the router card image is a real photo */
.router-card-img--photo {
  background-size: cover;
  background-position: center 30%;
}

.router-card-img--photo::before {
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
}

/* When the router card image is a brand logo (no photo yet) */
.router-card-img--logo {
  background-color: #000;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.router-card-img--logo::before {
  background: none;
}

.router-verb {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.router-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: white;
}

.router-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.6;
  flex: 1;
}

.router-cta {
  font-size: 15px;
  font-weight: 600;
  color: white;
  transition: gap var(--t-fast) var(--ease);
  display: inline-flex;
  gap: 4px;
}

.router-card:hover .router-cta { gap: 8px; }

/* ============================================================
   POSITIONING / TECHNOLOGY
   ============================================================ */

.positioning {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 900px 500px at 100% 0%, rgba(117, 178, 221, 0.12), transparent 70%),
    linear-gradient(180deg, #0a0e13 0%, #141a21 100%);
  color: white;
}

.positioning .eyebrow {
  color: var(--color-brand);
}

.positioning .section-title {
  color: white;
}

.positioning-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.positioning-text {
  position: sticky;
  top: 120px;
}

.positioning-text p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  line-height: 1.65;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tech-item {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--color-brand);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.tech-item:hover {
  background: rgba(117, 178, 221, 0.08);
  border-color: rgba(117, 178, 221, 0.3);
  border-left-color: var(--color-brand);
}

.tech-item--wide { grid-column: 1 / -1; }

.tech-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
  letter-spacing: -0.01em;
}

.tech-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* ============================================================
   SOCIAL PROOF — Southland's Best feature
   ============================================================ */

.proof {
  padding: 80px 0;
  background: var(--color-bg-dark);
  color: white;
}

.southlands-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  text-align: center;
  flex-wrap: wrap;
}

.southlands-badge {
  height: clamp(120px, 16vw, 180px);
  width: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.southlands-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  margin: 0;
  line-height: 1.15;
}

.southlands-title span {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-top: 8px;
}

@media (max-width: 700px) {
  .southlands-feature {
    flex-direction: column;
    gap: 24px;
  }
}

/* ============================================================
   REVIEWS (scrolling testimonials)
   ============================================================ */

.reviews {
  padding: 100px 0;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 640px;
}

.reviews-header .section-title { margin-bottom: 0; }

.reviews-scroller {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-height: 640px;
  overflow: hidden;
  /* Fades the top and bottom edges so cards drift in/out smoothly */
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.reviews-column {
  flex: 1;
  max-width: 320px;
}

.reviews-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: review-scroll 30s linear infinite;
  will-change: transform;
}

.reviews-column:nth-child(1) .reviews-track { animation-duration: 34s; }
.reviews-column:nth-child(2) .reviews-track { animation-duration: 26s; }
.reviews-column:nth-child(3) .reviews-track { animation-duration: 38s; }

.reviews-column:hover .reviews-track { animation-play-state: paused; }

@keyframes review-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.review-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(15, 20, 25, 0.06);
  border: 1px solid var(--color-border-light);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand);
}

.review-text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.65;
  margin: 0;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 14px;
  margin: 0;
  line-height: 1.3;
}

.review-meta {
  font-size: 12px;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.3;
}

.reviews-placeholder-note {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: var(--color-text-light);
  font-style: italic;
}

@media (max-width: 1024px) {
  .reviews-column--lg { display: none; }
}
@media (max-width: 768px) {
  .reviews-column--md { display: none; }
  .reviews { padding: 64px 0; }
}

/* ============================================================
   ABOUT (SHORT)
   ============================================================ */

.about-short {
  padding: 120px 0;
  background: var(--color-bg);
}

.about-short-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.about-short-img {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 20%, rgba(117, 178, 221, 0.25), transparent 60%),
    linear-gradient(135deg, var(--color-brand-light), #d4e8f5);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.about-short-img .placeholder-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-darker);
}

/* When the about-short image is a real photo */
.about-short-img--photo {
  background-size: cover;
  background-position: center top;
}

.about-short-text p {
  font-size: 17px;
  color: var(--color-text-mid);
  margin: 16px 0 24px;
  line-height: 1.65;
}

.link-arrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-brand-darker);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--t-fast) var(--ease);
}

.link-arrow:hover { gap: 8px; }

/* ============================================================
   FINAL CTA — animated breathing background + pill buttons
   ============================================================ */

.final-cta {
  position: relative;
  padding: 120px 0;
  background: #75b2dd;
  color: white;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Animated gradient layer — slow, subtle breathing motion */
.final-cta-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.22) 0%, transparent 38%),
    radial-gradient(circle at 78% 72%, rgba(15, 35, 60, 0.32) 0%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(117, 178, 221, 0.4) 0%, transparent 60%);
  animation: cta-breathe 16s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

@keyframes cta-breathe {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, -4%, 0) scale(1.08); }
}

.final-cta > .container {
  position: relative;
  z-index: 1;
}

.final-cta .section-title {
  color: white;
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 48px;
  text-shadow: 0 2px 24px rgba(15, 35, 60, 0.18);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Pill buttons — glass on hover transforms to solid white */
.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Initial state for cascade-in animation */
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.cta-pill:hover {
  background: white;
  color: var(--color-brand-darker);
  border-color: white;
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 35, 60, 0.3);
  letter-spacing: 0.06em;
}

/* When section is scrolled into view, buttons cascade in */
.final-cta.in-view .cta-pill {
  opacity: 1;
  transform: translateY(0);
}
.final-cta.in-view .cta-pill:nth-child(1) { transition-delay: 120ms; }
.final-cta.in-view .cta-pill:nth-child(2) { transition-delay: 240ms; }
.final-cta.in-view .cta-pill:nth-child(3) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .final-cta-bg { animation: none; }
  .cta-pill {
    opacity: 1;
    transform: none;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  }
  .cta-pill:hover { transform: none; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact {
  padding: 120px 0;
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info .section-title {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 17px;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 420px;
}

.contact-details h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-darker);
  margin-bottom: 20px;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.contact-value {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 500;
}

.contact-value.pending,
.contact-value .pending {
  color: var(--color-text-light);
  font-style: italic;
  font-weight: 400;
}

a.contact-value:hover {
  color: var(--color-brand-darker);
  text-decoration: underline;
}

/* The form */
.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-light);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(117, 178, 221, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  margin-top: 4px;
  font-size: 15px;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-light);
  margin: 0;
}

@media (max-width: 900px) {
  .contact { padding: 64px 0; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form { padding: 24px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: white;
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

.footer-logo-img {
  width: 220px;
  height: auto;
  margin-bottom: 20px;
  /* Invert the blue outlined logo to white so it reads on the dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand .tagline {
  font-size: 14px;
  color: var(--color-brand);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-brand address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand address a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--t-fast) var(--ease);
}

.footer-brand address a:hover {
  color: white;
  text-decoration: underline;
}

.footer-brand .pending {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--t-fast) var(--ease);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-socials { display: flex; gap: 12px; align-items: center; }

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--t-fast) var(--ease);
  color: white;
  text-decoration: none;
}

.footer-socials a:hover {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: white;
  transform: translateY(-1px);
}

.footer-social-arrow {
  font-size: 16px;
  line-height: 1;
}

.footer-social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .hero {
    padding: 56px 0 80px;
  }
  .hero-container,
  .positioning-grid,
  .about-short-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .positioning-text { position: static; }

  .router-grid { grid-template-columns: 1fr; gap: 16px; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-item--wide { grid-column: auto; }
  .proof-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--color-border-light); }
  .primary-nav a:last-child { border-bottom: none; }

  .mobile-menu-btn { display: flex; }

  .router { padding: 72px 0; }
  .positioning { padding: 72px 0; }
  .about-short { padding: 72px 0; }
  .final-cta { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
}

@media (max-width: 560px) {
  :root { --container-padding: 20px; }
  .hero-title { font-size: clamp(36px, 9vw, 52px); }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}

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