:root {
  --bg-deep: #0a0d14;
  --bg-surface: #111622;
  --bg-card: #161c2a;
  --bg-card-hover: #1c2436;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --orange: #f97316;
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.15);
  --emerald: #10b981;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-header-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  background: var(--amber);
  color: #000;
}

/* Wrapper */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Badges & Accents */
.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid;
}

.badge-amber {
  background: var(--amber-glow);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-cyan {
  background: var(--cyan-glow);
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.12), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media(max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 20px 0 16px;
}

.hero h1 span.gradient {
  background: linear-gradient(135deg, #f97316 20%, #facc15 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: #f97316;
  color: #ffffff;
  border: 1px solid #ea580c;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Telemetry Card on Hero */
.telemetry-preview {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.telemetry-header {
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.telemetry-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.telemetry-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.telemetry-stat:last-child {
  border-bottom: none;
}

.telemetry-stat .k {
  color: var(--text-muted);
}

.telemetry-stat .v {
  color: var(--cyan);
  font-weight: 600;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 12px 0;
  color: var(--text-main);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Grid Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--amber);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Verification Highlight Box */
.compliance-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 40px;
}

.compliance-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--amber);
  margin-bottom: 12px;
}

.compliance-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.compliance-box ul {
  margin-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.compliance-box li strong {
  color: var(--text-main);
}

/* Policy / Document Pages */
.doc-header {
  padding: 140px 0 40px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08), transparent 60%);
}

.doc-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 14px 0 8px;
}

.doc-header .doc-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.doc-body {
  padding: 56px 0 80px;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 28px;
}

@media(max-width: 640px) {
  .doc-card {
    padding: 24px 18px;
  }
}

.doc-card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.doc-card h2 .sec-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  background: var(--amber-glow);
  padding: 2px 8px;
  border-radius: 4px;
}

.doc-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-card ul {
  margin: 14px 0 16px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.doc-card li strong {
  color: var(--text-main);
}

.doc-card code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
  border: 1px solid var(--line);
}

.notice-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
}

.notice-box h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.notice-box p {
  color: var(--text-main) !important;
  font-size: 0.9rem !important;
  line-height: 1.6;
  margin: 0 !important;
}

.notice-box a {
  color: var(--amber);
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text-main);
}
