/* === BASE === */
:root {
  --bg: #FAF6F1;
  --ink: #18110E;
  --ink-muted: #5C4E44;
  --ember: #C45D2A;
  --ember-light: #E8C4A8;
  --surface: #F0E8DF;
  --border: #D9CFC6;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* === HERO === */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta-row { margin-bottom: 3rem; }

.hero-cta-btn {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s;
}

.hero-cta-btn:hover { background: #A84E24; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 2rem 0 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 2rem;
}

/* === SECTION EYEBROW === */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}

/* === SYSTEMS === */
.systems {
  background: var(--ink);
  color: var(--bg);
  padding: 6rem 2rem;
}

.systems-inner { max-width: 960px; margin: 0 auto; }

.systems-header {
  margin-bottom: 3.5rem;
}

.systems-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 480px;
}

.systems-header .section-eyebrow { color: var(--ember-light); }

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2E1F18;
}

.system-card {
  background: var(--ink);
  padding: 2.5rem;
}

.card-icon {
  margin-bottom: 1.5rem;
}

.system-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.system-card p {
  font-size: 0.9rem;
  color: #9A8478;
  line-height: 1.6;
}

/* === CONTEXT === */
.context {
  padding: 7rem 2rem;
  background: var(--bg);
}

.context-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* Orbit diagram */
.context-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.context-diagram {
  position: relative;
  width: 280px;
  height: 280px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 { width: 120px; height: 120px; }
.ring-2 { width: 190px; height: 190px; border-color: var(--ember-light); }
.ring-3 { width: 260px; height: 260px; border-style: dashed; }

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-node {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.node-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: 0; transform: translateY(-50%); }
.node-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.node-4 { top: 50%; left: 0; transform: translateY(-50%); }

.context-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.context-text p {
  color: var(--ink-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.context-features { display: flex; flex-direction: column; gap: 0.75rem; }

.context-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.context-feature p {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

/* === OBSERVABILITY === */
.observability {
  background: var(--surface);
  padding: 7rem 2rem;
}

.obs-inner { max-width: 960px; margin: 0 auto; }

.obs-header {
  margin-bottom: 3rem;
}

.obs-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.obs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5px;
  background: var(--border);
}

.obs-card {
  background: var(--surface);
  padding: 2.5rem;
}

.obs-card--wide {
  grid-column: 1 / -1;
}

.obs-card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}

.obs-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.obs-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.obs-visual {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 1.5rem;
  height: 48px;
}

.obs-bar {
  flex: 1;
  height: var(--w, 60%);
  background: var(--ember);
  opacity: 0.3;
  border-radius: 2px 2px 0 0;
  position: relative;
}

/* === VISION === */
.vision {
  padding: 6rem 2rem;
  background: var(--bg);
}

.vision-inner { max-width: 700px; margin: 0 auto; text-align: center; }

.vision-rule {
  width: 48px;
  height: 1px;
  background: var(--ember);
  margin: 0 auto 2.5rem;
}

.vision blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

/* === FOOTER === */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #9A8478;
}

.footer-meta {
  font-size: 0.8rem;
  color: #9A8478;
  max-width: 260px;
  text-align: right;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-content { padding: 4rem 1.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat { padding: 0; }
  .stat-divider { display: none; }
  .systems-grid { grid-template-columns: 1fr; }
  .context-inner { grid-template-columns: 1fr; gap: 3rem; }
  .context-visual { order: -1; }
  .obs-cards { grid-template-columns: 1fr; }
  .obs-card--wide { grid-column: auto; }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-meta { text-align: center; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.75rem; }
  .context-diagram { width: 220px; height: 220px; }
  .ring-1 { width: 90px; height: 90px; }
  .ring-2 { width: 150px; height: 150px; }
  .ring-3 { width: 210px; height: 210px; }
}

/* === WAITLIST FORM === */
.waitlist {
  background: var(--ink);
  padding: 7rem 2rem;
}

.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
}

.waitlist-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-light);
  margin-bottom: 1rem;
}

.waitlist-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--bg);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.waitlist-sub {
  font-size: 1rem;
  color: #9A8478;
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 520px;
}

.waitlist-form { display: flex; flex-direction: column; gap: 1.25rem; }

.wl-row { display: grid; gap: 1.25rem; }
.wl-row--2 { grid-template-columns: 1fr 1fr; }
.wl-row--1 { grid-template-columns: 1fr; }

.wl-field { display: flex; flex-direction: column; gap: 0.4rem; }

.wl-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9A8478;
  letter-spacing: 0.03em;
}

.wl-required { color: var(--ember); }

.wl-field input,
.wl-field select {
  background: #2E1F18;
  border: 1px solid #3E2E26;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bg);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.wl-field input::placeholder { color: #5C4E44; }
.wl-field select option { background: #2E1F18; color: var(--bg); }

.wl-field input:focus,
.wl-field select:focus {
  border-color: var(--ember);
}

.wl-submit-row { margin-top: 0.5rem; }

.wl-btn {
  background: var(--ember);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  position: relative;
  min-width: 200px;
}

.wl-btn:hover:not(:disabled) { background: #A84E24; }
.wl-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.wl-btn-loading { display: none; }
.wl-btn--loading .wl-btn-text { display: none; }
.wl-btn--loading .wl-btn-loading { display: inline; }

.wl-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1A3A1F;
  border: 1px solid #2D6B38;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  color: #6FCF97;
  font-size: 1rem;
}

.wl-success-icon {
  font-size: 1.25rem;
  font-weight: 700;
}

.wl-error {
  background: #3A1A1A;
  border: 1px solid #8B3030;
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  color: #FF8080;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .wl-row--2 { grid-template-columns: 1fr; }
}