/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080F1E;
  --bg2:        #0D1830;
  --bg3:        #132040;
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(0,230,120,0.18);
  --accent:     #00C8D4;       /* cyan — "Wave" */
  --accent2:    #00E5FF;
  --green:      #00E676;       /* bright green — "Hunter" / location pin */
  --green2:     #39FF8F;
  --text:       #E8F0FE;
  --text2:      rgba(220,235,255,0.6);
  --text3:      rgba(220,235,255,0.3);
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 12px 40px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ── World background scene ─────────────────────────────────────────────────── */
.world-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.world-bg svg {
  width: 100%;
  height: 100%;
}

/* ── Tower signal wave animations ───────────────────────────────────────────── */

/* Base: all wave paths start hidden */
.wave-c, .wave-g { opacity: 0; }

/* Cyan tower waves — pulse outward, 3.6s cycle */
@keyframes waveOutCyan {
  0%   { opacity: 0;    stroke-width: 1.8; }
  8%   { opacity: 0.55; }
  55%  { opacity: 0.22; }
  100% { opacity: 0;    stroke-width: 0.6; }
}

/* Green tower waves — same rhythm, slightly different peak */
@keyframes waveOutGreen {
  0%   { opacity: 0;    stroke-width: 1.6; }
  8%   { opacity: 0.50; }
  55%  { opacity: 0.20; }
  100% { opacity: 0;    stroke-width: 0.5; }
}

/* Cyan waves — inner fires first, outer last, staggered by 0.7s */
.wave-c-1 { animation: waveOutCyan  3.6s ease-out infinite 0s; }
.wave-c-2 { animation: waveOutCyan  3.6s ease-out infinite 0.7s; }
.wave-c-3 { animation: waveOutCyan  3.6s ease-out infinite 1.4s; }

/* Green waves — offset whole cycle by 1.2s vs cyan (different towers breathe out of sync) */
.wave-g-1 { animation: waveOutGreen 3.6s ease-out infinite 1.2s; }
.wave-g-2 { animation: waveOutGreen 3.6s ease-out infinite 1.9s; }
.wave-g-3 { animation: waveOutGreen 3.6s ease-out infinite 2.6s; }

/* pin ripple animation */
@keyframes pinRipple {
  0%   { r: 18; opacity: 0.5; }
  100% { r: 60; opacity: 0; }
}
@keyframes pinRippleSm {
  0%   { r: 12; opacity: 0.4; }
  100% { r: 40; opacity: 0; }
}
.pin-ring        { animation: pinRipple   2.8s ease-out infinite; }
.pin-ring-2      { animation: pinRipple   2.8s ease-out infinite 0.9s; }
.pin-ring-3      { animation: pinRipple   2.8s ease-out infinite 1.8s; }
.pin-ring-sm     { animation: pinRippleSm 2.8s ease-out infinite 0.4s; }
.pin-ring-sm.pin-ring-2 { animation: pinRippleSm 2.8s ease-out infinite 1.3s; }

/* ── Global wave background ─────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,120,160,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 20%,  rgba(0,230,120,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 0%  80%,  rgba(0,150,200,0.08) 0%, transparent 60%),
    linear-gradient(175deg, #080F1E 0%, #0B1525 40%, #091420 70%, #060C18 100%);
  pointer-events: none;
}

/* wave SVG pattern layer */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 560' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='wg' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23004D5A' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23003D3A' stop-opacity='0.55'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 400 Q180 340 360 380 Q540 420 720 360 Q900 300 1080 350 Q1260 400 1440 330 L1440 560 L0 560Z' fill='url(%23wg)'/%3E%3Cpath d='M0 440 Q200 390 400 430 Q600 470 800 410 Q1000 350 1200 400 Q1350 435 1440 390 L1440 560 L0 560Z' fill='%23003830' fill-opacity='0.35'/%3E%3Cpath d='M0 480 Q240 450 480 470 Q720 490 960 455 Q1150 425 1440 460 L1440 560 L0 560Z' fill='%23002820' fill-opacity='0.25'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green) 0%, #00BFB3 100%);
  color: #060C18;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: filter .18s, transform .12s, box-shadow .18s;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,230,120,0.25);
}
.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(0,230,120,0.4);
}

.btn-lg  { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-xl  { padding: 16px 36px; font-size: 16px; border-radius: var(--radius); gap: 12px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text2);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  transition: border-color .18s, color .18s, background .18s;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,200,212,0.06);
}

/* ── Nav ────────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,15,30,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,200,212,0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.3px;
}

.nav-logo span em {
  font-style: normal;
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s;
  letter-spacing: .5px;
}
.lang-btn:hover { color: var(--green); border-color: var(--green); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 0;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%,  rgba(0,200,212,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 75% 30%,  rgba(0,230,120,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 25% 35% at 15% 60%,  rgba(0,150,200,0.08) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Hero icon background ───────────────────────────────────────────────────── */
.hero-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  width: min(720px, 110vw);
  height: min(720px, 110vw);
  pointer-events: none;
  z-index: 0;
}

/* blurred glow — extracts icon colors as a soft light splash */
.hero-icon-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.22;
  filter: blur(55px) saturate(1.8) brightness(0.85);
  border-radius: 40%;
}

/* ghost watermark — faint visible silhouette of the tower */
.hero-icon-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.045;
  filter: saturate(0.4) brightness(1.4);
  border-radius: 28%;
  mix-blend-mode: screen;
}

/* make sure hero content sits above the glow */
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(0,230,120,0.08);
  border: 1px solid rgba(0,230,120,0.3);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ── Phone mockups ──────────────────────────────────────────────────────────── */
.hero-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.phone { position: relative; }
.phone-left  { transform: rotate(-6deg) translateY(24px); }
.phone-right { transform: rotate(6deg) translateY(24px); }
.phone-center { z-index: 2; }

.phone-frame {
  width: 180px;
  height: 360px;
  border-radius: 28px;
  border: 1.5px solid rgba(0,200,212,0.2);
  background: linear-gradient(160deg, #0D1830 0%, #0A1222 100%);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.phone-frame-main {
  width: 210px;
  height: 420px;
  box-shadow: 0 24px 60px rgba(0,230,120,0.15), 0 0 0 1px rgba(0,230,120,0.12), var(--shadow);
  border-color: rgba(0,230,120,0.25);
}

.phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-frame.placeholder .phone-placeholder-text { display: flex; }
.phone-frame.placeholder img { display: none; }

.phone-placeholder-text {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 13px;
  font-weight: 600;
}

/* ── Stats ──────────────────────────────────────────────────────────────────── */
.stats {
  padding: 60px 0;
  border-top: 1px solid rgba(0,200,212,0.1);
  border-bottom: 1px solid rgba(0,200,212,0.1);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text2);
  font-size: 13px;
}

/* ── Section common ─────────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.2;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Features ───────────────────────────────────────────────────────────────── */
.features { padding: 100px 0; }

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

.feature-card {
  background: rgba(13,24,48,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: rgba(0,230,120,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,230,120,0.1);
}

.feature-card-wide {
  grid-column: span 2;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.feature-card-wide .feature-content h3 { margin-bottom: 8px; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.feature-card-wide .feature-icon { margin-bottom: 0; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.65;
}

/* ── How it works ───────────────────────────────────────────────────────────── */
.how {
  padding: 100px 0;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(0,200,212,0.08);
  border-bottom: 1px solid rgba(0,200,212,0.08);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step {
  flex: 1;
  background: rgba(13,24,48,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.step-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .5;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text2);
  font-size: 13.5px;
  line-height: 1.6;
}

.step-arrow {
  font-size: 28px;
  color: var(--text3);
  padding-top: 32px;
  flex-shrink: 0;
}

/* ── Screenshots ────────────────────────────────────────────────────────────── */
.screenshots { padding: 100px 0; overflow: hidden; }

.screenshots-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,200,212,0.2) transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.screenshots-row:active { cursor: grabbing; }
.screenshots-row::-webkit-scrollbar { height: 4px; }
.screenshots-row::-webkit-scrollbar-track { background: transparent; }
.screenshots-row::-webkit-scrollbar-thumb { background: rgba(0,200,212,0.2); border-radius: 2px; }

.screen-item { flex-shrink: 0; }

.phone-frame-lg {
  width: 220px;
  height: 440px;
  border-radius: 32px;
  border: 1.5px solid rgba(0,200,212,0.15);
  background: linear-gradient(160deg, #0D1830 0%, #0A1222 100%);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.phone-frame-lg:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,230,120,0.15);
}

.phone-frame-lg img { width: 100%; height: 100%; object-fit: cover; }
.phone-frame-lg.placeholder .phone-placeholder-text { display: flex; }
.phone-frame-lg.placeholder img { display: none; }

/* ── Download ───────────────────────────────────────────────────────────────── */
.download { padding: 100px 0; }

.download-card {
  position: relative;
  background: rgba(13,24,48,0.8);
  border: 1px solid rgba(0,230,120,0.2);
  border-radius: 24px;
  text-align: center;
  padding: 72px 32px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 80px rgba(0,230,120,0.06), inset 0 1px 0 rgba(255,255,255,0.05);
}

.download-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,230,120,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 100%, rgba(0,200,212,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* tower icon in download card */
.download-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,230,120,0.3);
}
.download-icon img { width: 100%; height: 100%; object-fit: cover; }

.download-content { position: relative; }

.download-content h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}

.download-content > p {
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 32px;
}

.download-note {
  margin-top: 16px !important;
  color: var(--text3) !important;
  font-size: 13px !important;
  margin-bottom: 0 !important;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(0,200,212,0.1);
  padding: 40px 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  color: var(--text2);
  font-size: 14px;
  transition: color .15s;
}
.footer-links a:hover { color: var(--green); }

.footer-copy {
  color: var(--text3);
  font-size: 13px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding-top: 60px; }
  .hero h1 { letter-spacing: -.8px; }

  .hero-phones { gap: 10px; }
  .phone-frame { width: 130px; height: 260px; border-radius: 20px; }
  .phone-frame-main { width: 155px; height: 310px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

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

  .steps { flex-direction: column; gap: 12px; }
  .step-arrow { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-phones .phone-left, .hero-phones .phone-right { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { justify-content: center; }
}
