:root {
  --bg: #0d1117;
  --bg-alt: #171f2c;
  --panel: rgba(18, 27, 39, 0.78);
  --line: rgba(255, 186, 88, 0.18);
  --text: #f8f1e7;
  --muted: #c7b7a2;
  --accent: #f4b860;
  --accent-2: #ffdf9a;
  --danger: #ff8b8b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(244, 184, 96, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(255, 223, 154, 0.12), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg-alt));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 85%);
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 40px 0;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 48px;
}

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

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.intro {
  max-width: 32rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.domain-chip {
  display: inline-flex;
  margin-top: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 223, 154, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.92rem;
}

.panel {
  padding: 36px;
}

.dial-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.dial {
  width: min(340px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 223, 154, 0.16), transparent 42%),
    conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent), var(--accent-2));
  padding: 2px;
  animation: idlePulse 4.5s ease-in-out infinite;
}

.dial::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #0f1d31, #08101d 68%);
  grid-area: 1 / 1;
}

.dial-value,
.dial-unit {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
}

.dial-value {
  transform: translateY(-8px);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
}

.dial-unit {
  transform: translateY(42px);
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.primary {
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  color: #03141d;
  background: linear-gradient(135deg, var(--accent), #b7fff1);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 18px 36px rgba(77, 226, 197, 0.22);
}

.primary:hover {
  transform: translateY(-1px);
}

.primary:disabled {
  cursor: wait;
  opacity: 0.8;
}

.status {
  margin: 0;
  color: var(--muted);
}

.results {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-label,
.metric-unit {
  display: block;
}

.metric-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric strong {
  font-size: 2rem;
  line-height: 1;
}

.metric-unit {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

@keyframes idlePulse {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }

  50% {
    transform: scale(1.02);
    filter: saturate(1.08);
  }
}

@media (max-width: 920px) {
  .shell {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 20px 16px 28px;
  }

  .hero,
  .panel {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding-inline: 14px;
  }

  .hero,
  .panel {
    padding: 24px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
    line-height: 0.98;
  }

  .intro {
    font-size: 1rem;
    line-height: 1.55;
  }

  .dial {
    width: min(100%, 300px);
  }

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

  .dial-unit {
    transform: translateY(34px);
  }
}

@media (max-width: 420px) {
  .shell {
    padding: 16px 12px 24px;
  }

  .hero,
  .panel {
    padding: 20px;
    border-radius: 22px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .dial {
    width: min(100%, 260px);
  }

  .dial-value {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .domain-chip {
    max-width: 100%;
    font-size: 0.88rem;
    padding: 9px 12px;
  }
}
