@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Sora:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --font-sans: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --bg: #090b10;
  --bg-elevated: rgba(13, 17, 24, 0.82);
  --bg-soft: rgba(255, 255, 255, 0.03);
  --panel: rgba(13, 17, 24, 0.72);
  --panel-strong: rgba(17, 21, 30, 0.88);
  --text: #f5f7fb;
  --muted: #97a5b9;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --accent: #77d0ff;
  --accent-strong: #2aa8ea;
  --accent-soft: rgba(119, 208, 255, 0.14);
  --accent-glow: rgba(75, 196, 255, 0.26);
  --danger-soft: rgba(255, 96, 96, 0.12);
  --logo: #ffffff;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3f8;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-soft: rgba(10, 24, 41, 0.035);
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --text: #101828;
  --muted: #5e6d80;
  --border: rgba(16, 24, 40, 0.08);
  --border-strong: rgba(16, 24, 40, 0.14);
  --accent: #0f83da;
  --accent-strong: #076cb9;
  --accent-soft: rgba(15, 131, 218, 0.12);
  --accent-glow: rgba(15, 131, 218, 0.16);
  --danger-soft: rgba(255, 86, 86, 0.08);
  --logo: #221b2c;
  --shadow: 0 28px 70px rgba(16, 24, 40, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(61, 177, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(84, 255, 208, 0.1), transparent 24%),
    radial-gradient(circle at bottom right, rgba(134, 144, 255, 0.08), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  overflow-x: hidden;
  transition:
    background-color 240ms ease,
    color 240ms ease;
}

::selection {
  background: var(--accent-soft);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.78;
  animation: float 14s ease-in-out infinite;
}

.orb-one {
  top: 8%;
  left: -3%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(80, 188, 255, 0.2), transparent 72%);
}

.orb-two {
  right: -4%;
  top: 18%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(102, 255, 219, 0.16), transparent 70%);
  animation-delay: -3s;
}

.orb-three {
  bottom: -10%;
  left: 38%;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(111, 126, 255, 0.12), transparent 68%);
  animation-delay: -6s;
}

.grid-mask {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 6rem 6rem;
  mask-image: radial-gradient(circle at center, black 32%, transparent 78%);
  opacity: 0.18;
}

.site-header,
.hero,
.form-section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark,
.hero-mark {
  color: var(--logo);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.2rem;
  background: linear-gradient(160deg, var(--bg-soft), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-mark svg,
.hero-mark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-eyebrow,
.eyebrow,
.panel-label,
.status-pill {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.brand-eyebrow,
.status-pill,
.panel-label,
.conditional-copy,
.footer-note,
.field-note,
.site-footer {
  color: var(--muted);
}

.brand-title {
  font-size: 1rem;
  font-weight: 600;
}

.status-pill {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  min-height: calc(100svh - 7rem);
  padding: 2rem 0 4rem;
}

.hero-copy {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
}

.hero h1,
.section-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  text-wrap: balance;
}

.hero-body,
.section-intro p {
  max-width: 40rem;
  margin: 1.35rem 0 0;
  font-size: 1.02rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

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

.button:focus-visible,
.theme-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #031018;
  box-shadow: 0 16px 38px var(--accent-glow);
}

.button-secondary {
  border-color: var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--border-strong);
}

.hero-panel,
.form-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-panel {
  display: grid;
  align-content: end;
  min-height: 34rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.hero-panel::before,
.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%);
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  inset: auto -1.8rem -5rem auto;
  width: min(72%, 22rem);
  opacity: 0.14;
  transform: rotate(8deg);
}

.guideline-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.guideline-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
}

.guideline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #baf1ff);
  box-shadow: 0 0 0 0.35rem var(--accent-soft);
}

.form-section {
  padding: clamp(1.4rem, 2.6vw, 2.25rem);
  border-radius: calc(var(--radius-xl) + 4px);
}

.section-intro {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.section-intro h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.appeal-form {
  display: grid;
  gap: 1.75rem;
}

.ban-type-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.ban-type-fieldset legend {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.ban-type-selector {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.35rem;
  gap: 0.35rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.ban-type-selector input,
.choice-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ban-type-selector label,
.choice-row label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.ban-type-selector input:checked + label,
.choice-row input:checked + label {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.04));
  border-color: rgba(119, 208, 255, 0.35);
  color: var(--text);
}

.ban-type-selector label:hover,
.choice-row label:hover {
  transform: translateY(-1px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.field,
.conditional-shell {
  display: grid;
  gap: 0.7rem;
}

.field-full,
.conditional-shell {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.98rem;
  font-weight: 600;
}

.field-note {
  margin: -0.15rem 0 0;
  font-size: 0.85rem;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 1rem 1.1rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

html[data-theme="light"] input[type="text"],
html[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.88);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 84%, transparent);
}

input[type="text"]:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input[type="text"]:focus,
textarea:focus {
  border-color: rgba(119, 208, 255, 0.42);
  box-shadow: 0 0 0 0.35rem var(--accent-soft);
  background: rgba(255, 255, 255, 0.04);
}

textarea {
  min-height: 8.75rem;
  resize: vertical;
}

.choice-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.conditional-shell {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
    rgba(255, 255, 255, 0.015);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.conditional-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.conditional-copy {
  margin: 0;
  font-size: 0.92rem;
}

.conditional-shell.is-disabled {
  opacity: 0.72;
  border-color: rgba(255, 86, 86, 0.22);
  background:
    linear-gradient(180deg, var(--danger-soft), transparent 100%),
    rgba(255, 255, 255, 0.012);
}

.conditional-shell.is-disabled textarea {
  background: rgba(255, 255, 255, 0.015);
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.checkbox-field:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.checkbox-field input {
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent-strong);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
}

.footer-note {
  margin: 0;
  max-width: 38rem;
  font-size: 0.92rem;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 5rem;
  font-size: 0.9rem;
}

.theme-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.7rem;
  height: 3.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--border-strong);
}

.theme-icon {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

html[data-theme="dark"] .theme-icon-sun,
html[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html[data-theme="dark"] .theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.4) rotate(-22deg);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 18;
  min-width: min(26rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 86, 86, 0.28);
  background: rgba(20, 10, 10, 0.92);
  color: #fff6f6;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1.06);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.4rem;
  }

  .hero-panel {
    min-height: 22rem;
  }

  .form-grid,
  .form-footer,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-footer,
  .site-footer {
    display: grid;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 1rem;
  }

  .site-header,
  .hero,
  .form-section,
  .site-footer {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-mark {
    width: 2.85rem;
    height: 2.85rem;
  }

  .status-pill {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .hero-actions,
  .ban-type-selector {
    width: 100%;
  }

  .ban-type-selector {
    display: grid;
  }

  .button,
  .submit-button {
    width: 100%;
  }

  .form-section {
    padding: 1.15rem;
  }

  .theme-toggle {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 3.4rem;
    height: 3.4rem;
  }

  .toast {
    bottom: 5.2rem;
    border-radius: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
