/* ═══════════════════════════════════════════════════════
   HyCommand — Design tokens & base reset
   ═══════════════════════════════════════════════════════ */
:root {
  /* Surfaces */
  --bg:            #0b1120;
  --bg-alt:        #10192e;
  --surface:       #111827;
  --surface-hi:    #1a2540;
  --surface-card:  #141d2e;
  --border:        rgba(182,196,255,0.1);
  --border-hover:  rgba(182,196,255,0.22);

  /* Text */
  --text:          #e4e2e4;
  --text-muted:    #8896b3;
  --text-faint:    #4a5678;

  /* Brand accents */
  --blue:          #2563FF;
  --blue-lt:       #b6c4ff;
  --teal:          #00D4C4;
  --purple:        #7B61FF;
  --orange:        #FF8A00;
  --red:           #c80303;

  /* CTA */
  --btn-bg:        #1a44d4;
  --btn-bg-hover:  #2254f0;

  /* Typography */
  --font-display:  'Inter', system-ui, sans-serif;
  --font-body:     'IBM Plex Sans', system-ui, sans-serif;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* Spacing */
  --container:     1200px;
  --section-y:     6rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════════════════════
   Layout helpers
   ═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}
.container--sm  { max-width: 760px; }
.text-center    { text-align: center; }

/* ═══════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════ */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 0.85rem;
  opacity: 0.85;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
}

.body-lg {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(37,99,255,0.3), 0 4px 20px rgba(26,68,212,0.35);
}
.btn--primary:hover {
  background: var(--btn-bg-hover);
  box-shadow: 0 0 0 1px rgba(37,99,255,0.5), 0 8px 28px rgba(26,68,212,0.5);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(182,196,255,0.07);
  color: var(--blue-lt);
  border: 1px solid rgba(182,196,255,0.18);
}
.btn--ghost:hover {
  background: rgba(182,196,255,0.12);
  border-color: rgba(182,196,255,0.3);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--blue-lt);
  border: 1px solid var(--border-hover);
}
.btn--outline:hover {
  border-color: var(--blue-lt);
  background: rgba(182,196,255,0.06);
}

.btn--xl  { padding: 0.85rem 1.8rem; font-size: 0.95rem; }
.btn--full { width: 100%; justify-content: center; padding: 0.9rem; }

/* ═══════════════════════════════════════════════════════
   Section wrapper
   ═══════════════════════════════════════════════════════ */
.section {
  padding-block: var(--section-y);
}
.section--alt {
  background: var(--bg-alt);
}
.section--cta {
  background: linear-gradient(135deg, #0b1b4a 0%, #060d1c 60%, #110b2e 100%);
  padding-block: 7rem;
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(37,99,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 100%, rgba(123,97,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding-block: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(11,17,32,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.5rem 2rem;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav__link {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-full);
  transition: color 0.15s, background 0.15s;
}
.nav__link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--r-sm);
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #080d1a; /* fallback if video not loaded */
}

/* ── Video bg ── */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform; /* GPU layer */
}

/* ── Dark gradient overlay — keeps text legible, brand tint at edges ── */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(8,13,26,0.42) 0%,
      rgba(8,13,26,0.28) 25%,
      rgba(8,13,26,0.48) 60%,
      rgba(8,13,26,0.93) 100%
    ),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(11,30,80,0.38) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(80,40,160,0.18) 0%, transparent 60%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.95;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 2;
}
.hero__glow--a {
  width: 600px; height: 500px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(37,99,255,0.12) 0%, transparent 70%);
}
.hero__glow--b {
  width: 500px; height: 400px;
  bottom: 0; right: -50px;
  background: radial-gradient(circle, rgba(123,97,255,0.1) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 4;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

/* live chip */
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  background: rgba(0,212,196,0.08);
  border: 1px solid rgba(0,212,196,0.2);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.live-chip__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero__h1--em {
  font-style: normal;
  background: linear-gradient(135deg, #b6c4ff 0%, #7B61FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__body {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 4;
  transition: color 0.2s;
}
.hero__scroll-cue:hover { color: var(--text-muted); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════
   PLATFORM SECTION
   ═══════════════════════════════════════════════════════ */
.split-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.split-header .h2 { margin-top: 0.5rem; }
.split-header__copy {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 440px;
  align-self: end;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.prod-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.prod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(182,196,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.prod-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.prod-card:hover::before { opacity: 1; }

.prod-card__icon-wrap {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  flex-shrink: 0;
}
.prod-card__icon-wrap--blue   { background: rgba(37,99,255,0.15);  color: #6fa3ff; }
.prod-card__icon-wrap--teal   { background: rgba(0,212,196,0.12);  color: var(--teal); }
.prod-card__icon-wrap--purple { background: rgba(123,97,255,0.15); color: #a991ff; }
.prod-card__icon-wrap--orange { background: rgba(255,138,0,0.12);  color: var(--orange); }

.prod-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.prod-card__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.prod-card__tags {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.prod-card__tags li {
  font-size: 0.75rem;
  color: var(--blue-lt);
  opacity: 0.7;
  padding-left: 1rem;
  position: relative;
}
.prod-card__tags li::before {
  content: '·';
  position: absolute;
  left: 0.2rem;
  color: var(--blue-lt);
}
.prod-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-lt);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.prod-card:hover .prod-card__link { opacity: 1; }

/* accent top border per product */
.prod-card--hq      { --card-accent: var(--blue); }
.prod-card--support { --card-accent: var(--teal); }
.prod-card--scene   { --card-accent: var(--purple); }
.prod-card--core    { --card-accent: var(--orange); }

.prod-card--hq:hover      { box-shadow: 0 12px 40px rgba(37,99,255,0.12); }
.prod-card--support:hover { box-shadow: 0 12px 40px rgba(0,212,196,0.1); }
.prod-card--scene:hover   { box-shadow: 0 12px 40px rgba(123,97,255,0.12); }
.prod-card--core:hover    { box-shadow: 0 12px 40px rgba(255,138,0,0.1); }

/* ═══════════════════════════════════════════════════════
   SCENEAGENT SECTION
   ═══════════════════════════════════════════════════════ */
.scene-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.scene-content .h2 { margin-top: 0.4rem; margin-bottom: 1.25rem; }

.scene-feats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.scene-feat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.scene-feat__icon {
  width: 38px; height: 38px;
  min-width: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
}
.scene-feat__icon--purple { background: rgba(123,97,255,0.15); color: #a991ff; }
.scene-feat__icon--blue   { background: rgba(37,99,255,0.14);  color: #6fa3ff; }
.scene-feat__icon--teal   { background: rgba(0,212,196,0.12);  color: var(--teal); }

.scene-feat__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.scene-feat__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* SceneAgent mock UI */
.scene-visual { perspective: 1000px; }

.scene-mock {
  background: #0d1525;
  border: 1px solid rgba(182,196,255,0.14);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(182,196,255,0.05),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(37,99,255,0.08);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.scene-mock:hover { transform: rotateY(0deg) rotateX(0deg); }

.scene-mock__titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(182,196,255,0.08);
}
.scene-mock__dots { display: flex; gap: 5px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot--red   { background: #ff5f57; }
.dot--amber { background: #febc2e; }
.dot--green { background: #28c840; }
.dot--pulse {
  width: 7px; height: 7px;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

.scene-mock__app-name {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.scene-mock__indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--teal);
  font-weight: 500;
}

.scene-mock__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.scene-mock__alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: rgba(123,97,255,0.1);
  border: 1px solid rgba(123,97,255,0.2);
  border-radius: var(--r-lg);
  font-size: 0.75rem;
  font-weight: 500;
  color: #c0b0ff;
}

.scene-mock__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 0.9rem;
}
.scene-mock__card--highlight {
  background: rgba(37,99,255,0.08);
  border-color: rgba(37,99,255,0.2);
}

.scene-mock__card-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.45rem;
}
.scene-mock__card-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.scene-mock__card--highlight .scene-mock__card-text {
  color: #a4bfff;
}

.scene-mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.scene-mock__stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 0.65rem;
  text-align: center;
}
.scene-mock__stat--alert {
  background: rgba(200,3,3,0.1);
  border-color: rgba(200,3,3,0.2);
}
.scene-mock__stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.scene-mock__stat--alert .scene-mock__stat-n { color: #ff7575; }
.scene-mock__stat-l {
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════
   BUILT FOR F&R
   ═══════════════════════════════════════════════════════ */
.built-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* atmospheric visual */
.built-atmo {
  position: relative;
  width: 360px;
  height: 360px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.built-atmo__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin-slow linear infinite;
}
.built-atmo__ring--1 {
  width: 320px; height: 320px;
  border-color: rgba(37,99,255,0.12);
  animation-duration: 30s;
}
.built-atmo__ring--2 {
  width: 240px; height: 240px;
  border-color: rgba(123,97,255,0.15);
  animation-duration: 20s;
  animation-direction: reverse;
  border-style: dashed;
}
.built-atmo__ring--3 {
  width: 160px; height: 160px;
  border-color: rgba(0,212,196,0.2);
  animation-duration: 14s;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.built-atmo::after {
  content: '';
  position: absolute;
  /* sits at the base of the commander figure */
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(182, 196, 255, 0.18) 15%,
    rgba(182, 196, 255, 0.55) 38%,
    rgba(182, 196, 255, 0.55) 62%,
    rgba(182, 196, 255, 0.18) 85%,
    transparent 100%
  );
  z-index: 4;
  pointer-events: none;
}

.built-atmo__commander {
  position: absolute;
  z-index: 3;
  /* centre within the ring container */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%); /* shift slightly up so figure reads centred visually */
  width: 310px;
  height: auto;
  pointer-events: none;
  /* depth & brand tint */
  filter:
    drop-shadow(0 12px 32px rgba(0,0,0,0.65))
    drop-shadow(0 0 18px rgba(37,99,255,0.18));
}

.built-content .h2 { margin-top: 0.4rem; margin-bottom: 1.25rem; }

.built-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1.75rem;
}
.built-stat {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}
.built-stat__val {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-lt);
  line-height: 1;
  letter-spacing: -0.03em;
}
.built-stat__val span {
  font-size: 1.4rem;
  opacity: 0.75;
}
.built-stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.built-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  background: rgba(0,212,196,0.07);
  border: 1px solid rgba(0,212,196,0.18);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal);
}

/* ═══════════════════════════════════════════════════════
   COMMUNITY
   ═══════════════════════════════════════════════════════ */
.agency-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.agency-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.agency-chip span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.agency-chip__icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xl);
  border: 1px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.agency-chip__icon:hover { transform: translateY(-3px); }
.agency-chip__icon--red    { background: rgba(200,3,3,0.1);    border-color: rgba(200,3,3,0.2);    color: #ff7575; }
.agency-chip__icon--dark   { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text-muted); }
.agency-chip__icon--green  { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.2);  color: #6ee7a0; }
.agency-chip__icon--teal   { background: rgba(0,212,196,0.1);  border-color: rgba(0,212,196,0.2);  color: var(--teal); }
.agency-chip__icon--purple { background: rgba(123,97,255,0.12); border-color: rgba(123,97,255,0.2); color: #a991ff; }

/* ═══════════════════════════════════════════════════════
   VALUE GRID
   ═══════════════════════════════════════════════════════ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.value-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.value-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  margin-bottom: 1.1rem;
}
.value-card__icon--blue   { background: rgba(37,99,255,0.12);  color: #6fa3ff; }
.value-card__icon--teal   { background: rgba(0,212,196,0.1);   color: var(--teal); }
.value-card__icon--purple { background: rgba(123,97,255,0.12); color: #a991ff; }
.value-card__icon--orange { background: rgba(255,138,0,0.1);   color: var(--orange); }

.value-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.value-card__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   QUOTE
   ═══════════════════════════════════════════════════════ */
.quote {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 2.5rem;
  margin: 2.5rem auto;
  max-width: 620px;
  text-align: left;
}
.quote blockquote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.quote blockquote p::before { content: '\201C'; color: var(--blue-lt); opacity: 0.5; }
.quote blockquote p::after  { content: '\201D'; color: var(--blue-lt); opacity: 0.5; }

.quote__attr {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.quote__avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.quote__attr strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.quote__attr span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   FINAL CTA SECTION
   ═══════════════════════════════════════════════════════ */
.cta-section__h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}
.cta-section__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: #060c18;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}
.footer__top {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.footer__brand { margin-top: 0; }

.footer__nav-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}
.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__nav-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.footer__nav-col a {
  font-size: 0.875rem;
  color: var(--text-faint);
  transition: color 0.15s;
}
.footer__nav-col a:hover { color: var(--text-muted); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
}
.footer__legal a {
  font-size: 0.8rem;
  color: var(--text-faint);
  transition: color 0.15s;
}
.footer__legal a:hover { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4,8,18,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: #0e1628;
  border: 1px solid rgba(182,196,255,0.14);
  border-radius: var(--r-2xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 560px;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(182,196,255,0.05);
  animation: modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.modal__close:hover { background: rgba(255,255,255,0.09); color: var(--text); }

.modal__hd {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.modal__sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Form */
.modal-form { display: flex; flex-direction: column; gap: 1.1rem; }

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

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.required { color: var(--blue-lt); }

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(182,196,255,0.12);
  border-radius: var(--r-md);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
  border-color: rgba(37,99,255,0.5);
  box-shadow: 0 0 0 3px rgba(37,99,255,0.1);
}
.form-input.invalid {
  border-color: rgba(200,3,3,0.5);
  box-shadow: 0 0 0 3px rgba(200,3,3,0.08);
}

.form-select { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238896b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}
.form-select option { background: #0e1628; color: var(--text); }

.form-textarea { resize: vertical; min-height: 90px; }

/* submit button states */
.submit-spinner { display: none; }
#form-submit.loading .submit-label { display: none; }
#form-submit.loading .submit-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}
.form-note a { color: var(--blue-lt); }

/* Success view */
.modal__success-view[hidden] { display: none; }
.modal__success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  gap: 1rem;
  animation: fade-in 0.3s ease;
}
.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.success-body { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children within reveal groups */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════
   Logo
   ═══════════════════════════════════════════════════════ */
.hc-logo {
  display: block;
  flex-shrink: 0;
  /* auto width from SVG aspect ratio (1400:360 ≈ 3.89:1) */
  width: auto;
}
/* Slightly narrower in the modal header */
.hc-logo--modal {
  height: 26px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .split-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .scene-layout,
  .built-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .scene-visual { order: -1; }
  .scene-mock { transform: none !important; }
  .built-atmo {
    width: 260px; height: 260px;
  }
  .built-atmo__ring--1 { width: 230px; height: 230px; }
  .built-atmo__ring--2 { width: 175px; height: 175px; }
  .built-atmo__ring--3 { width: 115px; height: 115px; }
  .built-atmo__badge   { width: 76px; height: 76px; }
}

@media (max-width: 768px) {
  :root { --section-y: 4rem; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(11,17,32,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 0.25rem;
  }
  .nav__burger { display: flex; }

  .product-grid { grid-template-columns: 1fr; }
  .value-grid   { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer__top {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer__nav-cols { justify-content: flex-start; gap: 2rem; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .agency-row { gap: 0.85rem; }
  .agency-chip__icon { width: 50px; height: 50px; }

  .built-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1.25rem; }
  .hero__ctas { flex-direction: column; width: fit-content; }
  .btn--xl { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
  .modal { padding: 1.75rem 1.35rem; }
  .quote { padding: 1.75rem; }
  .quote blockquote p { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════════════════
   Scrollbar (webkit)
   ═══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(182,196,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(182,196,255,0.25); }
