:root {
  color-scheme: dark;
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial,
    sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  --page-background: #222329;
  --title-color: #f7f7f8;
  --muted-color: #d1d1d5;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.018), transparent 31rem),
    var(--page-background);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    rgba(4, 5, 7, 0.22) 100%
  );
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 1.6rem 2.25rem;
}

.nav-link {
  color: var(--muted-color);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease;
  opacity: 0.85;
}

.nav-link:hover,
.nav-link--active {
  color: var(--title-color);
  opacity: 1;
}

.nav-cta {
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(247, 247, 248, 0.35);
  border-radius: 999px;
  color: var(--title-color);
  opacity: 1;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.nav-cta:hover {
  background: var(--title-color);
  border-color: var(--title-color);
  color: var(--page-background);
}

.coming-soon {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  transform: translateY(-1.1rem);
}

.brand-mark {
  position: relative;
  width: clamp(8.6rem, 10.5vw, 10.6rem);
  height: clamp(8.1rem, 9.8vw, 9.9rem);
  color: #fff;
  animation: mark-arrival 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 1.8rem rgba(255, 255, 255, 0.045));
}

.brand-copy {
  margin-top: 0.65rem;
  text-align: center;
  animation: copy-arrival 0.9s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  margin: 0;
  color: var(--title-color);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 4.55rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 0.12rem 1.4rem rgba(0, 0, 0, 0.2);
}

p {
  margin: 0.85rem 0 0;
  padding-left: 0.38em;
  color: var(--muted-color);
  font-size: clamp(0.78rem, 1.25vw, 1.1rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.38em;
}

.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(34rem, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.014);
  filter: blur(5rem);
  transform: translate(-50%, -50%);
  animation: ambient-pulse 7s ease-in-out infinite alternate;
}

@keyframes mark-arrival {
  from {
    opacity: 0;
    transform: translateY(-0.8rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes copy-arrival {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-pulse {
  from {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ---- BETA PAGE ---- */

.body--beta {
  overflow: auto;
}

.beta-page {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  margin: 0 auto;
  padding: 7.5rem 1.75rem 4rem;
}

.beta-header {
  text-align: center;
  margin-bottom: 2.75rem;
  animation: copy-arrival 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.beta-eyebrow {
  margin: 0 0 0.9rem;
  padding-left: 0.3em;
  color: var(--muted-color);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.75;
}

.beta-page h1 {
  margin: 0;
  color: var(--title-color);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 0.12rem 1.4rem rgba(0, 0, 0, 0.2);
}

.beta-lead {
  margin: 1rem 0 0;
  color: var(--muted-color);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  animation: copy-arrival 0.9s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.field label,
.field legend {
  color: var(--title-color);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0;
}

.field input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.3rem;
  color: var(--title-color);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: border-color 220ms ease, background 220ms ease;
  outline: none;
}

.field input[type="text"]::placeholder {
  color: rgba(209, 209, 213, 0.35);
  letter-spacing: 0.02em;
}

.field input[type="text"]:focus,
.field input[type="text"]:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.045);
}

.field input[type="text"]:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 120, 120, 0.55);
}

.field-hint {
  color: var(--muted-color);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.field--group {
  border: none;
  padding: 0;
  margin: 0;
}

.radio-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.radio {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.3rem;
  color: var(--muted-color);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
  user-select: none;
}

.radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--title-color);
}

.radio:has(input:checked) {
  background: var(--title-color);
  border-color: var(--title-color);
  color: var(--page-background);
}

.field--conditional {
  animation: copy-arrival 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.submit-btn {
  margin-top: 1rem;
  padding: 1rem 1.6rem;
  background: var(--title-color);
  border: 1px solid var(--title-color);
  border-radius: 999px;
  color: var(--page-background);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease,
    opacity 220ms ease;
}

.submit-btn:hover:not(:disabled) {
  background: transparent;
  color: var(--title-color);
  transform: translateY(-1px);
}

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

.form-status {
  min-height: 1.2rem;
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted-color);
}

.form-status[data-type="ok"] {
  color: #b8e3b8;
}

.form-status[data-type="error"] {
  color: #e8a4a4;
}

.form-status[data-type="loading"] {
  opacity: 0.75;
}

/* Honeypot — bot csapda, valódi felhasználó sose látja */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---- SUCCESS MODAL ---- */

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade 0.28s ease both;
}

.modal__card {
  position: relative;
  max-width: 24rem;
  width: 100%;
  padding: 2.25rem 2rem 1.9rem;
  background: linear-gradient(
    180deg,
    rgba(45, 38, 54, 0.95),
    rgba(28, 25, 34, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  text-align: center;
  animation: modal-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--title-color);
}

.modal__eyebrow {
  margin: 0 0 0.45rem;
  padding-left: 0.3em;
  color: var(--muted-color);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.7;
}

.modal__title {
  margin: 0 0 0.9rem;
  color: var(--title-color);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal__text {
  margin: 0 0 1.75rem;
  color: var(--muted-color);
  font-size: 0.9rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.modal__btn {
  padding: 0.75rem 1.6rem;
  background: var(--title-color);
  border: 1px solid var(--title-color);
  border-radius: 999px;
  color: var(--page-background);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.modal__btn:hover {
  background: transparent;
  color: var(--title-color);
  transform: translateY(-1px);
}

.modal__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 3px;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 34rem) {
  .beta-page {
    padding: 6rem 1.1rem 3rem;
  }

  .radio-row {
    flex-direction: column;
  }

  .modal__card {
    padding: 1.9rem 1.5rem 1.6rem;
  }

  .modal__title {
    font-size: 1.45rem;
  }
}

@media (max-width: 34rem) {
  .top-nav {
    padding: 1.1rem 1.25rem;
    gap: 0.9rem;
  }

  .nav-link {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .nav-cta {
    padding: 0.5rem 1rem;
  }

  .coming-soon {
    padding-inline: 1.25rem;
  }

  .brand-copy {
    margin-top: 0.35rem;
  }

  h1 {
    letter-spacing: 0.02em;
  }

  p {
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand-copy,
  .ambient-glow {
    animation: none;
  }
}
