/* Compile Academy Liquid Glass: optische Tiefe durch Reflexionen, ohne weitere Canvas-Laufzeit. */
:root {
  --crystal-edge: rgba(255, 255, 255, 0.68);
  --crystal-shadow: rgba(4, 7, 31, 0.36);
  --crystal-fill: rgba(255, 255, 255, 0.045);
  --crystal-sheen: rgba(224, 245, 255, 0.18);
  --crystal-accent: #a29aff;
}
:root[data-scheme='light'] {
  --crystal-edge: rgba(255, 255, 255, 0.98);
  --crystal-shadow: rgba(65, 72, 135, 0.15);
  --crystal-fill: rgba(255, 255, 255, 0.3);
  --crystal-sheen: rgba(255, 255, 255, 0.65);
  --crystal-accent: #7564e8;
}
:root:not([data-style='studio']) .glass {
  background: linear-gradient(135deg, var(--crystal-sheen), transparent 38%, var(--crystal-fill) 70%), var(--glass);
  box-shadow:
    inset 0 1.5px 0 var(--crystal-edge),
    inset 1px 0 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 8px 18px -14px #fff,
    0 8px 16px -12px var(--crystal-shadow),
    0 22px 60px -32px var(--crystal-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
:root:not([data-style='studio']) .glass::before {
  background:
    radial-gradient(ellipse at var(--mx, 18%) var(--my, 0%), var(--crystal-sheen), transparent 55%),
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.07) 48%, transparent 62%);
}
:root:not([data-style='studio']) .glass::after {
  padding: 1px;
  opacity: 1;
  background: conic-gradient(from 160deg at 50% 50%, #ffffff10, #ffffff85 17%, #ffffff0a 30%, #bcefff80 40%, #ffffff0a 55%, #fff 74%, #ffffff0a 88%, #ffffff10);
}
:root:not([data-style='studio']) .appearance-dialog.glass,
:root:not([data-style='studio']) .install-dialog.glass,
:root:not([data-style='studio']) .glass.strong {
  background: linear-gradient(135deg, var(--crystal-sheen), transparent 45%), color-mix(in srgb, var(--bg-2) 94%, transparent);
}
.nav.glass {
  padding: 9px 9px 9px 17px;
  border-radius: 26px;
  background-color: color-mix(in srgb, var(--bg) 42%, transparent);
}
.nav .brand img {
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 #fff9,
    0 6px 16px -9px #7c5cff;
}
.nav-links a {
  border-radius: 14px;
}
.btn {
  box-shadow:
    inset 0 1.5px 0 #e7e3ffb3,
    inset 0 -2px 3px #35219755,
    inset 0 0 0 1px #ffffff26,
    0 6px 12px -6px #37297a80,
    0 14px 28px -16px #8f7affbd;
  color: #241d43;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, rgb(var(--tint)) 52%, white),
    color-mix(in srgb, rgb(var(--tint)) 70%, white) 42%,
    color-mix(in srgb, rgb(var(--tint)) 80%, white)
  );
}
.btn.ghost {
  color: var(--ink);
  background: linear-gradient(145deg, var(--crystal-sheen), transparent 80%), var(--glass);
  box-shadow:
    inset 0 1px 0 var(--crystal-edge),
    inset 0 0 0 1px #ffffff33,
    0 12px 30px -22px var(--crystal-shadow);
}
.btn:focus-visible {
  outline-offset: 5px;
}
.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(68px, 7vw, 108px);
}
.hero-grid {
  gap: clamp(38px, 5vw, 76px);
}
.hero .eyebrow {
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 0.15em;
  border-radius: 13px;
}
.hero h1 {
  line-height: 1.16;
  margin-top: 22px;
}
.hero .lead {
  max-width: 520px;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.8;
  margin-bottom: 28px;
}
.hero .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 28px;
}
.hero .stats li {
  border-radius: 18px;
  padding: 13px 9px;
  color: var(--mist);
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
}
.hero .stats strong {
  display: block;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin-bottom: 5px;
}
.hero-note {
  margin-top: 14px;
  font-size: 11px;
}
.hero-visual {
  position: relative;
  isolation: isolate;
  padding-block: 40px 22px;
}
.glass-halo {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 110%;
  aspect-ratio: 1;
  left: -5%;
  top: 0;
  border-radius: 50%;
  transform: rotate(-23deg) scaleY(0.88);
  border: 2px solid #d9e1ff70;
  box-shadow:
    inset 1px 3px 12px #ffffff55,
    inset -1px -6px 18px #829dff33,
    0 4px 12px #e0eaff26;
  background: radial-gradient(ellipse at 50% 48%, transparent 62%, #b8b1ff12 65%, #ffffff55 67%, #65ddff26 69%, transparent 72%);
}
.glass-halo i {
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  border: 1px solid #cef3ff33;
  transform: rotate(32deg) scaleX(1.2);
}
.crystal-code {
  position: absolute;
  z-index: 2;
  right: -17px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  transform: perspective(600px) rotateY(-24deg) rotateZ(12deg);
  color: var(--ink);
  background: linear-gradient(135deg, #ffffffb3, #b8beff26 35%, #8c71ff38 60%, #78eaff80);
  border: 1px solid #ffffffb3;
  box-shadow:
    inset 0 3px 6px #ffffffcc,
    inset 0 -6px 9px #9295ff66,
    5px 6px 0 -2px #bccbff66,
    15px 24px 34px -16px #5145b566;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: crystal-hover 9s ease-in-out infinite;
}
.crystal-code span {
  font: 600 26px var(--mono);
  letter-spacing: -0.08em;
  text-shadow: 0 2px 0 #ffffff80;
}
@keyframes crystal-hover {
  0%,
  100% {
    transform: perspective(600px) translateY(0) rotateY(-24deg) rotateZ(12deg);
  }
  50% {
    transform: perspective(600px) translateY(-9px) rotateY(-16deg) rotateZ(8deg);
  }
}
.preview-label {
  position: absolute;
  z-index: 3;
  left: -16px;
  top: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 12px 17px;
  font-size: 11px;
  color: var(--mist);
}
.preview-label-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(140deg, #baa6ff, #7fd5f5);
  color: #302777;
  box-shadow: inset 0 1px 0 #fff9;
}
.learning-preview.glass {
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff40, #b8ceff0a 32%, #aeb5ff1f 72%, #ffffff55);
  box-shadow:
    inset 0 2px 1px #ffffffd9,
    inset 0 -2px 1px #ffffff55,
    inset 2px 0 3px #ffffff55,
    0 30px 60px -24px var(--crystal-shadow),
    0 8px 20px -10px var(--crystal-shadow);
}
.preview-titlebar {
  padding: 11px 10px 15px;
}
.learning-preview .screen {
  background:
    radial-gradient(ellipse at 100% 5%, #48859d47, transparent 55%), radial-gradient(ellipse at 0% 100%, #8468c147, transparent 55%),
    linear-gradient(150deg, #202844f0, #171a30f5);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 #ffffff29,
    inset 0 0 0 1px #d6e5ff21,
    0 2px 5px #1718301a;
  min-height: 408px;
}
.learning-preview .mini-card.glass {
  background: linear-gradient(140deg, #f1f2ff21, #ceeaff0a);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 #ffffff57,
    inset 0 0 0 1px #ffffff1f,
    0 8px 18px -10px #03071f66;
}
.learning-preview .mini-card.glass::before {
  background: none;
}
.learning-preview .mini-card code {
  background: #0e1527b3;
  color: #b9e8cf;
  border: 1px solid #ffffff0d;
  font-weight: 400;
}
.learning-preview .mini-opts div {
  background: linear-gradient(135deg, #ffffff10, #ffffff05);
  box-shadow:
    inset 0 1px 0 #ffffff26,
    inset 0 0 0 1px #ffffff12;
  border-radius: 14px;
}
.learning-preview .bar {
  height: 5px;
}
.learning-preview .koda-float {
  right: -17px;
  bottom: 32px;
  width: 92px;
}
.preview-caption {
  padding: 12px 18px;
  margin-top: 20px;
  box-shadow: none;
}
.marquee {
  padding-block: 22px;
  border-block: 1px solid color-mix(in srgb, var(--rim) 30%, transparent);
  background: linear-gradient(90deg, transparent, var(--crystal-fill), transparent);
}
.step,
.companion,
.course,
.feature,
.app-card,
.studio-dl,
.install-card {
  border-radius: 26px;
}
.course {
  padding: 25px;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.course .glyph {
  border-radius: 17px;
  box-shadow:
    inset 0 1px 1px #ffffffa6,
    inset 0 -3px 6px #00000021,
    0 9px 20px -11px #0b15385c;
}
.course .meta {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--rim) 27%, transparent);
}
.course .meta span {
  background: var(--crystal-fill);
  border-radius: 8px;
  padding: 4px 7px;
}
.course:hover,
.course:focus-visible {
  box-shadow:
    inset 0 1.5px 0 var(--crystal-edge),
    inset 0 0 0 1px #d4c8ff66,
    0 24px 52px -26px var(--crystal-shadow);
}
.section-head .eyebrow {
  letter-spacing: 0.15em;
}
.step-num {
  box-shadow:
    inset 0 1px 0 #fff9,
    inset 0 -4px 8px #7168cf33,
    0 10px 20px -12px #6754ba;
}
.companion img {
  filter: drop-shadow(0 20px 14px #53699924);
}
.studio-preview.glass,
.playground.glass,
.final-cta.glass {
  border: 1px solid #ffffff33;
}
.timeline li {
  background: linear-gradient(110deg, var(--crystal-fill), transparent);
}
.intro {
  background: radial-gradient(ellipse at 50% 45%, #9894ef22, transparent 60%), var(--bg);
}
.intro .bars {
  display: none;
}
.intro-word,
.intro-tag,
.intro-skip {
  color: var(--ink);
}
.intro-tag {
  opacity: 0.8;
}
.intro-skip {
  border-color: var(--rim);
  background: var(--glass);
}
.intro-stage img {
  filter: drop-shadow(0 20px 35px #8275df55);
}
.intro .intro-word span {
  text-shadow: 0 0 40px #8275df66;
}
:root[data-page-visible='false'] .crystal-code,
section[data-in-view='false'] .crystal-code {
  animation-play-state: paused;
}
:root:not([data-style='studio']) section[data-in-view='false'] .glass,
:root:not([data-style='studio']) .marquee .lang-chip.glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* Der flache Studio-Stil und Barrierefreiheitsoptionen behalten ihre Wirkung. */
:root[data-style='studio'] .glass-halo,
:root[data-style='studio'] .crystal-code {
  display: none;
}
:root[data-style='studio'] .learning-preview.glass {
  background: var(--glass);
}
:root[data-motion='reduce'] .crystal-code {
  animation: none;
}
@media (max-width: 980px) {
  .hero-grid {
    gap: 46px;
  }
  .hero .stats {
    max-width: 520px;
  }
  .hero-visual {
    width: min(540px, 100%);
  }
  .preview-label {
    max-width: calc(100% - 80px);
    left: 0;
  }
  .crystal-code {
    right: 5px;
  }
}
@media (max-width: 540px) {
  .nav.glass {
    border-radius: 22px;
    padding: 8px 10px;
  }
  .hero {
    padding-top: 42px;
  }
  .hero h1 {
    font-size: clamp(31px, 8.6vw, 43px);
  }
  .hero .lead {
    font-size: 16px;
    line-height: 1.75;
  }
  .hero .stats li {
    font-size: 9px;
    padding: 12px 4px;
    border-radius: 14px;
  }
  .hero .stats strong {
    font-size: 21px;
  }
  .hero-visual {
    padding-top: 42px;
  }
  .preview-label {
    font-size: 9px;
    padding: 9px 12px;
    gap: 7px;
    border-radius: 14px;
  }
  .preview-label-icon {
    width: 21px;
    height: 21px;
  }
  .crystal-code {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    right: 4px;
    top: -2px;
  }
  .crystal-code span {
    font-size: 20px;
  }
  .learning-preview.glass {
    padding: 8px;
    border-radius: 30px;
  }
  .learning-preview .screen {
    min-height: 394px;
    padding: 18px;
  }
  .learning-preview .mini-card code {
    font-size: 11px;
  }
  .learning-preview .koda-float {
    width: 74px;
    right: -5px;
  }
  .preview-caption {
    font-size: 9px;
  }
  .course {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .crystal-code {
    animation: none;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  :root:not([data-style='studio']) .glass,
  .crystal-code {
    background-color: var(--bg-2);
  }
}
@media (forced-colors: active) {
  .glass,
  .btn,
  .course .glyph {
    border: 1px solid CanvasText;
    box-shadow: none;
  }
  .glass-halo,
  .crystal-code {
    display: none;
  }
}
