:root {
  --bg: #0c0f1f;
  --bg-alt: #131835;
  --text: #f2f1ed;
  --muted: rgba(242, 241, 237, 0.65);
  --accent: #e3b341;
  --accent-2: #7ad0ff;
  --panel: rgba(18, 23, 45, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(5, 8, 21, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #1a2147 0%, #0c0f1f 55%, #070912 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.6;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, #7ad0ff 0%, rgba(122, 208, 255, 0) 70%);
  top: -120px;
  right: -120px;
}

.orb-b {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, #e3b341 0%, rgba(227, 179, 65, 0) 70%);
  bottom: -180px;
  left: -160px;
}

.container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  display: grid;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(122, 208, 255, 0.15);
  border: 1px solid rgba(122, 208, 255, 0.3);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0;
}

.lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.muted {
  color: var(--muted);
}

.toggles {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.toggle.active {
  background: rgba(227, 179, 65, 0.22);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(227, 179, 65, 0.4);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 12px;
}

.number-chip {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 14px 0;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.number-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(122, 208, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.number-chip.active::after {
  opacity: 1;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

select,
input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

select option {
  color: #14111b;
  background: #f2f1ed;
}

.primary {
  background: linear-gradient(135deg, #f1c56e, #dd9f3c);
  color: #14111b;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(227, 179, 65, 0.2);
}

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

.meta {
  font-size: 13px;
  color: var(--muted);
}

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.info-card {
  background: rgba(14, 18, 38, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-top: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .panel {
    padding: 22px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
