:root {
  --bg: #020806;
  --panel: rgba(5, 22, 15, 0.74);
  --panel-strong: rgba(6, 31, 21, 0.92);
  --line: rgba(75, 255, 160, 0.26);
  --line-strong: rgba(111, 255, 188, 0.64);
  --text: #eafff3;
  --muted: #9ccdb5;
  --green: #48ff9b;
  --green-2: #b6ffd7;
  --cyan: #55f4ff;
  --danger: #ff637d;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% -10%, rgba(63, 255, 157, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(85, 244, 255, 0.12), transparent 30rem),
    linear-gradient(135deg, #020806 0%, #06120e 50%, #020806 100%);
  overflow-x: hidden;
}

a { color: var(--green-2); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.035), rgba(255,255,255,0.035) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
  opacity: 0.2;
}

.orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.19;
  pointer-events: none;
  background: radial-gradient(circle, var(--green), transparent 67%);
  z-index: -1;
}
.orb-a { top: 12%; left: -130px; }
.orb-b { right: -150px; bottom: 8%; background: radial-gradient(circle, var(--cyan), transparent 67%); }

.glass-card {
  background: linear-gradient(145deg, rgba(7, 27, 19, 0.88), rgba(4, 14, 11, 0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 30px rgba(72, 255, 155, 0.035);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.hero {
  padding: 18px clamp(16px, 4vw, 56px) 34px;
}
.topbar {
  width: min(1260px, 100%);
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-orb {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #06150f;
  background: radial-gradient(circle, var(--green), #138b55 68%, transparent 69%);
  font-weight: 900;
  box-shadow: 0 0 30px rgba(72, 255, 155, 0.55);
}
.brand strong { display: block; letter-spacing: 0.06em; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; }
.navlinks { display: flex; align-items: center; gap: 8px; }
.navlinks a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 14px;
}
.navlinks a:hover { color: var(--text); border-color: var(--line); background: rgba(72, 255, 155, 0.08); }
.menu-toggle { display: none; }

.hero-grid {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 22px;
}
.cover-card {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  padding: 10px;
  border-color: rgba(85, 244, 255, 0.28);
  background: linear-gradient(145deg, rgba(7, 27, 24, 0.74), rgba(2, 8, 6, 0.86));
}
.cover-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 44%, rgba(85, 244, 255, 0.14) 48%, transparent 54% 100%);
  mix-blend-mode: screen;
  opacity: 0.45;
}
.cover-card picture,
.cover-card img {
  display: block;
  width: 100%;
}
.cover-card img {
  height: auto;
  border-radius: calc(var(--radius) - 10px);
  border: 1px solid rgba(85, 244, 255, 0.24);
  box-shadow: 0 0 42px rgba(85, 244, 255, 0.14), 0 0 65px rgba(72, 255, 155, 0.09);
}
.cover-card figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 48px);
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-2);
  background: rgba(2, 8, 6, 0.78);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}
.hero-copy, .status-panel { padding: clamp(22px, 4vw, 42px); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}
h1 {
  margin: 0;
  max-width: 870px;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-wrap: balance;
}
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.primary-btn, .ghost-btn, .small-btn, .small-link {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 18px;
  color: #04100b;
  background: linear-gradient(135deg, var(--green), #1ed47d);
  box-shadow: 0 0 24px rgba(72, 255, 155, 0.24);
  font-weight: 850;
  text-decoration: none;
}
.ghost-btn, .small-link {
  color: var(--text);
  background: rgba(72, 255, 155, 0.075);
  box-shadow: none;
}
.ghost-btn:hover, .small-link:hover, .small-btn:hover, .primary-btn:hover { transform: translateY(-1px); }
.ghost-btn.danger { border-color: rgba(255, 99, 125, 0.42); color: #ffd9df; }
.compact { padding: 10px 14px; }
.small-btn, .small-link { padding: 8px 12px; font-size: 0.88rem; }
.mini-note { color: var(--muted); font-size: 0.93rem; }

.status-panel { position: relative; overflow: hidden; }
.status-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(from 180deg, transparent, rgba(72,255,155,.18), transparent 38%);
  opacity: .55;
  pointer-events: none;
}
.status-panel > * { position: relative; z-index: 1; }
.jarvis-eye {
  width: min(100%, 220px);
  min-height: 170px;
  margin: 0 auto 18px;
  padding: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: radial-gradient(circle, rgba(72, 255, 155, .18), rgba(72, 255, 155, .05) 58%, transparent 86%);
  box-shadow: 0 0 40px rgba(72,255,155,.18), inset 0 0 26px rgba(85,244,255,.08);
}
.jarvis-eye img {
  width: min(100%, 180px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(72,255,155,.28));
}
@keyframes pulse { 50% { transform: scale(.65); opacity: .7; } }
.panel-label { color: var(--green); margin: 0; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.jarvis-message { min-height: 72px; color: var(--text); line-height: 1.55; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,.18); }
.mini-grid strong { display: block; color: var(--green-2); font-size: 1.05rem; }
.mini-grid span { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }

main { width: min(1260px, calc(100% - 32px)); margin: 0 auto 34px; }
.radar-section { display: grid; gap: 18px; }
.control-panel { padding: 18px; }
.control-row { display: grid; grid-template-columns: minmax(240px, 1fr) 150px auto auto; align-items: end; gap: 14px; }
.control-row.second { grid-template-columns: repeat(3, max-content); justify-content: end; margin-top: 12px; }
label { color: var(--muted); font-size: .92rem; }
.input-line { display: flex; gap: 8px; margin-top: 8px; }
input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.34);
  outline: none;
}
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(72, 255, 155, 0.12); }
.check-label {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(0,0,0,.18);
  color: var(--text);
}
.check-label input { width: 18px; min-height: 18px; accent-color: var(--green); }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
  gap: 18px;
}
.map-shell { position: relative; overflow: hidden; padding: 10px; min-height: 620px; }
#map { width: 100%; height: 600px; border-radius: 18px; background: #06130e; overflow: hidden; }
.leaflet-control-attribution { background: rgba(2, 8, 6, .8) !important; color: #cdeedc !important; }
.leaflet-control-attribution a { color: #b6ffd7 !important; }
.map-hud {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 500;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  max-width: calc(100% - 48px);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 8, 6, .82);
  color: var(--green-2);
  font-size: .9rem;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}
.result-shell { padding: 18px; min-height: 620px; max-height: 650px; overflow: hidden; display: flex; flex-direction: column; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.result-head h2 { margin: 0; }
.loading-badge {
  color: #06150f;
  background: var(--green);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .8rem;
  font-weight: 900;
}
.hidden { display: none !important; }
.results { overflow: auto; padding-right: 4px; display: grid; gap: 12px; }
.result-card, .empty-state {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: rgba(0,0,0,.22);
}
.result-title-row { display: flex; gap: 12px; justify-content: space-between; align-items: start; }
.result-title-row h3 { margin: 0; font-size: 1rem; }
.distance { color: var(--green); font-weight: 900; white-space: nowrap; }
.badges { display: flex; gap: 7px; flex-wrap: wrap; margin: 11px 0; }
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green-2);
  background: rgba(72, 255, 155, 0.075);
  font-size: .76rem;
}
.badge.warn { color: #ffe8a3; border-color: rgba(255, 231, 150, .35); background: rgba(255, 213, 74, .08); }
.badge.no { color: #ffb8c3; border-color: rgba(255, 99, 125, .35); background: rgba(255, 99, 125, .08); }
.details { color: var(--muted); line-height: 1.5; font-size: .92rem; }
.result-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.info-card { padding: 22px; }
.info-card h2 { margin-top: 0; }
.info-card p { color: var(--muted); line-height: 1.65; }
.footer {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .9rem;
}
.footer p { margin: 0; }

.wc-marker {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50%;
  border: 1px solid rgba(72,255,155,.7);
  background: #06150f;
  color: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px rgba(72,255,155,.4);
  font-size: 18px;
}
.user-marker {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  background: var(--cyan);
  border: 4px solid #062b2d;
  box-shadow: 0 0 28px rgba(85,244,255,.8);
}

@media (max-width: 980px) {
  .hero-grid, .map-layout, .info-grid { grid-template-columns: 1fr; }
  .cover-card { grid-column: auto; }
  .control-row { grid-template-columns: 1fr 1fr; }
  .control-row.second { grid-template-columns: 1fr; justify-content: stretch; }
  .compact { width: 100%; }
  .result-shell { max-height: none; }
}

@media (max-width: 680px) {
  .hero { padding: 14px 14px 24px; }
  main, .footer { width: calc(100% - 24px); }
  .topbar { position: relative; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(0,0,0,.25);
  }
  .navlinks {
    position: absolute;
    right: 0;
    top: 54px;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 210px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2,8,6,.96);
  }
  .navlinks.open { display: flex; }
  .brand strong { font-size: .92rem; }
  .hero-copy, .status-panel { padding: 20px; }
  .cover-card { padding: 7px; border-radius: 20px; }
  .cover-card img { border-radius: 14px; }
  .cover-card figcaption { left: 14px; right: 14px; bottom: 14px; max-width: none; font-size: .78rem; }
  h1 { font-size: clamp(2rem, 14vw, 3.4rem); }
  .hero-actions { display: grid; }
  .primary-btn, .ghost-btn { width: 100%; }
  .mini-grid { grid-template-columns: 1fr; }
  .control-row { grid-template-columns: 1fr; }
  .input-line { flex-direction: column; }
  .map-shell { min-height: 460px; }
  #map { height: 440px; }
  .result-shell { min-height: auto; }
  .footer { flex-direction: column; }
}


.seo-content {
  margin: 22px 0;
  padding: 24px;
}
.seo-content h2, .faq-head h2 { margin-top: 0; }
.seo-content p { color: var(--muted); line-height: 1.75; max-width: 980px; }
.seo-content strong { color: var(--green-2); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.faq-head {
  grid-column: 1 / -1;
  padding: 24px;
}
.faq-card {
  padding: 20px;
}
.faq-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--green-2);
}
.faq-card p { margin: 0; color: var(--muted); line-height: 1.6; }
@media (max-width: 980px) { .faq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .seo-content, .faq-head, .faq-card { padding: 18px; } .faq-grid { grid-template-columns: 1fr; } }
