:root {
  --brand-blue: #009fff;
  --brand-cyan: #00e2ff;
  --brand-soft: #f1f3f2;
  --brand-black: #000000;
  --brand-white: #ffffff;
  --page-bg: #f7fbff;
  --panel-bg: rgba(255, 255, 255, 0.74);
  --panel-border: rgba(0, 159, 255, 0.14);
  --text-main: #08131f;
  --text-muted: rgba(8, 19, 31, 0.62);
  --shadow-strong: 0 28px 70px rgba(19, 77, 122, 0.12);
  --shadow-soft: 0 14px 34px rgba(0, 159, 255, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 14% 14%, rgba(0, 159, 255, 0.22), transparent 30%),
    radial-gradient(ellipse at 82% 8%, rgba(0, 226, 255, 0.18), transparent 26%),
    radial-gradient(ellipse at 50% 92%, rgba(0, 159, 255, 0.12), transparent 32%),
    linear-gradient(160deg, #f0f9ff 0%, #e4f2fb 100%);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

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

.landing-shell,
.error-shell {
  min-height: 100vh;
  padding: 16px;
}

.hero-panel,
.error-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-strong);
  isolation: isolate;
}

.hero-panel {
  min-height: calc(100vh - 32px);
}

.hero-backdrop,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) brightness(1.08) blur(1px);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(245, 251, 255, 0.88) 0%, rgba(238, 248, 255, 0.64) 42%, rgba(245, 251, 255, 0.84) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(238, 247, 253, 0.38) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  opacity: 0.9;
}

.hero-glow-left {
  top: 8%;
  left: -4%;
  width: 380px;
  height: 380px;
  background: rgba(0, 159, 255, 0.18);
  filter: blur(52px);
}

.hero-glow-right {
  right: 6%;
  bottom: 8%;
  width: 520px;
  height: 520px;
  background: rgba(0, 226, 255, 0.13);
  filter: blur(64px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 32px);
  padding: 24px 28px 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  width: clamp(220px, 28vw, 360px);
}

.eyebrow,
.countdown-kicker,
.error-code {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: center;
  margin-top: auto;
}

.hero-copy {
  max-width: 640px;
  padding: 12px 6px 8px 0;
  animation: rise-in 0.8s ease-out both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-blue);
  font-size: 0.78rem;
}

.hero-copy h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--text-main) 20%, #1a6fad 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: var(--brand-white);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(0, 226, 255, 0.24);
}

.countdown-date,
.countdown-note,
.error-text {
  color: var(--text-muted);
}

.hero-side {
  display: grid;
  gap: 0;
  animation: fade-in 0.95s ease-out both;
  animation-delay: 0.18s;
}

.countdown-card {
  padding: 24px;
  border: 1px solid rgba(0, 159, 255, 0.18);
  border-top: 3px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft), 0 2px 0 0 rgba(0, 159, 255, 0.08) inset;
}

.countdown-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.countdown-kicker {
  margin: 0 0 6px;
  color: var(--brand-blue);
  font-size: 0.78rem;
}

.countdown-date {
  margin: 0;
  font-size: 0.95rem;
  text-align: right;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.countdown-unit {
  padding: 18px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(0, 159, 255, 0.05) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 1px solid rgba(0, 159, 255, 0.12);
  text-align: center;
}

.countdown-value {
  display: grid;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
}

.cv-a,
.cv-b {
  grid-area: 1 / 1;
  text-align: center;
  background: linear-gradient(160deg, var(--text-main) 0%, #1a6fad 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.cv-active {
  opacity: 1;
}

.countdown-label {
  margin-top: 8px;
  color: rgba(8, 19, 31, 0.54);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown-note {
  margin: 16px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.error-text {
  margin: 0;
  line-height: 1.65;
}

.error-shell {
  display: grid;
  place-items: center;
}

.error-card {
  width: min(100%, 720px);
  padding: 42px 28px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(0, 159, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.94));
}

.error-logo {
  margin: 0 auto 28px;
}

.error-code {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-size: 0.86rem;
}

.error-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.04em;
}

.error-text {
  max-width: 44ch;
  margin: 18px auto 28px;
}

.waitlist-form {
  margin-top: 28px;
  max-width: 480px;
}

.waitlist-tagline {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.waitlist-row {
  display: flex;
  gap: 10px;
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.waitlist-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 159, 255, 0.14);
}

.waitlist-btn {
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.waitlist-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-feedback {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.waitlist-ok {
  color: #0a7d4b;
}

.waitlist-err {
  color: #c0392b;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Visual Effects ───────────────────────────────────────────────────────── */

/* Aurora: animierte Glow-Blobs */
@keyframes aurora-a {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.9; }
  33%       { transform: translate(44px, -32px) scale(1.18); opacity: 1;   }
  66%       { transform: translate(-28px, 22px) scale(0.88); opacity: 0.7; }
}

@keyframes aurora-b {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.9; }
  33%       { transform: translate(-38px, 28px) scale(0.9);  opacity: 0.7; }
  66%       { transform: translate(32px, -22px) scale(1.14); opacity: 1;   }
}

.hero-glow-left  { animation: aurora-a 10s ease-in-out infinite; }
.hero-glow-right { animation: aurora-b 14s ease-in-out infinite; }

/* Cursor Spotlight */
.cursor-spotlight {
  position: fixed;
  pointer-events: none;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 159, 255, 0.07) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.4s ease;
  will-change: left, top;
}

/* Partikel-Canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Button Shimmer */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: btn-shine 3.6s ease-in-out infinite;
}

@keyframes btn-shine {
  0%       { transform: translateX(-120%); }
  35%, 100% { transform: translateX(220%); }
}

/* Countdown Card: rotierender Glow */
@keyframes card-glow {
  0%   { box-shadow: var(--shadow-soft), 6px 0 22px rgba(0, 159, 255, 0.28),  0 0 0 rgba(0, 226, 255, 0.1); }
  25%  { box-shadow: var(--shadow-soft), 0 6px 22px rgba(0, 226, 255, 0.28),  0 0 0 rgba(0, 159, 255, 0.1); }
  50%  { box-shadow: var(--shadow-soft), -6px 0 22px rgba(0, 159, 255, 0.28), 0 0 0 rgba(0, 226, 255, 0.1); }
  75%  { box-shadow: var(--shadow-soft), 0 -6px 22px rgba(0, 226, 255, 0.28), 0 0 0 rgba(0, 159, 255, 0.1); }
  100% { box-shadow: var(--shadow-soft), 6px 0 22px rgba(0, 159, 255, 0.28),  0 0 0 rgba(0, 226, 255, 0.1); }
}

.countdown-card {
  animation: card-glow 5s linear infinite;
}

/* Countdown Units: versetzter Eingang + Hover-Lift */
.countdown-unit {
  animation: fade-in 0.6s ease-out both;
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: default;
}

.countdown-unit:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 159, 255, 0.2);
}

.countdown-unit:nth-child(1) { animation-delay: 0.35s; }
.countdown-unit:nth-child(2) { animation-delay: 0.45s; }
.countdown-unit:nth-child(3) { animation-delay: 0.55s; }
.countdown-unit:nth-child(4) { animation-delay: 0.65s; }


/* Eyebrow: subtiles Glow-Pulsieren */
@keyframes eyebrow-glow {
  0%, 100% { text-shadow: none; opacity: 1;   }
  50%       { text-shadow: 0 0 12px rgba(0, 159, 255, 0.5); opacity: 0.8; }
}

.eyebrow {
  animation: eyebrow-glow 3.2s ease-in-out infinite;
}

/* Waitlist Input: Glow beim Focus */
.waitlist-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 159, 255, 0.14), 0 0 20px rgba(0, 159, 255, 0.12);
}

@media (max-width: 980px) {
  .hero-content {
    padding: 22px 20px 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }
}

@media (max-width: 640px) {
  .landing-shell,
  .error-shell {
    padding: 10px;
  }

  .hero-panel {
    min-height: calc(100vh - 20px);
  }

  .hero-content {
    min-height: calc(100vh - 20px);
    padding: 16px;
  }

  .topbar,
  .countdown-head {
    align-items: start;
    flex-direction: column;
  }

  .brand-logo {
    width: 220px;
  }

  .countdown-unit {
    padding: 16px 12px;
  }

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

  .waitlist-btn {
    align-self: flex-start;
  }
}
