/* =============================================
   AXIOMOPS — Theme CSS
   ============================================= */

:root {
  --bg: #0a0a0c;
  --surface: #111115;
  --surface-2: #16161a;
  --amber: #f97316;
  --amber-dim: rgba(249, 115, 22, 0.12);
  --amber-glow: rgba(249, 115, 22, 0.06);
  --text: #f4f4f5;
  --muted: #71717a;
  --border: #1c1c22;
  --green: #22c55e;
  --amber-status: #fb923c;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { background: var(--bg); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(249, 115, 22, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--mono);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.hero-ops {
  color: var(--amber);
  display: block;
}

.hero-runs {
  color: var(--text);
  display: block;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: var(--green); box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.dot-amber { background: var(--amber-status); box-shadow: 0 0 6px rgba(251, 146, 60, 0.5); }

.status-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* =============================================
   CTA BUTTONS
   ============================================= */

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--amber);
  color: #0a0a0c;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
}

.cta-primary:hover {
  background: #fb923c;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.35);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--border);
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cta-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
}

/* OPS Widget */
.hero-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ops-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 0 60px rgba(249, 115, 22, 0.05), 0 20px 60px rgba(0,0,0,0.4);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.widget-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.widget-live {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.1em;
}

.widget-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.wrow {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 10px;
}

.wlabel {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.05em;
}

.wbar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.wfill {
  height: 100%;
  border-radius: 2px;
  background: var(--amber);
  width: 0;
  animation: wfill-anim 1.2s ease forwards;
}

.wfill-82 { animation-delay: 0.2s; }
.wfill-64 { animation-delay: 0.4s; }
.wfill-41 { animation-delay: 0.6s; }
.wfill-58 { animation-delay: 0.8s; }

@keyframes wfill-anim { from { width: 0; } }

.wval {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  text-align: right;
}

.widget-divider { border-top: 1px solid var(--border); margin: 4px 0; }

.widget-event {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}

.widget-event:last-of-type { border-bottom: none; }

.ev-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}

.ev-text { color: var(--muted); font-size: 11px; line-height: 1.4; }

.ev-warn .ev-text { color: var(--amber-status); }
.ev-ok .ev-text { color: var(--green); }

.widget-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 4px;
}

.wf-stat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* =============================================
   SHARED SECTION STYLES
   ============================================= */

.section-inner { max-width: 1200px; margin: 0 auto; padding: 96px 48px; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--mono);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 56px;
}

/* =============================================
   PIPELINE
   ============================================= */

.pipeline {
  border-bottom: 1px solid var(--border);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.pipe-card {
  background: var(--surface);
  padding: 32px 28px;
  transition: background 0.2s ease;
}

.pipe-card:hover { background: var(--surface-2); }

.pipe-icon {
  color: var(--amber);
  margin-bottom: 20px;
}

.pipe-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.pipe-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   GUARDIANS
   ============================================= */

.guardians {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(249, 115, 22, 0.02) 100%);
}

.guardians-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.highlight-text { color: var(--amber); }

.guardian-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.guardian-item {}

.guardian-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.guardian-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Guardian ring visual */
.guardians-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.guardian-ring {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-center {
  width: 100px;
  height: 100px;
  background: var(--surface);
  border: 2px solid var(--amber);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.15);
}

.ring-icon { color: var(--amber); }

.ring-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 0.12em;
}

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

.ring-orbit-1 { width: 200px; height: 200px; animation: orbit-spin 12s linear infinite; }
.ring-orbit-2 { width: 280px; height: 280px; animation: orbit-spin 18s linear infinite reverse; }
.ring-orbit-3 { width: 340px; height: 340px; animation: orbit-spin 24s linear infinite; }

.orbit-node {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.orbit-node.on {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
}

.ring-orbit-1 .orbit-node { top: -10px; left: 50%; transform: translateX(-50%); }
.ring-orbit-2 .orbit-node { top: 50%; right: -10px; transform: translateY(-50%); }
.ring-orbit-3 .orbit-node { bottom: -10px; left: 50%; transform: translateX(-50%); }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =============================================
   ECONOMICS
   ============================================= */

.economics {
  border-bottom: 1px solid var(--border);
}

.econ-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 56px;
  padding: 32px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.econ-stat {}

.econ-val {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.econ-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 180px;
}

.econ-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.econ-card {
  background: var(--surface);
  padding: 32px 28px;
}

.econ-card-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.econ-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   OBSERVABILITY
   ============================================= */

.observability {
  border-bottom: 1px solid var(--border);
}

.obs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.obs-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.obs-features { display: flex; flex-direction: column; gap: 14px; }

.obs-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.obs-feat-icon {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Audit log */
.audit-log {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.audit-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.audit-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
}

.audit-entries { padding: 8px 0; }

.audit-entry {
  display: flex;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}

.audit-entry:last-child { border-bottom: none; }

.ae-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 1px;
}

.ae-action {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  margin-bottom: 3px;
}

.ae-reason {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.audit-ok .ae-action { color: var(--text); }
.audit-warn .ae-action { color: var(--amber-status); }

/* =============================================
   CLOSING
   ============================================= */

.closing {
  border-bottom: 1px solid var(--border);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
  text-align: center;
}

.closing-rule {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 48px;
}

.closing-headline {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 48px;
}

.closing-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
  display: flex;
  justify-content: center;
}

.closing-tagline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  opacity: 0.5;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 13px;
  color: var(--muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .guardians-inner { grid-template-columns: 1fr; }
  .guardians-visual { display: none; }
  .pipeline-grid { grid-template-columns: 1fr 1fr; }
  .econ-grid { grid-template-columns: 1fr; }
  .obs-content { grid-template-columns: 1fr; }
  .econ-stats { flex-direction: column; gap: 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 24px 40px; }
  .section-inner { padding: 64px 24px; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}
