:root {
  --accent: #1f6feb;
  --accent-deep: #0f4fb6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body[data-theme="light"],
html[data-theme-preload="light"] body {
  --bg: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --text: #111827;
  --muted: #667085;
  --border: #d8e4ff;
  --shadow: 0 22px 46px rgba(31, 111, 235, 0.12);
  background:
    radial-gradient(900px 500px at 90% -10%, #dbe8ff 0%, transparent 60%),
    radial-gradient(800px 500px at 0% 100%, #e5efff 0%, transparent 56%),
    var(--bg);
  color: var(--text);
}

body[data-theme="dark"],
html[data-theme-preload="dark"] body {
  --bg: #070d1b;
  --surface: #0f1728;
  --surface-soft: #131d32;
  --text: #e8efff;
  --muted: #8ea2c7;
  --border: #263b66;
  --shadow: 0 22px 46px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(900px 500px at 90% -10%, #102348 0%, transparent 60%),
    radial-gradient(800px 500px at 0% 100%, #0d1d3b 0%, transparent 56%),
    var(--bg);
  color: var(--text);
}

.page {
  width: min(980px, 94vw);
  margin: 0 auto;
  padding: 26px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(140deg, #4d95ff, var(--accent-deep));
  box-shadow: 0 0 0 5px rgba(31, 111, 235, 0.14);
}

.logo h1 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.hero-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.hero-card h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.live-block {
  margin-top: 24px;
}

.live-speed {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  line-height: 0.95;
}

.live-speed small {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--muted);
  font-weight: 600;
}

.live-bar {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.18);
  overflow: hidden;
}

.live-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4d95ff, var(--accent-deep));
  border-radius: inherit;
  transition: width 0.2s ease;
}

.phase-text {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 16px;
}

.status-text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.start-button {
  margin-top: 18px;
  border: none;
  border-radius: 14px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #4d95ff, var(--accent-deep));
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.start-button:disabled {
  opacity: 0.65;
  cursor: default;
}

.result-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
}

.result-title {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.result-value {
  margin: 6px 0 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.result-unit {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .theme-toggle {
    font-size: 13px;
    padding: 8px 10px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}
