/* ============================================================
   Voxista — Projektseite
   Design: „Dunkles Studio-Instrument"
   ============================================================ */

/* ---------- Fonts ------------------------------------------ */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ----------------------------------- */
:root {
  --bg:          #0B0A12;
  --bg-card:     #111020;
  --bg-raised:   #161525;
  --border:      rgba(255, 255, 255, 0.07);
  --border-med:  rgba(255, 255, 255, 0.12);
  --text:        #E8E4F0;
  --text-dim:    rgba(232, 228, 240, 0.55);
  --text-faint:  rgba(232, 228, 240, 0.35);
  --accent-a:    #7B4DF5;
  --accent-b:    #2E85F5;
  --grad:        linear-gradient(135deg, var(--accent-a), var(--accent-b));
  --grad-text:   linear-gradient(90deg, var(--accent-a), var(--accent-b));
  --radius:      10px;
  --radius-lg:   16px;
  --max-w:       1080px;
  --font-sans:   "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono:   "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Reset / Base ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 360;
  font-optical-sizing: auto;
  min-height: 100vh;
  /* subtle noise grain via SVG filter */
  position: relative;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- Links ------------------------------------------ */
a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-b); }
a:focus-visible {
  outline: 2px solid var(--accent-a);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Typography ------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { max-width: 68ch; }

strong { font-weight: 600; color: var(--text); }

/* ---------- Utility classes -------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 400;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-a);
  margin-bottom: 1rem;
}

/* ---------- Topbar ----------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 10, 18, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 56px;
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar__logo img,
.topbar__logo svg {
  height: 22px;
  width: auto;
  display: block;
  color: var(--text);
}

.topbar__logo span {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.topbar__nav a {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 550;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--outline {
  border: 1px solid var(--border-med);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  border: none;
}

.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(123, 77, 245, 0.35);
  color: #fff;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
}

/* ---------- Section Divider (wave motif) ------------------- */
.wave-divider {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 20px;
  margin-block: 0;
  opacity: 0.18;
}

.wave-divider span {
  display: block;
  width: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ---------- Hero ------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 8vw, 6rem);
  text-align: center;
}

/* Radial glow */
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  translate: -50% 0;
  width: min(900px, 120vw);
  height: min(600px, 80vw);
  background: radial-gradient(ellipse at center,
    rgba(123, 77, 245, 0.13) 0%,
    rgba(46, 133, 245, 0.06) 45%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 1; }

.hero__title {
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  margin-inline: auto;
  margin-bottom: 2.5rem;
  max-width: 54ch;
  font-weight: 350;
}

.hero__sub strong { color: var(--text); font-weight: 550; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* ---------- Animated Waveform ------------------------------ */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  margin-bottom: 3rem;
}

.waveform__bar {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--accent-a), var(--accent-b));
  animation: wave-pulse 1.4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.18); opacity: 0.45; }
  50%       { transform: scaleY(1);    opacity: 1; }
}

/* 18 bars with staggered delays */
.waveform__bar:nth-child(1)  { height: 38px; animation-delay: 0.00s; }
.waveform__bar:nth-child(2)  { height: 28px; animation-delay: 0.08s; }
.waveform__bar:nth-child(3)  { height: 44px; animation-delay: 0.16s; }
.waveform__bar:nth-child(4)  { height: 22px; animation-delay: 0.24s; }
.waveform__bar:nth-child(5)  { height: 50px; animation-delay: 0.10s; }
.waveform__bar:nth-child(6)  { height: 34px; animation-delay: 0.32s; }
.waveform__bar:nth-child(7)  { height: 48px; animation-delay: 0.05s; }
.waveform__bar:nth-child(8)  { height: 20px; animation-delay: 0.40s; }
.waveform__bar:nth-child(9)  { height: 56px; animation-delay: 0.18s; }
.waveform__bar:nth-child(10) { height: 36px; animation-delay: 0.48s; }
.waveform__bar:nth-child(11) { height: 52px; animation-delay: 0.22s; }
.waveform__bar:nth-child(12) { height: 24px; animation-delay: 0.36s; }
.waveform__bar:nth-child(13) { height: 44px; animation-delay: 0.12s; }
.waveform__bar:nth-child(14) { height: 30px; animation-delay: 0.44s; }
.waveform__bar:nth-child(15) { height: 40px; animation-delay: 0.28s; }
.waveform__bar:nth-child(16) { height: 18px; animation-delay: 0.52s; }
.waveform__bar:nth-child(17) { height: 46px; animation-delay: 0.06s; }
.waveform__bar:nth-child(18) { height: 26px; animation-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .waveform__bar {
    animation: none;
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}

/* ---------- Badge row -------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-med);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  letter-spacing: 0.04em;
}

/* ---------- Section spacing -------------------------------- */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  z-index: 1;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head h2 {
  margin-bottom: 0.6rem;
}

.section__head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- Principles / Trio ----------------------------- */
.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;   /* wie .features-grid — die Items haben eigene Rahmen/Hover */
}

.trio__item {
  background: var(--bg-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.trio__item:hover {
  transform: translateY(-3px);
  border-color: var(--border-med);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.trio__icon {
  margin-bottom: 0.85rem;
  display: block;
}

/* Heroicons (inline, outline 24) */
.icon {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--accent-b);
}
.trio__icon .icon { width: 30px; height: 30px; }

.trio__item h3 {
  margin-bottom: 0.4rem;
}

.trio__item p {
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: none;
}

/* ---------- Feature Cards ---------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.5rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-med);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.card__icon {
  margin-bottom: 0.7rem;
  display: block;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: none;
}

/* ---------- kbd ------------------------------------------- */
kbd {
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 500;
  background: var(--bg-raised);
  border: 1px solid var(--border-med);
  border-radius: 4px;
  padding: 0.1em 0.45em;
  color: var(--accent-b);
  box-shadow: 0 1px 0 var(--border-med);
  white-space: nowrap;
  line-height: 1.6;
}

/* ---------- Pipeline Steps --------------------------------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  counter-reset: step;
  position: relative;
}

.pipeline__step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  counter-increment: step;
}

.pipeline__step::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-a);
  opacity: 0.6;
}

.pipeline__step-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-b);
  margin-bottom: 0.5rem;
}

.pipeline__step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.pipeline__step p {
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: none;
}

/* ---------- Code block ------------------------------------- */
.code-block {
  background: #0d0c1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-block__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}

.code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-med);
}

.code-block__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-left: 0.25rem;
  font-weight: 500;
}

.code-block pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #cac4e0;
}

.code-block pre .comment { color: #6a6480; }
.code-block pre .cmd     { color: var(--accent-b); }

/* ---------- Automation items ------------------------------- */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.auto-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
}

.auto-item__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-a);
  margin-bottom: 0.35rem;
}

.auto-item p {
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: none;
}

/* ---------- Installation ----------------------------------- */
.install-note {
  background: rgba(123, 77, 245, 0.07);
  border: 1px solid rgba(123, 77, 245, 0.22);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
}

.install-note strong { color: var(--text); }

/* ---------- Changelog Timeline ----------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-a), transparent);
  opacity: 0.35;
}

.timeline__item {
  position: relative;
  margin-bottom: 2.25rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.3rem;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(123, 77, 245, 0.18);
}

.timeline__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.timeline__version {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-a);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.timeline__list {
  list-style: none;
  padding: 0;
}

.timeline__list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 0.2rem 0 0.2rem 1.1rem;
  position: relative;
}

.timeline__list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent-b);
  opacity: 0.7;
}

/* ---------- Donate ---------------------------------------- */
.donate-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.donate-wrap p {
  font-size: 1.05rem;
  color: var(--text-dim);
}

.donate-btn {
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}

.donate-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.donate-btn img {
  height: 42px;
  width: auto;
}

/* ---------- Footer ---------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.footer__copy {
  font-size: 0.825rem;
  color: var(--text-faint);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.825rem;
  color: var(--text-faint);
}

.footer__links a:hover { color: var(--text-dim); }

.footer__inspiration {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------- Legal pages ------------------------------------ */
.legal-content {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 0.93rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

.placeholder-warn {
  display: inline-block;
  background: rgba(255, 120, 50, 0.1);
  border: 1px dashed rgba(255, 120, 50, 0.5);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  color: #ff8840;
  font-weight: 600;
}

/* ---------- Scroll Reveal ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ------------------------------------- */
@media (max-width: 640px) {
  .topbar__nav { display: none; }

  .topbar__inner {
    justify-content: space-between;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }

  .hero__cta .btn--lg {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  :root { font-size: 0.9rem; }
}

/* ---------- Hero-Logo (Marke im Markenverlauf via Mask) ----- */
.hero__logo {
  width: clamp(96px, 13vw, 140px);
  aspect-ratio: 1;
  margin: 0 auto 2.25rem;
  background: var(--grad);
  -webkit-mask: url("assets/voxista-mark.svg") center / contain no-repeat;
  mask: url("assets/voxista-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 32px rgba(123, 77, 245, 0.35));
}

/* ---------- Sprach-Schalter ------------------------------- */
.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-med);
  border-radius: 5px;
}

/* ---------- Footer-Notiz (dezent) ------------------------- */
.footer__built {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-faint);
  max-width: none;
}

/* ---------- E-Mail-Schutz (No-JS-Fallback rückwärts, CSS dreht) -- */
.mail-rev { unicode-bidi: bidi-override; direction: rtl; }
