/* ═══════════════════════════════════════════════════════════
   INTERCONNECT — Shared Stylesheet
   Used by: index.html, docs.html
   ═══════════════════════════════════════════════════════════ */

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

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --ink:        #0C0E14;
  --ink-mid:    #3A3D4A;
  --ink-light:  #5A5E6E;
  --bg:         #FAFAF7;
  --bg-warm:    #F2F1EB;
  --bg-dark:    #0C0E14;
  --bg-dark-2:  #141820;
  --orange:     #FF4500;
  --orange-lt:  #FF6B35;
  --yellow:     #FFE000;
  --yellow-dk:  #1A1600;
  --blue:       #0047FF;
  --blue-lt:    #E8EEFF;
  --green:      #00C472;
  --green-lt:   #E0FAF0;
  --rule:       rgba(12,14,20,0.10);
  --rule-dark:  rgba(255,255,255,0.09);
  --mono:       'Space Mono', monospace;
  --sans:       'Space Grotesk', sans-serif;
  --body:       'Inclusive Sans', sans-serif;
}

/* ─── BASE ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(250,250,247,0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--orange); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover          { color: var(--ink); }
.nav-links a.active,
.nav-links a.current        { color: var(--orange); }

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange); }

/* ─── HAMBURGER ──────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 2px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(250,250,247,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  padding: 24px 24px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.nav-mobile-menu.open                  { display: flex; }
.nav-mobile-menu li                    { list-style: none; border-bottom: 1px solid var(--rule); }
.nav-mobile-menu li:last-child         { border-bottom: none; }
.nav-mobile-menu a {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding: 14px 0;
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--orange); }

/* ─── DIVIDER ────────────────────────────────────────────── */
hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 48px;
}

/* ─── SECTION FRAME ──────────────────────────────────────── */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 48px;
}

.section-nr {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-dk);
  background: var(--yellow);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; font-weight: 300; }

.section-lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 700px;
  margin-bottom: 72px;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--orange);
  padding: 16px 36px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--orange); border-color: var(--orange); }

/* ─── CTA — SHARED ELEMENTS ──────────────────────────────── */
.cta-text h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}
.cta-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 480px;
}

.cta-form { display: flex; flex-direction: column; gap: 14px; }

.cta-form input,
.cta-form textarea,
.cta-field {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-warm);
  border: 1.5px solid var(--rule);
  border-radius: 2px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}
.cta-form input:focus,
.cta-form textarea:focus,
.cta-field:focus { border-color: var(--orange); }

.cta-form input::placeholder,
.cta-form textarea::placeholder,
.cta-field::placeholder { color: var(--ink-light); }

.cta-form button,
.cta-submit {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--orange);
  border: none;
  border-radius: 2px;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.cta-form button:hover,
.cta-submit:hover { background: var(--ink); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  padding: 72px 48px 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 16px;
}
.footer-brand span { color: var(--orange); }

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(250,250,247,0.55);
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.footer-col ul                   { list-style: none; }
.footer-col ul li                { margin-bottom: 12px; }
.footer-col ul li a              { font-size: 15px; color: rgba(250,250,247,0.65); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover        { color: var(--bg); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(250,250,247,0.4);
}
.footer-bottom .standards {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(250,250,247,0.4);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom .standards span { color: var(--orange); }

/* ─── RESPONSIVE — SHARED ────────────────────────────────── */
@media (max-width: 960px) {
  nav                        { padding: 0 24px; }
  .nav-links                 { display: none; }
  .nav-hamburger             { display: flex; }
  .nav-cta                   { display: none; }
  hr.rule                    { margin: 0 24px; }
  .section                   { padding: 80px 24px; }
  .footer-inner              { grid-template-columns: 1fr; gap: 40px; padding-bottom: 32px; }
  .footer-bottom             { flex-direction: column; gap: 12px; }
  footer                     { padding: 60px 24px 36px; }
}

@media (max-width: 600px) {
  .section                   { padding: 64px 20px; }
  .section-title             { font-size: clamp(28px, 8vw, 52px); }
  .section-lead              { font-size: 17px; }
}
