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

:root {
  --bg: #0A0F0A;
  --bg-surface: #1A1F1A;
  --bg-deep: #0F140F;
  --green: #4ADE80;
  --green-dim: #2D8A5E;
  --green-dark: #1A3A2A;
  --border: #2D3B2D;
  --text: #E5E7EB;
  --text-dim: #9CA3AF;
  --font-mono: 'Courier New', 'Consolas', 'Monaco', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

a { color: var(--green); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* =============== NAVBAR =============== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.1);
  transition: background 0.3s, border-color 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 15, 10, 0.95);
  border-bottom-color: rgba(74, 222, 128, 0.25);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img { filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4)); }

.nav-logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--green);
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--green); opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.nav-mobile.active { display: flex; }

.nav-mobile a {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-dim);
  font-weight: 600;
  padding: 8px 0;
}

/* =============== HERO =============== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(74, 222, 128, 0.02) 2px,
    rgba(74, 222, 128, 0.02) 4px
  );
}

/* Corner brackets */
.corner-brackets {
  position: absolute;
  inset: 40px;
  z-index: 3;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 40px;
  height: 40px;
}

.corner::before, .corner::after {
  content: '';
  position: absolute;
  background: rgba(74, 222, 128, 0.4);
}

.corner-tl { top: 0; left: 0; }
.corner-tl::before { top: 0; left: 0; width: 20px; height: 2px; }
.corner-tl::after { top: 0; left: 0; width: 2px; height: 20px; }

.corner-tr { top: 0; right: 0; }
.corner-tr::before { top: 0; right: 0; width: 20px; height: 2px; }
.corner-tr::after { top: 0; right: 0; width: 2px; height: 20px; }

.corner-bl { bottom: 0; left: 0; }
.corner-bl::before { bottom: 0; left: 0; width: 20px; height: 2px; }
.corner-bl::after { bottom: 0; left: 0; width: 2px; height: 20px; }

.corner-br { bottom: 0; right: 0; }
.corner-br::before { bottom: 0; right: 0; width: 20px; height: 2px; }
.corner-br::after { bottom: 0; right: 0; width: 2px; height: 20px; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-logo {
  position: relative;
  width: 160px;
  height: 160px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.5));
  animation: logoPulse 3s ease-in-out infinite;
}

.logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.5)); }
  50% { filter: drop-shadow(0 0 35px rgba(74, 222, 128, 0.7)); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Decode text */
.decode-container { perspective: 1000px; }

.decode-border {
  display: inline-flex;
  gap: 4px;
  padding: 16px 28px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.1), inset 0 0 20px rgba(74, 222, 128, 0.05);
  position: relative;
}

.decode-char {
  display: inline-block;
  width: 40px;
  font-size: 44px;
  font-weight: 700;
  text-align: center;
  color: rgba(74, 222, 128, 0.6);
  text-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
  transition: color 0.3s, text-shadow 0.3s;
  font-family: var(--font-mono);
}

.decode-char.decoded {
  color: #fff;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.8), 0 0 30px rgba(74, 222, 128, 0.4), 0 0 60px rgba(74, 222, 128, 0.2);
}

/* Hero slogan */
.hero-slogan {
  font-size: 14px;
  letter-spacing: 8px;
  color: rgba(74, 222, 128, 0.7);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slogan.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Status bar */
.hero-status {
  width: 220px;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}

.hero-status.visible { opacity: 1; }

.status-bar {
  height: 2px;
  background: var(--green-dark);
  border-radius: 1px;
  overflow: hidden;
}

.status-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.3s;
}

.status-text {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(74, 222, 128, 0.5);
}

/* Hero store buttons */
.hero-store-buttons {
  display: flex;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-store-buttons.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-store-buttons .store-btn {
  width: auto;
  padding: 10px 20px;
  gap: 10px;
  background: rgba(26, 31, 26, 0.8);
  backdrop-filter: blur(8px);
}

.hero-store-buttons .store-icon {
  width: 24px;
  height: 24px;
}

.hero-store-buttons .store-label {
  font-size: 9px;
}

.hero-store-buttons .store-name {
  font-size: 13px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1s ease 4s forwards;
}

.scroll-indicator span {
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(74, 222, 128, 0.4);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(74, 222, 128, 0.4);
  border-bottom: 2px solid rgba(74, 222, 128, 0.4);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

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

/* =============== SECTIONS (shared) =============== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.section-bar {
  width: 4px;
  height: 28px;
  background: var(--green);
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.section-badge {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 4px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 600px;
  letter-spacing: 0.5px;
}

/* =============== FEATURES =============== */
.features {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(74, 222, 128, 0.08);
}

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 6px;
}

.feature-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-specs {
  display: flex;
  gap: 8px;
}

.spec {
  flex: 1;
  background: var(--bg-deep);
  border-radius: 8px;
  padding: 10px;
}

.spec-label {
  display: block;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.spec-value {
  display: block;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

/* =============== GLOBE =============== */
.globe-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.globe-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

#globeCanvas {
  width: 100%;
  height: 500px;
  display: block;
  cursor: grab;
}

#globeCanvas:active { cursor: grabbing; }

.globe-hud {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}

.hud-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-tl { top: 0; left: 0; }
.hud-tr { top: 0; right: 0; text-align: right; }
.hud-bl { bottom: 0; left: 0; }
.hud-br { bottom: 0; right: 0; text-align: right; }

.hud-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(74, 222, 128, 0.4);
}

.hud-value {
  font-size: 12px;
  color: rgba(74, 222, 128, 0.7);
  font-weight: 600;
}

.hud-active {
  color: var(--green);
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: blink 2s step-end infinite;
}

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

/* =============== TECH STATS =============== */
.tech-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-stat {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.tech-stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--green);
  opacity: 0.4;
}

.tech-stat-value {
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
  display: inline;
}

.tech-stat-suffix {
  font-size: 24px;
  color: var(--green);
  display: inline;
}

.tech-stat-label {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

/* =============== DOWNLOAD =============== */
.download-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.download-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 16px 0 32px;
  line-height: 1.7;
}

/* Terminal block */
.terminal-block {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(45, 59, 45, 0.3);
  border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: #EF4444; }
.terminal-dot.yellow { background: #FBBF24; }
.terminal-dot.green { background: #4ADE80; }

.terminal-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.terminal-body {
  padding: 16px;
  font-size: 12px;
  line-height: 2;
}

.t-prompt { color: var(--green); }
.t-cmd { color: #fff; }
.t-comment { color: var(--text-dim); }
.t-success { color: var(--green); font-weight: 700; }

/* Store buttons */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 260px;
  padding: 14px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.store-btn:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.15);
  opacity: 1;
}

.store-icon {
  width: 32px;
  height: 32px;
  color: var(--green);
  flex-shrink: 0;
}

.store-icon svg { width: 100%; height: 100%; }

.store-text {
  display: flex;
  flex-direction: column;
}

.store-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.store-name {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--green);
}

.footer-brand img { filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.3)); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--green); }

.footer-copy {
  text-align: right;
}

.footer-copy p {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.footer-slogan {
  margin-top: 4px;
  color: rgba(74, 222, 128, 0.35);
  letter-spacing: 4px;
  font-size: 9px !important;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-content { grid-template-columns: 1fr; gap: 40px; }
  .download-buttons { flex-direction: row; justify-content: center; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .hero-logo { width: 120px; height: 120px; }

  .decode-char { width: 28px; font-size: 30px; }
  .decode-border { padding: 12px 16px; gap: 2px; }

  .hero-slogan { font-size: 11px; letter-spacing: 5px; }

  .section-container { padding: 60px 16px; }
  .section-header h2 { font-size: 17px; }

  .features-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  #globeCanvas { height: 350px; }

  .download-buttons { flex-direction: column; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }

  .hero-store-buttons { flex-direction: column; gap: 10px; }
  .hero-store-buttons .store-btn { width: 220px; }

  .corner-brackets { inset: 20px; }
}

@media (max-width: 480px) {
  .decode-char { width: 22px; font-size: 24px; }
  .decode-border { padding: 10px 12px; }
  .hero-slogan { font-size: 9px; letter-spacing: 4px; }
  .hero-logo { width: 100px; height: 100px; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .tech-stat-value { font-size: 32px; }
}
