* {
  box-sizing: border-box;
}

:root {
  --bg: #0b1020;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(15, 23, 42, 0.75);
  --card-border: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #94a3b8;
  --primary: #7c3aed;
  --primary-2: #06b6d4;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.35), transparent 30%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.26), transparent 25%),
    linear-gradient(180deg, #050816 0%, #0b1020 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  color: var(--muted);
  backdrop-filter: blur(16px);
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.card-pad {
  padding: 28px;
}

.hero {
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.24);
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.form {
  display: grid;
  gap: 14px;
}

.input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.45);
  color: var(--text);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.input:focus {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.button {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.18);
  transition: transform .15s ease, filter .15s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.button.danger {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.stats {
  display: grid;
  gap: 14px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.stat strong {
  display: block;
  font-size: 28px;
}

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

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.notice.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

.notice.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}

.result-number {
  margin: 18px 0 8px;
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.number-pill {
  min-width: 58px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.24);
  font-weight: 800;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.table th,
.table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.table th {
  color: #cbd5e1;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table td {
  color: #e2e8f0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer {
  padding: 24px 0 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .grid, .split {
    grid-template-columns: 1fr;
  }

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