:root {
  --accent-primary: #6E5BFF;
  --accent-mid: #B95CE0;
  --accent-secondary: #FF6B6B;
  --gradient: linear-gradient(135deg, #6E5BFF 0%, #B95CE0 50%, #FF6B6B 100%);
  --titanium: #C9CCD3;
  --bg-primary: #07060C;
  --bg-elevated: #100E1A;
  --bg-surface: rgba(255, 255, 255, 0.045);
  --border: rgba(201, 204, 211, 0.12);
  --border-accent: rgba(110, 91, 255, 0.35);
  --text-primary: #F5F4FA;
  --text-secondary: #A9A5BC;
  --radius: 20px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #A99DFF; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }

/* Language toggle: [data-lang] blocks are shown per html[data-ui] */
html:not([data-ui="de"]) [data-lang="de"],
html[data-ui="de"] [data-lang="en"] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 6, 12, 0.66);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 0.94rem; }
.nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--bg-surface);
}
.lang-toggle button {
  font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  background: none; border: 0; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--gradient); color: #fff; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(110, 91, 255, 0.28), transparent 70%),
    radial-gradient(35% 45% at 80% 40%, rgba(255, 107, 107, 0.18), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--titanium); border: 1px solid var(--border); background: var(--bg-surface);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 750; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--text-secondary); margin: 22px 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.price { color: var(--text-secondary); font-size: 0.95rem; }
.meta-line { margin-top: 18px; font-size: 0.88rem; color: var(--text-secondary); }

/* App Store badge (placeholder until approval) */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 12px;
  padding: 8px 18px 8px 14px; min-height: 54px; position: relative;
}
.appstore-badge:hover { text-decoration: none; }
.appstore-badge svg { width: 26px; height: 30px; fill: #fff; flex: none; }
.appstore-badge .small { display: block; font-size: 0.7rem; line-height: 1.1; }
.appstore-badge .big { display: block; font-size: 1.35rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.appstore-badge[data-appstore-pending] { cursor: not-allowed; opacity: 0.85; }
.pending-note { font-size: 0.8rem; color: var(--titanium); border: 1px dashed var(--border); border-radius: 999px; padding: 4px 10px; }

/* Device mockup */
.device-wrap { display: flex; justify-content: center; perspective: 1400px; }
.device {
  position: relative; width: min(340px, 82vw); aspect-ratio: 1 / 0.92;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  transform: rotateY(-14deg) rotateX(6deg);
  filter: drop-shadow(0 40px 60px rgba(110, 91, 255, 0.25));
}
.panel {
  border-radius: 26px; padding: 10px; position: relative;
  background: linear-gradient(160deg, #E6E8EE, #8D909A 55%, #C9CCD3);
}
.panel .screen {
  height: 100%; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 10%, #2A2150, #0D0B18 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px;
}
.panel.left { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.panel.right { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.panel.left .screen { border-top-right-radius: 2px; border-bottom-right-radius: 2px; }
.panel.right .screen { border-top-left-radius: 2px; border-bottom-left-radius: 2px; background: radial-gradient(120% 80% at 70% 90%, #4A1F3A, #0D0B18 70%); }
.screen .label { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.screen .count { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.screen img { width: 64px; height: 64px; border-radius: 15px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; width: 100%; justify-content: center; }
.bars span { width: 9px; border-radius: 4px; background: var(--gradient); opacity: 0.9; }
.ring {
  width: 86px; height: 86px; border-radius: 50%;
  background: conic-gradient(#6E5BFF 0 38%, #B95CE0 38% 61%, #FF6B6B 61% 100%);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%);
}
@media (prefers-reduced-motion: no-preference) {
  .device { animation: fold 7s ease-in-out infinite; }
  @keyframes fold {
    0%, 100% { transform: rotateY(-14deg) rotateX(6deg); }
    50% { transform: rotateY(-4deg) rotateX(3deg); }
  }
}

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 720; }
.section-head p { color: var(--text-secondary); margin-top: 12px; font-size: 1.08rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: var(--border-accent); box-shadow: 0 0 0 1px rgba(110, 91, 255, .15), 0 18px 50px -20px rgba(110, 91, 255, .45); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(110, 91, 255, .22), rgba(255, 107, 107, .18)); border: 1px solid var(--border-accent);
}
.card .icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.97rem; }

.honest {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  background: linear-gradient(135deg, rgba(110, 91, 255, .08), rgba(255, 107, 107, .05));
}
.honest h3 { font-size: 1.15rem; margin-bottom: 8px; }
.honest p { color: var(--text-secondary); }

.questions { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--border); background: var(--bg-surface); border-radius: 999px; padding: 9px 16px; font-size: 0.95rem; color: var(--text-primary); }

.privacy-callout {
  border-radius: 28px; padding: 48px; text-align: center; position: relative; overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border-accent);
}
.privacy-callout::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(110, 91, 255, .22), transparent 70%); pointer-events: none;
}
.privacy-callout > * { position: relative; }
.privacy-callout p { color: var(--text-secondary); max-width: 600px; margin: 14px auto 0; font-size: 1.08rem; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.pills span { font-size: 0.9rem; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; color: var(--titanium); }

.download { text-align: center; }
.download .cta-row { justify-content: center; margin-top: 26px; }
.download img.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 20px 50px -15px rgba(110, 91, 255, .6); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--text-secondary); font-size: 0.9rem; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--text-primary); }

/* Legal / content pages */
.page { padding: 64px 0 80px; }
.page .container { max-width: 780px; }
.page h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 10px; }
.page .sub { color: var(--text-secondary); margin-bottom: 36px; }
.prose h2 { font-size: 1.35rem; margin: 38px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.08rem; margin: 22px 0 6px; }
.prose p, .prose li { color: #CFCBDD; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 1.3em; margin: 8px 0; }
.prose li { margin: 4px 0; }
.prose address { font-style: normal; color: #CFCBDD; }
.prose .updated { margin-top: 40px; color: var(--text-secondary); font-size: 0.9rem; }

.contact-card {
  border: 1px solid var(--border-accent); border-radius: var(--radius); padding: 30px; background: var(--bg-elevated); margin-bottom: 44px;
}
.contact-card p { color: var(--text-secondary); margin: 8px 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--gradient); color: #fff; font-weight: 600;
}
.btn:hover { text-decoration: none; box-shadow: 0 10px 30px -10px rgba(185, 92, 224, .7); }
details { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-surface); margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-size: 1.3rem; }
details[open] summary::after { content: "−"; }
details .answer { padding: 0 22px 20px; color: #CFCBDD; }
details .answer p + p { margin-top: 8px; }

/* Reveal */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .privacy-callout { padding: 32px 20px; }
  .container { padding: 0 16px; }
}
