:root {
  /* Apple Keynote Dark Mode Palette */
  --bg:             #000000; /* Pure black canvas */
  --surface:        #161617; /* Apple secondary dark gray */
  --surface-card:   #1C1C1E; /* Apple card gray */
  --surface-glass:  rgba(0, 0, 0, 0.8);
  --border:         #2C2C2E; /* Crisp dark border */
  --border-hover:   #3A3A3C;
  --text:           #F5F5F7; /* Apple signature off-white */
  --muted:          #86868B; /* Apple secondary muted gray */

  /* VOLT Sunset Accent Palette (Dark Mode — goldene Feierabendstunde) */
  --accent-cola:    #0A0018; /* Dark Indigo Black */
  --accent-red:     #DE007E; /* Hot Pink */
  --accent-orange:  #814597; /* Purple */
  --accent-yellow:  #44307D; /* Indigo */
  --accent:         #DE007E; /* Primary Hot Pink Accent */

  /* Sunset Gradients (Dark Mode Image Gradients) */
  --sunset-gradient: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 50%, var(--accent-yellow) 100%);
  --sunset-text-grad: linear-gradient(to right, var(--accent-red), var(--accent-orange), var(--accent-yellow));
  --sunset-light:    rgba(222, 0, 126, 0.04);
  --glow-rgb:        222, 0, 126; /* Dark mode hot pink */

  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h:      76px;
  --max-w:      720px;
  --max-w-wide: 1120px;
  --radius:     14px;
  --radius-sm:  6px;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Apple Keynote Light Mode Palette Overrides (Retaining Original Sunrise/Sunset Colors) */
:root.light-mode {
  --bg:             #FFFFFF; /* Pure white canvas */
  --surface:        #F5F5F7; /* Apple secondary light gray */
  --surface-card:   #FFFFFF; /* White card */
  --surface-glass:  rgba(255, 255, 255, 0.85);
  --border:         #D2D2D7; /* Apple light gray border */
  --border-hover:   #86868B;
  --text:           #1D1D1F; /* Apple signature charcoal black */
  --muted:          #6E6E73; /* Apple secondary light gray text */

  /* Original Sunrise/Sunset Accent Palette for Light Mode */
  --accent-cola:    #001F54;
  --accent-red:     #DE3C4B;
  --accent-orange:  #F77F00;
  --accent-yellow:  #FCBF49;
  --accent:         #F77F00;
  --sunset-gradient: linear-gradient(135deg, #DE3C4B 0%, #F77F00 50%, #FCBF49 100%);
  --sunset-text-grad: linear-gradient(to right, #DE3C4B, #F77F00, #FCBF49);
  --sunset-light:    rgba(247, 127, 0, 0.06);
  --glow-rgb:        247, 127, 0; /* Light mode orange */
}

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

html {
  background-color: var(--bg);
  scroll-behavior: auto;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  color: var(--text);
  font-family: var(--font-sans);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography & Subpixel Rendering Sharpness Fixes */
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  margin-bottom: 24px;
}

h2 em {
  font-style: normal;
  background: var(--sunset-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

p {
  font-size: clamp(16px, 1.1vw, 19px);
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.lead {
  font-size: clamp(18px, 1.3vw, 23px);
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Apple Floating Header with Centered Tabs */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 110;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
  grid-column: 1;
  justify-self: start;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.03em;
}

.logo span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sunset-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Centered Tabs */
.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 4px;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 30px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: #FFFFFF !important;
  background: var(--sunset-gradient) !important;
  box-shadow: 0 2px 10px rgba(var(--glow-rgb), 0.3);
  font-weight: 600;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: var(--sunset-gradient);
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sunset-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.theme-toggle-btn:hover {
  border-color: transparent;
  box-shadow: 0 0 15px rgba(var(--glow-rgb), 0.3);
  transform: scale(1.05);
}

.theme-toggle-btn:hover::before {
  opacity: 0.15;
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover svg {
  transform: rotate(30deg);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }

.light-mode .theme-toggle-btn .sun-icon { display: block; }
.light-mode .theme-toggle-btn .moon-icon { display: none; }

/* Hamburger Button */
.menu-toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none; /* Hidden on desktop */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 110;
  position: relative;
  overflow: hidden;
}

.menu-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sunset-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.menu-toggle-btn:hover {
  transform: scale(1.05);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(var(--glow-rgb), 0.3);
}

.menu-toggle-btn:hover::before {
  opacity: 0.15;
}

.menu-toggle-btn .line {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: var(--text);
  border-radius: 1px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.menu-toggle-btn.open .line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle-btn.open .line:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.open .line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile Menu Overlay Drawer */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--surface-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-menu-overlay.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-links a {
  text-decoration: none;
  font-size: 32px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--text);
  background: var(--sunset-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Progress indicator */
#progress {
  position: fixed;
  top: calc(var(--nav-h) + 20px);
  right: 24px;
  width: 2px;
  height: calc(100dvh - var(--nav-h) - 60px);
  background: rgba(255, 255, 255, 0.05);
  z-index: 90;
}

#progress-fill {
  width: 100%;
  height: 100%;
  background: var(--sunset-gradient);
  transform-origin: top;
  transform: scaleY(0);
}

/* Hero Section */
.hero-section {
  height: 180vh;
  position: relative;
}

.hero-stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  overflow: hidden;
}

/* Grid stack to prevent text overlapping */
.hero-main-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  width: 100%;
  min-height: 280px;
  position: relative;
  margin-bottom: 24px;
}

/* Sharpness fixes for scaling and morphing text */
.hero-words {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.8em;
  justify-content: center;
  font-size: clamp(16px, 3.5vw, 44px);
  font-weight: 700;
  z-index: 2;
  pointer-events: none;
  letter-spacing: -0.03em;
}

.hero-word {
  display: inline-flex;
}

/* Hardware accelerated elements to remain crisp during CSS transforms */
.word-letter, .word-rest, .hero-acronym span {
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0,0,0);
  will-change: transform, opacity;
}

.word-letter {
  background: var(--sunset-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.word-rest {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: var(--text);
  background-clip: initial;
  -webkit-background-clip: initial;
  opacity: 1;
}

.hero-acronym {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 0.02em;
  font-size: clamp(38px, 12vw, 180px);
  font-weight: 800;
  letter-spacing: -0.04em;
  z-index: 1;
  --acronym-glow-radius: 0px;
  --acronym-glow-opacity: 0;
  filter: drop-shadow(0 0 var(--acronym-glow-radius) rgba(var(--glow-rgb), var(--acronym-glow-opacity)));
}

.hero-acronym span {
  background: var(--sunset-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(16px, 1.3vw, 22px);
  color: var(--muted);
  max-width: 720px;
  font-weight: 400;
  line-height: 1.4;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  letter-spacing: -0.01em;
}

.hero-hint {
  position: absolute;
  bottom: 40px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite ease-in-out;
}

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

/* Sections Layout & Desktop Dynamic Scroll Depths (Preventing long empty pauses) */
.section {
  background: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 80px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 100px 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .section {
    height: auto;
  }

  .section:last-of-type {
    height: auto;
  }

  .section-grid {
    position: relative;
    height: auto;
    padding-top: 120px;
    padding-bottom: 240px;
  }

  .section-head {
    position: sticky;
    top: calc(var(--nav-h) + 100px);
    align-self: start;
    will-change: transform;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .section-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    padding-top: 80px;
    padding-bottom: 180px;
  }

  .section-body {
    padding-left: 20px;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 13px;
  }
}

.section-head {
  align-self: start;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 16px;
  display: inline-block;
  letter-spacing: 0.08em;
}

.section-body {
  padding-left: 40px;
  border-left: 1px solid var(--border);
}

.section-body > *:first-child {
  margin-top: 0;
}

.section-body > * + * {
  margin-top: 2.2rem;
}

/* Apple Keynote Cards */
.presentation-comparison {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.comparison-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-card.ppt {
  border-top: 4px solid var(--muted);
}

.comparison-card.scrolly {
  border-top: 4px solid var(--accent-orange);
  background: var(--sunset-light);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}

.card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ppt .card-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

.scrolly .card-badge {
  background: var(--sunset-text-grad);
  color: var(--bg);
}

/* Sleek Experience Features Grid */
.experience-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  border-color: var(--border-hover);
  border-left-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* CTA & Buttons */
.cta-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--sunset-gradient);
  color: var(--bg);
  border: none;
  box-shadow: 0 4px 15px rgba(247, 127, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 127, 0, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Responsive Overrides */
@media (max-width: 1399px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

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

  #progress {
    right: 12px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .mobile-menu-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
  }
}

@media (max-width: 767px) {
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 80px 20px 200px 20px;
  }

  .section-body {
    padding-left: 0;
    border-left: none;
  }

  .section-body > * + * {
    margin-top: 1.5rem;
  }
}

/* Content Group wrapping header + paragraph */
.content-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-group + .content-group {
  margin-top: 2.2rem;
}

/* Light mode specific element styling overrides */
.light-mode .nav-links {
  background: rgba(0, 0, 0, 0.03);
}

.light-mode #progress {
  background: rgba(0, 0, 0, 0.05);
}

.light-mode .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Demo-Badge (Mac-Daddy Portfolio-Rücklink) — gleiche Konvention wie bei den
   anderen Demo-Seiten unter public/demos/assets/*/style.css */
.demo-badge {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.demo-badge:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.footnotes {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 60px 40px 120px;
}

.footnotes p {
  font-size: 13px;
  color: var(--muted);
}

.demo-note {
  margin-top: 8px;
}

.demo-note a {
  color: var(--text);
  text-decoration: underline;
}
