/* ============================================
   H2 Brand — Shared Stylesheet
   Matches H2 Classics / H2 Rally investor deck
   Dark navy + bright cyan + Inter sans-serif
   ============================================ */

:root {
  --navy-deep:   #0B1628;   /* deepest bg */
  --navy:        #111C36;   /* primary bg (from deck) */
  --navy-card:   #182545;   /* raised surface */
  --navy-line:   #223357;   /* borders */
  --navy-soft:   #2A3B63;

  --cyan:        #1CA9F5;   /* primary accent */
  --cyan-bright: #34D1F5;   /* glow / hover */
  --cyan-soft:   rgba(28, 169, 245, 0.15);

  --text:        #FFFFFF;
  --text-dim:    #B8C4D9;
  --text-mute:   #7E8CA8;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max: 1240px;
  --radius: 14px;
  --radius-s: 8px;

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --glow-cyan: 0 0 0 1px var(--cyan), 0 0 30px rgba(28, 169, 245, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--text);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-weight: 800; }

p { color: var(--text-dim); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 18px;
}

/* --- Layout --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 110px 0; position: relative; }

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 0;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 22, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--navy-line);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark img { height: 42px; width: auto; }

.primary-nav {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.primary-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
}
.primary-nav a:hover { color: var(--cyan); }
.primary-nav a.cta {
  padding: 10px 20px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.primary-nav a.cta:hover { background: var(--cyan); color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(340px, 85vw);
    background: var(--navy-deep);
    border-left: 1px solid var(--navy-line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 36px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav a { color: #fff; font-size: 16px; }
  .primary-nav a.cta { padding: 12px 22px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--cyan-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(28, 169, 245, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan);
  color: var(--navy);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: var(--navy-line);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cyan);
}
.btn .arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  background: var(--navy-deep);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,22,40,0) 40%, rgba(11,22,40,0.55) 100%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  margin-bottom: 24px;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}
.hero .lede {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
}

.hero-bg-decor {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 50%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 120px; padding-bottom: 60px; min-height: auto; }
}

/* --- Section head --- */
.section-head {
  max-width: 820px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 62ch;
}

/* --- Cards (deck-style dark cards with cyan accents) --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.stat-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .25s ease, transform .25s ease;
}
.stat-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.stat-card .k {
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-card .v {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

/* --- 3-up problem / feature cards (like slide 3) --- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

.trio-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, transform .3s ease;
}
.trio-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.trio-card.highlight {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 10px 40px rgba(28, 169, 245, 0.2);
}
.trio-card .media {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.trio-card .body {
  padding: 22px 22px 26px;
}
.trio-card .label {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.trio-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}
.trio-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* --- Split layout (text + media) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5/4;
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
}
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-body h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  margin-bottom: 20px;
}
.split-body p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
}

/* --- Comparison table (like slide 4 Solution) --- */
.compare {
  margin-top: 50px;
  overflow-x: auto;
}
.compare table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 640px;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--navy-line);
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare th {
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-size: 12px;
  text-transform: uppercase;
}
.compare td { color: var(--text-dim); }
.compare td.row-label {
  color: var(--text-mute);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.compare td.win {
  color: var(--cyan);
  font-weight: 600;
}
.compare tr.highlight-col td:last-child,
.compare tr.highlight-col th:last-child { background: rgba(28, 169, 245, 0.08); }
.compare th:last-child { color: var(--cyan); }

.compare-note {
  text-align: right;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 500;
  margin-top: 20px;
  font-style: italic;
}

/* --- Timeline / Route --- */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 38px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(28,169,245,.15) 100%);
}
.stage {
  position: relative;
  padding-bottom: 38px;
}
.stage::before {
  content: "";
  position: absolute;
  left: -38px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(28, 169, 245, 0.12);
}
.stage:last-child { padding-bottom: 0; }
.stage .flag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.stage h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}
.stage p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 54ch;
}

/* --- Contact block --- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .2s ease;
}
.contact-card:hover { border-color: var(--cyan); }
.contact-card .icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(28, 169, 245, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.contact-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
  display: block;
}
.contact-card .value {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  display: block;
}
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
}

.contact-form {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-s);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 18px;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-msg {
  display: none;
  margin-top: 16px;
  color: var(--cyan);
  font-size: 14px;
}

/* --- Sister card --- */
.sister {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
}
.sister-media {
  background-size: cover;
  background-position: center;
  position: relative;
}
.sister-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,22,40,0) 50%, rgba(24,37,69,0.4) 100%);
}
.sister-body {
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sister-body h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 14px;
}
.sister-body p {
  color: var(--text-dim);
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .sister { grid-template-columns: 1fr; }
  .sister-media { min-height: 220px; }
  .sister-body { padding: 36px 28px; }
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  padding: 56px 0 28px;
  border-top: 1px solid var(--navy-line);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p {
  max-width: 36ch;
  font-size: 14px;
  color: var(--text-mute);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* --- Utility --- */
.text-center { text-align: center; }

/* --- Glow accent line --- */
.accent-line {
  width: 48px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* --- Tagline strip --- */
.tagline-strip {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
}
.tagline-strip p {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tagline-strip p em {
  font-style: normal;
  color: var(--cyan);
}

/* --- Mobile polish --- */
@media (max-width: 720px) {
  /* Keep logos readable on small screens */
  .brand-mark img { height: 34px; }
  .nav-inner { padding: 0 20px; gap: 12px; }

  /* Hero: stack cleanly */
  .hero { padding-top: 110px; padding-bottom: 48px; }
  .hero-grid { padding: 0 20px; gap: 32px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero .lede { font-size: 16px; }
  .hero-cta .btn { flex: 1; justify-content: center; min-width: 0; }

  /* Section heads */
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(26px, 7.5vw, 36px); }
  .section-head p { font-size: 15px; }

  /* Trio cards */
  .trio { gap: 16px; }
  .trio-card h3 { font-size: 17px; }

  /* Stats row — 2 columns on small screens instead of auto-fit 200px */
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 20px 18px; }
  .stat-card .k { font-size: 22px; }

  /* Comparison table: allow horizontal scroll */
  .compare { -webkit-overflow-scrolling: touch; }
  .compare table { min-width: 560px; font-size: 13px; }
  .compare th, .compare td { padding: 12px 14px; }

  /* Timeline indentation */
  .timeline { padding-left: 28px; }
  .stage::before { left: -28px; width: 12px; height: 12px; }
  .stage h4 { font-size: 18px; }

  /* Contact cards */
  .contact-card { padding: 16px 18px; gap: 14px; }
  .contact-card .value { font-size: 15px; word-break: break-word; }
  .contact-form { padding: 22px; }

  /* Tagline */
  .tagline-strip { padding: 36px 0 !important; }
  .tagline-strip p { font-size: clamp(18px, 5vw, 24px); }

  /* Sister card */
  .sister-body { padding: 30px 22px; }
}

/* Accessible focus styles (good for keyboard users and Lighthouse a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Touch target minimum — iOS HIG & WCAG */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .primary-nav a { padding: 10px 0; }
  .contact-card { min-height: 64px; }
}
