:root {
  --bg: #0c0e14;
  --surface: #131620;
  --surface-2: #1a1d28;
  --border: #1e2230;
  --border-light: #252a3a;
  --fg: #d4d8e8;
  --fg-2: #7a7f96;
  --fg-3: #4a4f68;
  --lime: #c8ff47;
  --lime-dim: rgba(200, 255, 71, 0.12);
  --amber: #ffb547;
  --red: #ff5c5c;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  padding: 80px 48px 96px;
  border-bottom: 1px solid var(--border);
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 48px;
}

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

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px 0 0;
}

.hero-stat:first-child { padding-left: 0; }

.stat-val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
}

.stat-val.lime { color: var(--lime); }

.stat-lbl {
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

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

/* ── OPS PANEL ── */
.ops-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ops-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.ops-panel-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.ops-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.1em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.5s ease-in-out infinite;
}

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  padding: 1px;
}

.asset-card {
  background: var(--surface);
  padding: 16px;
}

.asset-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}

.asset-label {
  font-size: 11px;
  color: var(--fg-2);
  font-weight: 500;
  line-height: 1.3;
}

.asset-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.asset-badge.healthy {
  background: var(--lime-dim);
  color: var(--lime);
}

.asset-badge.warning {
  background: rgba(255, 181, 71, 0.12);
  color: var(--amber);
}

.asset-badge.critical {
  background: rgba(255, 92, 92, 0.12);
  color: var(--red);
}

.asset-trend {
  margin-bottom: 10px;
}

.trend-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  width: var(--w, 80%);
  opacity: 0.6;
}

.trend-bar.warning-bar { background: var(--amber); }
.trend-bar.critical-bar { background: var(--red); }

.asset-metrics {
  display: flex;
  gap: 12px;
}

.asset-metrics span {
  font-size: 10px;
  color: var(--fg-3);
  font-weight: 500;
}

.ops-footer-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-3);
}

.lime-text { color: var(--lime); }

/* ── SECTIONS ── */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 24px;
}

.section-body {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 560px;
}

.section-body.centered {
  max-width: 640px;
  margin: 0 auto 64px;
}

/* ── CAPABILITY GRID ── */
.ops-overview {
  border-bottom: 1px solid var(--border);
}

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

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

.cap-icon {
  margin-bottom: 20px;
}

.cap-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.cap-desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ── ANOMALY DETECTION ── */
.anomaly-detection {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.ad-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-2);
}

.ad-check { flex-shrink: 0; margin-top: 2px; }

/* Waveform Panel */
.waveform-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.waveform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-2);
  font-weight: 500;
}

.waveform-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.waveform-status.lime { color: var(--lime); }

.waveform-display {
  padding: 16px 16px 8px;
}

.waveform-canvas {
  height: 80px;
  width: 100%;
}

.waveform-canvas svg { width: 100%; height: 100%; }

.waveform-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 0 12px;
  font-size: 10px;
  color: var(--fg-3);
}

.waveform-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.wfm-item {
  background: var(--surface-2);
  padding: 10px 12px;
}

.wfm-label {
  font-size: 10px;
  color: var(--fg-3);
  display: block;
  margin-bottom: 4px;
}

.wfm-val {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.wfm-val.lime { color: var(--lime); }

/* Alert Log */
.alert-log-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.alert-log-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alert-log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.alert-log-item:last-child { border-bottom: none; }

.alert-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.warning-dot { background: var(--amber); }
.lime-dot { background: var(--lime); }

.alert-text { flex: 1; }

.alert-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 3px;
}

.alert-meta {
  font-size: 11px;
  color: var(--fg-3);
}

.alert-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
  background: var(--lime-dim);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.alert-action.done {
  color: var(--fg-3);
  background: var(--border);
}

.alert-action.pending {
  color: var(--amber);
  background: rgba(255,181,71,0.12);
}

/* ── WORK ORDERS ── */
.work-orders {
  border-bottom: 1px solid var(--border);
}

.workflow-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 64px 0;
}

.wf-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wf-step-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--lime);
  opacity: 0.25;
}

.wf-step-content h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.wf-step-content p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
}

.wf-connector {
  width: 40px;
  flex-shrink: 0;
  position: relative;
  align-self: center;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
  margin-top: -40px;
}

.wf-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--lime);
  border-top: 1.5px solid var(--lime);
  transform: rotate(45deg);
  opacity: 0.5;
}

.wo-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 48px;
}

.wo-stat {
  background: var(--surface);
  padding: 28px 32px;
}

.wo-stat-val {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--lime);
  display: block;
  margin-bottom: 8px;
}

.wo-stat-lbl {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}

/* ── OUTCOMES ── */
.outcomes {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 64px;
}

.outcome-card {
  background: var(--surface-2);
  padding: 36px 28px;
}

.outcome-val {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 8px;
}

.outcome-lbl {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.outcome-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ── CLOSING ── */
.closing-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 120px 48px;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── FOOTER ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.footer-tagline {
  font-size: 12px;
  color: var(--fg-3);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-3);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 60px 24px 80px; }
  .section-inner { padding: 64px 24px; }
  .ad-inner { grid-template-columns: 1fr; gap: 48px; }
  .capability-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .wo-stats-row { grid-template-columns: 1fr; }
  .workflow-timeline { flex-direction: column; }
  .wf-connector { display: none; }
  .closing-section { padding: 80px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}
