:root {
  --bg-deep: #0ea5e9;
  --bg-mid: #38bdf8;
  --bg-light: #7dd3fc;
  --ink: #eff8ff;
  --ink-muted: rgba(239, 248, 255, 0.82);
  --card-shadow: 0 20px 50px rgba(2, 8, 23, 0.28);
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: var(--bg-mid);
}

a {
  color: #0369a1;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 52%, var(--bg-light) 100%);
}

.page {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.background-dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.dust {
  position: absolute;
  top: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
  animation: dustFloat linear infinite;
}

.dust-1 { left: 6%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: -2s; }
.dust-2 { left: 14%; width: 6px; height: 6px; animation-duration: 21s; animation-delay: -9s; }
.dust-3 { left: 22%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: -5s; }
.dust-4 { left: 31%; width: 5px; height: 5px; animation-duration: 24s; animation-delay: -13s; }
.dust-5 { left: 39%; width: 4px; height: 4px; animation-duration: 17s; animation-delay: -4s; }
.dust-6 { left: 49%; width: 6px; height: 6px; animation-duration: 23s; animation-delay: -16s; }
.dust-7 { left: 57%; width: 3px; height: 3px; animation-duration: 19s; animation-delay: -8s; }
.dust-8 { left: 66%; width: 5px; height: 5px; animation-duration: 22s; animation-delay: -11s; }
.dust-9 { left: 74%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: -6s; }
.dust-10 { left: 82%; width: 6px; height: 6px; animation-duration: 25s; animation-delay: -15s; }
.dust-11 { left: 90%; width: 3px; height: 3px; animation-duration: 20s; animation-delay: -7s; }
.dust-12 { left: 95%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: -12s; }

.loading-stage {
  min-height: min(68vh, 760px);
  display: grid;
  place-items: center;
  padding: 24px 0 8px;
}

.brand-lockup {
  text-align: center;
}

.brand-logo-shell {
  position: relative;
  width: min(300px, 64vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.brand-logo-halo {
  position: absolute;
  inset: 4%;
  border-radius: 30%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.52) 0%, rgba(186, 230, 253, 0.42) 38%, rgba(125, 211, 252, 0.18) 58%, transparent 76%);
  filter: blur(16px);
  animation: logoHaloPulse 4.8s ease-in-out infinite;
}

.brand-logo-ring {
  position: absolute;
  inset: 2%;
  border-radius: 30%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 18px 40px rgba(14, 116, 144, 0.22);
  opacity: 0.85;
}

.brand-logo-card {
  position: relative;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 28%;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
  box-shadow:
    0 30px 60px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  animation: logoFloat 5.6s ease-in-out infinite;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24%;
  box-shadow:
    0 14px 34px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.eyebrow,
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.46);
}

h1,
h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(4.2rem, 12vw, 6.2rem);
  line-height: 0.94;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

h2 {
  margin-top: 10px;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
  color: #0f172a;
}

.brand-subtitle,
.form-note,
.legal-content p,
.legal-content li {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.brand-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.contact-strip,
.legal-tabs,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-strip {
  margin-top: 22px;
}

.chip,
.support-button,
.legal-tab {
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.95rem;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.support-button:hover,
.chip:hover,
.legal-tab:hover {
  transform: translateY(-1px);
}

.support-button-primary {
  background: #eff6ff;
  color: #0369a1;
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.16);
}

.support-button-secondary,
.legal-tab {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.legal-tab {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.98rem;
  font-weight: 700;
}

.legal-tab.is-active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0c4a6e;
}

.support-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 40px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
  padding: 28px;
  color: #475569;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}

.support-block + .support-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.support-copy {
  margin: 12px 0 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
}

.full {
  grid-column: 1 / -1;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 20px 22px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.legal-section h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  color: #0f172a;
}

.legal-section p {
  margin: 0;
  white-space: pre-wrap;
  color: #475569;
}

.status-success {
  color: #166534;
}

.status-error {
  color: #b91c1c;
}

@keyframes dustFloat {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(18px, -130vh, 0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.015);
  }
}

@keyframes logoHaloPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .legal-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .support-card {
    padding: 20px;
    border-radius: 28px;
  }

  .feedback-form {
    grid-template-columns: 1fr;
  }
  .loading-stage {
    min-height: 56vh;
  }
}
