/* ─── Minimalist Tech-Inflected Design Tokens (Cobalt Blue) ───── */
:root {
  color-scheme: light;

  /* Color Palette — Stark White, Carbon Ink, Electric Cobalt Blue */
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --border: #111111;
  --border-strong: #0052ff;

  --text: #111111;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --accent: #0052ff; /* Electric Cobalt Blue */
  --accent-bg: #eef2ff;

  --red: #ff3b30;
  --yellow: #d97706;
  --green: #34c759;

  --container: 1080px;
  --radius: 8px; /* Sharp, clean rounded corners */
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
code { font-family: 'JetBrains Mono', monospace; font-size: 0.82em; background: var(--accent-bg); padding: 3px 6px; border-radius: 4px; border: 1.5px solid var(--border); color: var(--accent); }

/* Typography Stack (Stark & Bold) */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.0;
}
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--accent);
}
.btn, .price-tier, .install-copy, .pg-tab {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* ─── Stark Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100% - var(--container)) / 2));
  height: 80px;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.nav-brand .slash { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-actions { display: flex; gap: 16px; align-items: center; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-ghost {
  color: var(--text);
  background: var(--bg-alt);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: var(--bg-alt);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg-alt);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.15);
}

/* ─── Hero Section (Overlapping 3D Wireframe layers) ─────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 90dvh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  padding: 120px max(24px, calc((100% - var(--container)) / 2)) 80px;
  gap: 60px;
  border-bottom: 2px solid var(--border);
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-h1 {
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1.0;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* CLI command box */
.install-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  padding-left: 14px;
}
.install-prompt {
  color: var(--accent);
  user-select: none;
}
.install-cmd {
  padding: 10px 14px 10px 6px;
  color: var(--text);
  user-select: all;
}
.install-copy {
  padding: 10px 16px;
  border-left: 2px solid var(--border);
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition);
}
.install-copy:hover {
  background: var(--text);
  color: var(--bg-alt);
}

/* Floating 3D Wireframe Layers */
.hero-layer-stack {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
.hero-floating-layer {
  position: absolute;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.6s var(--transition), border-color 0.6s, box-shadow 0.6s;
}
.hero-floating-layer:hover {
  transform: translate3d(0, 0, 40px) rotate(0deg) !important;
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 82, 255, 0.08);
  z-index: 10 !important;
}

.layer-cli {
  width: 290px;
  padding: 18px;
  left: 10px;
  top: 40px;
  transform: translate3d(-20px, 30px, 10px) rotate(-2deg);
  z-index: 3;
}
.layer-graph {
  width: 340px;
  padding: 20px;
  right: 10px;
  top: 70px;
  transform: translate3d(10px, -20px, 5px) rotate(1deg);
  z-index: 1;
}
.layer-savings {
  width: 190px;
  padding: 18px;
  bottom: 40px;
  left: 130px;
  transform: translate3d(80px, 90px, 15px) rotate(3deg);
  z-index: 4;
  text-align: center;
}

/* ─── Infinite Marquee ────────────────────────────────────────── */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding-block: 24px;
  border-bottom: 2px solid var(--border);
  background: var(--bg-alt);
  position: relative;
}
.marquee-inner {
  display: inline-flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-family: 'Geist Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.marquee-item::after {
  content: "—";
  color: var(--border);
  margin-left: 80px;
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ─── Stark Bento Grid ────────────────────────────────────────── */
.section {
  padding: 100px max(24px, calc((100% - var(--container)) / 2));
  border-bottom: 2px solid var(--border);
}
.section-header-box {
  margin-bottom: 56px;
}
.section-h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}
.blueprint-card {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: all var(--transition);
}
.blueprint-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 82, 255, 0.05);
}
.blueprint-card.span-2-col {
  grid-column: span 2;
}
.blueprint-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
.blueprint-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Faux terminal visuals inside grid */
.grid-visual {
  margin-top: 24px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}
.node-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.node-line:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ─── Interactive SRE Topology Playground ──────────────────────── */
.playground-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.playground-canvas {
  position: relative;
  background-color: var(--bg-alt);
  background-image: 
    linear-gradient(rgba(0, 82, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 82, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  height: 340px;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}
.playground-overlay-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Node layout styling */
.pg-node {
  position: absolute;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 99px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.pg-node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.pg-node-cost {
  color: var(--accent);
  font-weight: 700;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s;
  margin-left: 4px;
}

/* States */
.pg-node.state-waste::before {
  background: var(--accent);
}
.pg-node.state-waste .pg-node-cost {
  opacity: 1;
  transform: scale(1);
}
.pg-node.state-decommissioned {
  opacity: 0.15;
  transform: scale(0.85);
  border-style: dashed;
}

/* Connector Line SVG */
.connector-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.5s;
}
.connector-path.active {
  opacity: 0.8;
  animation: traceDash 20s linear infinite;
}
@keyframes traceDash {
  to { stroke-dashoffset: -100; }
}

/* Playground Controls (Tabs) */
.playground-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pg-tab {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition);
}
.pg-tab:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.pg-tab.active {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.pg-tab-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text);
  font-size: 0.85rem;
}
.pg-tab-desc {
  font-family: 'Geist Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: none;
}

.playground-console {
  background: var(--border);
  color: var(--bg-alt);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Mockup Area ─────────────────────────────────────────────── */
.mockup-container {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.horizon-mockup {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mockup-header {
  background: var(--bg);
  padding: 14px 20px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mockup-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}
.mockup-controls {
  display: flex;
  gap: 6px;
}
.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.mockup-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
}
.mockup-sidebar {
  border-right: 2px solid var(--border);
  background: var(--bg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 4px;
}
.sidebar-item.active {
  background: var(--border);
  color: var(--bg-alt);
}
.mockup-main {
  padding: 32px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ledger-table {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr 0.6fr;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.82rem;
  font-weight: 700;
}
.ledger-row:last-child {
  border-bottom: none;
}
.ledger-row.header {
  background: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}
.approved-badge {
  background: var(--accent-bg);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}
.console-box {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Workflow Step Paths ─────────────────────────────────────── */
.steps-blueprint {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}
.step-column {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: all var(--transition);
}
.step-column:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.step-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

/* ─── Pricing Specifications ──────────────────────────────────── */
.pricing-blueprint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
}
.price-column {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
}
.price-column:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.price-column.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 82, 255, 0.05);
}
.price-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  margin-block: 24px;
}
.price-amount span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.price-spec-table {
  width: 100%;
  margin-top: 32px;
  border-top: 2px solid var(--border);
}
.price-spec-row {
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding-block: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}
.price-spec-lbl {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 2px solid var(--border);
  padding: 80px max(24px, calc((100% - var(--container)) / 2));
  background: var(--bg-alt);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}
.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a:hover {
  color: var(--accent);
}

/* ─── Reveal On Scroll ────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 100px;
  }
  .hero-layer-stack {
    height: 360px;
  }
  .layer-cli {
    width: 250px;
    left: 10px;
  }
  .layer-graph {
    width: 290px;
    right: 10px;
  }
  .layer-savings {
    left: 80px;
    width: 170px;
  }
  .blueprint-grid, .pricing-blueprint, .steps-blueprint {
    grid-template-columns: 1fr;
  }
  .blueprint-card.span-2-col {
    grid-column: span 1;
  }
  .mockup-layout {
    grid-template-columns: 1fr;
  }
  .mockup-sidebar {
    border-right: none;
    border-bottom: 2px solid var(--border);
    flex-direction: row;
    justify-content: space-around;
  }
}
