/* === Astronia Design Tokens === */
:root {
  --bg-deep: oklch(0.13 0.035 268);
  --bg-mid: oklch(0.17 0.045 265);
  --bg-card: oklch(0.18 0.05 264);
  --bg-elevated: oklch(0.22 0.06 262);
  --ink-bright: oklch(0.98 0.01 80);
  --ink-soft: oklch(0.84 0.02 260);
  --ink-mute: oklch(0.60 0.03 260);
  --gold: oklch(0.84 0.15 82);
  --gold-soft: oklch(0.78 0.13 75);
  --orange: oklch(0.72 0.17 45);
  --magenta: oklch(0.62 0.22 0);
  --violet: oklch(0.62 0.20 305);
  --line: oklch(0.32 0.04 265 / 0.45);
  --line-bright: oklch(0.50 0.06 270 / 0.30);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 12px oklch(0 0 0 / 0.25);
  --shadow-md: 0 12px 32px -10px oklch(0 0 0 / 0.4);
}

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

html, body {
  background: var(--bg-deep);
  color: var(--ink-bright);
  font-family: "Outfit", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

/* Deep cosmic background gradient — etwas dezenter */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, oklch(0.26 0.09 280 / 0.45), transparent 60%),
    radial-gradient(ellipse 70% 70% at 90% 30%, oklch(0.22 0.10 320 / 0.30), transparent 65%),
    radial-gradient(ellipse 90% 60% at 50% 100%, oklch(0.18 0.08 260 / 0.55), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Star canvas sits between bg and content */
#star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Top Bar === */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, oklch(0.13 0.035 268 / 0.78), oklch(0.13 0.035 268 / 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-bright);
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  background: oklch(0.18 0.05 263 / 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--ink-mute);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: all .25s ease;
}

.lang-toggle button.active {
  background: var(--ink-bright);
  color: var(--bg-deep);
}

.su-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.su-tag img {
  height: 20px;
  width: auto;
  opacity: 0.92;
}

/* === Pitch / Presentation mode trigger === */
.pitch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  cursor: pointer;
  background: oklch(0.86 0.13 82 / 0.10);
  color: var(--gold);
  border: 1px solid oklch(0.86 0.13 82 / 0.40);
  transition: all .25s ease;
}

.pitch-btn:hover {
  background: oklch(0.86 0.13 82 / 0.18);
  border-color: oklch(0.86 0.13 82 / 0.65);
  transform: translateY(-1px);
}

.pitch-btn .pitch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px oklch(0.86 0.13 82 / 0.7);
  animation: pitchBlink 2.4s ease-in-out infinite;
}

@keyframes pitchBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.40; }
}

@media (max-width: 720px) {
  .pitch-btn .pitch-label { display: none; }
  .pitch-btn { padding: 7px 10px; }
  .topbar { padding: 14px 18px; }
  .su-tag span { display: none; }
}

/* === Main content area === */
main {
  flex: 1;
  padding: 32px 40px 140px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 720px) {
  main { padding: 24px 18px 140px; }
}

/* Section transition wrapper */
.section {
  animation: sectionIn .55s cubic-bezier(.2,.7,.2,1);
}

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

/* Headings */
h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "✦";
  font-size: 9px;
  color: var(--gold);
  opacity: 0.85;
}

/* === Bottom Navigation (iOS Pill) === */
.bottom-nav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  z-index: 60;
  pointer-events: none;
  padding: 0 16px;
}

.bottom-nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: oklch(0.15 0.045 265 / 0.72);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid oklch(0.36 0.05 270 / 0.35);
  border-radius: 999px;
  box-shadow:
    0 14px 40px oklch(0 0 0 / 0.45),
    inset 0 1px 0 oklch(1 0 0 / 0.05);
  pointer-events: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: "Outfit", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  position: relative;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s ease;
}

.nav-item:hover {
  color: var(--ink-bright);
}

.nav-item:hover svg {
  transform: scale(1.08);
}

.nav-item.active {
  background: linear-gradient(135deg, oklch(0.86 0.13 82), oklch(0.78 0.11 60));
  color: oklch(0.16 0.04 60);
  box-shadow:
    0 3px 12px oklch(0.86 0.13 82 / 0.30),
    inset 0 1px 0 oklch(1 0 0 / 0.35);
}

.nav-item .label {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .nav-item:not(.active) .label { display: none; }
  .nav-item { padding: 9px 11px; }
  .nav-item.active { padding: 9px 14px; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-bright);
  background: oklch(0.20 0.05 263 / 0.45);
  color: var(--ink-bright);
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}

.btn:hover {
  background: oklch(0.24 0.06 263 / 0.6);
  border-color: oklch(0.86 0.13 82 / 0.55);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: oklch(0.16 0.04 60);
  border-color: transparent;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px oklch(0.86 0.13 82 / 0.28);
}

/* === Cards === */
.card {
  background: oklch(0.17 0.045 265 / 0.50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* dezenter Highlight oben */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.12), transparent);
}

/* Utility */
.center { text-align: center; }
.flex { display: flex; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* === Sparkle particles === */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, oklch(0.99 0.02 80) 0%, oklch(0.86 0.13 82) 50%, transparent 70%);
  box-shadow: 0 0 7px oklch(0.86 0.13 82 / 0.7);
  animation: sparkleFly var(--life, 1000ms) ease-out forwards;
}

.sparkle[data-hue="violet"] {
  background: radial-gradient(circle, oklch(0.99 0.02 80) 0%, oklch(0.65 0.20 305) 50%, transparent 70%);
  box-shadow: 0 0 7px oklch(0.65 0.20 305 / 0.7);
}

@keyframes sparkleFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx) * 0.3), calc(-50% + var(--dy) * 0.3)) scale(1) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2) rotate(calc(var(--rot) * 2));
  }
}

/* === Brand logo "wobble" hint that it's interactive === */
.brand img {
  transition: transform .4s cubic-bezier(.2,1.5,.4,1);
  cursor: pointer;
}
.brand img:hover {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 0 10px oklch(0.86 0.13 82 / 0.4));
}

/* === Konami / scroll easter egg: nebula reveals === */
.cosmic-mode body::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, oklch(0.45 0.18 280 / 0.5), transparent 60%),
    radial-gradient(ellipse 70% 70% at 90% 30%, oklch(0.40 0.20 320 / 0.45), transparent 65%) !important;
}

/* === Selection color === */
::selection {
  background: oklch(0.86 0.13 82 / 0.35);
  color: oklch(0.99 0.01 80);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: oklch(0.30 0.06 270 / 0.5);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: oklch(0.86 0.13 82 / 0.45); }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
