:root{
  --bg:#05080c;
  --bg2:#03060a;
  --panel:#0c1117;
  --panel2:#0a0f14;
  --line:#0f1a21;
  --accent:#00f6ff;
  --text:#e6edf3;
  --muted:#8b98a5;
  --ok:#00ff9c;
  --warn:#ffd047;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
}

/* Background: moving grid + scanline + radar + noise */
.bg-grid{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    linear-gradient(rgba(0,246,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,246,255,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  animation:gridMove 40s linear infinite;
  opacity:.75;
}
@keyframes gridMove { to { background-position: 800px 800px; } }

.bg-radar{
  position:fixed; width:720px; height:720px; border-radius:50%;
  top:-260px; right:-260px;
  border:1px solid rgba(0,246,255,.18);
  box-shadow: inset 0 0 0 1px rgba(0,246,255,.08);
  z-index:1; pointer-events:none;
  animation: radarSpin 22s linear infinite;
}
.bg-radar::before{
  content:"";
  position:absolute; inset:0;
  background: conic-gradient(from 0deg, rgba(0,246,255,.0), rgba(0,246,255,.18), rgba(0,246,255,.0));
  border-radius:50%;
  filter: blur(1px);
  opacity:.75;
}
.bg-radar::after{
  content:"";
  position:absolute; inset:10%;
  border-radius:50%;
  border:1px dashed rgba(0,246,255,.14);
}
@keyframes radarSpin { to { transform: rotate(360deg); } }

.bg-scan{
  position:fixed; inset:0; z-index:2; pointer-events:none;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,246,255,.05) 50%, transparent 100%);
  opacity:.35;
  animation: scanMove 7s linear infinite;
}
@keyframes scanMove { from { transform: translateY(-120%);} to { transform: translateY(120%);} }

.bg-noise{
  position:fixed; inset:0; z-index:3; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity:.15;
}

/* Nav */
.nav{
  position:fixed; top:0; width:100%; z-index:10;
  padding:18px 7%;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  background: rgba(5,8,12,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(0,246,255,.08);
}
.logo{
  text-decoration:none;
  color:var(--accent);
  font-weight:800;
  letter-spacing:3px;
}
.navlinks a{
  text-decoration:none;
  color:var(--muted);
  margin-left:18px;
  font-size:.95rem;
}
.navlinks a:hover{ color: var(--accent); }
.navlinks a.active{ color: var(--accent); }

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

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px;
  border-radius:10px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  user-select:none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn.primary{
  background: var(--accent);
  color:#001014;
  box-shadow: 0 10px 30px rgba(0,246,255,.18);
}
.btn.ghost{
  background: rgba(12,17,23,.65);
  color: var(--text);
  border-color: rgba(0,246,255,.18);
}
.btn.link{
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 12px 6px;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

/* Hero */
.hero{
  position:relative;
  z-index:5;
  min-height:100vh;
  padding: 130px 7% 60px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 42px;
}
.kicker{
  display:flex; align-items:center; gap:10px;
  color: var(--muted);
  font-size:.95rem;
  margin-bottom: 14px;
}
.pulse-dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0,246,255,.45);
  animation: pulse 1.6s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(0,246,255,.45); }
  100%{ box-shadow: 0 0 0 16px rgba(0,246,255,0); }
}
.hero-title{
  font-size: 3.6rem;
  line-height: 1.05;
  letter-spacing: .5px;
}
.accent{ color: var(--accent); }
.hero-sub{
  margin: 18px 0 22px;
  color: var(--muted);
  max-width: 680px;
}

.hero-actions{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.hero-ticker{
  margin-top: 26px;
  border:1px solid rgba(0,246,255,.12);
  border-radius:12px;
  overflow:hidden;
  background: rgba(12,17,23,.35);
}
.ticker-track{
  display:flex;
  gap: 18px;
  padding: 10px 12px;
  white-space: nowrap;
  color: rgba(0,246,255,.7);
  font-weight:700;
  letter-spacing:1.2px;
  animation: ticker 14s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.hud-panel{
  background: linear-gradient(180deg, rgba(12,17,23,.82), rgba(10,15,20,.82));
  border: 1px solid rgba(0,246,255,.12);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hud-title{
  color: rgba(0,246,255,.85);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: .9rem;
}
.hud-row{
  display:flex; justify-content:space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,246,255,.06);
  color: var(--muted);
}
.hud-row:last-child{ border-bottom:none; }

.tag{
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,246,255,.18);
  color: var(--text);
  background: rgba(0,246,255,.06);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .6px;
}
.tag.ok{ border-color: rgba(0,255,156,.25); background: rgba(0,255,156,.06); }
.tag.warn{ border-color: rgba(255,208,71,.28); background: rgba(255,208,71,.06); }

.hud-stats{
  margin-top: 14px;
  display:grid;
  gap: 14px;
}
.stat{
  border-radius: 16px;
  padding: 16px;
  background: rgba(12,17,23,.7);
  border: 1px solid rgba(0,246,255,.12);
  box-shadow: var(--shadow);
  position:relative;
}
.stat::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 3px;
  background: var(--accent);
  border-radius: 16px 0 0 16px;
  opacity:.9;
}
.stat-num{ font-size: 2rem; color: var(--accent); font-weight: 900; }
.stat-label{ margin-top: 6px; color: var(--muted); }

/* Sections */
.section{ position:relative; z-index:5; padding: 90px 7%; }
.section.dark{ background: rgba(3,6,10,.55); border-top:1px solid rgba(0,246,255,.06); border-bottom:1px solid rgba(0,246,255,.06); }

.section-head{
  display:flex; flex-direction:column; gap:8px;
  margin-bottom: 22px;
}
.section-head h2{ color: var(--accent); letter-spacing: 1px; }
.section-head p{ color: var(--muted); max-width: 900px; }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel{
  background: rgba(12,17,23,.75);
  border: 1px solid rgba(0,246,255,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel h3{ margin-bottom: 8px; }
.panel p{ color: var(--muted); }

.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card{
  background: rgba(12,17,23,.72);
  border: 1px solid rgba(0,246,255,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(0,246,255,.28);
}

.project{
  background: rgba(12,17,23,.78);
  border: 1px solid rgba(0,246,255,.12);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.project-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom: 10px;
}
.project p{ color: var(--muted); }
.project-actions{ margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap; }

.progress{
  margin-top: 12px;
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow:hidden;
}
.bar{
  height:100%;
  background: linear-gradient(90deg, rgba(0,246,255,.9), rgba(0,246,255,.35));
}

.join-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.list{ padding-left: 18px; color: var(--muted); }
.list li{ margin: 8px 0; }

.inline-cta{ margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap; }

.contact-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.contact-link{
  display:inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration:none;
  font-weight:800;
}
.contact-link:hover{ text-decoration: underline; }

.disclaimer{
  margin-top: 18px;
  border: 1px solid rgba(0,246,255,.10);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  background: rgba(12,17,23,.55);
}

.footer{
  position:relative; z-index:5;
  padding: 26px 7%;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border-top: 1px solid rgba(0,246,255,.08);
  color: var(--muted);
}
.footer-links a{
  color: var(--muted);
  text-decoration:none;
  margin-left: 14px;
}
.footer-links a:hover{ color: var(--accent); }

.page-hero{
  position:relative; z-index:5;
  padding: 130px 7% 26px;
}
.page-hero h1{ font-size: 2.6rem; }
.muted{ color: var(--muted); }
.small{ font-size: .9rem; }

/* Updates page components */
.updates{
  display:grid;
  gap: 14px;
}
.update{
  background: rgba(12,17,23,.75);
  border: 1px solid rgba(0,246,255,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.update-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

/* KV grid */
.kv{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kv-item{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(0,246,255,.08);
  border-radius: 12px;
  background: rgba(10,15,20,.55);
  color: var(--muted);
}
.kv-item span:first-child{ color: rgba(0,246,255,.75); font-weight:800; }

/* Modal */
.modal{ position: fixed; inset: 0; z-index: 50; display:none; }
.modal.open{ display:block; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); }
.modal-card{
  position:relative;
  width: min(720px, 92vw);
  margin: 90px auto 20px;
  background: rgba(12,17,23,.92);
  border: 1px solid rgba(0,246,255,.14);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.modal-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap: 12px;
  border-bottom: 1px solid rgba(0,246,255,.08);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.modal-title{ font-weight: 900; color: var(--accent); letter-spacing: 1px; }
.modal-sub{ color: var(--muted); font-size: .95rem; margin-top: 4px; }
.icon-btn{
  border: 1px solid rgba(0,246,255,.14);
  background: rgba(0,246,255,.06);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
}

.form{ display:grid; gap: 12px; }
.form-row{ display:grid; gap: 6px; }
label{ color: rgba(0,246,255,.8); font-weight: 800; font-size: .9rem; letter-spacing: .6px; }
input, textarea, select{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,246,255,.12);
  background: rgba(10,15,20,.65);
  color: var(--text);
  outline:none;
}
textarea{ resize: vertical; min-height: 110px; }
.form-actions{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }

/* Reveal animation base */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .join-grid{ grid-template-columns: 1fr; }
  .kv{ grid-template-columns: 1fr; }
  .nav{ padding: 16px 5%; }
  .hero{ padding: 120px 5% 50px; }
  .section{ padding: 80px 5%; }
  .page-hero{ padding: 120px 5% 26px; }
  .hero-title{ font-size: 2.8rem; }
}
