:root {
  --bg: #050505;
  --ink: #f5efe4;
  --muted: #b9ad99;
  --dim: #776b55;
  --gold: #c99644;
  --gold-2: #f1cf82;
  --line: rgba(232, 185, 95, 0.3);
  --glass: rgba(8, 7, 6, 0.68);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: #050505;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.gate-shell {
  position: relative;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 44%, rgba(218, 166, 72, 0.22), transparent 21rem),
    linear-gradient(180deg, #070604 0%, #050505 64%, #080706 100%);
}

.gate-bg,
.gate-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.gate-bg {
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.7) 38%, rgba(5, 5, 5, 0.28) 68%, rgba(5, 5, 5, 0.58) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.14), rgba(5, 5, 5, 0.68) 88%),
    url("assets/coming-soon/coming-soon-v03-book-gate.png");
  background-position: center;
  background-size: cover;
  filter: saturate(1.22) contrast(1.1) brightness(0.84);
}

.gate-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 72% 42%, rgba(241, 207, 130, 0.16), transparent 28rem);
  background-size: 82px 82px, 82px 82px, auto;
  mask-image: radial-gradient(circle at 55% 46%, black 0 55%, transparent 86%);
}

.gate-shell::before,
.gate-shell::after {
  content: "";
  position: fixed;
  inset: 24px;
  pointer-events: none;
  border: 1px solid rgba(232, 185, 95, 0.18);
  z-index: 3;
}

.gate-shell::after {
  inset: auto 24px 24px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(241, 207, 130, 0.45), transparent);
}

.gate-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
  width: min(calc(100% - 72px), var(--max));
  height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 42px) 0 clamp(20px, 3vh, 34px);
}

.gate-copy {
  max-width: 690px;
}

.brand-row {
  display: flex;
  align-items: center;
  margin-bottom: clamp(18px, 3vh, 28px);
}

.brand-kicker,
.eyebrow {
  margin: 0;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.45;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Cinzel, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  margin-top: 2px;
  font-size: clamp(3.1rem, 6.3vw, 5.65rem);
  line-height: 0.84;
}

.brand-title {
  color: rgba(245, 239, 228, 0.96);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(241, 207, 130, 0.08);
  animation: titleIgnition 1.35s steps(1, end) 160ms both;
}

h2 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(2.15rem, 4.35vw, 4.6rem);
  line-height: 0.96;
}

.lead {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(245, 239, 228, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.72;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(232, 185, 95, 0.24);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.lang-switch button {
  min-width: 42px;
  border: 0;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.lang-switch button:hover,
.lang-switch button.is-active {
  color: var(--gold-2);
  text-shadow: 0 0 18px rgba(241, 207, 130, 0.5);
}

.lang-switch span {
  width: 1px;
  height: 18px;
  background: rgba(232, 185, 95, 0.28);
}

.language-panel {
  display: none;
}

.language-panel.is-active {
  display: block;
}

.signals {
  display: grid;
  gap: 12px;
  max-width: 660px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.signals li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.signals li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--gold-2);
  box-shadow: 0 0 14px rgba(241, 207, 130, 0.7);
}

@media (max-height: 939px) and (min-width: 981px) {
  .signals {
    display: none;
  }
}

.access-form {
  width: min(100%, 650px);
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(232, 185, 95, 0.26);
  background:
    linear-gradient(135deg, rgba(241, 207, 130, 0.1), transparent 36%),
    rgba(6, 5, 4, 0.62);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.email-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(245, 239, 228, 0.9);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.form-row input {
  min-height: 50px;
  width: 100%;
  border: 1px solid rgba(232, 185, 95, 0.28);
  border-radius: 0;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.42);
  outline: 0;
}

.form-row input:focus {
  border-color: rgba(241, 207, 130, 0.72);
  box-shadow: 0 0 0 3px rgba(201, 150, 68, 0.16);
}

.form-row button {
  position: relative;
  min-height: 50px;
  border: 1px solid rgba(241, 207, 130, 0.56);
  padding: 0 24px;
  overflow: hidden;
  color: #130d06;
  background:
    linear-gradient(135deg, rgba(255, 244, 205, 0.96), rgba(226, 171, 76, 0.98) 52%, rgba(156, 100, 28, 0.96));
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 0 32px rgba(201, 150, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.form-row button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 22%, rgba(255, 255, 255, 0.68) 38%, transparent 54%);
  transform: translateX(-130%);
  animation: glassSweep 4.6s ease-in-out infinite;
}

.form-row button span {
  position: relative;
  z-index: 1;
}

.form-note {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

@keyframes glassSweep {
  0%,
  54% {
    transform: translateX(-130%);
  }

  72%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes titleIgnition {
  0% {
    opacity: 0.18;
    color: rgba(245, 239, 228, 0.42);
    text-shadow: none;
  }

  8% {
    opacity: 0.95;
    color: #fffaf0;
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.45),
      0 0 26px rgba(241, 207, 130, 0.28);
  }

  13% {
    opacity: 0.28;
    color: rgba(245, 239, 228, 0.5);
    text-shadow: none;
  }

  22% {
    opacity: 1;
    color: #fffdf6;
    text-shadow:
      0 0 5px rgba(255, 255, 255, 0.48),
      0 0 34px rgba(241, 207, 130, 0.36);
  }

  31% {
    opacity: 0.52;
    color: rgba(245, 239, 228, 0.62);
    text-shadow: 0 0 9px rgba(241, 207, 130, 0.08);
  }

  43% {
    opacity: 1;
    color: #fffaf0;
    text-shadow:
      0 0 3px rgba(255, 255, 255, 0.42),
      0 0 24px rgba(241, 207, 130, 0.26),
      0 0 70px rgba(201, 150, 68, 0.12);
  }

  58% {
    opacity: 0.86;
    color: rgba(245, 239, 228, 0.9);
    text-shadow:
      0 0 2px rgba(255, 255, 255, 0.28),
      0 0 14px rgba(241, 207, 130, 0.12);
  }

  100% {
    opacity: 1;
    color: rgba(245, 239, 228, 0.97);
    text-shadow:
      0 0 2px rgba(255, 255, 255, 0.32),
      0 0 18px rgba(241, 207, 130, 0.16),
      0 0 48px rgba(201, 150, 68, 0.1);
  }
}

@media (max-width: 980px) {
  .gate-hero {
    grid-template-columns: 1fr;
    width: min(calc(100% - 40px), 720px);
    padding: 48px 0 40px;
  }

}

@media (max-width: 640px) {
  .gate-shell::before {
    inset: 12px;
  }

  .brand-row {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.1rem, 13vw, 3.8rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row button {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .form-row button::before {
    animation: none;
  }

  .brand-title {
    animation: none;
  }
}
