/* Islamify.ai Platform — Design-System (Warm Ivory Light & Codex-Dark) */

@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amiri Quran";
  src: url("/static/fonts/amiri-quran.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic Honorific";
  src: url("/static/fonts/noto-naskh-arabic-jallajalaluhu.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+FDFB;
  size-adjust: 115%;
  ascent-override: 88%;
  descent-override: 31%;
}

:root {
  --teal-50: #ecfeff;
  --teal-100: #d4fbff;
  --teal-400: #00b2b7;
  --teal-500: #0e7490;
  --teal-600: #086078;
  --teal-700: #006c72;
  --teal-800: #00343a;
  --teal-900: #001b1f;
  --gold-500: #ae7a20;
  --gold-soft: #f9f2e3;

  --bg: #fbfaf7;
  --bg-soft: #f5f3ee;
  --bg-card: #ffffff;
  --bg-code: #0c171b;
  --text-code: #e7f2f4;
  --border: #ecebe4;
  --border-strong: #d9d6cc;
  --text: #1d1c1a;
  --text-muted: #5c5951;
  --brand: var(--teal-500);
  --brand-hover: var(--teal-600);
  --brand-ink: #00343a;
  --brand-soft: #e6f4f6;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warn: #b54708;
  --warn-soft: #fffaeb;

  --shadow-sm: 0 1px 2px rgba(0, 52, 58, 0.05), 0 1px 1px rgba(17, 17, 16, 0.03);
  --shadow: 0 2px 4px rgba(0, 52, 58, 0.05), 0 10px 28px rgba(17, 17, 16, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --shadow-glow: 0 0 0 1px rgba(14, 116, 144, 0.24), 0 12px 32px -10px rgba(14, 116, 144, 0.2);
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-display: "Nunito", "IBM Plex Sans Arabic", "Noto Naskh Arabic Honorific", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Geist", "IBM Plex Sans Arabic", "Noto Naskh Arabic Honorific", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Sans Arabic", "Noto Naskh Arabic Honorific", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-arabic: "IBM Plex Sans Arabic", "Noto Naskh Arabic Honorific", "Amiri Quran", serif;
  --font-quran: "Amiri Quran", "IBM Plex Sans Arabic", serif;
}

[data-theme="dark"] {
  --bg: #0a1518;
  --bg-soft: #0f1e22;
  --bg-card: #132b31;
  --bg-code: #071013;
  --text-code: #e4f1f3;
  --border: #1f3a41;
  --border-strong: #2a4a52;
  --text: #e7ece9;
  --text-muted: #9aa8a5;
  --brand: #34d4db;
  --brand-hover: #6ae6eb;
  --brand-ink: #d4fbff;
  --brand-soft: #0c2b31;
  --gold-500: #f6d58a;
  --gold-soft: rgba(246, 213, 138, 0.14);
  --danger: #f97066;
  --danger-soft: rgba(249, 112, 102, 0.14);
  --success: #47cd89;
  --success-soft: rgba(71, 205, 137, 0.14);
  --warn: #fdb022;
  --warn-soft: rgba(253, 176, 34, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 0 1px rgba(52, 212, 219, 0.28), 0 10px 30px -6px rgba(52, 212, 219, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.beta-banner {
  background: linear-gradient(90deg, var(--teal-800), var(--teal-700));
  color: #ecfeff;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 1rem;
}

.beta-banner strong { color: #fde68a; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-link:hover { text-decoration: none; }
.brand-link img,
.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-badge {
  font-family: var(--font-sans);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.38rem 0.56rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.nav-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.85rem 1rem 1.1rem;
}
.nav-drawer-links {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}
.nav-drawer-links a {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
}
.nav-drawer-links a:hover, .nav-drawer-links a.active {
  background: var(--bg-soft);
  color: var(--brand);
  text-decoration: none;
}
.nav-drawer-actions {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.58rem 1.05rem;
  font-size: 0.91rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 55%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 52, 58, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #00e5ff 0%, #00cfe8 52%, #00a9c7 100%);
  color: #021018;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

/* Interactive Frosted-Glass Showcase & Live Pill */
.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-card));
  color: var(--brand-ink);
}
[data-theme="dark"] .pill-live { color: var(--brand); }
.pill-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

.install-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.install-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.14s ease, background 0.16s ease;
}
.install-chip:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
  transform: translateY(-1px);
  text-decoration: none;
}
[data-theme="dark"] .install-chip:hover { color: var(--brand); }

.showcase-window {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  background: color-mix(in srgb, var(--bg-card) 86%, transparent);
  backdrop-filter: saturate(1.25) blur(14px);
  -webkit-backdrop-filter: saturate(1.25) blur(14px);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.showcase-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 55%, #fff), transparent);
  pointer-events: none;
}
.showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.showcase-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.showcase-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border-strong);
}
.showcase-body {
  padding: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}
.showcase-body > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 820px) {
  .showcase-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.1rem;
  }
}
.chat-bubble-user {
  background: var(--brand-soft);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.93rem;
  margin-bottom: 0.85rem;
  overflow-wrap: break-word;
}
.chat-bubble-ai {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  font-size: 0.91rem;
  overflow-wrap: break-word;
}
.flashcard-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.flashcard-item {
  background: var(--bg-soft);
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  overflow-wrap: break-word;
}
.flashcard-item.gold {
  border-inline-start-color: var(--gold-500);
}

/* Zahlungsanbieter-Auswahl (Stripe / PayPal) */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
@media (max-width: 560px) {
  .provider-grid { grid-template-columns: 1fr; }
}
.provider-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.provider-card.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand);
}
.provider-card strong { font-size: 0.98rem; }
.provider-card span { font-size: 0.82rem; color: var(--text-muted); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-soft); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  padding: 0.42rem 0.7rem;
  font-size: 0.84rem;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-soft); }

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  padding: 2.75rem 0 2.5rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.1rem;
}
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 0 1.75rem;
}
.hero .lede {
  margin: 0 auto 1.75rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.15rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}
.card-highlight {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow);
}
.card h2 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.card h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }

.section { margin-top: 3rem; }
.section-head { margin-bottom: 1.4rem; }
.section-head h2 { font-size: 1.65rem; margin-bottom: 0.35rem; }
.muted { color: var(--text-muted); }

/* Badges / Pills */
.pill {
  display: inline-block;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.pill-teal { background: var(--brand-soft); color: var(--brand); }
.pill-gold { background: var(--gold-soft); color: var(--gold-500); }
.pill-green { background: var(--success-soft); color: var(--success); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-red { background: var(--danger-soft); color: var(--danger); }

/* Endpoint / Copy Box */
.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  min-width: 0;
  max-width: 100%;
}
.copy-box code {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.copy-box-wrap code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: visible;
  line-height: 1.45;
}
.copy-box .btn { flex-shrink: 0; }

pre.code-block {
  position: relative;
  z-index: 1;
  background: var(--bg-code);
  color: var(--text-code);
  border-radius: var(--radius);
  padding: 1.1rem 5.4rem 1.1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-x: auto;
  margin: 0.75rem 0;
  max-width: 100%;
}
.code-wrap { position: relative; max-width: 100%; }
.code-copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.code-copy-btn:hover { background: rgba(255, 255, 255, 0.28); }

/* Tabs */
.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.tab-btn:hover { background: var(--bg-soft); color: var(--text); }
.tab-btn.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
.tab-panel[hidden] { display: none; }

/* Steps list */
.step-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.85rem; }
.step-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  align-items: start;
}
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Pricing & Tables */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data-table th, table.data-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data-table td code {
  word-break: break-word;
}
table.data-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Dashboard Metrics */
.stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.35rem 0;
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-top: 0.6rem;
}
.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}

/* Forms */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-start: 0.85rem;
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5951' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 1rem center;
  cursor: pointer;
}
[data-theme="dark"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1b2b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
[dir="rtl"] .field select {
  background-position: left 1rem center;
}
select::picker-icon {
  display: none;
}
.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 0.22rem;
  flex-shrink: 0;
  width: 1.08rem;
  height: 1.08rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.alert {
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1rem 0;
  font-size: 0.92rem;
}
.alert-info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.alert-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert-success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* Arabic text */
.arabic-quote {
  font-family: var(--font-quran);
  direction: rtl;
  text-align: right;
  font-size: 1.38rem;
  line-height: 2.05;
  padding: 0.9rem 1.1rem;
  background: var(--bg-soft);
  border-right: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  margin: 0.6rem 0;
}

/* OAuth Consent page */
.consent-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.consent-shell { width: 100%; max-width: 520px; }
.consent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.brand-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.consent-info-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.4rem;
  font-size: 0.92rem;
}
.consent-info-box ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.consent-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 2rem 1.25rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-motion [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .orbit-pulse,
  .orbit-halo,
  .btn-beam::after {
    animation: none !important;
  }
}

/* ==========================================================================
   v0.3.0 MCP-First Motion Design, Orbital Hub, Compare Switch & Live Cinema
   ========================================================================== */

@property --islm-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes islm-beam-spin {
  to { --islm-beam-angle: 360deg; }
}

@keyframes islm-flow-dash {
  from { stroke-dashoffset: 268; }
  to { stroke-dashoffset: 0; }
}

@keyframes islm-core-breathe {
  0%, 100% { transform: scale(0.95); opacity: 0.42; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

@keyframes islm-status-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

@keyframes islm-beat-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes islm-panel-in {
  from { opacity: 0; transform: translateY(8px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes islm-drop-flow {
  0% { transform: translateY(-100%); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: translateY(140%); opacity: 0; }
}

/* Progressive scroll-reveal */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Giant Everyday Hero */
.hero-mcp {
  position: relative;
  max-width: 980px;
  padding: 1.55rem 0 1.15rem;
}
.hero-mcp::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, 96vw);
  height: 360px;
  background: radial-gradient(
    ellipse at 50% 35%,
    color-mix(in srgb, var(--brand) 16%, transparent) 0%,
    color-mix(in srgb, var(--gold-500) 8%, transparent) 44%,
    transparent 74%
  );
  pointer-events: none;
  z-index: -1;
}
.hero-mcp h1.hero-giant {
  font-size: clamp(2.55rem, 6vw, 4.65rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.034em;
  margin: 1.05rem auto 1.15rem;
  max-width: 15.5ch;
  text-wrap: balance;
}
.text-accent-gradient {
  background: linear-gradient(115deg, var(--teal-600) 0%, var(--teal-400) 56%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .text-accent-gradient {
  background: linear-gradient(115deg, #34d4db 0%, #7ff2f6 52%, #f6d58a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 630px;
}
.btn-lg {
  padding: 0.82rem 1.48rem;
  font-size: 0.99rem;
  border-radius: 12px;
}
.btn-beam {
  position: relative;
  isolation: isolate;
}
.btn-beam::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--islm-beam-angle),
    transparent 0deg,
    color-mix(in srgb, var(--brand) 85%, #fff) 45deg,
    color-mix(in srgb, var(--gold-500) 85%, #fff) 95deg,
    transparent 150deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
  animation: islm-beam-spin 4.8s linear infinite;
}
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin-top: 1.25rem;
}
.install-chip-soft {
  background: color-mix(in srgb, var(--brand-soft) 65%, var(--bg-card));
  border-color: color-mix(in srgb, var(--brand) 26%, var(--border));
  color: var(--brand-ink);
}
[data-theme="dark"] .install-chip-soft {
  color: var(--brand);
}
.hero-pro-jump {
  flex-basis: 100%;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.16s ease;
}
.hero-pro-jump:hover {
  color: var(--brand);
}

/* 3 Value Trio Cards */
.value-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  margin-top: 1.85rem;
  text-align: left;
}
.value-card {
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.value-card:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
  box-shadow: var(--shadow);
}
.value-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.45rem;
}
.value-card h2 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}
.value-card p {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.55;
}

.section-head-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.65rem;
}
.section-head-center h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.35rem);
  line-height: 1.16;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

/* Animated Orbital Connection Stage */
.mcp-flow-section {
  margin-top: 1.85rem;
}
.mcp-flow-stage {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-card) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg-soft) 94%, transparent) 100%
  );
  box-shadow: var(--shadow-glow);
  padding: 1.35rem 1.5rem 1.3rem;
  overflow: hidden;
}
.orbit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.orbit-hint {
  font-size: 0.83rem;
}
.orbit-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(225px, 1fr) 84px auto 84px minmax(225px, 1fr);
  align-items: center;
  gap: 0;
  min-height: 256px;
  margin: 1.4rem 0 1.35rem;
}
.orbit-bridge {
  width: 84px;
  height: 246px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.orbit-bridge-svg {
  display: block;
  width: 100%;
  height: 246px;
  overflow: hidden;
}
.orbit-rail {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.65;
  opacity: 0.72;
}
.orbit-pulse {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 22 140;
  opacity: 0.28;
  animation: islm-flow-dash 3.1s linear infinite;
  transition: opacity 0.28s ease, stroke-width 0.28s ease;
}
.orbit-pulse-in { stroke: var(--brand); }
.orbit-pulse-out {
  stroke: var(--gold-500);
  animation-delay: -1.1s;
}
.orbit-pulse.is-active {
  opacity: 1;
  stroke-width: 3.3;
  animation-duration: 1.65s;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--brand) 68%, transparent));
}
.orbit-pulse-out.is-active {
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gold-500) 68%, transparent));
}

.orbit-col {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(3, 72px);
  gap: 15px;
}
.orbit-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  height: 72px;
  text-align: left;
  padding: 0.85rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.orbit-port {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--border-strong);
  border: 2px solid var(--bg-card);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.orbit-port-right { right: -5px; }
.orbit-port-left { left: -5px; }
.orbit-node.active .orbit-port {
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.orbit-source.active .orbit-port {
  background: var(--gold-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-500) 28%, transparent);
}
.orbit-node:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}
.orbit-node.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 72%, var(--bg-card));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 60%, transparent), 0 8px 20px -10px color-mix(in srgb, var(--brand) 48%, transparent);
}
.orbit-source.active {
  border-color: var(--gold-500);
  background: color-mix(in srgb, var(--gold-soft) 75%, var(--bg-card));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-500) 55%, transparent), 0 8px 20px -10px color-mix(in srgb, var(--gold-500) 45%, transparent);
}
.orbit-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1rem;
  flex-shrink: 0;
}
.orbit-src-icon {
  background: var(--gold-soft);
  color: var(--gold-500);
}
.orbit-node-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.orbit-node-body strong {
  font-size: 0.92rem;
  line-height: 1.25;
}
.orbit-node-body span {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.orbit-center {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.orbit-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.15rem 1.3rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--brand) 44%, var(--border));
  background: var(--bg-card);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--brand) 30%, transparent), var(--shadow);
  min-width: 158px;
}
.orbit-halo {
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  border: 1.5px solid color-mix(in srgb, var(--brand) 28%, transparent);
  pointer-events: none;
  animation: islm-core-breathe 3.8s ease-in-out infinite;
}
.orbit-halo-2 {
  inset: -24px;
  border-radius: 38px;
  border-color: color-mix(in srgb, var(--gold-500) 22%, transparent);
  animation-delay: -1.9s;
}
.orbit-core-badge {
  display: inline-flex;
  padding: 4px;
  border-radius: 16px;
  background: var(--bg-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}
.orbit-core-badge img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.orbit-core-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
}
.orbit-core-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand);
  margin-top: 0.15rem;
}

.orbit-mobile-arrow {
  display: none;
  position: relative;
  width: 2px;
  height: 30px;
  margin: 0 auto;
  background: var(--border-strong);
  overflow: hidden;
  border-radius: 999px;
}
.orbit-mobile-arrow span {
  display: block;
  width: 100%;
  height: 14px;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
  animation: islm-drop-flow 1.8s ease-in-out infinite;
}

.orbit-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
}
.orbit-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
  animation: islm-status-pulse 2.2s ease-in-out infinite;
}

/* Side-by-Side Comparison (#warum) */
.compare-shell {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.55rem;
  box-shadow: var(--shadow);
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.compare-grid .compare-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.compare-prompt {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.15rem;
}
.compare-prompt-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.compare-prompt-text {
  font-weight: 600;
  font-size: 0.98rem;
}
.compare-switch-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.compare-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  width: min(440px, 100%);
}
.compare-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--border));
  box-shadow: var(--shadow-sm);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
  pointer-events: none;
}
.compare-switch[data-compare-state="with"] .compare-thumb {
  transform: translateX(100%);
}
.compare-switch[data-compare-state="without"] .compare-thumb {
  transform: translateX(0%);
  border-color: color-mix(in srgb, var(--danger) 38%, var(--border));
}
.compare-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.89rem;
  font-weight: 600;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.compare-btn.active {
  color: var(--text);
}
.compare-panel {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border);
  animation: islm-panel-in 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.compare-panel-without {
  background: color-mix(in srgb, var(--danger-soft) 52%, var(--bg));
  border-color: color-mix(in srgb, var(--danger) 28%, var(--border));
}
.compare-panel-with {
  background: color-mix(in srgb, var(--success-soft) 36%, var(--bg));
  border-color: color-mix(in srgb, var(--success) 32%, var(--border));
}
.compare-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.compare-guess-text {
  font-size: 0.96rem;
  margin: 0 0 0.95rem;
  color: var(--text);
}
.compare-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.compare-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.flag-bad {
  background: var(--danger-soft);
  color: var(--danger);
}
.flag-good {
  background: var(--success-soft);
  color: var(--success);
}

/* 5-Scenario Live Everyday Chat Cinema (#beispiele) */
.cinema-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.cinema-tab {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.89rem;
  font-weight: 600;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
}
.cinema-tab:hover {
  color: var(--text);
  border-color: var(--brand);
  transform: translateY(-1px);
}
.cinema-tab.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 38%, transparent);
}
[data-theme="dark"] .cinema-tab.active {
  color: var(--brand);
}

.cinema-stage {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.cinema-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.cinema-topbar-left,
.cinema-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cinema-app-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.cinema-pause-btn {
  padding: 0.26rem 0.62rem;
  font-size: 0.76rem;
}
.cinema-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: color-mix(in srgb, var(--border-strong) 55%, transparent);
  overflow: hidden;
}
.cinema-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--gold-500));
  transform-origin: left center;
}

.cinema-body {
  padding: 1.5rem 1.55rem 1.65rem;
  display: grid;
  gap: 1rem;
}
.cinema-beat {
  animation: islm-beat-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cinema-beat-2 { animation-delay: 0.14s; }
.cinema-beat-3 { animation-delay: 0.28s; }

.cinema-user-row,
.cinema-ai-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}
.cinema-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cinema-avatar-user {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.cinema-avatar-ai {
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding: 3px;
}
.cinema-avatar-ai img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.cinema-bubble-user {
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border));
  border-radius: 14px;
  padding: 0.9rem 1.05rem;
}
.cinema-prompt-p {
  margin: 0 0 0.6rem;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
}
.cinema-copy-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--border));
  background: var(--bg-card);
  color: var(--brand-ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.14s ease;
}
[data-theme="dark"] .cinema-copy-prompt {
  color: var(--brand);
}
.cinema-copy-prompt:hover {
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.cinema-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-left: 48px;
}
.trace-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.trace-chip.done {
  background: color-mix(in srgb, var(--success-soft) 72%, var(--bg-card));
  border-color: color-mix(in srgb, var(--success) 32%, var(--border));
  color: var(--success);
}

.cinema-bubble-ai {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  min-width: 0;
}
.cinema-note-card {
  background: var(--bg-soft);
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 0.91rem;
  margin-top: 0.65rem;
}
.cinema-note-card.gold {
  border-inline-start-color: var(--gold-500);
}
.cinema-note-card.warn {
  border-inline-start-color: var(--warn);
  background: color-mix(in srgb, var(--warn-soft) 65%, var(--bg-soft));
}
.cinema-habit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.75rem;
}
.cinema-habit-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-size: 0.87rem;
}
.cinema-habit-card.gold {
  border-top-color: var(--gold-500);
}
.cinema-habit-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.05rem;
  color: var(--text-muted);
}
.cinema-habit-card li {
  margin-bottom: 0.2rem;
}
.cinema-hifz-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.65rem 0;
}
.cinema-hifz-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.cinema-hifz-box.gold {
  border-color: color-mix(in srgb, var(--gold-500) 48%, var(--border));
  background: color-mix(in srgb, var(--gold-soft) 50%, var(--bg-soft));
}
.cinema-hifz-ar {
  font-family: var(--font-quran);
  direction: rtl;
  text-align: right;
  font-size: 1.4rem;
  line-height: 1.8;
  margin-top: 0.35rem;
}
.cinema-sources-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* 3-Step Section (#schritte) */
.step-card {
  position: relative;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.step-card:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
  box-shadow: var(--shadow);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
[data-theme="dark"] .step-badge {
  color: #021018;
}
.steps-cta-box {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.steps-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Part 2: Pro / API Divider & Surface Band (#pro-api) */
.pro-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4.4rem 0 2rem;
  scroll-margin-top: 84px;
}
.pro-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent);
}
.pro-divider-pill {
  position: relative;
  z-index: 1;
  padding: 0.36rem 1.05rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.pro-api-band {
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.15rem 1.75rem;
}
.pro-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Collapsible Developer Details on /mcp-setup */
.dev-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}
.dev-details summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.dev-details summary::-webkit-details-marker { display: none; }
.dev-details summary::after {
  content: "▾";
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}
.dev-details[open] summary {
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.dev-details[open] summary::after {
  transform: rotate(180deg);
}
.dev-details-body {
  padding: 0.95rem 1rem 1rem;
}

/* ==========================================================================
   v0.5.0 API Teams, Workspace Switcher & Granular RBAC Permissions
   ========================================================================== */
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
}

.invite-banner {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.invite-banner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--border));
  background: color-mix(in srgb, var(--brand-soft) 62%, var(--bg-card));
}
.invite-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.workspace-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.05rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.workspace-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.workspace-bar-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.workspace-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.workspace-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
}
.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.ws-pill:hover {
  border-color: var(--brand);
  color: var(--text);
}
.ws-pill.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 38%, transparent);
}
[data-theme="dark"] .ws-pill.active {
  color: var(--brand);
}
.ws-pill-role {
  font-size: 0.73rem;
  font-weight: 500;
  opacity: 0.85;
}

.create-team-panel {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.create-team-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.create-team-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.team-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.team-head-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.team-subpanel {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.perm-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.perm-toggle:hover {
  border-color: var(--brand);
}
.perm-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand) 48%, var(--border));
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--bg-soft));
}
.perm-toggle input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.perm-toggle span {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.perm-toggle strong {
  font-size: 0.88rem;
  line-height: 1.25;
}
.perm-toggle small {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.perm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}
.perm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.perm-chip-money {
  background: color-mix(in srgb, var(--gold-soft) 72%, var(--bg-soft));
  border-color: color-mix(in srgb, var(--gold-500) 42%, var(--border));
}
.perm-chip-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.member-perm-editor {
  background: var(--bg-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.55rem;
}

@media (max-width: 1040px) {
  .nav-links,
  .header-controls {
    display: none;
  }
  .mobile-header-actions {
    display: flex;
  }
  .header-inner {
    padding: 0.55rem 0.95rem;
    min-height: 56px;
  }
}

@media (max-width: 920px) {
  .orbit-bridge,
  .orbit-port {
    display: none;
  }
  .orbit-canvas {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0.85rem;
  }
  .orbit-col {
    grid-template-rows: auto;
    gap: 0.65rem;
  }
  .orbit-node {
    height: auto;
    min-height: 64px;
  }
  .orbit-mobile-arrow {
    display: block;
  }
}

@media (max-width: 860px) {
  .value-trio,
  .compare-grid,
  .perm-grid {
    grid-template-columns: 1fr;
  }
  .orbit-col-left {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .orbit-col-left .orbit-node {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.65rem 0.45rem;
    gap: 0.4rem;
  }
  .orbit-col-left .orbit-node-body span {
    display: none;
  }
  .cinema-habit-grid,
  .cinema-hifz-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-mcp { padding: 1.9rem 0 1rem; }
  .hero-mcp h1.hero-giant {
    font-size: clamp(2.15rem, 9.2vw, 3rem);
    max-width: 100%;
  }
  .mcp-flow-stage,
  .compare-shell,
  .pro-api-band {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-lg);
  }
  .cinema-body {
    padding: 1.05rem 0.95rem 1.15rem;
  }
  .cinema-user-row,
  .cinema-ai-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .cinema-avatar {
    width: 30px;
    height: 30px;
  }
  .cinema-trace {
    padding-left: 0;
  }
  .cinema-tab {
    font-size: 0.82rem;
    padding: 0.46rem 0.78rem;
  }
  .compare-btn {
    font-size: 0.81rem;
    padding: 0.56rem 0.5rem;
  }
  .pro-divider {
    margin: 3rem 0 1.4rem;
  }
}

@media (max-width: 680px) {
  .container, .container-narrow { padding: 1.4rem 0.95rem 3rem; }
  .card { padding: 1.15rem; }
  .hero { padding: 1.85rem 0 1.6rem; }
  .section { margin-top: 2.1rem; }

  /* Stacked pricing cards on mobile: zero horizontal overflow */
  table.pricing-table,
  table.pricing-table tbody,
  table.pricing-table tr,
  table.pricing-table td {
    display: block;
    width: 100%;
  }
  table.pricing-table thead {
    display: none;
  }
  table.pricing-table tr {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
  }
  table.pricing-table tr:last-child {
    border-bottom: 0;
    padding-bottom: 0.25rem;
  }
  table.pricing-table td {
    padding: 0.2rem 0;
    border: 0;
  }
  table.pricing-table td:first-child {
    font-size: 1rem;
  }
  table.pricing-table td:nth-child(2) {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
  }
  table.pricing-table td:last-child {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .copy-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
  }
  .copy-box .btn {
    width: 100%;
  }
  .beta-banner {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
}
