:root {
  --bg: #070707;
  --surface: #141416;
  --surface-2: #1c1c1e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: rgba(235, 235, 245, 0.68);
  --text-muted: rgba(235, 235, 245, 0.42);
  --red: #ff3b30;
  --red-glow: rgba(255, 59, 48, 0.35);
  --blue: #0a84ff;
  --success: #30d158;
  --radius: 16px;
  --radius-sm: 12px;
  --max: 480px;
  --font: "Graphik Armenian", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 20px calc(32px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 59, 48, 0.14), transparent 55%),
    var(--bg);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 0 12px;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255, 59, 48, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 8px 0 28px;
}

.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 10vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__accent {
  background: linear-gradient(135deg, #ff6b63, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 36ch;
}

.hero__form {
  margin-bottom: 0;
}

.hero__link {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.hero__link:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 58%
  );
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}

.btn:hover::before,
.btn:focus-visible::before {
  animation: btn-shine 0.7s ease;
}

.btn--primary::before {
  animation: btn-shine 3.5s ease-in-out infinite;
}

.btn--ghost::before {
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 58%
  );
}

@keyframes btn-shine {
  to {
    transform: translateX(130%) skewX(-18deg);
  }
}

.btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.btn:active::before {
  animation: none;
}

.btn--primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 8px 28px var(--red-glow);
}

.btn--ghost {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.btn--full {
  width: 100%;
}

/* Live strip */
.live-strip {
  margin-bottom: 32px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.live-strip__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.live-strip__label {
  font-size: 14px;
  font-weight: 700;
}

.live-strip__sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-muted);
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section__head {
  margin-bottom: 18px;
}

.section__title {
  margin: 0 0 8px;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section__sub {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Event cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.event-card__emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.event-card__body {
  flex: 1;
  min-width: 0;
}

.event-card__title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
}

.event-card__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

.event-card__tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(48, 209, 88, 0.12);
  padding: 5px 8px;
  border-radius: 999px;
}

.event-card__tag--soft {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature {
  padding: 16px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}

.feature__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.feature__text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step__num {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.04em;
}

.step__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.step__text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* CTA / Waitlist */
.cta {
  padding: 28px 18px;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(160deg, rgba(255, 59, 48, 0.12), transparent 50%),
    var(--surface);
  border: 1px solid rgba(255, 59, 48, 0.2);
  margin-bottom: 24px;
}

.cta__title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.waitlist-form__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form__input::placeholder {
  color: var(--text-muted);
}

.waitlist-form__input:focus {
  outline: none;
  border-color: rgba(255, 59, 48, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.waitlist-form__input.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2);
  animation: field-shake 0.45s ease;
}

.waitlist-form__error {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--red);
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.waitlist-form__error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes field-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Success modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.modal[hidden] {
  display: none;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal.is-open .modal__dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal__dialog {
  position: relative;
  width: min(100%, 400px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px 20px 20px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.92) translateY(16px);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.modal__check {
  width: 28px;
  height: 16px;
  border-left: 3px solid var(--success);
  border-bottom: 3px solid var(--success);
  transform: rotate(-45deg) scale(0);
  animation: check-draw 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes modal-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes check-draw {
  from {
    transform: rotate(-45deg) scale(0);
  }
  to {
    transform: rotate(-45deg) scale(1);
  }
}

.modal__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
}

.modal__lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

.modal__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.35);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #ffb340;
  text-align: center;
}

.modal__notice[hidden] {
  display: none;
}

.modal__dialog.is-existing .modal__icon {
  background: rgba(255, 159, 10, 0.14);
}

.modal__dialog.is-existing .modal__check {
  display: none;
}

.modal__dialog.is-existing .modal__icon::after {
  content: "!";
  font-size: 28px;
  font-weight: 800;
  color: #ffb340;
  line-height: 1;
}

.modal__details {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.modal__detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}

.modal__detail:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.modal__detail dt {
  color: var(--text-muted);
  font-weight: 500;
}

.modal__detail dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.modal__info {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.18);
}

.modal__info-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.modal__info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal__info-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.modal__info-list li + li {
  margin-top: 8px;
}

.modal__info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  .waitlist-form__input.is-error {
    animation: none;
  }

  .modal__backdrop,
  .modal__dialog,
  .modal__icon,
  .modal__check,
  .waitlist-form__error {
    transition: none;
    animation: none;
  }

  .modal.is-open .modal__dialog {
    transform: none;
  }

  .modal__check {
    transform: rotate(-45deg) scale(1);
  }

  .btn::before,
  .btn--primary::before {
    animation: none;
  }
}

/* Footer */
.footer {
  padding: 8px 0 12px;
  text-align: center;
}

.footer__brand {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.footer__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.footer__meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 100;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Tablet+ */
@media (min-width: 520px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
