/* Hero-specific styles */

.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  opacity: 0.6;
}
.hero-bg-glow {
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  filter: blur(60px);
  opacity: 0.7;
}
.hero-bg-line {
  position: absolute;
  left: 10%; right: 10%; top: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0.6;
}
.hero-bg-line--2 {
  top: 60%;
  background: linear-gradient(90deg, transparent, var(--accent-2-soft), transparent);
  opacity: 0.4;
}

.hero-inner { position: relative; z-index: 1; padding-top: 40px; }

/* ───── globe layout ───── */
.hero-globe {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 560px;
}
.hero-copy > * + * { margin-top: 24px; }
.hero-title { margin-top: 24px !important; }
.hero-title-serif { font-style: italic; font-weight: 400; }
.hero-title-accent { font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-tickers { margin-top: 40px !important; }

@media (max-width: 960px) {
  .hero-globe { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; height: 320px; }
}

/* ───── Globe viz ───── */
.hero-visual { position: relative; height: 560px; }
.globe-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe-canvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 60px var(--accent-glow));
}
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-1);
  pointer-events: none;
  animation: gspin 90s linear infinite;
}
.globe-ring--1 { width: 100%; height: 100%; border-color: var(--line-1); }
.globe-ring--2 { width: 78%; height: 78%; border-style: dashed; border-color: var(--line-1); animation-duration: 160s; animation-direction: reverse; }
.globe-ring--3 { width: 114%; height: 114%; border-color: var(--line-0); animation-duration: 220s; }
@keyframes gspin { to { transform: rotate(360deg); } }
.globe-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
}

/* ───── Live ticker ───── */
.ticker {
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  overflow: hidden;
  background: var(--bg-1);
  max-width: 560px;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.ticker-track {
  display: flex;
  flex-direction: column;
  animation: tkscroll 24s linear infinite;
}
@keyframes tkscroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.ticker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-0);
  font-size: 12px;
  white-space: nowrap;
}
.ticker-dot {
  width: 6px; height: 6px;
  background: var(--accent-3);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--accent-3);
  flex-shrink: 0;
}
.ticker-sep { color: var(--ink-4); }
.ticker-status {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent-3);
  padding: 2px 6px;
  border: 1px solid var(--accent-3);
  border-radius: 4px;
  opacity: 0.7;
}

/* ───── Hero KPIs ───── */
.hero-kpis {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 40px;
  margin-top: 120px;
  padding-top: 48px;
  border-top: 1px solid var(--line-1);
  align-items: center;
}
.kpi-num {
  font-size: clamp(32px, 3.2vw, 44px);
  letter-spacing: -0.03em;
  color: var(--ink-0);
  font-weight: 500;
}
.kpi-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kpi-sep {
  width: 1px; height: 60px;
  background: var(--line-1);
}
@media (max-width: 720px) {
  .hero-kpis { grid-template-columns: 1fr 1fr; }
  .kpi-sep { display: none; }
}

/* ───── Grid variant ───── */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas:
    "chip   side"
    "title  side"
    "sub    side"
    "ctas   side";
  gap: 20px 60px;
  align-items: start;
}
.hero-grid-layout .chip { grid-area: chip; justify-self: start; }
.hero-grid-layout .hero-title-grid { grid-area: title; }
.hero-grid-layout .h-sub { grid-area: sub; }
.hero-grid-layout .hero-ctas { grid-area: ctas; }
.hero-grid-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-grid-side > div[style]:first-child { align-self: center; }
.side-card { padding: 20px; }
.side-big {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 12px;
  color: var(--ink-0);
}
.side-label {
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 4px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .hero-grid-layout { grid-template-columns: 1fr; grid-template-areas: none; }
  .hero-grid-layout .chip, .hero-grid-layout .hero-title-grid, .hero-grid-layout .h-sub, .hero-grid-layout .hero-ctas, .hero-grid-side { grid-area: auto; }
}

/* ───── Terminal variant ───── */
.hero-terminal-layout { text-align: center; }
.hero-terminal-layout .chip { margin: 0 auto; }
.hero-terminal-frame { margin: 56px auto 0; max-width: 760px; }
.term {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4), 0 0 0 1px var(--line-0);
  text-align: left;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-1);
}
.term-dot { width: 10px; height: 10px; border-radius: 999px; }
.term-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: var(--ink-3);
}
.term-body {
  padding: 20px 22px 24px;
  font-size: 13px;
  line-height: 1.7;
}
.term-line { white-space: pre; display: flex; gap: 10px; }
.term-line.out { color: var(--ink-2); }
.term-prompt { color: var(--accent); }
.term-cursor { animation: blink 1.1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
