/* =============================================================
   Future Business Club — Landingpage
   ============================================================= */

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: .005em;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Hintergrund-Layer ---------- */
#mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  display: block;
}

/* Vignette + radialer Lift unter dem Mesh → Tiefe + Lesbarkeit links */
.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(110, 92, 168, .16), transparent 55%),
    radial-gradient(80% 70% at 12% 90%, rgba(0, 0, 0, .55), transparent 60%),
    linear-gradient(90deg, rgba(4,5,10,.92) 0%, rgba(4,5,10,.62) 32%, rgba(4,5,10,.10) 60%, transparent 78%),
    linear-gradient(180deg, rgba(4,5,10,.55) 0%, transparent 22%, transparent 72%, rgba(4,5,10,.85) 100%);
}

/* ---------- Seiten-Gerüst ---------- */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Topbar (Logo + Status, kein Menü) ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-block: clamp(1.25rem, 2.4vw, 2.1rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
}
.brand-mark { display: block; width: 26px; height: 26px; flex: none; }
.brand-name {
  font-family: var(--font-logo);
  font-size: clamp(1.4rem, 2.7vw, 1.74rem);
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--text-strong);
  white-space: nowrap;
}
.brand-name b { font-weight: 400; }
.brand-tld { color: rgba(255, 255, 255, .5); font-weight: 300; font-size: calc(1em - 2px); }

.topbar-meta {
  text-align: right;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.5;
}
.topbar-meta strong { color: var(--text-muted); font-weight: 600; }

/* ---------- Hero (zweispaltig) ---------- */
.hero {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding-block: clamp(2rem, 5vh, 5rem);
}

/* Linke Spalte — Headline, rechtsbündig an die Karte angedockt */
.hero-left { flex: 0 1 30rem; max-width: 30rem; text-align: right; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: clamp(.82rem, 1.15vw, .96rem);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--accent-strong);
  margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  background: linear-gradient(176deg, #ffffff 0%, #e3e1ef 52%, #b9b2d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title b { font-weight: 600; }

.hero-sub {
  margin-top: clamp(1.2rem, 2.2vw, 1.8rem);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 33rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .58rem 1rem .58rem .85rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: .9rem;
  font-weight: 300;
  color: var(--text-muted);
}
.hero-points li svg {
  width: 17px; height: 17px;
  flex: none;
  color: var(--accent-strong);
}

/* ---------- Rechte Spalte — Mitgliedschafts-Formular ---------- */
.hero-right { flex: 0 1 30rem; max-width: 30rem; display: flex; }

.join-card {
  width: 100%;
  max-width: 30rem;
  background: rgba(26, 28, 40, .55);
  border: none;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 4.5vw, 3.75rem);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
}

.join-head { margin-bottom: clamp(1.2rem, 2.2vw, 1.6rem); }
.join-card h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  letter-spacing: -.01em;
  color: var(--text-strong);
}
.join-sub {
  margin-top: .5rem;
  font-size: .9rem;
  font-weight: 300;
  color: var(--text-muted);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: var(--space-4); }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input {
  width: 100%;
  padding: .8rem .95rem;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-size: .98rem;
  font-weight: 300;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.field input::placeholder { color: var(--grey-600); }
.field input:focus {
  outline: none;
  border-color: var(--field-focus);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(157, 140, 219, .18);
}
.field input:user-invalid { border-color: #d9667a; }

/* Consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: var(--space-2) 0 var(--space-5);
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-faint);
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 17px; height: 17px;
  margin-top: 2px;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  background: var(--field-bg);
  cursor: pointer;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1.5px;
  width: 4px; height: 8px;
  border: solid #0b0d16;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent a { color: inherit; text-decoration: none; }
.consent a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Submit */
.btn-submit {
  width: 100%;
  padding: .95rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff, #e7e4f3);
  color: #0a0b12;
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 10px 30px -10px rgba(157, 140, 219, .55);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 38px -12px rgba(157, 140, 219, .7); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.form-note {
  margin-top: var(--space-4);
  font-size: .74rem;
  font-weight: 300;
  text-align: center;
  color: var(--text-faint);
}

/* Erfolgs-Zustand */
.join-success { display: none; text-align: center; padding: var(--space-4) 0; }
.join-card.is-done .join-form { display: none; }
.join-card.is-done .join-head { display: none; }
.join-card.is-done .join-success { display: block; animation: fade-up .5s ease both; }
.success-mark {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(157, 140, 219, .14);
  border: 1px solid rgba(157, 140, 219, .4);
}
.join-success h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--text-strong);
  margin-bottom: .5rem;
}
.join-success p { font-size: .92rem; font-weight: 300; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: clamp(1.1rem, 2vw, 1.6rem);
  font-size: .78rem;
  font-weight: 300;
  color: var(--text-faint);
}
.footer-links { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--text-muted); }

/* ---------- Animationen ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: fade-up .9s cubic-bezier(.22,.61,.36,1) both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .2s; }
.reveal.d3 { animation-delay: .34s; }
.reveal.d4 { animation-delay: .48s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page { min-height: auto; }
  .hero {
    flex-direction: column;
    gap: 2.5rem;
    padding-block: 2.5rem 3.5rem;
  }
  .hero-left { flex-basis: auto; max-width: 100%; text-align: left; }
  .hero-right { flex-basis: auto; max-width: 100%; width: 100%; }
  .hero-points { justify-content: flex-start; }
  .join-card { max-width: 100%; }
}

@media (max-width: 420px) {
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .brand-name { letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
}
