/* ============ Tokens ============ */
:root {
  --bg: #0b0a12;
  --bg-alt: #100e1c;
  --surface: #16142590;
  --surface-solid: #161425;
  --border: #2a2740;
  --text: #f4f2fb;
  --text-dim: #b3aec9;
  --text-faint: #837da3;

  --magenta: #d926e0;
  --purple: #7b3ff2;
  --cyan: #24c9ee;

  --gradient: linear-gradient(90deg, var(--magenta), var(--purple) 55%, var(--cyan));
  --gradient-soft: linear-gradient(135deg, rgba(217,38,224,0.18), rgba(36,201,238,0.18));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  --container: 1160px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9fd;
    --bg-alt: #f1eff8;
    --surface: #ffffffcc;
    --surface-solid: #ffffff;
    --border: #e4e0f0;
    --text: #1b1730;
    --text-dim: #4d4768;
    --text-faint: #8983a3;
    --shadow: 0 20px 60px -20px rgba(60,40,100,0.25);
  }
}

/* ============ Reset ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Reveal animation ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(217,38,224,0.45);
}
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(36,201,238,0.55); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  margin-right: auto;
}
.brand-logo { height: 32px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--text); }

.header-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(217,38,224,0.28), transparent 70%),
              radial-gradient(closest-side at 80% 20%, rgba(36,201,238,0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero-logo { height: 84px; margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges span {
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
}

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 48px;
}

/* ============ Grids & Cards ============ */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.callout {
  margin-top: 36px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.callout h3 { margin-bottom: 16px; font-size: 1.1rem; }

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 800;
}

/* ============ Screenshots ============ */
.screenshot-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}
.screenshot-scroller::-webkit-scrollbar { height: 8px; }
.screenshot-scroller::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.screenshot-card {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  transition: transform .2s ease, border-color .2s ease;
}
.screenshot-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.screenshot-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.screenshot-card figcaption {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.screenshot-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.screenshot-hint code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============ Pricing ============ */
#preise .container > .eyebrow,
#preise .container > h2,
#preise .container > .section-lead {
  text-align: center;
}
#preise .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  text-align: left;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
}
.price-card-highlight {
  border-color: var(--purple);
  background: var(--gradient-soft);
  box-shadow: var(--shadow);
}
.price-card-badge {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card-head h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price-card-head p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 22px; }

.price-tag { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.price-amount { font-size: 2.6rem; font-weight: 800; }
.price-period { color: var(--text-dim); font-size: 0.95rem; }

.price-card .check-list { margin-bottom: 26px; flex-grow: 1; }
.price-note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ============ CTA banner ============ */
.cta-banner { padding: 90px 0; text-align: center; }
.cta-banner-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner-inner p { color: var(--text-dim); margin-bottom: 30px; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-logo { height: 24px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; text-align: center; color: var(--text-faint); font-size: 0.8rem; order: 3; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,5,12,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: 92vw;
  padding: 24px;
}
.lightbox-scroller img {
  scroll-snap-align: center;
  max-height: 84vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ============ Legal pages ============ */
.legal-main {
  padding: 64px 0 100px;
}
.legal-main .container { max-width: 820px; }
.legal-main h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}
.legal-updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 40px; }
.legal-main h2 {
  font-size: 1.15rem;
  margin-top: 38px;
  margin-bottom: 12px;
}
.legal-main h3 {
  font-size: 0.98rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.legal-main p strong { color: var(--text); }
.legal-main p, .legal-main li {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin-bottom: 12px;
}
.legal-main ul { list-style: disc; padding-left: 22px; }
.legal-main a.inline-link { color: var(--cyan); text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }

  /* Collapse nav to hamburger here already — at tablet widths (e.g. 768px
     iPad portrait) the full nav + CTA button + logo no longer fit in one row. */
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .header-inner { position: relative; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .header-links .btn { padding: 9px 16px; font-size: 0.85rem; }
}
