:root {
  --logo-blue: #1075ff;
  --dark-blue: #1a365d;
  --light-blue: #3182ce;
  --light-green: #38b2ac;
  --white: #f7fafc;
  --light-grey: #2d3748;
  --dark-grey: #0d141f;

  --ink: #0d141f;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* fits mobile chrome correctly */
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Kein vertikales Clipping mehr: passt der Inhalt nicht (kurze/gezoomte/
     ungewohnte Viewports), darf die Seite scrollen statt abzuschneiden.
     Horizontal bleibt sie sauber. */
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---------- ambient AI-style glow ---------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

/* Statische Glows: die großen blur()-Layer werden so nur einmal gerastert
   und nicht in jedem Frame neu komponiert. Die langsame Drift war durch den
   starken Blur ohnehin kaum sichtbar. */
.glow-1 {
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(16, 117, 255, 0.22), transparent 70%);
  top: -220px;
  left: -200px;
}

.glow-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(49, 130, 206, 0.18), transparent 70%);
  bottom: -180px;
  right: -160px;
}

.glow-3 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(56, 178, 172, 0.14), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- boot loading bar ---------- */
.boot-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--logo-blue) 50%,
    var(--light-blue) 80%,
    transparent
  );
  box-shadow: 0 0 12px rgba(16, 117, 255, 0.7);
  z-index: 100;
  animation: boot 1.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes boot {
  0%   { width: 0;    opacity: 1; }
  70%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* ---------- floating data particles ---------- */
.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.particles .p {
  fill: var(--logo-blue);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 6s ease-in-out infinite;
}

.particles .p:nth-child(2)  { animation-delay: 0.6s; }
.particles .p:nth-child(3)  { animation-delay: 1.2s; animation-duration: 7s; }
.particles .p:nth-child(4)  { animation-delay: 1.8s; }
.particles .p:nth-child(5)  { animation-delay: 2.4s; animation-duration: 8s; }
.particles .p:nth-child(6)  { animation-delay: 3.0s; }
.particles .p:nth-child(7)  { animation-delay: 0.3s; animation-duration: 9s; }
.particles .p:nth-child(8)  { animation-delay: 1.5s; }
.particles .p:nth-child(9)  { animation-delay: 2.1s; animation-duration: 7s; }
.particles .p:nth-child(10) { animation-delay: 2.7s; }
.particles .p:nth-child(11) { animation-delay: 3.3s; animation-duration: 8s; }
.particles .p:nth-child(12) { animation-delay: 0.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 0.7; transform: scale(1.4); }
}

/* ---------- page card ---------- */
.card {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  /* unten extra Platz, damit die fixierte Fußzeile (Impressum · Datenschutz)
     nie "LAUNCHING SOON" überlappt */
  padding: clamp(20px, 3vh, 48px) clamp(20px, 4vw, 56px)
    clamp(56px, 9vh, 88px);
  display: flex;
  flex-direction: column;
}

.status-badge {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 20, 31, 0.1);
  padding: 9px 14px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(13, 20, 31, 0.04);
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--logo-blue);
  box-shadow: 0 0 0 0 rgba(16, 117, 255, 0.6);
  animation: pulse 2.2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 117, 255, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 117, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 117, 255, 0); }
}

.card-inner {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(12px, 2.5vh, 32px);
  min-height: 0;
}

.brand-logo {
  width: clamp(280px, 56vw, 660px);
  height: clamp(64px, 14vh, 160px);
  object-fit: contain;
  display: block;
  margin-bottom: clamp(14px, 3.5vh, 44px);
}

.brand-logo.reveal {
  /* glow loops after entrance completes */
  animation:
    rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    logoGlow 6s ease-in-out 1.6s infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 1.1s);
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(16, 117, 255, 0.10)); }
  50%      { filter: drop-shadow(0 0 28px rgba(16, 117, 255, 0.40)); }
}

.headline {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, min(7vw, 9.5vh), 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(10px, 2vh, 28px);
  color: var(--ink);
  background: linear-gradient(
    110deg,
    var(--ink) 0%,
    var(--ink) 38%,
    var(--logo-blue) 48%,
    #4f9bff 50%,
    var(--logo-blue) 52%,
    var(--ink) 62%,
    var(--ink) 100%
  );
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: background-position;

  /* entrance: clip-path sweep + soft rise, then loop shimmer.
     alternate direction = seamless loop, no jump at restart. */
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transform: translateY(14px);
  animation:
    headlineEnter 1.1s cubic-bezier(0.7, 0, 0.3, 1) forwards,
    shimmer 5s ease-in-out 1.6s infinite alternate;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 1.2s);
}

@keyframes headlineEnter {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateY(14px); }
  60%  { opacity: 1; transform: translateY(0); }
  100% { clip-path: inset(0 0 0 0); opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

.subtitle {
  font-size: clamp(14px, min(1.4vw, 2.2vh), 19px);
  line-height: 1.5;
  color: rgba(13, 20, 31, 0.68);
  max-width: 560px;
  margin: 0 0 clamp(18px, 3.5vh, 48px);
}

.rangeview-logo {
  width: clamp(320px, 60vw, 720px);
  height: clamp(72px, 13vh, 170px);
  object-fit: contain;
  display: block;
  margin-bottom: clamp(16px, 3vh, 40px);
}

.rangeview-logo.reveal {
  animation:
    rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    logoGlow 7s ease-in-out 1.6s infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 1.1s);
}

.launching {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  padding-bottom: 18px;
}

.launching::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    var(--logo-blue) 50%,
    transparent 70%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  animation: sweep 5.5s ease-in-out infinite;
}

@keyframes sweep {
  0%   { background-position: 220% 0; }
  100% { background-position: -120% 0; }
}

.launching-text {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(16px, min(2.4vw, 3.2vh), 34px);
  letter-spacing: clamp(0.22em, 0.42vw, 0.36em);
  font-weight: 600;
  background: linear-gradient(
    110deg,
    var(--ink) 0%,
    var(--ink) 42%,
    var(--logo-blue) 50%,
    var(--ink) 58%,
    var(--ink) 100%
  );
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: background-position;
  animation: shimmer 6s ease-in-out infinite alternate;
}

.dot {
  width: clamp(8px, 0.9vw, 12px);
  height: clamp(8px, 0.9vw, 12px);
  border-radius: 50%;
  background: var(--logo-blue);
  display: inline-block;
  box-shadow: 0 0 14px rgba(16, 117, 255, 0.55);
  animation: dotPulse 2.4s ease-in-out infinite;
}

.dot:last-child {
  animation-delay: 1.2s;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.6;  transform: scale(1);    box-shadow: 0 0 8px rgba(16, 117, 255, 0.4); }
  50%      { opacity: 1;    transform: scale(1.35); box-shadow: 0 0 22px rgba(16, 117, 255, 0.75); }
}

/* ---------- entrance animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  filter: blur(6px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .led,
  .dot,
  .reveal,
  .boot-bar,
  .particles .p,
  .brand-logo,
  .rangeview-logo,
  .headline,
  .launching-text,
  .launching::after {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .headline {
    clip-path: none;
    opacity: 1;
    transform: none;
  }
  .boot-bar { display: none; }
  .particles .p { opacity: 0.4; }
}

/* ---------- responsive: phone one-pager ---------- */
@media (max-width: 640px) {
  .card {
    padding: 14px 14px clamp(14px, 3vh, 24px);
  }
  .status-badge {
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 6px 10px;
  }
  .brand-logo {
    width: 86%;
    height: clamp(58px, 13vh, 130px);
    margin-bottom: clamp(14px, 3vh, 30px);
  }
  .headline {
    font-size: clamp(26px, min(8vw, 7vh), 56px);
    margin-bottom: clamp(8px, 1.5vh, 18px);
  }
  .subtitle {
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.45;
    margin-bottom: clamp(20px, 4vh, 36px);
  }
  .rangeview-logo {
    width: 90%;
    height: clamp(64px, 13vh, 150px);
    margin-bottom: clamp(18px, 3.5vh, 36px);
  }
  .launching-text {
    font-size: clamp(14px, 4.4vw, 22px);
    letter-spacing: 0.28em;
  }
  .dot {
    width: 7px;
    height: 7px;
  }
}

/* ---------- mobile performance: kill GPU-heavy effects ---------- */
@media (max-width: 640px) {
  /* huge blur() filters are the main cause of jank on phones —
     keep them static (no animation) and smaller so the GPU has
     budget left for the headline shimmer */
  .glow {
    filter: blur(50px);
    opacity: 0.35;
    animation: none;
  }
  .glow-1 { width: 300px; height: 300px; top: -100px; left: -100px; }
  .glow-2 { width: 260px; height: 260px; bottom: -80px; right: -80px; }
  .glow-3 { display: none; }

  /* backdrop-filter forces an offscreen layer every frame */
  .status-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.92);
  }

  /* fewer concurrent animations = smoother frame budget for the shimmer */
  .particles { display: none; }
  .launching::after { animation: none; }
}

/* ---------- short / landscape phones ---------- */
@media (max-height: 560px) {
  .card { padding: 10px 16px; }
  .brand-logo  { height: clamp(50px, 16vh, 110px); margin-bottom: 8px; }
  .headline    { font-size: clamp(22px, min(6vw, 11vh), 48px); margin-bottom: 4px; }
  .subtitle    { font-size: 13px; margin-bottom: 10px; }
  .rangeview-logo { height: clamp(56px, 18vh, 130px); margin-bottom: 14px; }
  .launching-text { font-size: clamp(13px, 2.4vh, 22px); }
}

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: clamp(16px, 3vw, 28px);
  width: min(720px, calc(100% - 32px));
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 20, 31, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(13, 20, 31, 0.16);
}

.cookie-banner.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 24px);
}

.cookie-text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(13, 20, 31, 0.78);
}

.cookie-text a {
  color: var(--logo-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 117, 255, 0.35);
}

.cookie-text a:hover {
  border-bottom-color: var(--logo-blue);
}

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

.cookie-btn {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.cookie-btn:active { transform: translateY(1px); }

.cookie-decline {
  background: transparent;
  border-color: rgba(13, 20, 31, 0.18);
  color: rgba(13, 20, 31, 0.7);
}

.cookie-decline:hover {
  border-color: rgba(13, 20, 31, 0.4);
  color: var(--ink);
}

.cookie-accept {
  background: var(--logo-blue);
  color: #fff;
  box-shadow: 0 2px 12px rgba(16, 117, 255, 0.35);
}

.cookie-accept:hover {
  background: #0a63e0;
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-actions {
    justify-content: center;
  }
  .cookie-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.2s ease; transform: translate(-50%, 0); }
}

/* ---------- legal footer ---------- */
.legal-footer {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: clamp(12px, 2.4vw, 22px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-footer a {
  color: rgba(13, 20, 31, 0.5);
  text-decoration: none;
  transition: color 0.18s ease;
}

.legal-footer a:hover {
  color: var(--logo-blue);
}

.legal-footer .sep {
  color: rgba(13, 20, 31, 0.25);
}

@media (max-width: 640px) {
  .legal-footer { font-size: 11px; gap: 9px; }
}
