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

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f0f0f;
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 120px;
}

/* ── Header ── */
.header {
  padding: 28px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: #7B5CD4;
  letter-spacing: -0.6px;
  text-decoration: none;
}
.btn-login {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.15);
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-login:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-login--pending {
  visibility: hidden;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6B79E0 0%, #8935CB 100%);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover  { opacity: 0.88; }
.btn-primary:active { transform: scale(0.98); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.hero-text { min-width: 0; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #7B5CD4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Hero input row */
.hero-input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  min-height: 52px;
  transition: border-color 0.15s;
}
.hero-input-wrap:focus-within { border-color: #7B5CD4; }
.hero-input-prefix {
  padding: 0 0 0 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 0 14px;
  min-width: 0;
}
.hero-input::placeholder { color: rgba(255,255,255,0.25); }
.hero-cta { width: 100%; }

/* Hero media / skeleton */
.hero-media { position: relative; }
.video-skeleton {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1.5px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.video-skeleton-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0.04) 80%
  );
  background-size: 800px 100%;
  animation: shimmer 2s infinite linear;
}
.hero-video {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ── Exklusivität ── */
.exclusivity {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 72px;
}
.exclusivity h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.exclusivity-body {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.exclusivity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Benefits ── */
.benefits {
  margin-bottom: 72px;
}
.benefits h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit-card {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px 20px;
}
.benefit-icon {
  font-size: 26px;
  margin-bottom: 12px;
  line-height: 1;
}
.benefit-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.benefit-body {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-section {
  margin-bottom: 72px;
}
.faq-section h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  gap: 12px;
  letter-spacing: -0.1px;
}
.faq-q:hover { color: rgba(255,255,255,0.85); }
.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  padding-bottom: 0;
}
.faq-a.open {
  max-height: 300px;
  padding-bottom: 18px;
}

/* ── Form Section ── */
.form-section {
  padding-top: 8px;
  margin-bottom: 64px;
}
.form-section h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
  text-align: center;
}
.form-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}
.required { color: #7B5CD4; margin-left: 2px; }
.label-optional { color: rgba(255,255,255,0.35); font-weight: 400; }
input[type="text"],
input[type="email"],
textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  min-height: 52px;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus { border-color: #7B5CD4; }
input::placeholder,
textarea::placeholder { color: rgba(255,255,255,0.22); }
textarea { min-height: 90px; padding: 14px 16px; resize: vertical; }

/* Progressive disclosure toggle */
.message-toggle {
  background: none;
  border: none;
  color: #7B5CD4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: opacity 0.15s;
}
.message-toggle:hover { opacity: 0.75; }

/* DSGVO consent */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #7B5CD4;
  cursor: pointer;
}
.form-consent label {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.42);
  line-height: 1.6;
  cursor: pointer;
  letter-spacing: 0;
}
.form-consent label a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.form-consent label a:hover { color: #7B5CD4; }

/* Submit */
.form-submit { margin-top: 24px; }
.submit-btn {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
  border-radius: 16px;
}
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.trust-copy {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
}

/* Spinner inside button */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error / Success */
.form-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  font-size: 14px;
  color: #fca5a5;
  display: none;
}
.form-error.visible { display: block; }
.form-success {
  text-align: center;
  padding: 48px 24px;
  display: none;
}
.form-success.visible { display: block; }
.form-success-icon { font-size: 56px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ── Footer ── */
.footer {
  padding: 24px 0 40px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.footer a:hover { color: rgba(255,255,255,0.65); }

/* ── Sticky Mobile CTA ── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 20px;
  background: linear-gradient(to top, #0f0f0f 60%, transparent);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sticky-cta-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  font-size: 16px;
}
/* JS hides the sticky bar when the form section enters the viewport */
.sticky-cta--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  .page { padding-bottom: 100px; }
}

/* hidden utility — JS-toggled visibility without inline style= */
.hidden { display: none !important; }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .video-skeleton { max-width: 180px; }
  .exclusivity h2 { font-size: 22px; }
  .form-section h2 { font-size: 22px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .hero-cta { width: 100%; }
}

/* ── Session-check overlay ── */
@keyframes session-spin {
  to { transform: rotate(360deg); }
}

#session-overlay {
  position: fixed;
  inset: 0;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

#session-overlay.session-overlay--hidden {
  opacity: 0;
}

#session-overlay.session-overlay--gone {
  display: none;
}

.session-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.session-overlay__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(123, 92, 212, 0.25);
  border-top-color: #7B5CD4;
  border-radius: 50%;
  animation: session-spin 0.7s linear infinite;
}

.session-overlay__label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.01em;
}
