/* ===== FONTS & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c1a2e;
  --bg-2: #091424;
  --bg-card: #0e2035;
  --teal: #00e5c3;
  --teal-dim: rgba(0,229,195,0.12);
  --teal-glow: rgba(0,229,195,0.25);
  --cream: #f9f7f4;
  --cream-2: #f0ede8;
  --text: #e8e6e1;
  --text-dim: #8899a8;
  --text-muted: #5a7080;
  --accent: #00e5c3;
  --danger: #ff6b6b;
  --success: #4ade80;
  --warning: #fbbf24;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,195,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,195,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow-orb {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,229,195,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  align-items: center;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-dim);
  border: 1px solid rgba(0,229,195,0.2);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
}

/* STAT CARD */
.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,229,195,0.15);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-unit {
  font-size: 2.5rem;
  color: var(--teal);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.stat-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* OPS PREVIEW */
.ops-preview {
  background: var(--bg-card);
  border: 1px solid rgba(0,229,195,0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.ops-preview-header {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ops-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.875rem;
}

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

.ops-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--teal);
}

.ops-item--active .ops-dot {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--teal); }
  50% { opacity: 0.5; box-shadow: 0 0 12px var(--teal); }
}

.ops-status {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.ops-status--alert {
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
}

.ops-status--ok {
  color: var(--success);
  background: rgba(74,222,128,0.1);
}

/* HERO RIGHT */
.hero-right {
  padding-left: 2rem;
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-headline-accent {
  color: var(--teal);
  position: relative;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.meta-icon {
  color: var(--teal);
  display: flex;
  align-items: center;
}

/* BOTTOM BAR */
.hero-bottom-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0,229,195,0.1);
  background: var(--bg-2);
}

.bottom-bar-stat {
  padding: 1.5rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}

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

.bottom-bar-val {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.bottom-bar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== THE PROBLEM ===== */
.the-problem {
  background: var(--cream);
  padding: 7rem 2rem;
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.problem-inner .section-label {
  color: #0c1a2e;
}

.problem-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: #0c1a2e;
  margin-bottom: 1.5rem;
}

.problem-body {
  font-size: 1.05rem;
  color: #3d5066;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 4rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(12,26,46,0.08);
}

.problem-card--accent {
  background: #0c1a2e;
  color: #fff;
  border-color: transparent;
}

.problem-card--accent .section-label,
.problem-card--accent .problem-icon { color: #00e5c3; }

.problem-card--accent h3 { color: #fff; }
.problem-card--accent p { color: #8899a8; }
.problem-card--accent .problem-stat { color: #8899a8; border-color: rgba(255,255,255,0.1); }

.problem-icon {
  color: #0c1a2e;
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0c1a2e;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.9rem;
  color: #5a7080;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.problem-stat {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0c1a2e;
  border-top: 1px solid #e8e4df;
  padding-top: 0.75rem;
  letter-spacing: 0.02em;
}

/* ===== CAPABILITIES ===== */
.capabilities {
  background: var(--bg);
  padding: 7rem 2rem;
  overflow: hidden;
}

.cap-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cap-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 1rem;
}

.cap-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 5rem;
}

/* OPS LOOP DIAGRAM */
.ops-loop-diagram {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 5rem;
  aspect-ratio: 1;
}

.loop-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,229,195,0.1);
}

.loop-ring--outer {
  inset: 0;
  border-style: dashed;
}

.loop-ring--inner {
  inset: 20%;
  border-color: rgba(0,229,195,0.05);
}

.loop-connections {
  position: absolute;
  inset: 0;
}

.loop-node {
  position: absolute;
  width: 32%;
}

.loop-node-inner {
  background: var(--bg-card);
  border: 1px solid rgba(0,229,195,0.15);
  border-radius: 14px;
  padding: 1.25rem;
  height: 100%;
  transition: border-color 0.2s ease;
}

.loop-node-inner:hover {
  border-color: rgba(0,229,195,0.4);
}

/* Node positions - placed at 8, 2, 4, 6, 10 o'clock on the circle */
.loop-node--supply { top: 0; right: 8%; left: auto; }
.loop-node--lab { bottom: 8%; right: 0; top: auto; }
.loop-node--compliance { bottom: 8%; left: 0; top: auto; }
.loop-node--vendors { top: 8%; left: 0; }
.loop-node--equipment { top: 35%; left: 50%; transform: translateX(-50%); width: 26%; }

.loop-icon {
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.loop-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.loop-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.loop-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}

.loop-center-inner {
  width: 100%;
  height: 100%;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0,229,195,0.4), 0 0 80px rgba(0,229,195,0.15);
}

.loop-center-icon { color: #0c1a2e; }
.loop-center-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0c1a2e;
  line-height: 1;
}
.loop-center-sub {
  font-size: 0.6rem;
  font-weight: 600;
  color: #0c1a2e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* CAP CARDS */
.cap-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,229,195,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cap-card-icon {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.cap-card strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.cap-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--bg-2);
  padding: 7rem 2rem;
  border-top: 1px solid rgba(0,229,195,0.08);
}

.hiw-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hiw-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 1rem;
}

.hiw-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 4rem;
  max-width: 580px;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
}

.hiw-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0,229,195,0.08);
  border-radius: 16px;
  margin-bottom: 0;
  transition: border-color 0.2s ease;
}

.hiw-step:hover { border-color: rgba(0,229,195,0.25); }

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0,229,195,0.3);
  line-height: 1;
  padding-top: 0.25rem;
}

.hiw-step h3 {
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.hiw-step p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.step-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.step-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(0,229,195,0.15);
}

.hiw-connector {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

/* PROOF METRICS */
.hiw-proof {
  margin-top: 4rem;
  background: var(--bg-card);
  border: 1px solid rgba(0,229,195,0.1);
  border-radius: 20px;
  padding: 3rem;
}

.proof-header {
  text-align: center;
  margin-bottom: 2rem;
}

.proof-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.proof-metric { text-align: center; }

.proof-val {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.proof-label-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== VISION ===== */
.vision {
  background: var(--bg);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}

.vision-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }

.vision-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Syne', sans-serif;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: rgba(0,229,195,0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.vision-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 2rem;
}

.vision-body {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.vision-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 4rem 0;
  padding: 3rem 0;
  border-top: 1px solid rgba(0,229,195,0.08);
  border-bottom: 1px solid rgba(0,229,195,0.08);
}

.vs-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.vs-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.vision-closing {
  margin-top: 3rem;
}

.vision-closing p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.vision-attr {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 1.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid rgba(0,229,195,0.08);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.5;
}

.footer-meta {
  text-align: right;
}

.footer-compliance {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.compliance-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,229,195,0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 6rem; }
  .hero-right { padding-left: 0; }
  .hero-bottom-bar { grid-template-columns: 1fr; }
  .bottom-bar-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-cards { grid-template-columns: 1fr; }
  .proof-metrics { grid-template-columns: repeat(2, 1fr); }
  .vision-stats { grid-template-columns: repeat(2, 1fr); }
  .hiw-step { grid-template-columns: 40px 1fr; gap: 1rem; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .ops-loop-diagram { max-width: 350px; }
  .loop-node { width: 38%; }
  .loop-node--equipment { width: 32%; }
}

@media (max-width: 600px) {
  .problem-grid { grid-template-columns: 1fr; }
  .vision-stats { grid-template-columns: repeat(2, 1fr); }
  .proof-metrics { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero-headline { font-size: 2.5rem; }
  .stat-value { font-size: 3rem; }
}