/* Sovereign Autonomous Systems: launch page styles */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/bebas-neue.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-200-600.woff") format("woff");
  font-weight: 200 600;
  font-display: swap;
}

/* ---------- Brand settings ---------- */
:root {
  color-scheme: light;
  --ground: #F6F6F5;      /* page background */
  --surface: #E6E6E6;     /* header and contact background */
  --dark: #424242;        /* brand grey: hero, footer, headings */
  --ink: #26282B;         /* body text */
  --ink-2: #5A5C60;       /* secondary text */
  --line: #CCCDCF;        /* borders */
  --accent: #F7941E;      /* brand orange */
  --accent-hover: #E3851A;

  --display: "Bebas Neue", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --subhead: "Helmet", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bar: 76px;           /* height of header and footer */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 200 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
p { margin: 0; }

h1, h2 {
  margin: 0;
  color: var(--dark);
  font-family: var(--display);
  font-weight: 700;
  font-synthesis: weight;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 120px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(230, 230, 230, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; min-height: calc(var(--bar) - 1px); } /* minus the 1px bottom border */
.brand { display: flex; align-items: center; text-decoration: none; }
.site-header .logo { height: 55px; width: auto; }
@media (max-width: 820px) { .site-header .logo { height: 46px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding-block: clamp(72px, 12vw, 150px) clamp(56px, 9vw, 110px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.85; max-width: 22ch; }
.hero p { margin-top: 20px; max-width: 52ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, 0.86); }

.hero-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; }
.path-conventional { stroke: #fff; stroke-opacity: 0.22; stroke-width: 1.5; }
.path-sovereign { stroke: var(--accent); stroke-opacity: 0.7; stroke-width: 2; stroke-dasharray: 9 9; stroke-linecap: round; }
@media (max-width: 700px) { .hero-path { opacity: 0.35; } }

/* ---------- Contact ---------- */
.contact { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  color: var(--dark);
  font: 700 0.82rem/1 var(--subhead);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag::before { content: ""; width: 28px; height: 3px; background: var(--accent); }
.lede { font-size: 1.15rem; color: var(--ink-2); }

.mail { display: grid; gap: 16px; justify-items: start; max-width: 760px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  border-radius: 4px;
  font: 600 1rem var(--body);
  padding: 13px 22px;
  text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.mail-note { color: var(--ink-2); font-size: 0.95rem; }
.link-btn {
  background: none;
  border: 0;
  padding: 0 0 0 6px;
  color: var(--ink-2);
  font: 500 0.85rem var(--body);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #D6D6D6; font-size: 0.95rem; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--bar); }
footer p { white-space: nowrap; }
footer .logo { height: 55px; width: auto; }
@media (max-width: 820px) { footer .logo { height: 46px; } }
@media (max-width: 420px) { footer { font-size: 0.78rem; } footer .logo { height: 40px; } }

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; line-height: 1.6; }
  section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }
  .lede { font-size: 1.02rem; }
}
