/* ── Homepage ── */

/* ── Hero with terminal backdrop ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-height) + var(--s5)) var(--content-pad) var(--s8);
  overflow: hidden;
}

.hero .desk-scene {
  position: relative;
  z-index: 1;
}

.hero .glow-underline {
  position: relative;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -40px;
  padding-top: 0;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  right: -200px;
  height: 260px;
  background: linear-gradient(to bottom, transparent 0%, var(--black) 80%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto var(--s5);
}

.hero-sub {
  font-size: var(--text-md);
  color: var(--white);
  max-width: 600px;
  margin: 0 auto var(--s7);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--s5);
  align-items: center;
  justify-content: center;
}

.desk-scene {
  perspective: 1200px;
  width: 75%;
  margin: 0 auto;
}
.monitors {
  display: flex;
  gap: 6px;
  transform: rotateX(2deg);
  transform-origin: center bottom;
}
.monitor {
  flex: 1;
  background: #0c0c0c;
  border: 2px solid #1a1a1a;
  border-radius: 6px 6px 2px 2px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 80px rgba(0,168,120,0.03), inset 0 0 30px rgba(0,0,0,0.5);
}
.monitor-bezel-top {
  height: 18px;
  background: #0e0e0e;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.monitor-bezel-top::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1a1a1a;
}
.screen {
  background: #080808;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stand-group {
  display: flex;
  justify-content: center;
  margin-top: -2px;
}
.stand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stand-neck {
  width: 60px;
  height: 28px;
  background: linear-gradient(to bottom, #151515, #0c0c0c);
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
}
.stand-base {
  width: 180px;
  height: 8px;
  background: linear-gradient(to bottom, #151515, #0a0a0a);
  border-radius: 0 0 4px 4px;
  border: 1px solid #1a1a1a;
  border-top: none;
  margin-top: -1px;
}
.chrome {
  height: 22px;
  background: #0e0e0e;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  flex-shrink: 0;
}
.chrome-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #222;
}
.chrome-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #333;
  letter-spacing: 1px;
}
.screen-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.sidebar {
  width: 100px;
  background: #070707;
  border-right: 1px solid #141414;
  padding: 8px 0;
  flex-shrink: 0;
}
.sidebar-item {
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 7px;
  color: #333;
}
.sidebar-item.active {
  color: var(--blue);
  background: rgba(29,127,214,0.04);
  border-left: 2px solid var(--blue);
}
.main-area {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.kpi {
  background: #0c0c0c;
  border: 1px solid #151515;
  padding: 6px;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 6px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kpi-val {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 2px;
  color: #e0e0e0;
}
.kpi-val.pos { color: #1D7FD6; }
.kpi-val.neg { color: #C4574F; }
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex: 1;
  min-height: 0;
}
.chart-panel {
  background: #0c0c0c;
  border: 1px solid #151515;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 6px;
}
.chart-header {
  font-family: var(--font-mono);
  font-size: 6px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.bar-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  min-height: 0;
}
.bar {
  flex: 1;
  border-radius: 1px 1px 0 0;
  min-height: 3px;
}
.bar.emerald { background: linear-gradient(to top, #1D7FD6, rgba(29,127,214,0.15)); }
.bar.blue { background: linear-gradient(to top, #1D7FD6, rgba(29,127,214,0.15)); }
.line-chart-wrap {
  flex: 1;
  min-height: 0;
}
.line-chart-wrap svg {
  width: 100%;
  height: 100%;
}
.mini-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 6px;
  border-bottom: 1px solid #111;
  font-family: var(--font-mono);
  font-size: 7px;
}
.mini-row span:first-child { color: #444; }
.mini-row span:last-child { color: #999; }
.heatmap {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  min-height: 0;
}
.hm-cell { border-radius: 1px; }
.panel-grid {
  flex: 1;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr 1fr;
  gap: 4px;
  overflow: hidden;
}
.panel-grid .kpi-row { grid-column: span 2; }
.glow-underline {
  width: 100%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(0,168,120,0.06) 0%, transparent 70%);
  margin-top: -20px;
}

/* Products section */
.products-section {
  padding: var(--s10) 0;
  border-top: 1px solid var(--border);
}

.products-section .eyebrow {
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: var(--s7);
}

.product-tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.product-tile:hover {
  border-color: var(--border-light);
}

/* Mini mockup inside tile */
.tile-preview {
  padding: var(--s4) var(--s4) 0;
  flex: 1;
  min-height: 200px;
}

.tile-mock {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tile-mock-chrome {
  height: 24px;
  background: #161616;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.tile-mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dgrey);
}

.tile-mock-body {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}

.tile-mock-kpi {
  background: var(--black);
  border: 1px solid var(--border);
  padding: 6px;
}

.tile-mock-kpi-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--dgrey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tile-mock-kpi-val {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 2px;
}

.tile-mock-kpi-val.pos { color: var(--positive); }
.tile-mock-kpi-val.neg { color: var(--negative); }

.tile-mock-chart {
  grid-column: span 3;
  background: var(--black);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 8px 6px 6px;
  min-height: 60px;
}

.tile-bar {
  flex: 1;
  background: var(--blue);
  opacity: 0.35;
  min-height: 4px;
  border-radius: 1px 1px 0 0;
}

.product-tile:nth-child(2) .tile-bar { background: var(--blue); }
.product-tile:nth-child(3) .tile-bar { background: #8B5CF6; }

/* Tile label */
.tile-label {
  padding: var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.tile-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
}

.tile-desc {
  font-size: var(--text-sm);
  color: var(--grey);
  margin-left: var(--s4);
  flex: 1;
}

.tile-arrow {
  font-size: 20px;
  color: var(--blue);
  transition: transform 0.2s;
}

.product-tile:hover .tile-arrow {
  transform: translateX(4px);
}

/* Subscribe section */
.subscribe-section {
  padding: var(--s8) 0;
  text-align: center;
  background: var(--white);
  color: var(--black);
  border-top: none;
}

.subscribe-section h2 {
  margin: 0 auto var(--s4);
  text-align: center;
  color: var(--black);
}

.subscribe-section .eyebrow {
  text-align: center;
}

.subscribe-section .subscribe-form {
  margin: 0 auto;
}

.subscribe-section .subscribe-note {
  text-align: center;
}

/* About teaser */
.about-teaser {
  display: flex;
  align-items: center;
  gap: var(--s7);
  padding: var(--s9) 0;
  border-top: 1px solid var(--border);
}

.about-teaser-symbol {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.5;
}

.about-teaser-text {
  font-size: var(--text-md);
  color: var(--grey);
  line-height: 1.7;
  max-width: 600px;
}

.about-teaser-text strong {
  color: var(--off-white);
}

.about-teaser-link {
  display: inline-block;
  color: var(--blue);
  font-size: var(--text-sm);
  margin-top: var(--s3);
  transition: color var(--duration);
}

.about-teaser-link:hover {
  color: #2590e8;
}
