/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --ink: #0b1220;        /* primary dark background */
  --ink-2: #141f2e;      /* secondary panel on dark */
  --steel: #48566b;      /* borders / muted text on dark */
  --steel-soft: #8a97a8; /* softer muted text on dark */
  --paper: #f4f5f7;      /* light section background */
  --paper-2: #ffffff;
  --text: #10161f;       /* body text on light */
  --ember: #e8672b;      /* primary brand accent */
  --ember-dark: #c4501c;
  --gold: #c89b3c;       /* secondary accent, used sparingly */

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 6px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ember);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { line-height: 1.65; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--ember);
  color: #fff;
}
.btn--primary:hover { background: var(--ember-dark); }
.btn--ghost {
  background: transparent;
  border-color: var(--steel);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--paper); }
.btn--ghost-dark {
  background: transparent;
  border-color: #c7ccd3;
  color: var(--text);
}
.btn--ghost-dark:hover { border-color: var(--text); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand img { filter: brightness(0) invert(1); opacity: 0.95; }
.primary-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.primary-nav a {
  text-decoration: none;
  color: var(--steel-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--ember);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.is-open { max-height: 240px; }
  .primary-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 88px 24px 96px;
}
.hero p.lede {
  color: var(--steel-soft);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__mark { justify-self: center; }
.hero__mark svg { width: 100%; height: auto; max-width: 380px; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 20px 64px; }
  .hero__mark { order: -1; max-width: 220px; margin: 0 auto; }
}

/* signature sunmark line-draw animation */
.sunmark-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: draw 1.1s cubic-bezier(.4,0,.2,1) forwards;
}
.sunmark-path--white { stroke: #dfe4ea; opacity: 0.85; }
.sunmark-path--ember { stroke: var(--ember); opacity: 0.9; }
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sunmark-path { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   Feature strip
   ============================================================ */
.features {
  background: var(--paper);
  padding: 72px 24px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.feature__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ember-dark);
  margin-bottom: 10px;
  display: block;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: #4b5563; margin: 0; }

@media (max-width: 720px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* curved divider — reuses the brand's hyperbola motif instead of a plain rule */
.curve-divider {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--paper);
}
.curve-divider--flip { transform: rotate(180deg); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--ink-2);
  color: var(--paper);
  padding: 64px 24px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--steel-soft); margin-bottom: 28px; }

/* ============================================================
   Generic page hero (heliosCONNECT / Contact)
   ============================================================ */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 24px 64px;
}
.page-hero p.lede {
  color: var(--steel-soft);
  max-width: 60ch;
}

.section {
  padding: 64px 24px;
}

/* steps list (heliosCONNECT) — numbering justified: real sequential procedure */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 620px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #e2e5ea;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-weight: 500;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ember);
  color: var(--ember-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.download-card {
  background: var(--paper-2);
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  padding: 32px;
  margin: 32px 0 40px;
}
.note {
  font-size: 0.92rem;
  color: #4b5563;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5563;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #ccd1d9;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--ember);
}
.form-status {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #eaf6ec; color: #1e6b32; }
.form-status--err { background: #fbeae7; color: #a3341f; }
/* honeypot field, hidden from real people */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--steel-soft);
  padding: 40px 24px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper);
}
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social img { opacity: 0.75; transition: opacity 0.15s ease; }
.site-footer__social a:hover img { opacity: 1; }
.site-footer__legal {
  font-size: 0.78rem;
  margin: 0;
  width: 100%;
  order: 3;
  color: var(--steel);
}
