/* ── COSMOS COMPUTING — Warm Editorial · Overpass ──────────────── */

@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,300;0,400;0,600;0,700;0,900;1,300&family=Overpass+Mono:wght@400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Warm palette */
  --bg:          #faf8f5;
  --surface:     #f0ebe4;
  --surface-2:   #e8e0d6;
  --white:       #ffffff;

  /* Copper */
  --copper:      #c08252;
  --copper-dk:   #8a5530;
  --copper-lt:   rgba(192,130,82,0.10);
  --copper-bd:   rgba(192,130,82,0.28);

  /* Text */
  --ink:         #1c1209;
  --ink-2:       #4a3d34;
  --ink-3:       rgba(64,54,44,0.52);

  /* Borders */
  --border:      rgba(64,54,44,0.10);
  --border-hi:   rgba(64,54,44,0.18);

  /* Semantic */
  --success:     #166534;
  --success-bg:  rgba(22,101,52,0.08);

  /* Typography */
  --font:        'Overpass', system-ui, sans-serif;
  --mono:        'Overpass Mono', 'Courier New', monospace;

  /* Geometry */
  --r-xs:   3px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;

  --shadow-sm: 0 2px 8px rgba(64,54,44,0.06);
  --shadow-md: 0 6px 24px rgba(64,54,44,0.09);
  --t: 0.22s cubic-bezier(0.2,0.8,0.2,1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; background:var(--bg); }
body {
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
ul { list-style:none; }
a  { color:inherit; text-decoration:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
img { display:block; max-width:100%; }

/* ── UTILITIES ──────────────────────────────────────────────── */
.bg-base    { background:var(--bg); }
.bg-surface { background:var(--surface); }
.text-copper { color:var(--copper-dk); }
.text-success { color:var(--success); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 72px 0; }

/* ── SECTION TYPOGRAPHY ─────────────────────────────────────── */
/* 0.8125rem × 1.5 = 1.22rem */
.section-label {
  font-family: var(--mono);
  font-size: 1.22rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-dk);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--copper);
  flex-shrink: 0;
}

/* HEADING — exempt from 1.5× */
.section-title {
  font-size: clamp(1.875rem, 3.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

/* 1.0625rem × 1.5 = 1.6rem */
.section-desc {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 44px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
/* 0.9375rem × 1.5 = 1.4rem */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: var(--t);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--copper-dk);
  color: #fff;
  border: 2px solid var(--copper-dk);
}
.btn-primary:hover {
  background: var(--copper);
  border-color: var(--copper);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(138,85,48,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border-hi);
}
.btn-outline:hover {
  border-color: var(--copper-bd);
  color: var(--copper-dk);
  background: var(--copper-lt);
}

/* 1rem × 1.5 = 1.5rem */
.btn-lg  { padding: 14px 32px; font-size: 1.5rem; }
/* 0.875rem × 1.5 = 1.3rem */
.btn-sm  { padding: 10px 20px; font-size: 1.3rem; }
.btn-block { width: 100%; }

/* ── HEADER ─────────────────────────────────────────────────── */
#header {
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  background: rgba(250,248,245,0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--t);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.brand { display:flex; align-items:center; }

.logo-img {
  height: 202px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* 0.9375rem × 1.5 = 1.4rem */
.logo-fallback {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  display: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
/* 0.9375rem × 1.5 = 1.4rem */
.nav-links a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--ink); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: var(--t);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.hero-content { max-width: 920px; }

/* 0.8125rem × 1.5 = 1.22rem */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 1.22rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-dk);
  background: var(--copper-lt);
  border: 1px solid var(--copper-bd);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}

/* HEADING — exempt from 1.5× */
.hero-title {
  font-size: clamp(3.25rem, 6.5vw, 5.25rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

/* clamp(1rem,1.6vw,1.175rem) × 1.5 = clamp(1.5rem,2.4vw,1.76rem) */
.hero-sub {
  font-size: clamp(1.5rem, 2.4vw, 1.76rem);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats row */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  border-top: 1px solid var(--border-hi);
  padding-top: 28px;
  max-width: 920px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-stat-sep {
  width: 1px;
  height: 44px;
  background: var(--border-hi);
  flex-shrink: 0;
  align-self: center;
}

/* 1.625rem × 1.5 = 2.44rem */
.hstat-val {
  display: block;
  font-family: var(--mono);
  font-size: 2.44rem;
  font-weight: 600;
  color: var(--copper-dk);
  line-height: 1;
}

/* 0.8125rem × 1.5 = 1.22rem */
.hstat-lbl {
  font-size: 1.22rem;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── PROBLEM ─────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.problem-card {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t), box-shadow var(--t);
}
.problem-card:hover {
  border-color: var(--copper-bd);
  box-shadow: var(--shadow-md);
}

/* Ghost number watermark — decorative, not body text */
.prob-bg-num {
  position: absolute;
  top: -8px;
  right: 16px;
  font-family: var(--mono);
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--copper);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

/* 1.0625rem × 1.5 = 1.6rem */
.problem-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
  position: relative;
}
.problem-card h3::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--copper);
  margin-top: 8px;
}

/* 0.9375rem × 1.5 = 1.4rem */
.problem-card p {
  font-size: 1.4rem;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 300;
  position: relative;
}

/* ── PILLARS ─────────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.pillar-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--t), transform var(--t);
}
.pillar-card:hover {
  border-color: var(--copper-bd);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--copper-lt);
  border: 1px solid var(--copper-bd);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper-dk);
}
.pillar-icon svg { width: 24px; height: 24px; }

/* 1.0625rem × 1.5 = 1.6rem */
.pillar-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* 0.9375rem × 1.5 = 1.4rem */
.pillar-card p {
  font-size: 1.4rem;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 300;
}

/* ── INTELLIGENCE TIERS ──────────────────────────────────────── */
.tier-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.tier {
  flex: 1;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t);
}
.tier:hover { border-color: var(--copper-bd); }

.tier-connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
  margin-top: 58px;
  color: var(--copper);
  opacity: 0.45;
}
.tier-connector svg { width: 40px; height: 16px; }

/* 2rem × 1.5 = 3rem */
.tier-num {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 600;
  color: var(--copper);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 2px;
}

/* 1.0625rem × 1.5 = 1.6rem */
.tier h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* 0.9375rem × 1.5 = 1.4rem */
.tier p {
  font-size: 1.4rem;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 300;
}

.tier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
/* 0.75rem × 1.5 = 1.125rem */
.tier-tags li {
  font-family: var(--mono);
  font-size: 1.125rem;
  color: var(--copper-dk);
  background: var(--copper-lt);
  border: 1px solid var(--copper-bd);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* ── VISUALIZER ──────────────────────────────────────────────── */
.viz-container {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.viz-hud-panel {
  width: 300px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.viz-hud-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.2);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(22,163,74,0.4); }
  70%  { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0   rgba(22,163,74,0); }
}

.viz-hud-stats { border-bottom: 1px solid var(--border); }

.hud-stat-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.hud-stat-box:last-child { border-bottom: none; }

.hud-stat-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hud-stat-val {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.hud-stat-unit {
  font-size: 0.625rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.viz-telemetry {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
}

.telemetry-header {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
}

.telemetry-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
}

.telem-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.telem-pill .t-id {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.telem-pill .t-data {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}

#launch-btn {
  margin: 12px 16px 16px;
  width: calc(100% - 32px);
}

.viz-canvas-wrapper {
  flex: 1;
  position: relative;
  min-height: 560px;
  background: var(--bg);
}
#airspace-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Demo embed anchor */
.demo-embed-zone {
  border: 1px dashed var(--border-hi);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.dez-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  text-align: center;
  gap: 16px;
}

/* 0.75rem × 1.5 = 1.125rem */
.dez-badge {
  font-family: var(--mono);
  font-size: 1.0rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper-dk);
  background: var(--copper-lt);
  border: 1px solid var(--copper-bd);
  padding: 4px 12px;
  border-radius: 100px;
}

/* 1rem × 1.5 = 1.5rem */
.dez-content p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.6;
}

/* 0.75rem × 1.5 = 1.125rem */
.dez-note {
  font-family: var(--mono);
  font-size: 1.0rem;
  color: var(--ink-3);
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
/* 0.9375rem × 1.5 = 1.4rem */
.trust-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.0rem;
  color: var(--ink-2);
  font-weight: 400;
}
.trust-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(22,101,52,0.08);
  border: 1px solid rgba(22,101,52,0.22);
  border-radius: 50%;
  color: var(--success);
  /* 0.6875rem × 1.5 = 1.05rem */
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-person {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-hi);
}

.contact-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-role {
  font-size: 1rem;
  color: var(--ink-2);
  font-weight: 400;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--ink-2);
}

.contact-details li svg {
  width: 18px;
  height: 18px;
  color: var(--copper);
  flex-shrink: 0;
}

.contact-details li a {
  color: var(--ink-2);
  transition: color 0.18s;
}

.contact-details li a:hover {
  color: var(--copper-dk);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group { margin-bottom: 16px; }

/* 0.875rem × 1.5 = 1.3rem */
.form-group label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

/* 0.9375rem × 1.5 = 1.4rem */
input, select {
  width: 100%;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 1.4rem;
  color: var(--ink);
  transition: var(--t);
  outline: none;
}
input:focus, select:focus {
  background: var(--white);
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-lt);
}
select option { background: var(--white); }

/* 0.9375rem × 1.5 = 1.4rem */
.form-success {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--success-bg);
  border: 1px solid rgba(22,101,52,0.18);
  border-radius: var(--r-sm);
  color: var(--success);
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
#footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo { height: 200px; mix-blend-mode: multiply; }

/* 0.875rem × 1.5 = 1.3rem */
.footer-copy {
  font-size: 1.3rem;
  color: var(--ink-3);
}

.footer-links {
  display: flex;
  gap: 30px;
}
/* 0.9375rem × 1.5 = 1.4rem */
.footer-links a {
  font-size: 1.4rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--copper-dk); }

/* ── SCROLL REVEALS ──────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-up.in-view {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .viz-hud-panel { width: 260px; }
}

@media (max-width: 1024px) {
  .tier-flow { flex-direction: column; }
  .tier-connector {
    align-self: flex-start;
    margin-top: 0;
    padding: 4px 0 4px 24px;
    transform: rotate(90deg);
    transform-origin: left center;
  }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-stat-sep { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .header-actions { display: none; }
  .mobile-toggle { display: flex; }
  .section { padding: 52px 0; }
  .viz-container { flex-direction: column; }
  .viz-hud-panel { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .viz-canvas-wrapper { min-height: 300px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .tier-connector { transform: rotate(90deg); }
  .section-desc { font-size: 1.2rem; }
  .hero-sub { font-size: 1.2rem; }
  .pillar-card p, .problem-card p, .tier p { font-size: 1.125rem; }
}
