/* agidion Landing Page - Brand Styles */

:root {
  /* Brand Colors - Night Sky Theme */
  --bg-deep: #0a0a0f;
  --bg-dark: #14141f;
  --bg-card: #1e1e2e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 89, 152, 0.3);

  /* Text */
  --text-primary: #e8e8ed;
  --text-secondary: #8b8b9e;
  --text-muted: #606070;

  /* Accent - Night Sky Blue & Gold */
  --accent-primary: #f5d76e;
  --accent-hover: #f7dc7e;
  --accent-glow: rgba(245, 215, 110, 0.3);
  --accent-blue: #3b5998;
  --accent-blue-dim: #1e3a5f;

  /* Gradient */
  --gradient-text: linear-gradient(
    135deg,
    #f5d76e 0%,
    #e8e8ed 50%,
    #3b5998 100%
  );
  --gradient-glow: radial-gradient(
    ellipse at center,
    rgba(59, 89, 152, 0.2) 0%,
    transparent 70%
  );
  --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #12121f 50%, #0a0a0f 100%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-display: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

/* Star Pattern Background - SVG */
.star-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: url("starfield.d4c76890a5c9.svg");
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.8;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* Links - Proper Styling */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 100px;
  width: auto;
  /* animation: logoFloat 6s ease-in-out infinite; */
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-small {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) 0;
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));

  overflow-x: clip;
}

/* Desktop: pin header top + footer bottom via absolute so only
   hero-content participates in flex centering */
@media (min-width: 601px) {
  .hero-header {
    position: absolute;
    top: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  /* .site-footer absolut entfernt, damit er unten auf der Seite im normalen Fluss bleibt */
}

/* Mobile: normal flow so nothing overlaps */
@media (max-width: 600px) {
  .hero {
    justify-content: space-between;
    align-items: stretch;
  }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

/* Logo - visible above content */
.hero-glow .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -280%);
  width: 120px;
  height: 120px;
  opacity: 0.9;
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(147, 112, 219, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

/* Hero Signup Form */
.hero-signup {
  margin-bottom: var(--space-3xl);
}

/* ── Tab switcher ── */
.signup-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.signup-tab {
  flex: 1;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
  letter-spacing: 0.02em;
}

.signup-tab:hover {
  color: var(--text-primary);
}

.signup-tab--active {
  background: rgba(245, 215, 110, 0.12);
  color: #f5d76e;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 450px;
  margin: 0 auto;
}

/* Honeypot field — invisible to humans, visible to bots in the DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.form-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.form-input {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-helper {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  text-align: left;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox-label a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.form-checkbox-label a:hover {
  color: var(--text-primary);
}

.form-checkbox {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* About Section in Hero */
.hero-about {
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.about-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-xl);
  max-width: 550px;
  margin: 0 auto;
  text-align: left;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.about-feature-icon {
  font-size: 1rem;
}

/* Footer */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-lg);
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--accent-primary);
}

.site-footer {
  width: 100%;
  padding: var(--space-xl) 0;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding-top: var(--space-lg);
}

/* Mobile Responsive */
.signup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 12px;
  animation: successFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(245, 215, 110, 0.07);
  border: 1.5px solid rgba(245, 215, 110, 0.4);
  box-shadow: 0 0 20px rgba(245, 215, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  animation: ringScale 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.success-icon-ring--green {
  background: rgba(74, 222, 128, 0.07);
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.12);
}

@keyframes ringScale {
  from {
    transform: scale(0.45);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.success-body {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 300px;
}

.success-hint {
  display: inline-block;
  font-size: 0.775rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.success-back-link {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.success-back-link:hover {
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .hero--success .hero-title,
  .hero--success .hero-subtitle {
    display: none;
  }

  /* remove the large bottom gap that was meant to space the form from the footer */
  .hero--success .hero-signup {
    margin-bottom: 0;
  }
}

/* ── Inline form error ───────────────────────────────────────────────────── */

.form-error {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 10px;
  text-align: center;
}

/* ── Cookie consent banner ───────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(130%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999999 !important;
  width: calc(100% - 48px);
  max-width: 580px;

  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(245, 215, 110, 0.05);

  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cookie-banner--visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.cookie-banner-text a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  padding: 9px 20px;
  background: var(--accent-primary);
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.cookie-btn-decline {
  padding: 9px 14px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
}

.cookie-btn-decline:hover {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 12px;
    padding: 16px;
    flex-direction: column;
    gap: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn-accept,
  .cookie-btn-decline {
    flex: 1;
    text-align: center;
  }
}

/* ── End of additions ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-feature {
    justify-content: center;
  }

  .form-group {
    flex-direction: column;
    align-items: center;
  }

  .form-group {
    width: 100%;
  }

  .form-input {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

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

  /* Footer links side by side on mobile */
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }

  .footer-link {
    display: inline-block;
  }
}

/* ── OTP Sign-In ─────────────────────────────────────────────────────────────── */

.otp-hint {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.5;
}
.otp-hint strong {
  color: var(--text-primary);
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 4px;
}

.otp-digit {
  width: 46px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  background: rgba(30, 30, 46, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  caret-color: var(--accent-primary);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -webkit-user-select: text;
  user-select: text;
}

.otp-digit:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(245, 215, 110, 0.15);
}

.otp-digit.otp-digit--filled {
  border-color: rgba(245, 215, 110, 0.4);
}

.form-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--accent-primary);
  font-size: 13px;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-link-btn:hover {
  color: var(--accent-hover);
}

@media (max-width: 420px) {
  .otp-digit {
    width: 40px;
    height: 50px;
    font-size: 20px;
    border-radius: 8px;
  }
  .otp-inputs {
    gap: 6px;
  }
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  z-index: 20;
  text-align: center;
}



/* ── Overview Section ───────────────────────────────────────────────────────── */

.overview {
  /* Removed scroll-snap to allow free scrolling below the hero */
  min-height: 100svh;
  /* background: var(--bg-deep);
  background-image: radial-gradient(
    ellipse at top center,
    rgba(59, 89, 152, 0.15) 0%,
    transparent 60%
  ); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  position: relative;
  z-index: 10;
}

.overview-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.badge-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.overview-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  max-width: 680px;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.overview-headline br {
  display: none;
}

@media (min-width: 768px) {
  .overview-headline br {
    display: block;
  }
}

.overview-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin-bottom: var(--space-3xl);
  line-height: 1.7;
}

.text-highlight {
  color: var(--accent-primary);
  font-weight: 600;
  background: rgba(245, 215, 110, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Perfektes Layout für 5 Karten: 6 Spalten Raster */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-lg);
  max-width: 1100px;
  width: 100%;
  margin-bottom: var(--space-3xl);
}

.overview-card {
  background: rgba(30, 30, 46, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Desktop: 3 Karten oben (span 2), 2 Karten unten (span 3) */
.overview-card:nth-child(1),
.overview-card:nth-child(2),
.overview-card:nth-child(3) {
  grid-column: span 2;
}

.overview-card:nth-child(4),
.overview-card:nth-child(5) {
  grid-column: span 3;
}

.overview-card:hover {
  background: rgba(30, 30, 46, 0.5);
  border-color: rgba(245, 215, 110, 0.2);
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(245, 215, 110, 0.05);
}

.overview-card-icon {
  margin-bottom: var(--space-xs);
  display: inline-flex;
}

.emoji-wrapper {
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.overview-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.overview-card-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.overview-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-primary);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 18px 46px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(245, 215, 110, 0.15);
  margin-bottom: var(--space-3xl);
}

.overview-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 215, 110, 0.35);
  color: var(--bg-deep);
}

.overview-cta svg {
  transition: transform var(--transition-fast);
}
.overview-cta:hover svg {
  transform: translateX(3px);
}

/* Footer in the Overview Section */
.overview .site-footer {
  display: none; /* Footer wurde nach unten verlagert */
}

/* ── Mission Section ──────────────────────────────────────────────────────── */

.mission {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}

.mission-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.mission-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.mission-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.mission-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
}

.mission-list .check {
  color: var(--bg-deep);
  background: var(--accent-primary);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  flex-shrink: 0;
}

.mission-visual {
  position: relative;
  width: 100%;
}

.visual-placeholder {
  /* background: var(--bg-card); */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  height: 380px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: var(--accent-glow);
  transform: translate(-50%, -50%);
  filter: blur(70px);
  border-radius: 50%;
}

.visual-ui {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ui-header {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  height: 48px;
  width: 100%;
}

.ui-post {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  height: 140px;
  width: 100%;
}

.ui-post.op-50 {
  opacity: 0.4;
  height: 90px;
}

/* ── Story Section ────────────────────────────────────────────────────────── */

.story-section {
  padding: calc(var(--space-3xl) * 1.2) var(--space-lg);
  position: relative;
  z-index: 10;
}

.story-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.story-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.story-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.story-section__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.story-section__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.story-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.story-section__card {
  background: rgba(20, 20, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.story-section__card:hover {
  border-color: rgba(245, 215, 110, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 215, 110, 0.06);
}

.story-section__card-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.story-section__card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.story-section__card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.story-section__card-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: 4px;
}

.story-section__footer {
  text-align: center;
}

.story-section__all {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.story-section__all:hover { opacity: 1; }

/* ── Newsletter Signup Section ────────────────────────────────────────────── */

.nl-section {
  padding: calc(var(--space-3xl) * 1.2) var(--space-lg);
  position: relative;
  z-index: 10;
}

.nl-section__inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  background: rgba(245, 215, 110, 0.04);
  border: 1px solid rgba(245, 215, 110, 0.14);
  border-radius: 24px;
  padding: 48px 40px;
}

.nl-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.nl-section__title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.nl-section__body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.nl-section__form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.nl-section__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 13px 20px;
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.nl-section__input::placeholder { color: rgba(255, 255, 255, 0.35); }
.nl-section__input:focus { border-color: rgba(245, 215, 110, 0.45); }

.nl-section__btn {
  background: var(--accent-primary);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-body);
  padding: 13px 24px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: -0.01em;
}
.nl-section__btn:hover { opacity: 0.9; transform: translateY(-1px); }

.nl-section__legal {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 12px;
  line-height: 1.5;
}
.nl-section__legal a {
  color: rgba(245, 215, 110, 0.55);
  text-decoration: none;
}
.nl-section__legal a:hover { color: var(--accent-primary); }

.nl-section__success {
  display: none;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 0;
}
.nl-section__success strong { color: var(--accent-primary); }

@media (max-width: 480px) {
  .nl-section__inner { padding: 36px 24px; }
  .nl-section__form { flex-direction: column; }
  .nl-section__btn { width: 100%; }
}

/* ── Bottom CTA Section ───────────────────────────────────────────────────── */

.bottom-cta {
  padding: calc(var(--space-3xl) * 1.5) var(--space-lg);
  text-align: center;
  /* background: var(--bg-deep); */
  position: relative;
  z-index: 10;
}

.bottom-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.bottom-cta-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

.btn-large {
  padding: 18px 46px;
  font-size: 1.125rem;
  border-radius: var(--radius-full);
}

@media (max-width: 900px) {
  /* Tablet grid for overview */
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-card:nth-child(n) {
    grid-column: span 1;
  }
  /* Center the last card on tablet */
  .overview-card:nth-child(5) {
    grid-column: span 2;
  }

  .mission-container {
    grid-template-columns: 1fr;
  }

  .visual-placeholder {
    height: 280px;
  }
}

@media (max-width: 600px) {
  /* Mobile layout adjustments */
  .overview {
    padding: var(--space-2xl) var(--space-md);
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-card:nth-child(n) {
    grid-column: span 1;
  }

  .mission {
    padding: var(--space-2xl) var(--space-md);
  }

  .bottom-cta {
    padding: var(--space-2xl) var(--space-md);
  }

  .hero--success .hero-title,
  .hero--success .hero-subtitle {
    display: none;
  }

  /* remove the large bottom gap that was meant to space the form from the footer */
  .hero--success .hero-signup {
    margin-bottom: 0;
  }

}

.demo {
  background: var(--bg-deep);
  padding: var(--space-3xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.demo-subline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 480px;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.demo-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 980px;
  width: 100%;
  align-items: start;
}

.post-card {
  background: rgba(20, 20, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 215, 110, 0.04);
  position: relative;
}

.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 215, 110, 0.35) 40%,
    rgba(245, 215, 110, 0.35) 60%,
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

.post-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
}

.post-card__header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.post-card__username {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.post-card__time {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-card__text-body {
  padding: 24px 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
  word-break: break-word;
  white-space: pre-wrap;
}

.post-carousel {
  position: relative;
  background: #12121f;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.post-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-card__actions {
  display: flex;
  align-items: center;
  padding: 8px 4px 4px;
  gap: 4px;
}

.post-card__save {
  margin-left: auto;
}

.post-card__action-btn {
  padding: 6px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition:
    color 0.15s,
    background 0.15s;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.post-card__action-btn.like-btn.liked {
  color: #f75d52;
}

.post-card__save.saved svg {
  color: var(--accent-primary);
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 5px rgba(245, 215, 110, 0.7));
}

.post-card__likes-count {
  font-weight: 600;
  font-size: 14px;
  margin-left: -4px;
  margin-right: 8px;
  color: var(--text-primary);
  cursor: default;
}

.post-card__caption {
  padding: 6px 16px 14px;
  line-height: 1.5;
  color: var(--text-primary);
  font-size: 14px;
}

.ag-avatar-placeholder {
  border-radius: 50%;
  background: #1c1c2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-weight: 600;
  font-size: 11px;
  width: 32px;
  height: 32px;
}

.post-poll {
  margin: 0 16px 12px;
  padding: 14px 16px;
  background: #1c1c2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.post-poll__question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-poll__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-poll__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  background: #14141f;
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
  width: 100%;
  cursor: default;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.demo-poll .post-poll__option {
  cursor: pointer;
}

.demo-poll .post-poll__option:not(.current-vote):hover {
  border-color: rgba(245, 215, 110, 0.4);
  background: rgba(245, 215, 110, 0.04);
}

.demo-poll .post-poll__option.current-vote {
  cursor: default;
}

.post-poll__option.winner {
  border-color: var(--accent-primary);
}

.post-poll__option-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(245, 215, 110, 0.12);
  border-radius: 10px 0 0 10px;
  pointer-events: none;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-poll__option.winner .post-poll__option-bar {
  background: rgba(245, 215, 110, 0.2);
}

.post-poll__option-text {
  position: relative;
  flex: 1;
  font-weight: 500;
}

.post-poll__option-pct {
  position: relative;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  flex-shrink: 0;
}

.post-poll__option.winner .post-poll__option-pct {
  color: var(--accent-primary);
  font-weight: 700;
}

.post-poll__option-check {
  position: relative;
  font-size: 13px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.post-poll__meta {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .demo-feed {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .demo {
    padding: var(--space-2xl) var(--space-md);
  }
}

@media (min-width: 768px) {
  html,
  body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }
}

body:has(.form-input:focus, .otp-digit:focus) .overview,
body:has(.form-input:focus, .otp-digit:focus) .demo,
body:has(.form-input:focus, .otp-digit:focus) .mission,
body:has(.form-input:focus, .otp-digit:focus) .bottom-cta,
body:has(.form-input:focus, .otp-digit:focus) > .site-footer,
body:has(.form-input:focus, .otp-digit:focus) .cookie-banner {
  display: none !important;
}
