:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-soft: rgba(11, 18, 41, 0.88);
  --border: rgba(87, 140, 255, 0.24);
  --text: #edf4ff;
  --muted: #9fb2d8;
  --cyan: #3ae7ff;
  --blue: #3d7bff;
  --violet: #7a4cff;
  --success: #4df5b2;
  --danger: #ff7096;
  --shadow: 0 24px 80px rgba(13, 24, 64, 0.55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(69, 103, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #040611 0%, #050816 48%, #090d1c 100%);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

.glow-1 {
  top: 8%;
  left: -4rem;
  width: 15rem;
  height: 15rem;
  background: rgba(58, 231, 255, 0.24);
}

.glow-2 {
  right: -5rem;
  bottom: 12%;
  width: 18rem;
  height: 18rem;
  background: rgba(122, 76, 255, 0.22);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.hero-card,
.download-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 17, 38, 0.94), rgba(6, 10, 24, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  padding: 1.5rem 1.25rem 1.2rem;
  border-radius: 1.8rem;
  text-align: center;
}

.logo {
  width: min(100%, 15rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.5rem;
  border: 1px solid rgba(92, 137, 255, 0.24);
  box-shadow: 0 0 50px rgba(61, 123, 255, 0.15);
}

.eyebrow {
  margin: 1rem 0 0.35rem;
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

.subtitle {
  margin: 0.9rem auto 0;
  max-width: 24rem;
  color: var(--muted);
  line-height: 1.55;
}

.download-card {
  margin-top: 1rem;
  padding: 1.1rem;
  border-radius: 1.4rem;
}

.download-form {
  display: grid;
  gap: 1rem;
}

.input-label {
  color: #d8e5ff;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid rgba(93, 132, 255, 0.28);
  background: rgba(5, 8, 22, 0.82);
  color: var(--text);
  padding: 1rem 1rem;
  border-radius: 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: rgba(58, 231, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(58, 231, 255, 0.12);
}

.mode-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mode-button,
.submit-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mode-button {
  min-height: 3.4rem;
  border-radius: 1rem;
  background: rgba(14, 22, 48, 0.95);
  color: var(--text);
  border: 1px solid rgba(94, 122, 255, 0.22);
  font-weight: 600;
  padding: 0.9rem;
}

.mode-button.is-active {
  background: linear-gradient(135deg, rgba(58, 231, 255, 0.18), rgba(122, 76, 255, 0.22));
  border-color: rgba(58, 231, 255, 0.45);
  box-shadow: 0 0 28px rgba(58, 231, 255, 0.12);
}

.submit-button {
  min-height: 3.6rem;
  border-radius: 1.1rem;
  color: #04111d;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), #70a5ff 52%, #9685ff);
  box-shadow: 0 16px 36px rgba(58, 231, 255, 0.16);
}

.submit-button[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.mode-button:hover,
.submit-button:hover {
  transform: translateY(-1px);
}

.status {
  margin-top: 1rem;
  min-height: 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.status.is-error { color: var(--danger); }
.status.is-success { color: var(--success); }
.status.is-loading { color: var(--cyan); }

@media (max-width: 420px) {
  .shell {
    padding-inline: 0.85rem;
  }

  .mode-group {
    grid-template-columns: 1fr;
  }
}
