:root {
  color-scheme: dark;
  --bg: #070f19;
  --bg-soft: #0b1826;
  --panel: #122234;
  --panel-strong: #172a40;
  --text: #eaf2ff;
  --muted: #a9bed4;
  --line: #2a4560;
  --accent: #65d8ff;
  --accent-soft: #a5ecff;
  --ok: #8ee7bb;
  --error: #ff9faa;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1250px 640px at 10% -20%, rgba(45, 96, 133, 0.34), transparent 62%),
    radial-gradient(980px 560px at 92% -30%, rgba(40, 125, 168, 0.2), transparent 60%),
    linear-gradient(180deg, #07111b 0%, #070f19 60%, #050c14 100%);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.hero,
.container,
footer {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 1.35rem 0 0.72rem;
}

.panel {
  background: linear-gradient(180deg, rgba(21, 37, 56, 0.95), rgba(16, 29, 45, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
}

.hero__main {
  padding: 1.22rem 1.24rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9cecff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  margin-top: 0.24rem;
  font-size: clamp(1.75rem, 4.1vw, 2.5rem);
}

h2 {
  font-size: 1.1rem;
}

h3 {
  font-size: 0.95rem;
}

p {
  margin: 0.45rem 0 0;
}

.hero__lead {
  margin-top: 0.42rem;
  max-width: 70ch;
  color: var(--muted);
}

.hero__meta {
  margin-top: 0.86rem;
  display: grid;
  gap: 0.26rem;
  color: #dce9f8;
  font-size: 0.95rem;
}

.hero__actions {
  margin-top: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.container {
  display: grid;
  gap: 0.92rem;
  padding-bottom: 1.45rem;
}

.grid {
  display: grid;
  gap: 0.92rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.muted {
  color: var(--muted);
}

.form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.65rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.91rem;
  color: #d3e2f2;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  padding: 0.58rem 0.63rem;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem;
}

.checkbox input {
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #071320;
  padding: 0.56rem 0.82rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: rgba(9, 22, 34, 0.45);
  color: var(--text);
  border-color: var(--line);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.86rem;
}

.status--ok {
  color: var(--ok);
}

.status--error {
  color: var(--error);
}

.success-card {
  margin-top: 0.72rem;
  border: 1px solid rgba(106, 215, 168, 0.35);
  border-radius: 12px;
  background: rgba(28, 54, 46, 0.42);
  padding: 0.75rem 0.8rem;
}

.success-card p {
  margin-top: 0.3rem;
}

.success-card .discord-link {
  margin-top: 0.58rem;
}

.list {
  list-style: none;
  margin: 0.62rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.52rem;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(6, 15, 24, 0.44);
  padding: 0.6rem 0.7rem;
}

.list-item p {
  margin-top: 0.24rem;
}

.commands {
  margin: 0.48rem 0 0;
  padding-left: 1rem;
}

.commands li {
  margin: 0.2rem 0;
}

.contact-grid {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.55rem;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: #d9e9ff;
  background: rgba(10, 23, 36, 0.42);
}

.discord-link:hover {
  border-color: #4f8cff;
  color: #eef5ff;
}

.discord-link__icon {
  color: #88a7ff;
}

.mono,
code {
  font-family: Consolas, "Courier New", monospace;
}

code {
  color: #cce8ff;
  font-size: 0.84rem;
}

footer {
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0 0 1.42rem;
}

.tank-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  opacity: 0.45;
}

.tank-bg::before {
  content: "";
  position: absolute;
  inset: -10% -12% 0;
  background:
    radial-gradient(40% 24% at 24% 12%, rgba(128, 229, 255, 0.2), transparent 100%),
    radial-gradient(34% 22% at 74% 18%, rgba(87, 198, 234, 0.14), transparent 100%);
  filter: blur(1.8px);
  animation: light-drift 54s ease-in-out infinite;
}

.tank-bg::after {
  content: "";
  position: absolute;
  inset: auto -10% -16% -10%;
  height: 42%;
  background:
    radial-gradient(84% 88% at 50% 0%, rgba(46, 103, 138, 0.25), rgba(8, 18, 28, 0) 76%),
    linear-gradient(180deg, rgba(5, 13, 20, 0) 0%, rgba(4, 10, 16, 0.55) 100%);
}

.fish {
  position: absolute;
  width: 74px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(106, 206, 245, 0), rgba(106, 206, 245, 0.2), rgba(106, 206, 245, 0));
  filter: blur(0.25px);
}

.fish--one {
  top: 23%;
  left: -16%;
  animation: drift-right 46s linear infinite;
}

.fish--two {
  top: 56%;
  left: 108%;
  animation: drift-left 58s linear infinite;
}

.fish--three {
  top: 74%;
  left: -14%;
  width: 54px;
  opacity: 0.78;
  animation: drift-right 70s linear infinite;
}

.bubble {
  position: absolute;
  bottom: -18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(194, 238, 255, 0.18);
}

.bubble--a {
  left: 14%;
  animation: bubble-rise 19s linear infinite;
}

.bubble--b {
  left: 40%;
  width: 7px;
  height: 7px;
  animation: bubble-rise 24s linear infinite 2.4s;
}

.bubble--c {
  left: 66%;
  width: 5px;
  height: 5px;
  animation: bubble-rise 22s linear infinite 4s;
}

.bubble--d {
  left: 84%;
  width: 8px;
  height: 8px;
  animation: bubble-rise 26s linear infinite 1.7s;
}

@keyframes drift-right {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(65vw) translateY(-4px);
  }
  100% {
    transform: translateX(128vw) translateY(0);
  }
}

@keyframes drift-left {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-65vw) translateY(4px);
  }
  100% {
    transform: translateX(-130vw) translateY(0);
  }
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.28;
  }
  100% {
    transform: translateY(-106vh) translateX(11px);
    opacity: 0;
  }
}

@keyframes light-drift {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-2.5%) translateY(1.5%);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fish,
  .bubble,
  .tank-bg::before {
    animation: none;
  }
}

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

  .hero {
    padding-top: 1rem;
  }
}

@media (max-width: 700px) {
  .hero,
  .container,
  footer {
    width: min(1120px, 94vw);
  }

  .hero__main {
    padding: 1rem;
  }

  .panel {
    padding: 0.9rem;
  }
}
