/* Home page styles */

/* HERO */
.hero-home {
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.hero-copy h1 {
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.2;
  margin: 16px 0 24px;
  color: var(--text);
}
.hero-copy .sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 24px;
}
.proto-lines {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  margin: 0 0 32px;
}
.proto-lines span { font-weight: 500; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cta-row .tertiary {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
  transition: color 150ms ease;
}
.cta-row .tertiary:hover { color: var(--accent); }

/* Globe */
.globe-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1023px) {
  .globe-wrap { height: 380px; order: -1; }
}
.globe-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--pewter) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.08;
  pointer-events: none;
}
#globe-container {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: crosshair;
}
#globe-container canvas { display: block; margin: 0 auto; }
#callout-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* STREAMER */
.streamer-section {
  background: var(--panel);
  padding: 96px 0;
}
.streamer-head { text-align: center; margin-bottom: 48px; }
.streamer-head h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.04em;
  margin: 12px 0 16px;
  color: var(--text);
}
.streamer-head p { color: var(--muted); max-width: 600px; margin: 0 auto; }

.streamer {
  max-width: 960px;
  margin: 0 auto;
  background: var(--deep-space);
  border: 1.5px solid var(--slate);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
[data-theme="day"] .streamer { background: #1a1f30; }
.streamer-bar {
  height: 40px;
  background: var(--graphite);
  border-bottom: 1px solid var(--slate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
[data-theme="day"] .streamer-bar { background: #11162a; }
.lights { display: flex; gap: 8px; align-items: center; }
.lights .l { width: 11px; height: 11px; border-radius: 50%; }
.lights .r { background: #5C2929; }
.lights .y { background: #5C4929; }
.lights .g { background: #1F4D33; }
.bar-path { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #6B7290; margin-left: 16px; }
.live-ind { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #FF7A18; letter-spacing: 0.1em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF7A18; box-shadow: 0 0 8px #FF7A18; animation: pulse-dot 2s ease infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

#stream-log {
  height: 540px;
  overflow-y: auto;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  scroll-behavior: smooth;
  color: #F6F1E5;
}
#stream-log::-webkit-scrollbar { width: 6px; }
#stream-log::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 3px; }

.msg-row {
  display: grid;
  grid-template-columns: auto auto auto auto auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  transition: background 200ms ease;
}
.msg-row.flash { background: rgba(255, 122, 24, 0.15); }
.msg-row .ts { color: #6B7290; font-size: 11px; padding-top: 2px; }
.msg-row .proto-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid;
  background: rgba(31,38,64,0.4);
  font-weight: 600;
  text-align: center;
  min-width: 32px;
}
.msg-row .from { color: #F6F1E5; font-weight: 600; }
.msg-row .arrow { color: #6B7290; }
.msg-row .to { color: #F6F1E5; }
.msg-row .body { color: #F6F1E5; word-break: break-word; }
.msg-row.out .body {
  background: rgba(255, 122, 24, 0.12);
  border-left: 2px solid #FF7A18;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 4px;
}
.cursor { color: #FF7A18; animation: blink 800ms steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 720px) {
  .msg-row { grid-template-columns: auto auto 1fr; font-size: 12px; }
  .msg-row .ts, .msg-row .from, .msg-row .arrow, .msg-row .to { font-size: 11px; }
  .msg-row .body { grid-column: 1 / -1; padding-left: 0; }
}

/* PILLARS */
.pillars { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  border-top-width: 3px;
  transition: transform 250ms ease, border-color 250ms ease;
}
.pillar-card:hover { transform: translateY(-4px); }
.pillar-card.green { border-top-color: var(--mesh-green); }
.pillar-card.blue { border-top-color: var(--mesh-blue); }
.pillar-card.orange { border-top-color: var(--swift-orange); }
.pillar-glyph { width: 48px; height: 48px; margin-bottom: 24px; }
.pillar-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  text-transform: uppercase;
  line-height: 1.4;
}
.pillar-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* DEMO STRIP */
.demo-strip {
  background: var(--swift-orange);
  color: var(--deep-space);
  padding: 48px 0;
}
.demo-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.demo-strip h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
.btn-on-orange {
  border: 1.5px solid var(--deep-space);
  color: var(--deep-space);
  background: transparent;
  padding: 14px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 150ms ease;
}
.btn-on-orange:hover {
  background: var(--deep-space);
  color: var(--swift-orange);
  transform: translateY(-2px);
}

/* IS / ISN'T */
.is-isnt {
  background: var(--panel);
  padding: 96px 0;
}
.is-isnt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 768px) { .is-isnt-grid { grid-template-columns: 1fr 1fr; } }
.is-isnt h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  margin: 0 0 32px;
  letter-spacing: 0.04em;
}
.is-isnt h3.is { color: var(--swift-orange); }
.is-isnt h3.isnt { color: var(--pewter); }
.is-isnt ul { list-style: none; padding: 0; margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.is-isnt li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.is-isnt li:last-child { border-bottom: none; }
.is-isnt .glyph { font-weight: 700; flex-shrink: 0; }
.is-isnt .is .glyph { color: var(--swift-orange); }
.is-isnt .isnt .glyph { color: var(--pewter); }
