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

:root {
  --bg: #0d0d1a;
  --bg2: #12122a;
  --bg3: #1a1a35;
  --blue: #00cfff;
  --pink: #ff2d78;
  --green: #39ff14;
  --yellow: #ffe500;
  --purple: #a855f7;
  --text: #e0e0f0;
  --muted: #6b6b9a;
  --card: rgba(255,255,255,0.04);
  --glow-blue: 0 0 20px #00cfff88, 0 0 40px #00cfff44;
  --glow-pink: 0 0 20px #ff2d7888, 0 0 40px #ff2d7844;
  --glow-green: 0 0 20px #39ff1488, 0 0 40px #39ff1444;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Particle / glow background ── */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, #00cfff18 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 80%, #ff2d7818 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 10%, #a855f712 0%, transparent 50%);
}

.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.3); }
}

/* ── Layout ── */
.page {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 32px;
}

.logo img {
  max-height: 50px;
  display: block;
}

.logo-fallback {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  text-shadow: var(--glow-blue);
  letter-spacing: 1px;
}

/* ── Hero title ── */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Input card ── */
.input-card {
  background: var(--card);
  border: 1px solid rgba(0,207,255,0.15);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0,207,255,0.08), 0 8px 40px rgba(0,0,0,0.4);
}

.input-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}

.input-question {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

input[type="range"] {
  -webkit-appearance: none;
  flex: 1;
  min-width: 180px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--blue) var(--pct, 8.33%), rgba(255,255,255,0.1) var(--pct, 8.33%));
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: var(--glow-blue);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px #00cfffaa, 0 0 60px #00cfff66;
}

input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: var(--glow-blue);
  cursor: pointer;
}

/* ── Number input — wider box so label fits outside ── */
.number-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

input[type="number"] {
  width: 80px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,207,255,0.3);
  border-radius: 12px;
  color: var(--blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

input[type="number"]:focus {
  border-color: var(--blue);
  box-shadow: var(--glow-blue);
}

.unit-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── Shock value section ── */
.shock {
  text-align: center;
  margin-bottom: 32px;
  padding: 48px 24px;
  background: var(--card);
  border: 1px solid rgba(255,45,120,0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255,45,120,0.08), 0 8px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.shock::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255,45,120,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.shock-eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
  font-weight: 700;
}

.shock-number {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--pink);
  text-shadow: var(--glow-pink);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.shock-unit {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 20px;
}

.shock-sub {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.shock-sub span {
  color: var(--yellow);
  font-weight: 800;
}

/* ── Ring + stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.ring-card {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: var(--card);
  border: 1px solid rgba(0,207,255,0.12);
  border-radius: var(--radius);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .ring-card { grid-column: span 1; }
}

.ring-wrap {
  position: relative;
  width: 180px; height: 180px;
  flex-shrink: 0;
}

.ring-svg {
  width: 180px; height: 180px;
  transform: rotate(-90deg);
}

.ring-bg-circle {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 14;
}

.ring-progress {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s;
  filter: drop-shadow(0 0 8px #00cfff88);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-pct {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  text-shadow: var(--glow-blue);
  transition: all 0.4s;
}

.ring-pct-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1px;
}

.ring-info {
  flex: 1;
  min-width: 180px;
}

.ring-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat-line:last-child { border-bottom: none; }

.stat-line-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.stat-line-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s;
}

.stat-line-value.accent-blue  { color: var(--blue); }
.stat-line-value.accent-green { color: var(--green); }
.stat-line-value.accent-yellow{ color: var(--yellow); }

/* ── Stat cards ── */
.stat-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  border-color: rgba(0,207,255,0.3);
  box-shadow: 0 0 30px rgba(0,207,255,0.1);
}

/* ── Icon using inline SVG sprite ── */
.stat-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--blue);
}

.stat-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-card-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card-value.blue  { color: var(--blue);  text-shadow: var(--glow-blue);  }
.stat-card-value.green { color: var(--green); text-shadow: var(--glow-green); }

.stat-card-desc {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── Comparisons ── */
.comparisons {
  margin-bottom: 32px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-item {
  background: var(--card);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  animation: fadeSlide 0.4s ease both;
}

.comp-item:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(168,85,247,0.15);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Comparison icon (SVG) ── */
.comp-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--purple);
  filter: drop-shadow(0 0 6px rgba(168,85,247,0.5));
}

.comp-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comp-text {
  flex: 1;
}

.comp-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.comp-text span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.comp-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-blue   { background: rgba(0,207,255,0.15);  color: var(--blue);   border: 1px solid rgba(0,207,255,0.3); }
.badge-pink   { background: rgba(255,45,120,0.15); color: var(--pink);   border: 1px solid rgba(255,45,120,0.3); }
.badge-green  { background: rgba(57,255,20,0.12);  color: var(--green);  border: 1px solid rgba(57,255,20,0.25); }
.badge-yellow { background: rgba(255,229,0,0.12);  color: var(--yellow); border: 1px solid rgba(255,229,0,0.25); }
.badge-purple { background: rgba(168,85,247,0.15); color: var(--purple); border: 1px solid rgba(168,85,247,0.3); }

/* ── Verdict banner ── */
.verdict {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  transition: background 0.5s, border 0.5s, box-shadow 0.5s;
  backdrop-filter: blur(12px);
}

.verdict-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: block;
}

.verdict-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.verdict-text {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.5;
}

/* ── Footer ── */
footer {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 40px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.footer-right {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-right svg {
  width: 14px; height: 14px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-right a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  transition: text-shadow 0.2s;
}

.footer-right a:hover {
  text-shadow: var(--glow-blue);
}

/* ── Pulse anim on number change ── */
.pulse {
  animation: numPulse 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes numPulse {
  0%   { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .input-card { padding: 24px 18px; }
  .shock { padding: 36px 16px; }
  .ring-card { gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
