@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
  --bg: #0e1210;
  --surface: #161c14;
  --surface2: #1e2820;
  --border: #2a3828;
  --accent-orange: #ff5e00;
  --accent-green: #4aff91;
  --accent-amber: #ffc000;
  --text: #dde8d5;
  --text-muted: #7a9070;
  --text-dim: #3d5238;
  --mono: 'Space Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* GRID BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 255, 145, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 255, 145, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent-orange);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent-orange);
  clip-path: polygon(50% 0%, 100% 100%, 50% 75%, 0% 100%);
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 94, 0, 0.3);
}

.nav-logo-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  color: var(--accent-orange);
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
  text-transform: uppercase;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-green);
}

.nav-links a.active::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent-green);
}

.nav-cta {
  background: var(--accent-orange) !important;
  color: var(--bg) !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)) !important;
}

.nav-cta:hover {
  background: #ff7a30 !important;
  color: var(--bg) !important;
}

.nav-cta.active::before {
  display: none !important;
}

/* MAIN WRAPPER */
main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* SECTION BASE */
section {
  position: relative;
}

/* COORD TAG */
.coord-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coord-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-orange);
}

/* SECTION LABEL */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-orange);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent-orange);
  opacity: 0.5;
}

/* DISPLAY HEADING */
h1, h2.display {
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
}

h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

/* ORANGE HIGHLIGHT */
.hi-orange { color: var(--accent-orange); }
.hi-green { color: var(--accent-green); }
.hi-amber { color: var(--accent-amber); }

/* CONTAINER */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* DIVIDER LINE */
.line-h {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--bg);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: #ff7a30;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  clip-path: none;
}

.btn-ghost:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn-green {
  background: var(--accent-green);
  color: var(--bg);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-green:hover {
  background: #6cffaa;
  transform: translateY(-2px);
}

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-orange);
}

.card-number {
  font-family: var(--mono);
  font-size: 48px;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 16px;
}

/* STAT BLOCK */
.stat-block {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-value {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* FEATURE ICON */
.feat-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-orange);
  font-size: 20px;
  flex-shrink: 0;
}

/* STEP */
.step-line {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step-num {
  font-family: var(--display);
  font-size: 80px;
  line-height: 1;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 100px;
}

/* TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px 20px;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:hover td {
  background: var(--surface);
}

/* TAG */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}

.tag-orange {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.tag-green {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.tag-amber {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-coords {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* DECORATIVE CROSS */
.deco-cross {
  position: absolute;
  width: 20px;
  height: 20px;
}

.deco-cross::before,
.deco-cross::after {
  content: '';
  position: absolute;
  background: var(--accent-orange);
  opacity: 0.3;
}

.deco-cross::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.deco-cross::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

/* SCANLINE EFFECT */
.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
}

/* TOPO PATTERN */
.topo-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cellipse cx='200' cy='200' rx='180' ry='120' fill='none' stroke='%234aff9108' stroke-width='1'/%3E%3Cellipse cx='200' cy='200' rx='140' ry='90' fill='none' stroke='%234aff9110' stroke-width='1'/%3E%3Cellipse cx='200' cy='200' rx='100' ry='65' fill='none' stroke='%234aff9115' stroke-width='1'/%3E%3Cellipse cx='200' cy='200' rx='65' ry='42' fill='none' stroke='%234aff9120' stroke-width='1'/%3E%3Cellipse cx='200' cy='200' rx='35' ry='22' fill='none' stroke='%234aff9130' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -100px top 50%;
  background-size: 600px 600px;
}

/* SCROLL INDICATOR */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 60px;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-orange);
  animation: slide 2s ease-in-out infinite;
}

@keyframes slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* PING DOT */
.ping-dot {
  position: relative;
  width: 8px;
  height: 8px;
}

.ping-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-green);
  border-radius: 50%;
}

.ping-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent-green);
  border-radius: 50%;
  animation: ping 2s ease-out infinite;
  opacity: 0;
}

@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* MAP CARD */
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s;
}

.map-card:hover {
  border-color: var(--accent-orange);
}

.map-preview {
  height: 160px;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-card-body {
  padding: 20px;
}

.map-card-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.map-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* DOWNLOAD BOX */
.download-box {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 40px;
  position: relative;
}

.download-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), transparent);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .container { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* GRID LAYOUTS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* UTILITY */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mt-80 { margin-top: 80px; }
.mt-96 { margin-top: 96px; }
.mb-8  { margin-bottom: 8px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.py-120 { padding-top: 120px; padding-bottom: 120px; }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--mono); }
