/* Horizon Rush — marketing & support site
   M4 Infotech. Shared shell for every page. */

:root {
  --bg:        #070b14;
  --bg-raised: #0d1422;
  --bg-sunken: #050810;
  --line:      #1b2537;
  --line-soft: #141c2b;
  --text:      #e8eef8;
  --text-mid:  #9fb0c8;
  --text-dim:  #6b7d96;
  --accent:    #35e0c2;
  --accent-dk: #1fae95;
  --gold:      #ffd54a;
  --violet:    #8a2be2;
  --red:       #d12b2b;
  --maxw:      1180px;
  --radius:    14px;
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 11, 20, .93); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span i { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-mid); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04231e; box-shadow: 0 8px 26px rgba(53, 224, 194, .22); }
.btn-primary:hover { background: #4bf0d3; box-shadow: 0 12px 32px rgba(53, 224, 194, .3); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #2a3854; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.menu-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav-links .btn { margin-top: 14px; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Keeps the headline legible without burying the scene behind it: heavy on
   the text column, almost clear over the right-hand third where the circuit
   actually reads. */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(7,11,20,.92) 0%, rgba(7,11,20,.80) 30%, rgba(7,11,20,.34) 56%, rgba(7,11,20,.06) 78%, rgba(7,11,20,.28) 100%),
    linear-gradient(to bottom, rgba(7,11,20,.62) 0%, transparent 20%, transparent 70%, var(--bg) 99%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0 100px; max-width: 660px; }

/* Narrow screens put the copy directly over the brightest part of the scene,
   so the vertical wash has to carry more weight there than on desktop. */
@media (max-width: 900px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7,11,20,.78) 0%, rgba(7,11,20,.62) 34%, rgba(7,11,20,.50) 62%, rgba(7,11,20,.86) 88%, var(--bg) 100%);
  }
  .hero-inner { padding: 84px 0 76px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(53, 224, 194, .09); border: 1px solid rgba(53, 224, 194, .25);
  color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(42px, 7.2vw, 78px); margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(96deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(16.5px, 2.1vw, 19.5px); color: var(--text-mid); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.store-note { font-size: 13px; color: var(--text-dim); margin-top: 20px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start; gap: 18px 40px;
  margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line);
}
@media (max-width: 620px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; } }
.hero-stats .stat .n { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; }
.hero-stats .stat .n em { font-style: normal; color: var(--accent); }
.hero-stats .stat .l { font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .09em; margin-top: 8px; }

.webgl-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 74% 26%, rgba(255, 213, 74, .2), transparent 62%),
    radial-gradient(900px 600px at 22% 78%, rgba(53, 224, 194, .16), transparent 60%),
    linear-gradient(180deg, #0d1830 0%, #070b14 68%);
}

/* --------------------------------------------------------------- section */
.section { padding: 104px 0; position: relative; }
.section-sunken { background: var(--bg-sunken); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
@media (max-width: 700px) {
  .section { padding: 66px 0; }
  .section-head { margin-bottom: 34px; }
  .cta-band { padding: 44px 24px; }
  .site-footer { padding: 52px 0 28px; }
}
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4.3vw, 44px); margin-bottom: 18px; }
.section-head p { color: var(--text-mid); font-size: 17px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.card:hover { border-color: #2a3854; transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(53, 224, 194, .1); border: 1px solid rgba(53, 224, 194, .2);
  font-size: 21px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 11px; }
.card p { color: var(--text-mid); font-size: 15px; }

/* garage strip */
.cars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1000px) { .cars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .cars { grid-template-columns: repeat(2, 1fr); } }
.car {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 16px; text-align: center; transition: transform .2s ease, border-color .2s ease;
}
.car:hover { transform: translateY(-4px); border-color: #2a3854; }
.car .chip { width: 100%; height: 5px; border-radius: 3px; margin-bottom: 16px; }
.car h4 { font-size: 15.5px; margin-bottom: 5px; }
.car .role { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; min-height: 36px; }
.car .price { margin-top: 12px; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--gold); }
.car .price.free { color: var(--accent); }

/* stage ladder */
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .ladder { grid-template-columns: repeat(2, 1fr); } }
.rung { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 11px; padding: 17px; }
.rung .tier { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.rung h4 { font-size: 15px; margin: 8px 0 6px; }
.rung .meta { font-size: 12.5px; color: var(--text-dim); }

/* ------------------------------------------------------------------ CTA */
.cta-band {
  border: 1px solid var(--line); border-radius: 20px; padding: 60px 44px; text-align: center;
  background:
    radial-gradient(760px 340px at 50% -20%, rgba(53, 224, 194, .13), transparent 65%),
    var(--bg-raised);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 15px; }
.cta-band p { color: var(--text-mid); max-width: 520px; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-sunken); border-top: 1px solid var(--line); padding: 70px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 50px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--text-dim); font-size: 14px; margin-top: 15px; max-width: 300px; }
.foot-col h5 { font-family: var(--font-head); font-size: 12.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--text); margin-bottom: 17px; }
.foot-col a, .foot-col span { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 11px; }
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-bottom { border-top: 1px solid var(--line-soft); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.foot-bottom p { color: var(--text-dim); font-size: 13.5px; }
.foot-bottom .legal-links { display: flex; gap: 22px; }
.foot-bottom .legal-links a { color: var(--text-dim); font-size: 13.5px; }

/* -------------------------------------------------------------- article */
.page-head { padding: 74px 0 46px; border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 14px; }
.page-head .sub { color: var(--text-mid); font-size: 16.5px; }
.page-head .updated { color: var(--text-dim); font-size: 13.5px; margin-top: 16px; }

.doc { display: grid; grid-template-columns: 232px 1fr; gap: 56px; padding: 60px 0 100px; align-items: start; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 30px; } .toc { position: static !important; } }
.toc { position: sticky; top: 92px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc h6 { font-family: var(--font-head); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.toc a { display: block; color: var(--text-mid); font-size: 14px; padding: 6px 0; }
.toc a:hover { color: var(--accent); text-decoration: none; }

.prose h2 { font-size: 25px; margin: 46px 0 16px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 30px 0 11px; }
.prose p, .prose li { color: var(--text-mid); font-size: 15.5px; }
.prose p { margin-bottom: 15px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-family: var(--font-head); font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; background: var(--bg-raised); white-space: nowrap; }
.prose td { color: var(--text-mid); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--bg-raised); border-radius: 10px; padding: 20px 24px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

/* contact cards */
.contact-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.contact-card p { color: var(--text-mid); font-size: 14.5px; margin-bottom: 16px; }
.contact-card .mail { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--accent); word-break: break-all; }
.sla { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--text-dim); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 11px; background: var(--bg-raised); margin-bottom: 11px; overflow: hidden; }
.faq summary { padding: 19px 24px; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 21px; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 19px 24px 23px; }
.faq .answer p { color: var(--text-mid); font-size: 15px; margin-bottom: 12px; }
.faq .answer p:last-child { margin-bottom: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #04231e; padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
