/* ==========================================================================
   Syncy website — one stylesheet for every page.
   Colors come from the app's own palette (SyncyColors / seed palette).
   Logical properties throughout, so Arabic & Urdu (RTL) flip with no extra CSS.
   ========================================================================== */

/* ---- Fonts: Ubuntu everywhere; Anek Bangla only fetched when Bengali glyphs appear ---- */
@font-face { font-family: "Ubuntu"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Ubuntu-Light.woff") format("woff"); }
@font-face { font-family: "Ubuntu"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Ubuntu-Regular.woff") format("woff"); }
@font-face { font-family: "Ubuntu"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Ubuntu-Medium.woff") format("woff"); }
@font-face { font-family: "Ubuntu"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Ubuntu-Bold.woff") format("woff"); }
@font-face {
  font-family: "Anek Bangla"; font-weight: 100 800; font-style: normal; font-display: swap;
  src: url("../fonts/AnekBangla-Variable.woff") format("woff");
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

/* ---- Tokens ---- */
:root {
  --font: "Ubuntu", "Anek Bangla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --primary: #3D7CF4;
  --primary-ink: #ffffff;
  --accent: #7C5CFC;
  --teal: #1FA2A6;
  --green: #2BB673;
  --rose: #E0447D;
  --amber: #F2994A;
  --navy: #0B1B33;

  --bg: #F6F8FD;
  --bg-2: #EDF1FA;
  --surface: #FFFFFF;
  --surface-2: #F3F6FC;
  --text: #0F1A2E;
  --muted: #55627A;
  --line: #E1E7F2;
  --shadow: 0 1px 2px rgba(15, 26, 46, .05), 0 12px 32px -12px rgba(36, 61, 120, .18);
  --shadow-lg: 0 2px 4px rgba(15, 26, 46, .06), 0 28px 60px -20px rgba(36, 61, 120, .32);
  --glass: rgba(246, 248, 253, .78);
  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --primary: #6D9BFF;
  --primary-ink: #0A1220;
  --accent: #9B82FF;
  --teal: #3FCBCF;
  --green: #3DDB8F;
  --rose: #FF7BA8;
  --amber: #FFB267;

  --bg: #091120;
  --bg-2: #0D1830;
  --surface: #111D33;
  --surface-2: #162540;
  --text: #EAF0FB;
  --muted: #9AA9C2;
  --line: #22324E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 28px 60px -20px rgba(0, 0, 0, .75);
  --glass: rgba(9, 17, 32, .78);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #6D9BFF; --primary-ink: #0A1220; --accent: #9B82FF; --teal: #3FCBCF;
    --green: #3DDB8F; --rose: #FF7BA8; --amber: #FFB267;
    --bg: #091120; --bg-2: #0D1830; --surface: #111D33; --surface-2: #162540;
    --text: #EAF0FB; --muted: #9AA9C2; --line: #22324E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 28px 60px -20px rgba(0, 0, 0, .75);
    --glass: rgba(9, 17, 32, .78);
    color-scheme: dark;
  }
}

/* ---- Per-language font stacks (Ubuntu has no Arabic/Devanagari/CJK; Bengali uses Anek Bangla) ---- */
:lang(bn) { --font: "Anek Bangla", "Ubuntu", system-ui, sans-serif; }
:lang(ar) { --font: "Ubuntu", "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }
:lang(ur) { --font: "Ubuntu", "Noto Nastaliq Urdu", "Segoe UI", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif; }
:lang(hi) { --font: "Ubuntu", "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif; }
:lang(zh) { --font: "Ubuntu", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif; }
:lang(ja) { --font: "Ubuntu", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", Meiryo, system-ui, sans-serif; }
:lang(ur) body { line-height: 1.95; }
:lang(bn) body, :lang(hi) body { line-height: 1.75; }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  color: var(--text); background: var(--bg); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3, :lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(ur) h1, :lang(ur) h2, :lang(ur) h3 { line-height: 1.4; letter-spacing: 0; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: fixed; inset-block-start: -60px; inset-inline-start: 12px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { inset-block-start: 12px; text-decoration: none; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }

/* ---- Header ---- */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); background: var(--glass); border-block-end: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-block-end-color: var(--line); box-shadow: 0 8px 30px -18px rgba(20, 40, 90, .35); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 18px -6px rgba(61, 124, 244, .55); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: .15rem; margin-inline-start: auto; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .98rem; padding: .5rem .85rem; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; font: inherit; }
.icon-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.lang { position: relative; }
.lang-btn { width: auto; padding-inline: .8rem; gap: .45rem; display: inline-flex; align-items: center; font-weight: 500; font-size: .92rem; }
.lang-menu { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); z-index: 60; min-width: 210px; max-height: min(70vh, 460px); overflow: auto; padding: .4rem; margin: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); transform-origin: top; animation: pop .18s var(--ease); }
.lang-menu li button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: none; border: 0; color: var(--text); font: inherit; font-size: .98rem; padding: .6rem .8rem; border-radius: 9px; cursor: pointer; text-align: start; }
.lang-menu li button:hover { background: var(--surface-2); }
.lang-menu li button[aria-checked="true"] { color: var(--primary); font-weight: 700; }
.menu-btn { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 940px) {
  .menu-btn { display: inline-grid; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: .25rem; margin: 0; padding: 1rem 1.25rem 1.5rem; background: var(--surface); border-block-end: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .25s, visibility .25s; max-height: calc(100dvh - 68px); overflow: auto; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav-actions { margin-inline-start: auto; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .72rem 1.35rem; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 500; font-size: 1rem; cursor: pointer; color: var(--text); background: var(--surface); border-color: var(--line); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--primary); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 28px -10px rgba(91, 100, 245, .7); }
:root[data-theme="dark"] .btn.primary { color: #0A1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0A1220; } }
.btn.primary:hover { box-shadow: 0 16px 34px -10px rgba(91, 100, 245, .85); }
.btn.lg { min-height: 56px; padding-inline: 1.7rem; font-size: 1.06rem; border-radius: 16px; }
.btn[aria-disabled="true"] { opacity: .65; cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Sections ---- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); margin-block-end: 1.1rem; }
.eyebrow svg { width: 16px; height: 16px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; animation: drift 16s ease-in-out infinite alternate; }
.hero::before { width: 520px; height: 520px; inset-block-start: -180px; inset-inline-start: -120px; background: color-mix(in srgb, var(--primary) 55%, transparent); }
.hero::after { width: 460px; height: 460px; inset-block-start: 60px; inset-inline-end: -140px; background: color-mix(in srgb, var(--accent) 50%, transparent); animation-delay: -6s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.1); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero h1 { margin-block-end: .45em; }
.hero .lead { font-size: clamp(1.1rem, 1.9vw, 1.28rem); color: var(--muted); max-width: 580px; margin-block-end: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-start: 1.8rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; font-size: .88rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.chip svg { width: 15px; height: 15px; color: var(--green); }
.hero-visual { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-inline: auto; } .hero .btn-row, .hero-badges { justify-content: center; } .hero-visual { width: min(86%, 420px); order: -1; } }

/* orbit animation (index hero) */
.orbit-ring { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.flow { fill: none; stroke: url(#flowGrad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 22; animation: flow 1.6s linear infinite; }
.flow.r { animation-direction: reverse; }
[dir="rtl"] .flow { animation-direction: reverse; }
[dir="rtl"] .flow.r { animation-direction: normal; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.node-bg { fill: var(--surface); stroke: var(--line); stroke-width: 2; filter: drop-shadow(0 14px 22px rgba(36, 61, 120, .25)); }
.node-ico { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.node { animation: bob 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.node:nth-of-type(2) { animation-delay: -1.6s; }
.node:nth-of-type(3) { animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.pulse { fill: none; stroke: var(--primary); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-out infinite; }
.pulse.b { animation-delay: 1.6s; stroke: var(--accent); }
@keyframes pulse { 0% { transform: scale(.55); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.core-spin { transform-origin: 260px 260px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Cards & grids ---- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { position: relative; padding: 1.7rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.card h3 { margin-block-end: .4em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card ul, .list { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.card li, .list li { position: relative; padding-inline-start: 1.7rem; color: var(--muted); font-size: .98rem; }
.card li::before, .list li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .45em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: color-mix(in srgb, var(--green) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BB673' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 72% no-repeat; }
.badge { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-block-end: 1.1rem; color: #fff; background: var(--grad); box-shadow: 0 12px 24px -10px rgba(91, 100, 245, .7); transition: transform .4s var(--ease); }
.card:hover .badge { transform: rotate(-6deg) scale(1.08); }
.badge svg { width: 27px; height: 27px; }
.badge.c2 { background: linear-gradient(135deg, var(--teal), var(--primary)); }
.badge.c3 { background: linear-gradient(135deg, var(--green), var(--teal)); }
.badge.c4 { background: linear-gradient(135deg, var(--accent), var(--rose)); }
.badge.c5 { background: linear-gradient(135deg, var(--amber), var(--rose)); }
.badge.c6 { background: linear-gradient(135deg, var(--primary), var(--teal)); }
:root[data-theme="dark"] .badge { color: #0A1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #0A1220; } }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-block-start: -2.5rem; position: relative; z-index: 2; }
.stat { text-align: center; padding: 1.3rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.step { position: relative; padding: 1.8rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; counter-increment: step; }
.step::before { content: counter(step); position: absolute; inset-block-start: -22px; inset-inline-start: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 1.15rem; box-shadow: 0 10px 22px -8px rgba(91, 100, 245, .75); }
[dir="rtl"] .step::before { transform: translateX(50%); }
:root[data-theme="dark"] .step::before { color: #0A1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step::before { color: #0A1220; } }
.step .ico { width: 66px; height: 66px; margin: .6rem auto 1rem; border-radius: 20px; display: grid; place-items: center; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.step .ico svg { width: 32px; height: 32px; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---- Split (text + visual) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { margin-block-end: .5em; }
.split > div > p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* ---- Security band ---- */
.band { border-radius: calc(var(--radius) + 8px); padding: clamp(1.8rem, 5vw, 3.5rem); color: #EAF0FB; background: radial-gradient(900px 400px at 85% -10%, rgba(124, 92, 252, .45), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(61, 124, 244, .5), transparent 60%), var(--navy); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band p { color: #B9C6DE; }
.band .list li { color: #C9D5EA; }
.band .eyebrow { color: #A9C2FF; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.band .btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.band .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }

/* ---- Protocol diagram ---- */
.proto { display: grid; gap: .8rem; }
.proto-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); opacity: .45; transform: translateX(0); animation: protoLit 9s linear infinite; animation-delay: calc(var(--i) * 1.8s); }
@keyframes protoLit { 0%, 4% { opacity: .45; } 8%, 24% { opacity: 1; border-color: rgba(125, 190, 255, .8); background: rgba(109, 155, 255, .16); } 30%, 100% { opacity: .45; } }
.proto-row .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--grad); color: #fff; font-size: .95rem; }
.proto-row b { display: block; color: #fff; font-weight: 500; }
.proto-row small { color: #B9C6DE; font-size: .9rem; }
.light .proto-row { background: var(--surface); border-color: var(--line); }

/* ---- Media mock (CSS-drawn UI) ---- */
.mock { border-radius: 22px; background: #0E1626; border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg); overflow: hidden; color: #EAF0FB; direction: ltr; }
.mock-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: #0A111F; border-block-end: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; color: #8CA0C0; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34425E; }
.mock-bar i:nth-child(1) { background: #FF6B6E; } .mock-bar i:nth-child(2) { background: #FFC04D; } .mock-bar i:nth-child(3) { background: #3DDB8F; }
.mock-bar span { margin-inline-start: .6rem; font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(255, 255, 255, .06); padding: .15rem .6rem; border-radius: 6px; }
.mock-hero { position: relative; height: 150px; padding: 1.1rem 1.3rem; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, transparent 20%, #0E1626 100%), linear-gradient(120deg, #3D7CF4, #7C5CFC 55%, #E0447D); }
.mock-hero b { font-size: 1.35rem; } .mock-hero small { color: #D9E3FA; }
.mock-hero .play { position: absolute; inset-inline-end: 1.2rem; inset-block-end: 1.1rem; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; animation: ring 2.4s ease-out infinite; }
.mock-hero .play svg { width: 18px; height: 18px; color: #0E1626; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); } }
.mock-chips { display: flex; gap: .45rem; padding: .9rem 1.1rem 0; overflow: hidden; }
.mock-chips span { font-size: .72rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .08); white-space: nowrap; }
.mock-chips span.on { background: #6D9BFF; color: #0A1220; }
.mock-row { display: flex; gap: .7rem; padding: .9rem 1.1rem 1.2rem; overflow: hidden; }
.mock-card { flex: none; width: 76px; aspect-ratio: 2/3; border-radius: 10px; animation: card 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes card { 50% { transform: translateY(-6px); } }
.mock-card:nth-child(1) { background: linear-gradient(160deg, #3D7CF4, #1B2B52); } .mock-card:nth-child(2) { background: linear-gradient(160deg, #E0447D, #3A1633); }
.mock-card:nth-child(3) { background: linear-gradient(160deg, #1FA2A6, #0F3036); } .mock-card:nth-child(4) { background: linear-gradient(160deg, #F2994A, #432A12); }
.mock-card:nth-child(5) { background: linear-gradient(160deg, #7C5CFC, #251A52); } .mock-card:nth-child(6) { background: linear-gradient(160deg, #2BB673, #12392A); }

/* ---- Platform cards ---- */
.plat { text-align: center; }
.plat .badge { margin-inline: auto; }
.plat .status { display: inline-block; margin-block-start: 1rem; padding: .25rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.plat .btn { margin-block-start: 1rem; width: 100%; }
.platform-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.platform-strip .chip { font-size: .98rem; padding: .6rem 1.1rem; color: var(--text); font-weight: 500; }
.platform-strip .chip svg { width: 19px; height: 19px; color: var(--primary); }

/* ---- Inner-page hero ---- */
.page-hero { position: relative; overflow: clip; text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.2rem, 5vw, 4rem); }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(600px 300px at 20% 30%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%), radial-gradient(600px 300px at 80% 20%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); }
.page-hero p { max-width: 680px; margin-inline: auto; color: var(--muted); font-size: 1.18rem; }

/* ---- Callout ---- */
.callout { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 38%, var(--line)); }
.callout svg { flex: none; width: 24px; height: 24px; color: var(--amber); margin-block-start: .15rem; }
.callout p { margin: 0; color: var(--text); font-size: 1rem; }
.callout.info { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.callout.info svg { color: var(--primary); }

/* ---- FAQ ---- */
.faq { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 500; font-size: 1.08rem; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; background: currentColor; color: var(--primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---- CTA ---- */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }

/* ---- Footer ---- */
.site-footer { border-block-start: 1px solid var(--line); background: var(--bg-2); padding-block: 3.2rem 2rem; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 2rem; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-block-end: .9rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.footer-grid a { color: var(--text); }
.footer-grid p { color: var(--muted); max-width: 340px; margin-block: .8rem 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-block-start: 2.4rem; padding-block-start: 1.4rem; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- Language switch fade ---- */
.i18n-swap { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: .0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- Direction-aware arrows ---- */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Inline icon default size ---- */
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---- Small-screen fixes ---- */
.split > *, .grid > *, .hero-grid > *, .steps > * { min-width: 0; }
@media (max-width: 480px) {
  .nav { gap: .5rem; }
  .brand { font-size: 1.15rem; gap: .5rem; }
  .brand img { width: 34px; height: 34px; }
  .nav-actions { gap: .35rem; }
  .icon-btn { width: 42px; height: 42px; }
  .lang-btn { padding-inline: 0; width: 42px; }
  .lang-btn #langCur { display: none; }
  .lang-menu { inset-inline-end: -48px; max-width: calc(100vw - 24px); }
  .card { padding: 1.35rem; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* Placed after .btn so it wins at equal specificity: hide the header CTA on small screens (the menu has Download). */
@media (max-width: 940px) { .btn.nav-cta { display: none; } }

/* Long words (German compounds, URLs) wrap instead of forcing sideways scroll. */
body { overflow-wrap: break-word; }
.faq summary, .faq .answer, .card h3, .card p { overflow-wrap: anywhere; }
