/* =========================================
   GridOps — Industrial SCADA Aesthetic
   ========================================= */

:root {
  --bg:        #080d12;
  --bg-card:   #0a1018;
  --bg-card2:  #060c10;
  --accent:    #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.08);
  --amber:     #ffb800;
  --amber-dim: rgba(255, 184, 0, 0.12);
  --text:      #c4d4dc;
  --text-dim:  #3a5560;
  --text-muted:#1e3038;
  --border:    rgba(0, 229, 255, 0.08);
  --border2:   rgba(0, 229, 255, 0.15);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,229,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-viz {
  position: relative;
  background: #060c10;
  border-right: 1px solid var(--border);
  overflow: hidden;
  min-height: 500px;
}

.hero-grid-viz::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.grid-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  color: #e8f4f8;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: #6a8090;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

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

.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---- SECTION SHARED ---- */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.section-headline {
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 700;
  color: #e0eef2;
  line-height: 1.2;
  letter-spacing: -0.3px;
  max-width: 600px;
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 96px 80px;
  border-bottom: 1px solid var(--border);
}

.process-flow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 0;
  margin-top: 64px;
  margin-bottom: 48px;
}

.process-step {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}

.step-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.7;
}

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

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: #e0eef2;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.process-step p {
  font-size: 14px;
  line-height: 1.65;
  color: #5a7888;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.process-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-card2);
}

.callout-label {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.callout-divider { color: var(--border2); }

/* ---- WHAT IT MONITORS ---- */
.what-it-monitors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.wm-left {
  padding: 96px 64px 96px 80px;
  border-right: 1px solid var(--border);
}

.wm-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #5a7888;
  margin-top: 16px;
  margin-bottom: 40px;
  max-width: 480px;
}

/* Data readout panel */
.wm-readout {
  background: #050a0e;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

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

.readout-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 500;
}

.readout-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.readout-row {
  display: grid;
  grid-template-columns: 140px 70px 1fr;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,229,255,0.04);
  gap: 12px;
}

.readout-row:last-child { border-bottom: none; }

.readout-key {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.readout-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}

.readout-val.healthy { color: #00e5ff; }
.readout-val.warning { color: var(--amber); }
.readout-val.critical { color: #ff4444; }

.readout-bar {
  height: 3px;
  background: rgba(0,229,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}

.bar-warn { background: var(--amber); }
.bar-crit { background: #ff4444; }

/* Monitor list */
.wm-right {
  padding: 96px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.monitor-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.monitor-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.monitor-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.monitor-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.monitor-text strong {
  font-size: 15px;
  font-weight: 600;
  color: #c8dce4;
  letter-spacing: -0.1px;
}

.monitor-text span {
  font-size: 13px;
  color: #3d5560;
  line-height: 1.5;
}

/* ---- GRID LIVE ---- */
.grid-live {
  padding: 80px;
  border-bottom: 1px solid var(--border);
  background: #050a0e;
}

.gl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #ff4444;
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 8px #ff4444;
  animation: livepulse 1s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #ff4444; }
  50% { opacity: 0.4; box-shadow: 0 0 4px #ff4444; }
}

.gl-scene {
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #060c10;
}

.grid-scene-svg {
  width: 100%;
  height: auto;
  display: block;
}

.gl-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.gl-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 28px;
}

.gl-metric-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
}

.gl-metric-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.gl-metric-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.gl-metric-unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.gl-metric-delta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.gl-metric-delta.up { color: #00e5ff; opacity: 0.7; }
.gl-metric-delta.down { color: #00e5ff; opacity: 0.7; }

/* ---- CLOSING ---- */
.closing {
  padding: 120px 80px;
  background: var(--bg);
  position: relative;
}

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

.closing-content {
  max-width: 760px;
}

.closing-tagline {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 800;
  color: #e8f4f8;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 17px;
  line-height: 1.75;
  color: #4a6878;
  max-width: 580px;
  margin-bottom: 40px;
}

.closing-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #2a4050;
}

.meta-dot { color: var(--border2); }

/* ---- FOOTER ---- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 80px;
  border-top: 1px solid var(--border);
  background: #050a0e;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #c8dce4;
  letter-spacing: -0.3px;
}

.footer-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ---- LEAD CAPTURE ---- */
.lead-capture {
  background: #050a0e;
  padding: 96px 80px;
  border-bottom: 1px solid var(--border);
}
.lc-inner { max-width: 760px; }
.lc-header { margin-bottom: 48px; }
.lc-sub {
  font-size: 15px;
  color: #5a7888;
  line-height: 1.65;
  margin-top: 12px;
  max-width: 540px;
}
.lc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-field input,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field .optional { font-size: 10px; color: var(--text-muted); letter-spacing: 0; text-transform: none; }
.lc-submit {
  background: var(--accent);
  color: #050a0e;
  border: none;
  padding: 16px 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  align-self: flex-start;
  transition: opacity 0.15s;
}
.lc-submit:hover { opacity: 0.85; }
.lc-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-msg { font-size: 13px; display: none; }
.form-msg--success { color: var(--accent); }
.form-msg--error { color: #ff4444; }
.lc-metrics {
  display: flex;
  align-items: center;
  margin-top: 8px;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.lc-metric-item { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.lc-metric-val { font-family: 'IBM Plex Mono', monospace; font-size: 24px; font-weight: 500; color: var(--accent); }
.lc-metric-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }
.lc-metric-sep { width: 1px; height: 48px; background: var(--border); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-grid-viz {
    height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-content {
    padding: 48px 32px;
  }

  .how-it-works { padding: 64px 32px; }
  .process-flow { grid-template-columns: 1fr; gap: 16px; }
  .process-arrow { display: none; }

  .what-it-monitors { grid-template-columns: 1fr; }
  .wm-left { border-right: none; border-bottom: 1px solid var(--border); padding: 64px 32px; }
  .wm-right { padding: 64px 32px; }

  .grid-live { padding: 64px 32px; }
  .gl-metrics { flex-direction: column; }
  .gl-metric-sep { width: 100%; height: 1px; }

  .closing { padding: 80px 32px; }
  .site-footer { padding: 32px; flex-direction: column; gap: 16px; }
}
