:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: rgba(22, 22, 24, 0.78);
  --panel-strong: rgba(28, 28, 30, 0.92);
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #c7c7cc;
  --soft: #98989d;
  --red: #e1192a;
  --red-deep: #9f0914;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(225, 25, 42, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(179, 13, 22, 0.14), transparent 36rem),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) 0;
}

.hero,
.preferences,
.support-note,
.card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero {
  min-height: min(720px, calc(100vh - 48px));
  display: grid;
  align-content: center;
  justify-items: start;
  border-radius: 34px;
  padding: clamp(28px, 7vw, 84px);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 380px;
  background: radial-gradient(circle, rgba(225, 25, 42, 0.22), transparent 68%);
  pointer-events: none;
}

.brand-pill,
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225, 25, 42, 0.36);
  background: rgba(225, 25, 42, 0.1);
  color: #ffd9dc;
}

.brand-pill {
  gap: 10px;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy,
.preferences p,
.support-note p,
.card p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.62;
}

.hero-copy {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 8px;
}

.button {
  appearance: none;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: white;
}

.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.status-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: #ffd9dc;
  font-weight: 680;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.card {
  min-height: 100%;
  border-radius: 28px;
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 15px;
  font-weight: 900;
}

.preferences {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(22px, 4vw, 48px);
  border-radius: 30px;
  padding: clamp(24px, 5vw, 48px);
}

.eyebrow {
  margin-bottom: 8px;
  color: #ffb3ba;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

label,
legend {
  color: #f5f5f7;
  font-weight: 730;
}

input {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: rgba(225, 25, 42, 0.86);
  box-shadow: 0 0 0 4px rgba(225, 25, 42, 0.16);
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 640;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--red);
}

.support-note {
  margin-top: 18px;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 42px);
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 22px, 680px);
    padding: 12px 0 24px;
  }

  .hero {
    min-height: auto;
    border-radius: 26px;
  }

  .card-grid,
  .preferences {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
