/* Guardian One OS — landing page stylesheet
   Pure CSS, system fonts only. No external resources (strict CSP).
   Design system carried over from the JTMDAI holding site. */

:root {
  --bg: #0a0c12;
  --bg-2: #0d1018;
  --ink: #e8edf6;
  --muted: #9aa6bd;
  --faint: #7a8499;
  --line: #1d2434;
  --accent: #7aa2ff;
  --accent-soft: rgba(122, 162, 255, 0.12);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

/* body uses background-color UNDER a background-image gradient — NOT a
   `background:` shorthand, which would leave bg-color transparent and fail
   contrast. Keep these two declarations separate. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 50% -8%, #131826 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: var(--accent); }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Top navigation ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
}
.topnav-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand .mark-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 26px -18px rgba(0,0,0,0.9);
}
.brand .mark-sm svg { display: block; }
.brand .wordmark-sm {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.topnav nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.topnav nav a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.topnav nav a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
}
.topnav nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout containers ---------- */
main {
  flex: 1 0 auto;
  width: 100%;
}
.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
}
.hero .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 50px -28px rgba(0,0,0,0.9);
}
.hero .mark svg { display: block; }

.wordmark {
  margin: 0 0 6px;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.subbrand {
  margin: 0 0 26px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
}
.tagline {
  margin: 0 auto 28px;
  max-width: 52ch;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(255,255,255,0.015);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
a.btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #ffffff;
  transform: translateY(-1px);
}
a.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a.btn.primary {
  border-color: var(--accent);
  background: var(--accent-soft);
}
a.btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.section.no-rule {
  border-top: none;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.section h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.section p {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 68ch;
}
.section p:last-child { margin-bottom: 0; }
.lead {
  font-size: 1.06rem;
  color: var(--ink);
}

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Principles strip ---------- */
.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.principles li {
  list-style: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
  background: rgba(255,255,255,0.015);
}
ul.principles { margin: 8px 0 0; padding: 0; }

/* ---------- Status note ---------- */
.status-note {
  margin: 6px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.status-note .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--accent-soft);
}
.status-note .badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.status-note p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 8px 0 0;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(122,162,255,0.08) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  font-weight: 700;
}
.cta-band p {
  margin: 0 auto 22px;
  max-width: 52ch;
  color: var(--muted);
}
.cta-band .links { margin-top: 4px; }

/* ---------- Footer ---------- */
footer {
  flex-shrink: 0;
  margin-top: 56px;
  padding: 28px 24px 36px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.disclaimer {
  margin: 0 auto 6px;
  max-width: 64ch;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--faint);
}
.copyright {
  margin: 0;
  font-size: 0.74rem;
  color: var(--faint);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  a.btn:hover { transform: none; }
}
