/* ============================================================
   INDEX.CSS — Hero / Landing Page Styles
   ============================================================ */

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 245, 255, 0.03) 2px,
    rgba(0, 245, 255, 0.03) 3px
  );
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Floating mechanical SVGs */
.hero-gear {
  position: absolute;
  opacity: 0.07;
  filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.hero-gear-1 {
  top: 8%; left: 5%;
  width: 120px;
  animation: rotateCW 20s linear infinite;
}

.hero-gear-2 {
  top: 15%; right: 8%;
  width: 80px;
  animation: rotateCCW 15s linear infinite;
}

.hero-gear-3 {
  bottom: 20%; left: 10%;
  width: 60px;
  animation: rotateCW 12s linear infinite;
}

.hero-circuit-node {
  position: absolute;
  opacity: 0.12;
}

.circuit-node-1 { top: 30%; right: 5%; }
.circuit-node-2 { bottom: 30%; right: 15%; }
.circuit-node-3 { top: 60%; left: 3%; }

@keyframes rotateCW  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes rotateCCW { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

/* HUD Overlay elements */
.hud-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
}

.hud-top-left {
  position: absolute;
  top: calc(var(--nav-height) + 1.5rem);
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0, 245, 255, 0.4);
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hud-top-right {
  position: absolute;
  top: calc(var(--nav-height) + 1.5rem);
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0, 245, 255, 0.4);
  letter-spacing: 0.1em;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hud-bottom-left {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0, 245, 255, 0.5);
  letter-spacing: 0.1em;
}

.status-bar-track {
  width: 80px; height: 2px;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.status-bar-fill {
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: statusFill 1.5s ease-out forwards;
  position: relative;
}

.status-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 15px var(--accent-cyan);
  border-radius: 50%;
}

@keyframes statusFill {
  from { width: 0%; }
  to   { width: 82%; }
}

.coord-readout {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0, 245, 255, 0.4);
  letter-spacing: 0.1em;
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-sub-brand {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-sub-brand span {
  color: var(--accent-orange);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--accent-cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  min-height: 2em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
  text-shadow: var(--glow-cyan);
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent-cyan);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.hero-blurb {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.1s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.3s forwards;
  margin-bottom: 5rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Indicator ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeInUp 1s ease 2s forwards;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ── Stat Counters ── */
.stats-section {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
  border-top: 1px solid var(--border-cyan);
  border-bottom: 1px solid var(--border-cyan);
  background: rgba(0, 245, 255, 0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-cyan);
}

.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
  text-shadow: var(--glow-cyan);
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: block;
}

/* ── Focus Areas Ticker ── */
.ticker-section {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
  background: rgba(0, 245, 255, 0.03);
  border-bottom: 1px solid var(--border-cyan);
  overflow: hidden;
}

.ticker-label {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent-orange);
  letter-spacing: 0.2em;
  z-index: 2;
  background: var(--bg-primary);
  padding-right: 1rem;
}

.ticker-fade-left {
  position: absolute;
  left: 0; top: 0;
  width: 200px; height: 100%;
  background: linear-gradient(to right, var(--bg-primary), transparent);
  z-index: 2;
}

.ticker-fade-right {
  position: absolute;
  right: 0; top: 0;
  width: 200px; height: 100%;
  background: linear-gradient(to left, var(--bg-primary), transparent);
  z-index: 2;
}

/* ── About Section ── */
.about-section {
  position: relative;
  z-index: 10;
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-terminal {
  position: relative;
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-titlebar {
  background: rgba(0, 245, 255, 0.06);
  border-bottom: 1px solid var(--border-cyan);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin: 0 auto;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.8rem;
  line-height: 2;
  color: var(--accent-green);
}

.terminal-body .prompt {
  color: var(--accent-cyan);
}

.terminal-body .comment { color: var(--text-muted); }

.terminal-body .output {
  color: var(--text-primary);
  padding-left: 1rem;
}

.about-text-block {}
.about-text-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hud-top-left, .hud-bottom-left { display: none; }
}
