:root {
  --bg-base: #050607;
  --bg-deep: #101318;
  --metal-top: #2b3138;
  --metal-mid: #171b20;
  --metal-bottom: #0d1014;
  --text-main: #f4f8fb;
  --text-soft: #a6b2bf;
  --text-muted: #697583;
  --accent-blue: #16c6ff;
  --accent-blue-strong: #52dbff;
  --accent-blue-soft: rgba(22, 198, 255, 0.18);
  --border-soft: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-base);
}

html::before,
html::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

html::before {
  z-index: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(22, 198, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 198, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: grid-shift 20s linear infinite;
}

html::after {
  z-index: 0;
  opacity: 0.1;
  background: linear-gradient(transparent 0%, rgba(22, 198, 255, 0.045) 50%, transparent 100%);
  background-size: 100% 4px;
  animation: scanline 8s linear infinite;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(22, 198, 255, 0.09), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(22, 198, 255, 0.08), transparent 22%),
    linear-gradient(135deg, #050607 0%, #0f1317 44%, #050607 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(92px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

body::before {
  top: -8rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(22, 198, 255, 0.2) 0%, rgba(22, 198, 255, 0) 68%);
  animation: drift-a 18s ease-in-out infinite alternate;
}

body::after {
  right: -8rem;
  bottom: -11rem;
  background: radial-gradient(circle, rgba(22, 198, 255, 0.16) 0%, rgba(22, 198, 255, 0) 72%);
  animation: drift-b 22s ease-in-out infinite alternate;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

header,
footer,
.menu-box {
  position: relative;
  overflow: hidden;
}

header::before,
footer::before,
.menu-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 14%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 38%, transparent 62%, rgba(255, 255, 255, 0.02));
}

header {
  backdrop-filter: blur(10px);
  background:
    linear-gradient(180deg, rgba(43, 49, 56, 0.66), rgba(16, 19, 24, 0.76)),
    rgba(5, 6, 7, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

footer {
  background:
    linear-gradient(180deg, rgba(31, 36, 42, 0.55), rgba(8, 10, 12, 0.72));
}

a {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.menu-box {
  display: block;
  padding: 1.15rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-main);
  background:
    linear-gradient(180deg, var(--metal-top), var(--metal-mid) 54%, var(--metal-bottom));
  border: 1px solid var(--border-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 14px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.menu-box:hover {
  border-color: rgba(22, 198, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(22, 198, 255, 0.16),
    0 0 28px rgba(22, 198, 255, 0.22),
    0 18px 46px rgba(0, 0, 0, 0.38);
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(22, 198, 255, 0.52);
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(22, 198, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(22, 198, 255, 0.18);
}

.menu-title {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(22, 198, 255, 0.05);
}

.menu-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

main h1,
main h2 {
  text-shadow: 0 0 18px rgba(22, 198, 255, 0.05);
}

main a[style*="background:#2ce4df"] {
  background: linear-gradient(180deg, #35d7ff, #0a9bcd) !important;
  color: #041118 !important;
  box-shadow: 0 0 24px rgba(22, 198, 255, 0.18);
}

main a[style*="border:1px solid #2ce4df"] {
  border-color: rgba(22, 198, 255, 0.56) !important;
  color: var(--accent-blue) !important;
  box-shadow: inset 0 0 0 1px rgba(22, 198, 255, 0.08);
}

main a[style*="background:#2ce4df"]:hover,
main a[style*="border:1px solid #2ce4df"]:hover {
  box-shadow:
    0 0 0 1px rgba(22, 198, 255, 0.18),
    0 0 30px rgba(22, 198, 255, 0.24);
}

@keyframes drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(7rem, 4rem, 0) scale(1.22);
  }
}

@keyframes drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-6rem, -6rem, 0) scale(1.2);
  }
}

@keyframes grid-shift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(52px, 52px);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html::before,
  html::after,
  body::before,
  body::after,
  a {
    animation: none !important;
    transition: none;
  }
}

@media (max-width: 820px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

.petition-shell {
  position: relative;
}

.petition-card {
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.96), rgba(10, 13, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.petition-lead,
.petition-copy {
  color: var(--text-soft);
}

.petition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.petition-points {
  color: var(--text-soft);
  padding-left: 1.2rem;
}

.petition-roadmap {
  display: grid;
  gap: 1rem;
}

.petition-roadmap-item {
  padding-left: 1rem;
  border-left: 3px solid var(--accent-blue);
}

.petition-roadmap-item div {
  color: var(--text-soft);
}

.questions-note {
  margin-top: 0.75rem;
  margin-bottom: 1.4rem;
  color: var(--text-soft);
  max-width: 780px;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.question-card {
  padding: 1.1rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(34, 39, 45, 0.82), rgba(12, 15, 19, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  color: var(--accent-blue-strong);
  border: 1px solid rgba(22, 198, 255, 0.36);
  background: rgba(22, 198, 255, 0.08);
  font-weight: 700;
}

.question-card p {
  margin: 0;
  color: var(--text-soft);
}

.support-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.support-note {
  margin-top: 1rem;
  color: var(--text-muted);
}

.petition-float-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.75rem;
  z-index: 20;
}

.petition-floating-box,
.asl-launcher {
  width: min(280px, calc(100vw - 2rem));
  background: linear-gradient(180deg, rgba(32, 37, 43, 0.92), rgba(11, 14, 17, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.petition-floating-box {
  padding: 0.95rem;
}

.floating-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.floating-box-header h3 {
  margin: 0;
  font-size: 1rem;
}

.floating-box-header p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.dismiss-button,
.modal-close {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 1rem;
}

.star-row {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.star-button {
  border: 0;
  background: transparent;
  color: #5f6d7c;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.1rem;
}

.star-button.is-active {
  color: var(--accent-blue-strong);
  text-shadow: 0 0 14px rgba(22, 198, 255, 0.38);
}

.rating-status {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.asl-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  color: var(--text-main);
  text-decoration: none;
}

.asl-launcher:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(22, 198, 255, 0.16),
    0 0 28px rgba(22, 198, 255, 0.18),
    0 16px 34px rgba(0, 0, 0, 0.34);
}

.asl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 198, 255, 0.36);
  color: var(--accent-blue-strong);
  background: rgba(22, 198, 255, 0.08);
}

.asl-launcher strong {
  display: block;
  font-size: 0.98rem;
}

.asl-launcher span:last-child {
  color: var(--text-soft);
  font-size: 0.82rem;
}

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

.asl-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.asl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 6, 0.76);
}

.asl-modal-panel {
  position: relative;
  width: min(760px, 100%);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 31, 36, 0.98), rgba(8, 10, 12, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.asl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem;
}

.asl-modal-header h3 {
  margin: 0;
}

.asl-modal-body {
  padding: 0 1rem 1rem;
}

.asl-modal-body video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.asl-modal-body p {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .petition-float-stack {
    position: static;
    margin: 0 1.5rem 1.5rem;
  }

  .petition-floating-box,
  .asl-launcher {
    width: 100%;
  }
}
