:root{
  --bg: #0a0a0c;
  --fg: #e6e7eb;
  --muted: #a5abb4;
  --neon: #bfc6d2;
  --neon-glow: rgba(191,198,210,.45);
  --radius: 16px;
  --shadow-neon: 0 0 0.5px var(--neon), 0 0 14px var(--neon-glow);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html, body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(191,198,210,.07), transparent 60%), var(--bg);
  color: var(--fg);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 500;
  line-height: 1.5;
}

.container{
  width: min(970px, 92vw);
  margin: 0 auto;
  min-height: calc(100svh - 96px);
  display: grid;
  place-items: center;
  padding: 20px 0 64px;
  transform: translateY(-6vh);
}

.topbar{
  position: relative;
  width: min(1100px, 94vw);
  margin: 20px auto 18px;
  border: 1px solid var(--neon);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow-neon);
  transform: translateY(-40px);
}
.topbar{
  z-index: 5;
}

.topbar__inner{
  display: flex;
  align-items: center;
  padding: 10px 14px;
}
.topbar__title{
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: .2px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease;
}
.topbar__title:hover{
  border-color: var(--neon);
  box-shadow: var(--shadow-neon);
}
.topbar__title:active{
  transform: translateY(1px);
}
.topbar__title[aria-current="page"]{
  border-color: var(--neon);
  box-shadow: var(--shadow-neon);
}

.card{
  border: 1px solid var(--neon);
  border-radius: var(--radius);
  padding: 26px 30px;
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow-neon);
  max-width: 720px;
  margin: 0 auto;
}

.h1{
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 8px 0;
  font-weight: 800;
}
.subtle-strong{
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2.1vw, 18px);
  font-weight: 700;
}

.home-stats-wrap{
  margin-top: 48px;
}

.glow {
        position: fixed;
        top: 0;
        left: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(60,60,60,0.9) 0%, rgba(60,60,60,0.2) 70%, transparent 100%);
        pointer-events: none;
        filter: blur(8px);
        box-shadow: 0 0 30px rgba(60,60,60,0.8), 0 0 60px rgba(60,60,60,0.6);
        transform: translate(-50%, -50%);
    }

:focus-visible{
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  box-shadow: 0 0 10px var(--neon-glow);
  border-radius: 8px;
}

.scale-wrap{
  transform-origin: center center;
  will-change: transform;
  opacity: 0;
  transform: translateY(40px);
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar--enter.play {
  animation: dropIn .6s cubic-bezier(.22,1,.36,1) forwards;
}
.scale-wrap.play {
  animation: riseIn .65s cubic-bezier(.22,1,.36,1) .12s forwards;
}

.halo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -40vmin;
  width: 100vw;
  height: 60vmin;
  margin: 0 auto;
  border-top-left-radius: 100%;
  border-top-right-radius: 100%;
  background: rgba(230, 231, 235, 0.23);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(0);
  box-shadow:
    0 0 40px rgba(191,198,210,.35),
    0 0 90px rgba(191,198,210,.20),
    0 0 140px rgba(191,198,210,.15);
  filter: blur(0.3px);
  animation: haloFadeIn 1.2s ease-in forwards 3s, haloPulse 3.2s ease-in-out 4.2s infinite alternate;
}

.home-logo{
  display: block;
  margin: clamp(40px, 6vh, 70px) auto 0;
  width: clamp(160px, 28vw, 360px);
  height: auto;
  opacity: .95;
  filter:
    drop-shadow(0 0 10px rgba(191,198,210,.28))
    drop-shadow(0 0 24px rgba(191,198,210,.18));
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    filter .22s ease,
    opacity .2s ease;
}

.home-logo:hover{
  transform: translateY(-3px) scale(1.06);
  filter:
    drop-shadow(0 0 14px rgba(191,198,210,.45))
    drop-shadow(0 0 36px rgba(191,198,210,.28));
}

@keyframes haloFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes haloPulse {
  0% {
    box-shadow:
      0 0 30px rgba(191,198,210,.28),
      0 0 70px rgba(191,198,210,.18),
      0 0 110px rgba(191,198,210,.10);
  }
  100% {
    box-shadow:
      0 0 60px rgba(191,198,210,.40),
      0 0 130px rgba(191,198,210,.28),
      0 0 200px rgba(191,198,210,.20);
  }
}

@keyframes haloRise {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes haloRise {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes haloPulse {
  0% {
    box-shadow:
      0 0 30px rgba(191,198,210,.28),
      0 0 70px rgba(191,198,210,.18),
      0 0 110px rgba(191,198,210,.10);
  }
  100% {
    box-shadow:
      0 0 60px rgba(191,198,210,.40),
      0 0 130px rgba(191,198,210,.28),
      0 0 200px rgba(191,198,210,.20);
  }
}

.halo--enter.play{
  animation:
    haloRise .7s cubic-bezier(.22,1,.36,1) .1s forwards,
    haloPulse 3.2s ease-in-out .9s infinite alternate;
}

.view{
  width: min(1100px, 94vw);
  position: relative;
  z-index: 1;
}

.check-grid{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field{
  display: grid;
  gap: 8px;
  text-align: left;
}

.field label{
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.select, .btn{
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--neon);
  background: rgba(255,255,255,0.02);
  color: var(--fg);
  padding: 0 12px;
  font: inherit;
  box-shadow: none;
}

.select:focus-visible, .btn:focus-visible{
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  box-shadow: 0 0 10px var(--neon-glow);
}

.btn{
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .2px;
  transition: box-shadow .2s ease, transform .06s ease, background .2s ease;
}

.btn:hover{
  box-shadow: var(--shadow-neon);
}

.btn:active{
  transform: translateY(1px);
}

.result{
  margin-top: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(191,198,210,.6);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0.5px rgba(191,198,210,.55);
  font-weight: 800;
  letter-spacing: .2px;
  text-align: center;
}

.mini{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  margin: 10px 0 0 0;
}

.dropdown{
  position: relative;
  width: 100%;
}

.dropdown-trigger{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--neon);
  background: rgba(255,255,255,0.02);
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  padding: 0 12px;
}

.dropdown-menu{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--neon);
  background: rgba(10,14,20,0.98);
  box-shadow: var(--shadow-neon);
  max-height: 260px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.dropdown.open .dropdown-menu{
  display: block;
}

.dropdown-item{
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.dropdown-item:hover{
  background: rgba(255,255,255,0.05);
}

.home-wrap{
  text-align: center;
  padding: 80px 20px;
}

.home-title{
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 60px;
}

.home-stats{
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.home-stat{
  min-width: 220px;
}

.home-number{
  font-size: 48px;
  font-weight: 900;
  color: var(--neon);
}

.home-label{
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}