:root {
  --red: #d2202a;
  --red-dark: #a8141d;
  --orange: #f7a23a;
  --orange-deep: #e8601c;
  --ink: #2a2a2a;
  --muted: #6b6b6b;
  --bg: #fff8f1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 162, 58, 0.28), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(210, 32, 42, 0.12), transparent 50%),
    var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

#sparks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vh, 28px);
  padding: clamp(16px, 4vw, 40px);
  padding-bottom: max(clamp(16px, 4vw, 40px), env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 760px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(210, 32, 42, 0.12);
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(22px, 5vw, 56px) clamp(18px, 5vw, 56px);
  box-shadow: 0 20px 60px rgba(210, 32, 42, 0.12);
  animation: rise 0.8s ease both;
}

/* ---------- Logo ---------- */
.logo {
  display: block;
  width: clamp(190px, 46vw, 400px);
  height: auto;
  margin: 0 auto clamp(14px, 3vw, 28px);
}

/* ---------- Text ---------- */
.badge {
  display: inline-block;
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(210, 32, 42, 0.08);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: clamp(10px, 2vw, 18px);
}

.title {
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: clamp(10px, 2vw, 16px);
}

.title span {
  background: linear-gradient(90deg, var(--red), var(--orange-deep), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text {
  max-width: 520px;
  margin: 0 auto clamp(22px, 4vw, 34px);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  min-width: 150px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid rgba(247, 162, 58, 0.7);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  box-shadow: 0 8px 18px rgba(210, 32, 42, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  color: var(--muted);
  text-align: center;
}

/* ---------- Animation ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* Short landscape screens (phones turned sideways) */
@media (max-height: 520px) and (orientation: landscape) {
  .page { justify-content: flex-start; }
  .logo { width: clamp(150px, 26vw, 240px); }
}

/* Large screens / TVs */
@media (min-width: 1600px) {
  .card { max-width: 880px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .btn { transition: none; }
}
