:root {
  --bg: #f5f5f7;
  --bg-2: #ececf0;
  --text: #0b0b0f;
  --muted: #4d4f5c;
  --accent: #0a84ff;
  --accent-2: #5ac8fa;
  --shell: rgba(255, 255, 255, 0.8);
  --shell-border: rgba(255, 255, 255, 0.9);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px rgba(10, 20, 40, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --max-width: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "-apple-system", "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 20% -10%, rgba(10, 132, 255, 0.2), transparent),
              radial-gradient(900px 500px at 90% 0%, rgba(90, 200, 250, 0.15), transparent),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100%;
}

.page-shell {
  max-width: min(1200px, 96vw);
  margin: 24px auto 48px;
  background: var(--shell);
  border-radius: 28px;
  border: 1px solid var(--shell-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.content-image {
  margin-top: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--accent);
  color: white;
}

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

.app-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: var(--space-3);
}

.footer .app-store-badges {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.app-store-badge img {
  height: 44px;
  width: auto;
}

html[lang="de"] .badge-en,
html[lang="en"] .badge-de {
  display: none;
}

html[lang="de"] .video-en,
html[lang="en"] .video-de {
  display: none;
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.hero {
  padding: var(--space-6) 0 var(--space-5);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: start;
}

.hero-copy {
  align-self: start;
}

.hero-surface {
  margin: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(800px 400px at 20% -10%, rgba(10, 132, 255, 0.18), transparent),
    radial-gradient(700px 400px at 90% 0%, rgba(90, 200, 250, 0.12), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.hero-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-surface > * {
  position: relative;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.03em;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  margin-bottom: var(--space-2);
}

.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.4;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.hero-code {
  margin-top: var(--space-4);
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #0b0b0f;
  max-width: 520px;
  height: calc(10 * 1.5em);
  overflow: hidden;
  position: relative;
  padding-right: var(--space-2);
  background: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-code-line {
  white-space: nowrap;
  opacity: 0.92;
}

.hero-code-line.is-new {
  animation: codeLineIn 0.6s ease;
}

@keyframes codeLineIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 0.92;
    transform: translateY(0);
  }
}

.chat-demo {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08), rgba(255, 255, 255, 0.9));
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-title {
  font-weight: 700;
}

.chat-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-window {
  background: #f2f3f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.chat-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(10, 20, 40, 0.08);
  font-size: 0.95rem;
  color: #0b0b0f;
  line-height: 1.45;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  animation: chatBubbleIn 0.35s ease forwards;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-bubble.user {
  align-self: flex-end;
  background: #0b0b0f;
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-bubble.is-typing {
  position: relative;
}

.chat-cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  background: currentColor;
  margin-left: 4px;
  transform: translateY(2px);
  animation: cursorBlink 1s steps(2, start) infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes chatBubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  padding: var(--space-4);
}

.hero-shot {
  margin-top: var(--space-3);
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.section {
  padding: var(--space-5) 0;
}

.walkthrough-intro {
  max-width: 760px;
  margin-bottom: var(--space-3);
}

.walkthrough-media {
  display: grid;
  gap: var(--space-3);
}

.walkthrough-video video {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: #000;
}

.walkthrough-list {
  display: grid;
  gap: var(--space-2);
}

.walkthrough-step {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.walkthrough-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--text);
  background: white;
  flex: 0 0 auto;
}

.walkthrough-step p {
  margin: 0;
  color: var(--text);
}

.walkthrough-note {
  margin-top: var(--space-3);
  color: var(--muted);
  font-weight: 600;
}

.section h2 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  margin: 0 0 var(--space-2);
}

.section p.lead {
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

#codeExamples {
  display: grid;
  gap: var(--space-3);
}

#faqList {
  display: grid;
  gap: var(--space-3);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass.pad {
  padding: var(--space-4);
}

.steps {
  display: grid;
  gap: var(--space-3);
}

.step {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  font-weight: 700;
}

.code-block {
  background: rgba(12, 12, 18, 0.92);
  color: #e8e8ff;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.footer {
  padding: var(--space-5) 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--glass-border);
}

.footer-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100vh;
  background: var(--glass-strong);
  border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 30;
  padding: var(--space-5) var(--space-4);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sidebar nav {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.sidebar a {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  border-color: var(--glass-border);
  background: var(--glass);
}

.lang-toggle {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
}

.burger {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 999px;
}

.burger span + span {
  margin-top: 4px;
}

.page-hero {
  padding: var(--space-5) 0 var(--space-4);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th, .table td {
  padding: 10px;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}

.privacy-list {
  margin: 0 0 var(--space-2);
  padding-left: 18px;
  color: var(--text);
}

@media (max-width: 980px) {
  .page-shell {
    margin: 0;
    border-radius: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar-inner {
    padding: var(--space-2) 0;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-surface {
    margin: var(--space-3);
    padding: var(--space-4);
  }
}
