/* === RESET & ROOT === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void: #000000;
  --deep: #05050a;
  --dark: #0a0a14;
  --panel: #0d0d1a;
  --border: #1a1a2e;
  --muted: #3a3a5c;
  --cyan: #00e5ff;
  --cyan-dim: #00b8cc;
  --magenta: #ff2d6a;
  --magenta-dim: #cc1a4a;
  --green: #00ff9d;
  --amber: #f0a500;
  --white: #e8e8f0;
  --font-display: 'Orbitron', 'Courier New', monospace;
  --font-body: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === SCANLINES === */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 80px 48px 60px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-label {
  position: absolute;
  top: 32px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text { }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.neon-text {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 60px rgba(0, 229, 255, 0.3);
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  font-weight: 300;
}

/* === HUD === */
.hero-hud {
  position: relative;
  height: 400px;
}

.hud-frame {
  background: rgba(13, 13, 26, 0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  padding: 16px;
  position: relative;
}

.hud-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0%, transparent 100%);
}

.hud-frame--main {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 320px;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hud-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.hud-badge {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 2px 8px;
  border-radius: 2px;
  animation: pulse 2s infinite;
}

.hud-data { margin-bottom: 16px; }

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}

.hud-key { color: var(--muted); letter-spacing: 0.1em; }

.hud-val { font-weight: 500; }

.status-ok { color: var(--green); }

.neon-mag { color: var(--magenta); text-shadow: 0 0 8px var(--magenta); }

/* Globe */
.hud-globe {
  position: absolute;
  top: 40px;
  right: 20px;
  width: 100px;
  height: 100px;
}

.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.globe-ring--1 { width: 80px; height: 80px; border-color: rgba(0, 229, 255, 0.3); }
.globe-ring--2 { width: 60px; height: 60px; border-color: rgba(0, 229, 255, 0.5); animation: spin 8s linear infinite; }
.globe-ring--3 { width: 40px; height: 40px; border-color: rgba(255, 45, 106, 0.4); animation: spin 5s linear infinite reverse; }

@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.globe-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.globe-line {
  position: absolute;
  background: rgba(0, 229, 255, 0.3);
}

.globe-line--1 { width: 1px; height: 60px; top: 20px; left: 50%; transform: rotate(45deg); transform-origin: top center; }
.globe-line--2 { width: 1px; height: 50px; top: 25px; left: 50%; transform: rotate(-45deg); transform-origin: top center; }

.globe-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 6px var(--magenta);
}

.globe-dot--1 { top: 20px; left: 30px; }
.globe-dot--2 { top: 50px; right: 20px; }
.globe-dot--3 { bottom: 10px; left: 50px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.hud-coords {
  display: flex;
  gap: 12px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* Small HUD frames */
.hud-frame--small {
  position: absolute;
  padding: 12px;
}

.hud-frame--top-right { top: 0; right: 0; width: 140px; }

.hud-frame--bottom-left { bottom: 0; left: 0; width: 140px; }

.sync-time {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  margin-bottom: 8px;
}

.sync-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 20px;
}

.sync-bars span {
  width: 4px;
  background: var(--cyan);
  opacity: 0.7;
  animation: bar-pulse 1.5s ease-in-out infinite;
}

.sync-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.sync-bars span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.sync-bars span:nth-child(3) { height: 20px; animation-delay: 0.4s; }
.sync-bars span:nth-child(4) { height: 10px; animation-delay: 0.6s; }
.sync-bars span:nth-child(5) { height: 16px; animation-delay: 0.8s; }

@keyframes bar-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.task-count {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--green);
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
  line-height: 1;
  margin-bottom: 4px;
}

.task-sub {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

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

@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.001% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-text {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* === SECTION SHARED === */
.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* === MANIFESTO === */
.manifesto {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--void);
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.label-line {
  width: 40px;
  height: 1px;
  background: var(--muted);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.quote-accent {
  display: block;
  color: var(--magenta);
  text-shadow: 0 0 12px rgba(255, 45, 106, 0.4);
  margin-top: 16px;
}

.manifesto-divider {
  font-size: 24px;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* === OPERATIONS === */
.operations {
  padding: 100px 48px;
  background: var(--deep);
}

.operations-header {
  max-width: 1200px;
  margin: 0 auto 60px;
}

.ops-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.op-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  transition: border-color 0.3s;
}

.op-card:hover { border-color: var(--cyan); }

.op-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.op-card:hover::before { opacity: 1; }

.op-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.op-card:hover .op-number { color: var(--cyan); text-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }

.op-icon {
  color: var(--cyan);
  margin-bottom: 16px;
  opacity: 0.8;
}

.op-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.op-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.op-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--border);
  padding-top: 60px;
}

/* === FEATURES === */
.features {
  padding: 100px 48px;
  background: var(--void);
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 60px;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--panel);
  padding: 32px;
  position: relative;
  transition: background 0.3s;
}

.feature-card:hover { background: #0f0f20; }

.feature-card--large { grid-column: span 2; }

.feature-card--accent {
  background: #080812;
  border: 1px solid var(--magenta);
}

.feature-card--accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), transparent);
}

.feature-tag {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

.feature-card--accent .feature-tag { color: var(--magenta); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.meta-badge {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.feature-ascii {
  margin-top: 20px;
  font-size: 12px;
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 45, 106, 0.4);
  line-height: 1.4;
}

.feature-ascii pre {
  font-family: var(--font-body);
  font-size: 11px;
}

/* === TERMINAL === */
.terminal-section {
  padding: 100px 48px;
  background: var(--deep);
}

.terminal-header {
  max-width: 1200px;
  margin: 0 auto 48px;
}

.terminal-window {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--void);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.05), 0 0 80px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  background: #111122;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.t-dot--red { background: #ff5f57; }
.t-dot--yellow { background: #febc2e; }
.t-dot--green { background: #28c840; }

.t-title {
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 24px;
  font-size: 13px;
}

.t-line { margin-bottom: 4px; }

.t-prompt { color: var(--cyan); }
.t-path { color: var(--muted); }
.t-cmd { color: var(--white); }
.t-cursor { color: var(--cyan); animation: blink 1s step-end infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.t-output { margin: 12px 0 20px; padding-left: 16px; border-left: 1px solid var(--border); }

.t-line--ok { color: var(--green); margin-bottom: 4px; font-size: 12px; }
.t-line--info { color: var(--cyan); margin-bottom: 4px; font-size: 12px; }
.t-line--warn { color: var(--amber); margin-bottom: 4px; font-size: 12px; }
.t-line--system { color: var(--muted); margin-bottom: 4px; font-size: 12px; }
.t-line--next { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }

.terminal-note {
  text-align: center;
  max-width: 500px;
  margin: 32px auto 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 120px 48px;
  background: var(--void);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner { max-width: 700px; margin: 0 auto; }

.closing-ascii {
  margin-bottom: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  line-height: 1.6;
  display: inline-block;
  text-align: left;
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.closing-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  background: var(--void);
  border-top: 1px solid var(--border);
  padding: 24px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 11px;
  color: var(--muted);
}

.footer-meta {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-sep { margin: 0 8px; color: var(--border); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 80px 24px 60px; }
  .hero-label { left: 24px; top: 20px; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-hud { height: 320px; }
  .hud-frame--main { width: 260px; }
  .hud-frame--small { display: none; }

  .manifesto, .operations, .features, .terminal-section, .closing { padding: 60px 24px; }
  .footer { padding: 20px 24px; }

  .ops-grid { grid-template-columns: 1fr; gap: 16px; }
  .op-connector { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
