/* ============================================================
   HorizonHub — style.css
   Dark theme, deep teal accent (#0F766E / #115E59 / #14B8A6)
   near-black canvas #0D1214, light text #E8EFF1
   ============================================================ */

:root {
  --bg: #0D1214;
  --bg-1: #121B1E;
  --bg-2: #172326;
  --bg-3: #1D2E31;
  --ink: #E8EFF1;
  --ink-2: #B9C9CC;
  --ink-3: #8FA6A9;
  --teal: #0F766E;
  --teal-deep: #115E59;
  --teal-bright: #14B8A6;
  --teal-ink: #06211F;
  --line: #203235;
  --line-2: #2B4044;
  --radius: 18px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  line-height: 1.6;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background-color: var(--teal-bright);
  color: var(--teal-ink);
}
.btn-primary:hover { background-color: #2CC9B8; }

.btn-ghost {
  background-color: transparent;
  color: var(--teal-bright);
  border-color: var(--teal);
}
.btn-ghost:hover { background-color: var(--teal-deep); color: var(--ink); }

/* ---------- Dome bar navigation ---------- */
.dome-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--bg-1);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 0 0;
}
.dome-nav::before {
  content: "";
  display: block;
  height: 26px;
  background-color: var(--bg-1);
  border-radius: 26px 26px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  margin: 0 auto;
  max-width: 1240px;
  position: relative;
  top: 0;
}
.dome-nav::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--teal-bright) 0%, transparent 68%);
  pointer-events: none;
}
.dome-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 14px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background-color: var(--teal);
  border: 3px solid var(--teal-bright);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background-color: var(--teal-ink);
}
.brand-name { color: var(--ink); }

.dome-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.dome-links a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color 0.18s ease;
}
.dome-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background-color: var(--teal-bright);
  transition: width 0.22s ease;
}
.dome-links a:hover { color: var(--ink); }
.dome-links a:hover::after { width: 100%; }

.dome-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: hub radiation ---------- */
.hero-section {
  padding: 72px 0 84px;
  background-color: var(--bg);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero-kicker {
  display: inline-block;
  color: var(--teal-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
  font-size: 14px;
}
.proof-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--teal-bright);
}

.hero-visual { display: flex; justify-content: center; align-items: center; min-height: 480px; }
.hub { position: relative; width: 480px; height: 480px; }
.hub-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 92px; height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background-color: var(--teal);
  box-shadow: 0 0 0 14px var(--teal-deep), 0 0 0 28px var(--bg-2), 0 0 0 29px var(--line-2);
  z-index: 2;
}
.hub-core-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 2px solid var(--teal-bright);
  animation: hubPulse 3.4s ease-in-out infinite;
}
@keyframes hubPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.spoke {
  position: absolute;
  top: 50%; left: 50%;
  height: 2px;
  width: var(--len);
  background-color: var(--line-2);
  transform-origin: left center;
  transform: rotate(var(--a));
}
.spoke::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--teal);
}
.satellite {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background-color: var(--teal-bright);
  box-shadow: 0 0 0 5px var(--teal-deep);
  transform: rotate(var(--a)) translateX(var(--len));
}
.satellite-sm {
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  background-color: var(--teal);
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 5px var(--line-2);
}

/* ---------- Statement section ---------- */
.statement-section {
  padding: 56px 0 64px;
  background-color: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement-lead {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 980px;
  margin-bottom: 26px;
}
.statement-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.meta-label { color: var(--ink-3); font-size: 14px; }
.meta-divider { width: 6px; height: 6px; border-radius: 50%; background-color: var(--teal-bright); }

/* ---------- Shared section heading ---------- */
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-index {
  color: var(--teal-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-sub { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 620px; }

/* ---------- Principles (numbered list) ---------- */
.principles-section { padding: 88px 0; background-color: var(--bg); }
.principles-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.principle {
  display: flex;
  gap: 22px;
  padding: 34px 30px;
  border-bottom: 1px solid var(--line);
}
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:nth-child(1), .principle:nth-child(2) { border-top: 1px solid var(--line); }
.principle-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-bright);
  letter-spacing: 0.1em;
  flex: none;
  padding-top: 4px;
}
.principle-body h3 { font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.principle-body p { color: var(--ink-2); line-height: 1.65; }

/* ---------- Disciplines (big numeral columns) ---------- */
.disciplines-section { padding: 88px 0; background-color: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.discipline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.discipline {
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 34px;
  position: relative;
  overflow: hidden;
}
.discipline::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background-color: var(--teal);
}
.discipline-num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: var(--teal-bright);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.discipline h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.discipline p { color: var(--ink-2); line-height: 1.65; font-size: 15.5px; }

/* ---------- Models (comparison table) ---------- */
.models-section { padding: 88px 0; background-color: var(--bg); }
.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div {
  padding: 20px 22px;
  color: var(--ink-2);
  font-size: 15px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--line);
}
.compare-row > div:first-child { border-left: 0; }
.compare-head { background-color: var(--teal-deep); }
.compare-head > div {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.compare-label { color: var(--ink) !important; font-weight: 600; }

/* ---------- Insights (horizontal scroll row) ---------- */
.insights-section { padding: 88px 0 96px; background-color: var(--bg-1); border-top: 1px solid var(--line); }
.scroll-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 28px 26px;
  max-width: 1280px;
  margin: 0 auto;
  scroll-snap-type: x mandatory;
}
.scroll-track::-webkit-scrollbar { height: 8px; }
.scroll-track::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 999px; }
.scroll-track::-webkit-scrollbar-thumb { background: var(--teal-deep); border-radius: 999px; }
.note-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.note-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background-color: var(--teal-deep);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.note-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.note-card p { color: var(--ink-2); line-height: 1.6; font-size: 15px; }

/* ---------- Voices (testimonial slider) ---------- */
.voices-section { padding: 88px 0; background-color: var(--bg); }
.voice-slider { max-width: 860px; margin: 0 auto; position: relative; }
.voice-track {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
}
.voice-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 40px;
}
.voice-card blockquote {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 26px;
}
.voice-card figcaption { display: flex; flex-direction: column; gap: 3px; }
.voice-card figcaption strong { color: var(--teal-bright); font-size: 15px; }
.voice-card figcaption span { color: var(--ink-3); font-size: 14px; }
.voice-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.voice-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background-color: var(--bg-1);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.voice-btn:hover { background-color: var(--teal-deep); border-color: var(--teal-bright); }
.voice-dots { display: flex; gap: 8px; }
.voice-dots span { width: 8px; height: 8px; border-radius: 50%; background-color: var(--line-2); transition: background-color 0.18s ease; }
.voice-dots span.active { background-color: var(--teal-bright); }

/* ---------- Stats ---------- */
.stats-section { padding: 72px 0; background-color: var(--teal-deep); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label { color: #CFE7E3; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-section { padding: 88px 0; background-color: var(--bg-1); border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--bg-2);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--teal-bright);
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--ink-2); line-height: 1.65; }

/* ---------- Contact ---------- */
.contact-section { padding: 88px 0; background-color: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-methods { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-methods li { display: flex; flex-direction: column; gap: 2px; }
.contact-key { color: var(--teal-bright); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-methods a { color: var(--ink); font-size: 17px; }
.contact-methods a:hover { color: var(--teal-bright); }
.contact-methods span:last-child { color: var(--ink-2); font-size: 16px; }

.contact-form {
  background-color: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background-color: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.18s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--ink-3); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--teal-bright); min-height: 1em; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--bg-1); border-top: 1px solid var(--line); }
.footer-news {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-news-copy h2 { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.footer-news-copy p { color: var(--ink-2); max-width: 460px; }
.news-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.news-form input {
  background-color: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--ink);
  font-size: 15px;
  min-width: 240px;
  font-family: inherit;
}
.news-form input:focus { outline: none; border-color: var(--teal-bright); }
.news-form .form-status { flex-basis: 100%; margin-top: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-blurb { color: var(--ink-3); font-size: 14.5px; max-width: 260px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 6px; }
.footer-col a, .footer-col span { color: var(--ink-2); font-size: 15px; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--teal-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { color: var(--ink-3); font-size: 14px; }
.footer-note { color: var(--teal-bright) !important; letter-spacing: 0.05em; }

/* ---------- Scroll reveal ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { min-height: 360px; }
  .hub { transform: scale(0.82); }
  .discipline-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .principles-list { grid-template-columns: 1fr; }
  .principle:nth-child(odd) { border-right: 0; }
}

@media (max-width: 760px) {
  .dome-nav::before { height: 18px; border-radius: 18px 18px 0 0; }
  .dome-nav::after { width: 200px; }
  .dome-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--bg-1);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 20px;
  }
  .dome-links.open { display: flex; }
  .dome-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .dome-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .dome-actions .btn { display: none; }
  .hub { transform: scale(0.64); }
  .hero-visual { min-height: 300px; }
  .discipline-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { border-left: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .compare-head { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .voice-card { padding: 30px 24px; }
  .voice-card blockquote { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hub-core-ring { animation: none; }
}
