/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Background */
body {
  background: radial-gradient(circle at top, #0f2027, #203a43, #2c5364);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
  font-size: 2.5rem;
  color: #00ffe0;
  text-shadow: 0 0 10px #00ffe0, 0 0 30px #00ffe0;
}

header h2 {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: .5rem;
  color: #bbb;
}

/* Nav */
.top-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.top-nav button {
  background: transparent;
  border: none;
  cursor: pointer;
}

.top-nav .bar {
  padding: .6rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.3s ease;
}

.top-nav .bar:hover {
  background: #00ffe0;
  color: #000;
  box-shadow: 0 0 15px #00ffe0, 0 0 30px #00ffe0;
}

/* Main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

main p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #ddd;
}

main button {
  padding: .8rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(135deg, #00ffe0, #00b3ff);
  color: #000;
  font-weight: 600;
  transition: all 0.3s ease;
}

main button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffe0, 0 0 40px #00b3ff;
}

/* Speed display */
.live-speed-display {
  margin: 1.5rem 0;
}

#live-speed-value {
  font-size: 2rem;
  font-weight: bold;
  color: #00ffe0;
  text-shadow: 0 0 10px #00ffe0, 0 0 30px #00ffe0;
}

/* Results */
.results-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.result-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 20px;
  min-width: 200px;
  transition: transform 0.3s;
}

.result-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #00ffe0;
}

.result-box h3 {
  margin-bottom: .5rem;
  color: #fff;
}

.speed-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ffe0;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}
