:root {
  --bg: #050508;
  --panel: rgba(9, 9, 18, 0.78);
  --panel-strong: rgba(9, 9, 18, 0.92);
  --panel2: #111422;
  --text: #ffffff;
  --muted: #b9c7ff;
  --line: rgba(0, 243, 255, 0.28);
  --line-soft: rgba(255, 255, 255, 0.12);
  --gold: #ffb700;
  --gold2: #ff7a00;
  --pink: #ff00aa;
  --cyan: #00f3ff;
  --red: #ff0055;
  --radius: 24px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.62), 0 0 40px rgba(0, 243, 255, 0.08);
}

*::selection {
  background: rgba(0, 243, 255, 0.28);
  color: #fff;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 0, 85, 0.24), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(0, 243, 255, 0.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255, 183, 0, 0.10), transparent 34%),
    linear-gradient(135deg, #050508 0%, #090912 48%, #050508 100%);
  color: var(--text);
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: auto -50vw -18vh -50vw;
  width: 200vw;
  height: 46vh;
  background-image:
    linear-gradient(transparent 60%, rgba(255, 0, 85, 0.42) 100%),
    linear-gradient(90deg, transparent 96%, rgba(255, 0, 85, 0.42) 100%),
    linear-gradient(0deg, transparent 96%, rgba(255, 0, 85, 0.42) 100%);
  background-size: 100% 100%, 42px 100%, 100% 42px;
  transform: perspective(320px) rotateX(62deg);
  transform-origin: bottom;
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 18px rgba(255, 0, 85, 0.35));
  animation: slowGrid 9s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.28;
}

@keyframes slowGrid {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 0 42px; }
}

.container {
  position: relative;
  z-index: 1;
}

.nav {
  border-bottom: 1px solid rgba(0, 243, 255, 0.24);
  background: rgba(5, 5, 8, 0.76);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.38), 0 0 32px rgba(0, 243, 255, 0.08);
}

.nav-inner {
  height: 78px;
}

.logo {
  font-family: "Righteous", system-ui, sans-serif;
  font-size: 25px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(0, 243, 255, 0.55), 0 0 30px rgba(255, 0, 170, 0.28);
}

.logo span {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 183, 0, 0.75), 0 0 34px rgba(255, 122, 0, 0.42);
}

.nav-links button,
.nav-links a {
  font-family: "VT323", monospace;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.12);
}

.nav-links button.active,
.nav-links button:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan), 0 0 28px rgba(0, 243, 255, 0.45);
}

.page {
  padding: 56px 0 96px;
}

.hero {
  min-height: 78vh;
  padding-top: 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% 8% auto 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.7), rgba(255, 183, 0, 0.7), transparent);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.45);
}

.hero h1 {
  font-family: "Righteous", system-ui, sans-serif;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: #fff;
  text-transform: uppercase;
  text-shadow:
    0 0 16px rgba(0, 243, 255, 0.55),
    0 0 38px rgba(255, 0, 170, 0.32),
    0 0 70px rgba(255, 183, 0, 0.18);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
}

.hero p {
  max-width: 820px;
  color: #d9e7ff;
  font-size: 19px;
  text-shadow: 0 0 18px rgba(0, 243, 255, 0.16);
}

.hero-terminal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding: 14px;
  border: 1px solid rgba(0, 243, 255, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(0, 243, 255, 0.08), rgba(255, 183, 0, 0.055), rgba(255, 0, 170, 0.06)),
    rgba(3, 4, 10, 0.70);
  box-shadow: inset 0 0 28px rgba(0, 243, 255, 0.05), 0 18px 60px rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(14px);
}

.hero-terminal div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 243, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-terminal span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: "VT323", monospace;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 183, 0, 0.42);
}

.hero-terminal b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: "Righteous", system-ui, sans-serif;
  font-size: clamp(15px, 1.6vw, 21px);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(0, 243, 255, 0.35);
}

.muted {
  color: #c6d4ff;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 243, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(9, 9, 18, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.16), transparent),
    radial-gradient(circle at 15% 0%, rgba(255, 0, 170, 0.12), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(0, 243, 255, 0.10), transparent 30%);
  opacity: 0.9;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h2,
.card h3 {
  font-family: "Righteous", system-ui, sans-serif;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 243, 255, 0.28);
}

.section-title,
.field label {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 243, 255, 0.45);
}

.input,
.select,
textarea {
  border: 1px solid rgba(0, 243, 255, 0.28);
  background: rgba(3, 4, 10, 0.72);
  color: #fff;
  box-shadow: inset 0 0 18px rgba(0, 243, 255, 0.035);
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.14), inset 0 0 20px rgba(0, 243, 255, 0.08);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(198, 212, 255, 0.48);
}

.btn {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 243, 255, 0.34);
  background: rgba(0, 243, 255, 0.07);
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
  box-shadow: 0 0 0 rgba(0, 243, 255, 0);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: transform 0.45s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 243, 255, 0.72);
  box-shadow: 0 0 22px rgba(0, 243, 255, 0.18), 0 12px 34px rgba(0, 0, 0, 0.35);
}

.btn.gold {
  border-color: rgba(255, 183, 0, 0.75);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #050508;
  text-shadow: none;
  box-shadow: 0 0 22px rgba(255, 183, 0, 0.24), 0 16px 36px rgba(0, 0, 0, 0.38);
}

.btn.gold:hover {
  box-shadow: 0 0 34px rgba(255, 183, 0, 0.36), 0 18px 42px rgba(0, 0, 0, 0.42);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.035);
}

.check {
  border-color: rgba(0, 243, 255, 0.22);
  background: rgba(0, 243, 255, 0.045);
  color: #c6d4ff;
}

.check.active {
  border-color: rgba(255, 183, 0, 0.72);
  color: var(--gold);
  background: rgba(255, 183, 0, 0.10);
  box-shadow: 0 0 18px rgba(255, 183, 0, 0.12);
}

.preview-frame,
.code {
  border-color: rgba(0, 243, 255, 0.30);
  background: rgba(3, 4, 10, 0.86);
  box-shadow: inset 0 0 28px rgba(0, 243, 255, 0.055), 0 0 28px rgba(0, 243, 255, 0.06);
}

.code {
  color: #c7fff7;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.18);
}

.toast {
  border-color: rgba(0, 243, 255, 0.38);
  background: rgba(5, 5, 8, 0.94);
  box-shadow: 0 0 28px rgba(0, 243, 255, 0.18), 0 18px 50px rgba(0, 0, 0, 0.55);
}

.toast.error {
  border-color: rgba(255, 0, 85, 0.65);
  box-shadow: 0 0 28px rgba(255, 0, 85, 0.22), 0 18px 50px rgba(0, 0, 0, 0.55);
}

.mp-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mp-loader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

@media (max-width: 900px) {
  .hero-terminal {
    grid-template-columns: 1fr;
  }

  .hero-terminal b {
    font-size: 15px;
  }

  .nav-inner {
    height: 68px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 86px);
  }

  .page {
    padding-top: 36px;
  }
}
