:root {
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --soft: #e2e8f0;
  --bg: #0a0f1e;
  --bg-strong: #0f172a;
  --surface: rgba(30, 41, 59, 0.72);
  --surface-strong: rgba(51, 65, 85, 0.78);
  --line: rgba(226, 232, 240, 0.12);
  --cyan: #67e8f9;
  --teal: #5eead4;
  --lavender: #c4b5fd;
  --peach: #f9a8d4;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --glow: 0 0 42px rgba(103, 232, 249, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(94, 234, 212, 0.14), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(196, 181, 253, 0.12), transparent 30%),
    linear-gradient(135deg, #0a0f1e, #111827 48%, #0f172a);
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: absolute;
  top: 18px;
  left: clamp(18px, 5vw, 76px);
  right: clamp(18px, 5vw, 76px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.44);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.header-line {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 32px;
  padding: 132px clamp(18px, 5vw, 76px) 72px;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
}

.hero-slideshow,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-slideshow {
  overflow: hidden;
  background: #0a0f1e;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  animation: heroSlide 24s infinite;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slide-duel {
  opacity: 1;
  background:
    radial-gradient(circle at 68% 28%, rgba(103, 232, 249, 0.18), transparent 24%),
    radial-gradient(circle at 36% 62%, rgba(196, 181, 253, 0.16), transparent 30%),
    linear-gradient(130deg, #0a0f1e, #111827 48%, #1e293b);
}

.slide-charge {
  animation-delay: 8s;
  background:
    radial-gradient(circle at 74% 42%, rgba(249, 168, 212, 0.12), transparent 28%),
    linear-gradient(120deg, #08111f, #0f172a 52%, #172033);
}

.slide-siege {
  animation-delay: 16s;
  background:
    radial-gradient(circle at 72% 20%, rgba(94, 234, 212, 0.12), transparent 30%),
    linear-gradient(130deg, #090e1b, #111827 44%, #1e293b);
}

.slide-duel::before,
.slide-charge::before,
.slide-siege::before {
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(3, 7, 18, 0.6) 58% 100%),
    repeating-linear-gradient(12deg, transparent 0 110px, rgba(226, 232, 240, 0.035) 112px 113px);
}

.slide-duel::after,
.slide-charge::after,
.slide-siege::after {
  background: radial-gradient(ellipse at center, transparent 0 38%, rgba(3, 7, 18, 0.5) 100%);
}

.moon {
  position: absolute;
  top: 16%;
  right: 18%;
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 232, 240, 0.36), rgba(103, 232, 249, 0.08) 58%, transparent 70%);
  filter: blur(0.2px);
}

.knight,
.horseman,
.shield,
.banner,
.blade,
.castle-silhouette,
.emberline,
.horizon-glow {
  position: absolute;
  display: block;
}

.knight {
  bottom: 16%;
  width: 110px;
  height: 250px;
  background:
    radial-gradient(circle at 50% 12%, rgba(226, 232, 240, 0.9) 0 20px, transparent 21px),
    linear-gradient(90deg, transparent 0 20%, rgba(15, 23, 42, 0.88) 21% 79%, transparent 80%),
    linear-gradient(135deg, transparent 0 34%, rgba(15, 23, 42, 0.98) 35% 62%, transparent 63%);
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.58));
}

.knight-left {
  right: 38%;
  transform: translateX(-30px) skewX(-4deg);
}

.knight-right {
  right: 24%;
  transform: scaleX(-1) skewX(-4deg);
}

.blade {
  bottom: 46%;
  width: 230px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.9), rgba(103, 232, 249, 0.85), transparent);
  box-shadow: 0 0 22px rgba(103, 232, 249, 0.24);
}

.blade-left {
  right: 31%;
  transform: rotate(-28deg);
}

.blade-right {
  right: 22%;
  transform: rotate(32deg);
}

.horizon-glow {
  left: 38%;
  right: 8%;
  bottom: 22%;
  height: 28%;
  background: radial-gradient(ellipse, rgba(249, 168, 212, 0.18), transparent 64%);
}

.horseman {
  bottom: 17%;
  width: 220px;
  height: 130px;
  background:
    radial-gradient(ellipse at 35% 70%, rgba(3, 7, 18, 0.94) 0 54px, transparent 55px),
    radial-gradient(circle at 78% 38%, rgba(15, 23, 42, 0.96) 0 30px, transparent 31px),
    linear-gradient(74deg, transparent 0 28%, rgba(15, 23, 42, 0.96) 29% 67%, transparent 68%);
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.6));
}

.horseman::before {
  content: "";
  position: absolute;
  left: 82px;
  top: -64px;
  width: 54px;
  height: 86px;
  background:
    radial-gradient(circle at 50% 8%, rgba(226, 232, 240, 0.88) 0 13px, transparent 14px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62));
}

.horseman-one {
  right: 12%;
}

.horseman-two {
  right: 29%;
  bottom: 19%;
  transform: scale(0.74);
  opacity: 0.58;
}

.banner {
  bottom: 39%;
  width: 120px;
  height: 90px;
  border-left: 3px solid rgba(226, 232, 240, 0.36);
  background: linear-gradient(100deg, rgba(94, 234, 212, 0.4), rgba(196, 181, 253, 0.14) 58%, transparent 59%);
  clip-path: polygon(0 0, 100% 12%, 72% 42%, 0 34%);
}

.banner-left {
  right: 46%;
  transform: rotate(-6deg);
}

.banner-right {
  right: 16%;
  transform: rotate(7deg) scale(0.84);
}

.castle-silhouette {
  right: 10%;
  bottom: 18%;
  width: 430px;
  height: 230px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.98));
  clip-path: polygon(0 100%, 0 48%, 10% 48%, 10% 28%, 22% 28%, 22% 48%, 34% 48%, 34% 18%, 48% 18%, 48% 48%, 61% 48%, 61% 31%, 74% 31%, 74% 48%, 100% 48%, 100% 100%);
  box-shadow: 0 0 70px rgba(103, 232, 249, 0.08);
}

.shield {
  bottom: 18%;
  width: 76px;
  height: 100px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: linear-gradient(145deg, rgba(196, 181, 253, 0.36), rgba(15, 23, 42, 0.88));
  clip-path: polygon(50% 0, 92% 16%, 82% 72%, 50% 100%, 18% 72%, 8% 16%);
}

.shield-one {
  right: 45%;
  transform: rotate(-8deg);
}

.shield-two {
  right: 36%;
  transform: rotate(11deg) scale(0.86);
  opacity: 0.72;
}

.emberline {
  left: 35%;
  right: 7%;
  bottom: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(249, 168, 212, 0.64), rgba(94, 234, 212, 0.48), transparent);
  box-shadow: 0 0 34px rgba(249, 168, 212, 0.24);
}

.hero-scrim {
  background:
    radial-gradient(circle at 72% 18%, rgba(103, 232, 249, 0.14), transparent 26%),
    radial-gradient(circle at 12% 72%, rgba(196, 181, 253, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(10, 15, 30, 0.96), rgba(10, 15, 30, 0.72) 54%, rgba(10, 15, 30, 0.9)),
    linear-gradient(0deg, rgba(10, 15, 30, 0.98), rgba(10, 15, 30, 0.22) 46%, rgba(10, 15, 30, 0.66));
}

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  7%,
  31% {
    opacity: 1;
  }

  39%,
  100% {
    opacity: 0;
    transform: scale(1.11);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  transform: translateY(-46px);
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(54px, 9vw, 126px);
  line-height: 0.9;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 44%, #67e8f9 72%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  color: var(--ink);
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 670px;
  color: rgba(226, 232, 240, 0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(94, 234, 212, 0.22);
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #07111f;
  box-shadow: 0 18px 44px rgba(94, 234, 212, 0.24);
}

.button.secondary {
  border-color: rgba(196, 181, 253, 0.3);
  background: rgba(30, 41, 59, 0.5);
  color: var(--soft);
  backdrop-filter: blur(16px);
}

.section {
  padding: 88px clamp(18px, 5vw, 76px);
}

.mission-section {
  background:
    radial-gradient(circle at 78% 20%, rgba(196, 181, 253, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(10, 15, 30, 0.94), rgba(15, 23, 42, 0.98));
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.mission-card,
.feedback-form,
.suggestion-board {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.82)),
    rgba(30, 41, 59, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.mission-card {
  max-width: 1120px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 18px;
  box-shadow: var(--shadow), var(--glow);
}

.mission-card p {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(17px, 1.6vw, 22px);
}

.mission-card p,
.suggestion-card p {
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.68;
}

.feedback-section {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(10, 15, 30, 0.96)),
    radial-gradient(circle at 84% 12%, rgba(249, 168, 212, 0.09), transparent 28%),
    radial-gradient(circle at 24% 68%, rgba(94, 234, 212, 0.08), transparent 30%);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.feedback-form,
.suggestion-board {
  padding: 24px;
  border-radius: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.76);
  letter-spacing: 0.04em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--soft);
  padding: 13px 14px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.64);
}

textarea {
  resize: vertical;
}

select option {
  background: #0f172a;
  color: var(--soft);
}

input[type="range"] {
  accent-color: var(--teal);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(103, 232, 249, 0.78);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.12), 0 0 28px rgba(103, 232, 249, 0.1);
}

.slider-row output {
  color: var(--teal);
  font-weight: 900;
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--teal);
  font-weight: 800;
}

.board-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.board-head h3 {
  margin-bottom: 0;
  font-family: Cinzel, serif;
  font-size: 32px;
  color: var(--ink);
}

.board-head select {
  max-width: 190px;
}

.suggestions {
  display: grid;
  gap: 12px;
}

.board-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.see-all-button {
  width: 100%;
  border-color: rgba(103, 232, 249, 0.28);
  background: rgba(103, 232, 249, 0.08);
}

.empty-state {
  margin-bottom: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.55;
}

.suggestion-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
}

.vote-button {
  display: grid;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, 0.26);
  border-radius: 14px;
  background: rgba(94, 234, 212, 0.08);
  color: var(--teal);
  cursor: pointer;
  font-weight: 900;
}

.vote-button:disabled,
.form-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.suggestion-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}

.suggestion-card p {
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.1);
  color: var(--lavender);
  font-size: 12px;
  font-weight: 900;
}

.suggestion-modal[hidden] {
  display: none;
}

.suggestion-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(103, 232, 249, 0.14), transparent 34%),
    rgba(3, 7, 18, 0.76);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(760px, 86vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96)),
    rgba(30, 41, 59, 0.94);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.56), 0 0 44px rgba(103, 232, 249, 0.12);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.modal-head h3 {
  margin-bottom: 0;
  font-family: Cinzel, serif;
  font-size: clamp(28px, 4vw, 42px);
}

.modal-close {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--soft);
  cursor: pointer;
  font-weight: 900;
}

.modal-suggestions {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
  overflow: auto;
}

.site-footer {
  justify-content: space-between;
  padding: 34px clamp(18px, 5vw, 76px);
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  background: #0a0f1e;
  color: var(--ink);
}

.site-footer strong {
  display: block;
  max-width: 760px;
  line-height: 1.45;
}

.site-footer p {
  margin: 7px 0 0;
  color: rgba(226, 232, 240, 0.62);
}

@media (max-width: 980px) {
  .hero,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

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

  .knight-left {
    right: 28%;
  }

  .knight-right {
    right: 8%;
  }

  .blade-left {
    right: 18%;
  }

  .blade-right {
    right: 6%;
  }

  .castle-silhouette {
    right: -8%;
    transform: scale(0.78);
    transform-origin: bottom right;
  }
}

@media (max-width: 640px) {
  .site-header {
    left: 12px;
    right: 12px;
    top: 12px;
    padding: 11px 14px;
    border-radius: 18px;
  }

  .header-line {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero {
    min-height: 100svh;
    align-items: center;
    padding: 116px 18px 54px;
  }

  .hero-content {
    max-width: 100%;
    transform: none;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(42px, 14vw, 58px);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(31px, 10vw, 42px);
    line-height: 1.02;
  }

  .eyebrow {
    font-size: 11px;
    line-height: 1.35;
  }

  .hero-copy {
    max-width: 34ch;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .section {
    padding: 58px 18px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .mission-card,
  .feedback-form,
  .suggestion-board {
    border-radius: 14px;
  }

  .mission-card {
    padding: 22px;
  }

  .mission-card p {
    font-size: 16px;
  }

  .board-head {
    display: grid;
  }

  .board-head select {
    max-width: none;
  }

  .suggestion-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .vote-button {
    height: 48px;
    border-radius: 12px;
  }

  .tag {
    white-space: normal;
  }

  .suggestion-modal {
    padding: 14px;
  }

  .modal-panel {
    max-height: 88vh;
    border-radius: 16px;
  }

  .modal-head {
    padding: 18px 18px 14px;
  }

  .modal-suggestions {
    padding: 14px 18px 18px;
  }

  .site-footer {
    align-items: stretch;
    padding: 26px 18px;
  }

  .site-footer .button {
    width: 100%;
  }

  .moon {
    right: -18%;
    width: 110px;
    opacity: 0.48;
  }

  .knight,
  .blade,
  .horseman,
  .banner,
  .shield,
  .castle-silhouette {
    opacity: 0.42;
  }

  .knight-left {
    right: 28%;
    transform: scale(0.72) translateX(-30px) skewX(-4deg);
    transform-origin: bottom;
  }

  .knight-right {
    right: -8%;
    transform: scaleX(-1) scale(0.72) skewX(-4deg);
    transform-origin: bottom;
  }

  .blade {
    width: 160px;
  }

  .blade-left {
    right: 12%;
  }

  .blade-right {
    right: -6%;
  }

  .horseman-one {
    right: -18%;
    transform: scale(0.72);
    transform-origin: bottom right;
  }

  .horseman-two,
  .banner-left {
    display: none;
  }

  .banner-right {
    right: 2%;
    transform: rotate(7deg) scale(0.62);
  }

  .castle-silhouette {
    right: -42%;
    transform: scale(0.56);
    transform-origin: bottom right;
  }

  .shield-one {
    right: 20%;
  }

  .shield-two {
    right: 8%;
  }
}

@media (max-width: 420px) {
  .site-header {
    left: 10px;
    right: 10px;
  }

  .header-line {
    font-size: 10px;
  }

  h1 {
    font-size: clamp(38px, 13.5vw, 50px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .button {
    min-height: 46px;
  }

  .feedback-form,
  .suggestion-board {
    padding: 18px;
  }
}
