:root {
  --bg: #05070d;
  --panel: rgba(10, 14, 24, 0.82);
  --panel-border: rgba(120, 0, 255, 0.35);
  --fg: #f2f6ff;
  --muted: #8892a6;
  --accent: #7800ff;
  --accent-alt: #3f9dff;
  --danger: #ff4d73;
  font-family: "IBM Plex Mono", "Fira Mono", Consolas, "Courier New", monospace;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--fg);
}

.background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.background-video__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.3) brightness(0.6);
}

.background-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 4, 16, 0.6), rgba(7, 4, 16, 0.92));
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  mix-blend-mode: screen;
  opacity: 0.35;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid rgba(120, 0, 255, 0.35);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 44px -32px rgba(120, 0, 255, 0.45);
}

.brand {
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav__status {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 0, 255, 0.45);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.nav__user {
  color: var(--accent-alt);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.layout {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  position: relative;
  z-index: 2;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.intro__badge {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 0, 255, 0.45);
  color: var(--accent-alt);
  letter-spacing: 0.3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.intro__title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.intro__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.intro__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.intro__actions .btn {
  text-decoration: none;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  min-width: 180px;
}

.intro__callout {
  background: rgba(9, 7, 18, 0.82);
  border: 1px solid rgba(120, 0, 255, 0.35);
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  line-height: 1.6;
  box-shadow: 0 25px 40px -32px rgba(120, 0, 255, 0.35);
}

.intro__callout strong {
  color: var(--accent);
}

.intro__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.intro__metrics div {
  min-width: 110px;
  border-radius: 1rem;
  border: 1px solid rgba(120, 0, 255, 0.35);
  padding: 1rem 1.4rem;
  background: rgba(9, 7, 18, 0.78);
  box-shadow: 0 25px 40px -32px rgba(120, 0, 255, 0.35);
}

.intro__metrics span {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
}

.intro__metrics small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel {
  background: rgba(9, 7, 18, 0.82);
  border: 1px solid var(--panel-border);
  border-radius: 1.4rem;
  padding: 2rem;
  box-shadow: 0 35px 60px -40px rgba(120, 0, 255, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 12% 10% 14% 10%;
  border: 1px solid rgba(120, 0, 255, 0.45);
  border-radius: 1rem;
  pointer-events: none;
  z-index: -1;
}

.panel__tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(120, 0, 255, 0.45);
  background: rgba(8, 6, 18, 0.72);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tab--active,
.tab:hover {
  border-color: rgba(120, 0, 255, 0.6);
  color: var(--accent-alt);
  background: rgba(120, 0, 255, 0.25);
}

.panel__content {
  position: relative;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form h2 {
  margin: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form__hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select {
  background: rgba(5, 7, 13, 0.8);
  border: 1px solid rgba(120, 0, 255, 0.35);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(120, 0, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(120, 0, 255, 0.25);
}

.field--half {
  width: 100%;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.check input {
  accent-color: var(--accent);
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  border: 1px solid rgba(120, 0, 255, 0.45);
  background: rgba(120, 0, 255, 0.2);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: rgba(120, 0, 255, 0.35);
  color: var(--accent-alt);
}

.btn--primary {
  background: linear-gradient(135deg, rgba(120, 0, 255, 0.75), rgba(63, 157, 255, 0.65));
  border: none;
}

.btn--primary:hover {
  color: #05070d;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(63, 157, 255, 0.45);
  color: var(--accent-alt);
}

.btn--ghost:hover {
  background: rgba(63, 157, 255, 0.15);
  color: var(--fg);
}

.btn--disabled {
  background: rgba(136, 146, 166, 0.2);
  border-color: rgba(136, 146, 166, 0.35);
  color: rgba(136, 146, 166, 0.9);
  cursor: not-allowed;
}

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

.form__link {
  color: var(--accent-alt);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.form__note {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.form__note code {
  color: var(--accent);
}

.form__flash {
  display: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.form__flash--visible {
  display: block;
}

.form__flash--info {
  border: 1px solid rgba(120, 0, 255, 0.35);
  background: rgba(120, 0, 255, 0.18);
  color: var(--accent-alt);
}

.form__flash--success {
  border: 1px solid rgba(63, 157, 255, 0.45);
  background: rgba(63, 157, 255, 0.18);
  color: var(--fg);
}

.form__flash--error {
  border: 1px solid rgba(255, 77, 115, 0.45);
  background: rgba(255, 77, 115, 0.18);
  color: var(--danger);
}

.form--submitting {
  opacity: 0.85;
}

.badge {
  margin-left: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 115, 0.45);
  color: var(--danger);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.form--ghost {
  display: none;
}

.footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem 1rem 2.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .panel {
    padding: 1.6rem;
  }
}
