/* DeepDock website – no external fonts or CDNs (system font stack). */

:root {
  --bg: #070a12;
  --bg-2: #0a0f1b;
  --surface: #0e1524;
  --surface-2: #131c2f;
  --line: rgba(160, 180, 230, 0.14);
  --line-2: rgba(160, 180, 230, 0.26);
  --text: #e9edf6;
  --muted: #a3adc2;
  --dim: #74809a;
  --acc: #3ee6c4;
  --acc-2: #6c8cff;
  --acc-3: #b07cff;
  --warn: #ffc65c;
  --ok: #5ee08f;
  --radius: 18px;
  --nav-h: 60px;
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

/* ---------- language switching ---------- */
html:lang(en) [data-l="de"],
html:not(:lang(en)) [data-l="en"] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--acc); text-underline-offset: 3px; }
a:hover { color: #8ff3de; }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(108, 140, 255, 0.12); padding: 0.1em 0.35em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: 0.9rem; color: var(--muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.icon-lg { width: 28px; height: 28px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--acc); color: #04121a; padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 0.75rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.35rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #04121a; box-shadow: 0 8px 30px -10px rgba(62, 230, 196, 0.6); }
.btn-primary:hover { color: #04121a; box-shadow: 0 10px 36px -8px rgba(62, 230, 196, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); border-color: rgba(62, 230, 196, 0.6); background: rgba(62, 230, 196, 0.08); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.92rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(7, 10, 18, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header::after { /* reading progress (scroll-driven, enhancement only) */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2), var(--acc-3));
  transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
}
@supports (animation-timeline: scroll()) {
  .site-header::after { opacity: 1; animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { to { transform: scaleX(1); } }
.nav { display: flex; align-items: center; gap: 1.25rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark.sm { width: 14px; height: 14px; vertical-align: -2px; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { display: block; padding: 0.45rem 0.75rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, 0.03); }
.lang-switch button {
  font: 600 0.8rem/1 var(--font); letter-spacing: 0.04em; color: var(--muted); background: transparent;
  border: 0; border-radius: 999px; padding: 0.42rem 0.62rem; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--text); color: #070a12; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav { gap: 0.75rem; }
  .nav-actions { margin-left: auto; }
  .nav-gh span { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; order: 3; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s ease; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: 0.5rem 1.25rem 1rem; background: rgba(7, 10, 18, 0.97); border-bottom: 1px solid var(--line);
  }
  .js .nav-links:not(.is-open) { display: none; }
  html:not(.js) .nav-toggle, html:not(.js) .nav-links { display: none; }
  .nav-links a { padding: 0.8rem 0.5rem; font-size: 1.05rem; }
}
@media (max-width: 380px) {
  .nav-gh { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute; inset: -10% -10% 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 70vmax; height: 70vmax; left: 50%; top: -35vmax; translate: -50% 0;
  background: radial-gradient(circle, rgba(62, 230, 196, 0.22), rgba(108, 140, 255, 0.12) 35%, transparent 65%);
  filter: blur(10px);
  animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(6%, 4%) scale(1.08); } }
@supports (animation-timeline: scroll()) {
  .hero-grid { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}
@keyframes drift { to { transform: translateY(80px) perspective(600px) rotateX(18deg); opacity: 0.3; } }
.hero-inner { text-align: center; max-width: 1060px; }
.hero-title { max-width: 980px; margin-inline: auto; }
.eyebrow { display: inline-block; font: 600 0.8rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); margin-bottom: 1.1rem; }
.hero .eyebrow { padding: 0.4rem 0.85rem; border: 1px solid rgba(62, 230, 196, 0.3); border-radius: 999px; background: rgba(62, 230, 196, 0.06); }
.hero-title { font-size: clamp(2.3rem, 1.1rem + 5.2vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 1.4rem; }
.hero-title em {
  font-style: normal; white-space: nowrap; background: linear-gradient(100deg, var(--acc), var(--acc-2) 55%, var(--acc-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: var(--muted); max-width: 720px; margin: 0 auto 2rem; }
.hero-note { font: 500 0.82rem/1.5 var(--mono); color: var(--dim); max-width: 720px; margin: -1.2rem auto 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-bottom: 3.25rem; }
.pipeline {
  list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.75rem; position: relative; max-width: 1060px;
}
.pipeline li {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(14, 21, 36, 0.8); font: 500 0.88rem/1.2 var(--mono); color: var(--text);
}
.pipeline li .icon { color: var(--acc); }
.pipeline li + li::before {
  content: ""; position: absolute; right: 100%; top: 50%; width: 1.75rem; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent); background-size: 200% 100%;
  animation: flow-x 1.8s linear infinite;
}
@keyframes flow-x { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.js .pipeline li { animation: pop 0.5s cubic-bezier(.2, .8, .2, 1.2) both; }
.pipeline li:nth-child(2) { animation-delay: 0.1s; }
.pipeline li:nth-child(3) { animation-delay: 0.2s; }
.pipeline li:nth-child(4) { animation-delay: 0.3s; }
.pipeline li:nth-child(5) { animation-delay: 0.4s; }
.pipeline li:nth-child(6) { animation-delay: 0.5s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-lead { color: var(--muted); font-size: 1.1rem; }
.section-lead strong { color: var(--text); }

/* scroll reveal (IntersectionObserver adds .is-visible) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- workflow timeline ---------- */
.timeline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: "steps stage"; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stage-wrap { grid-area: stage; position: sticky; top: calc(var(--nav-h) + 40px); }
.steps { grid-area: steps; list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; --progress: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0.55rem; top: 0.5rem; bottom: 0.5rem; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line-2); }
.steps::after { background: linear-gradient(var(--acc), var(--acc-2), var(--acc-3)); transform-origin: 50% 0; transform: scaleY(var(--progress)); }
.step { position: relative; min-height: 62vh; padding: 0.25rem 0 2rem; transition: opacity 0.4s ease; }
.js .step { opacity: 0.45; }
.js .step.is-active { opacity: 1; }
.step::before {
  content: ""; position: absolute; left: calc(-2.25rem + 0.55rem - 7px); top: 0.55rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2); transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.step.is-active::before, .step.is-past::before { border-color: var(--acc); background: var(--acc); box-shadow: 0 0 0 6px rgba(62, 230, 196, 0.15); }
.step-no { display: inline-block; font: 600 0.8rem/1 var(--mono); color: var(--acc); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.step h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
.step p { color: var(--muted); max-width: 560px; }
.step .time {
  display: inline-flex; align-items: center; gap: 0.5rem; font: 500 0.85rem/1.3 var(--mono); color: var(--text);
  padding: 0.45rem 0.8rem; border-radius: 10px; border: 1px dashed rgba(62, 230, 196, 0.45); background: rgba(62, 230, 196, 0.06);
}
.step .time::before { content: "⏱"; }
.step-loop .step-no { font-size: 1.1rem; }

/* stage: fixed 560×560 design, scaled by JS through --s */
.stage { --s: 1; position: relative; width: 100%; height: calc(560px * var(--s)); overflow: hidden; }
.stage-inner { position: absolute; left: 0; top: 0; width: 560px; height: 560px; transform: scale(var(--s)); transform-origin: 0 0; font: 13px/1.45 var(--font); }
.scene { display: none; }
.scene-inline { display: none; }
.stage[data-step="1"] .scene[data-s~="1"], .stage[data-step="2"] .scene[data-s~="2"], .stage[data-step="3"] .scene[data-s~="3"], .stage[data-step="4"] .scene[data-s~="4"],
.stage[data-step="5"] .scene[data-s~="5"], .stage[data-step="6"] .scene[data-s~="6"], .stage[data-step="7"] .scene[data-s~="7"], .stage[data-step="8"] .scene[data-s~="8"] {
  display: block; animation: scene-in 0.5s ease both;
}
.stage[data-step="1"] .scene-inline[data-s~="1"], .stage[data-step="2"] .scene-inline[data-s~="2"], .stage[data-step="3"] .scene-inline[data-s~="3"], .stage[data-step="4"] .scene-inline[data-s~="4"],
.stage[data-step="5"] .scene-inline[data-s~="5"], .stage[data-step="6"] .scene-inline[data-s~="6"], .stage[data-step="7"] .scene-inline[data-s~="7"], .stage[data-step="8"] .scene-inline[data-s~="8"] {
  display: block;
}
@keyframes scene-in { from { opacity: 0; transform: translateY(6px); } }

.dev, .svc, .clock { transition: opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.dev { position: absolute; opacity: 0.5; }
.svc { opacity: 0.5; }
/* highlighted parts per step */
.stage[data-step="1"] .dev-watch,
.stage[data-step="2"] .dev,
.stage[data-step="3"] :is(.dev-mac, .dev-phone),
.stage[data-step="4"] :is(.dev-mac, .svc-github, .svc-coolify),
.stage[data-step="5"] :is(.dev-mac, .svc-asc, .svc-tf),
.stage[data-step="6"] :is(.dev-phone, .dev-watch),
.stage[data-step="7"] :is(.dev-phone, .svc-tf),
.stage[data-step="8"] :is(.dev, .svc-asc, .svc-github) { opacity: 1; }
.stage[data-step="1"] .dev-watch, .stage[data-step="3"] .dev-mac, .stage[data-step="4"] .dev-mac, .stage[data-step="5"] .dev-mac,
.stage[data-step="6"] .dev-phone, .stage[data-step="7"] .dev-phone, .stage[data-step="8"] .dev-phone {
  box-shadow: 0 0 0 1px rgba(62, 230, 196, 0.55), 0 20px 60px -20px rgba(62, 230, 196, 0.45);
}
.stage[data-step="4"] :is(.svc-github, .svc-coolify), .stage[data-step="5"] :is(.svc-asc, .svc-tf), .stage[data-step="7"] .svc-tf, .stage[data-step="8"] :is(.svc-asc, .svc-github) {
  border-color: rgba(62, 230, 196, 0.6); box-shadow: 0 0 24px -6px rgba(62, 230, 196, 0.5);
}

/* service chips */
.chip-row { position: absolute; left: 0; top: 0; width: 560px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.svc {
  position: relative; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: 600 11.5px/1.1 var(--font); color: var(--text); white-space: nowrap;
}
.svc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.stage[data-step="4"] :is(.svc-github, .svc-coolify) .svc-dot, .stage[data-step="5"] :is(.svc-asc, .svc-tf) .svc-dot,
.stage[data-step="7"] .svc-tf .svc-dot, .stage[data-step="8"] :is(.svc-asc, .svc-github) .svc-dot { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.svc-sub, .svc-bar { position: absolute; top: 48px; left: 50%; translate: -50% 0; font: 500 10.5px/1.2 var(--mono); color: var(--acc); white-space: nowrap; }
.svc-bar { width: 100px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.svc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-2)); animation: fill 2.6s ease-in-out infinite; transform-origin: 0 50%; }
@keyframes fill { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }

/* Mac window */
.dev-mac { left: 0; top: 76px; width: 400px; height: 260px; border-radius: 14px; background: #0b111d; border: 1px solid var(--line-2); overflow: hidden; }
.mac-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #111a2b; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--font); color: var(--dim); }
.mac-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mac-bar i:nth-child(2) { background: #febc2e; }
.mac-bar i:nth-child(3) { background: #28c840; }
.mac-bar span { margin-left: 10px; }
.mac-body { display: grid; grid-template-columns: 96px 1fr; height: calc(100% - 28px); }
.mac-side { list-style: none; margin: 0; padding: 10px 8px; border-right: 1px solid var(--line); font: 500 11.5px/1 var(--mono); color: var(--muted); }
.ws { display: flex; align-items: center; gap: 7px; padding: 7px 6px; border-radius: 6px; }
.ws-on { background: rgba(62, 230, 196, 0.1); color: var(--text); }
.st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); flex: none; animation: pulse 1.6s ease-in-out infinite; }
.st-idle { background: var(--dim); box-shadow: none; animation: none; }
.st-warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
@keyframes pulse { 50% { opacity: 0.35; } }
.term { position: relative; font: 12px/1.6 var(--mono); color: var(--text); }
.term > .scene { position: absolute; inset: 12px 14px; }
.term p, .phone-screen p, .watch-screen p, .clock p { margin: 0; }
.t-dim { color: var(--dim); }
.t-acc { color: var(--acc); }
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--acc); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lines p { animation: line-in 0.4s ease both; }
.lines p:nth-child(2) { animation-delay: 0.45s; }
.lines p:nth-child(3) { animation-delay: 0.9s; }
.lines p:nth-child(4) { animation-delay: 1.35s; }
.lines p:nth-child(5) { animation-delay: 1.8s; }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } }
.type { animation: type 1.6s steps(28) 0.2s both; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* iPhone */
.dev-phone { left: 376px; top: 166px; width: 176px; height: 360px; border-radius: 36px; background: #05070d; border: 6px solid #1c2436; z-index: 2; }
.phone-island { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 56px; height: 16px; border-radius: 10px; background: #000; z-index: 2; }
.phone-screen { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #0c1322, #070a12); }
.phone-screen > .scene { position: absolute; inset: 34px 10px 14px; }
.ph-title { font: 700 13px/1.2 var(--font); margin-bottom: 10px !important; display: flex; align-items: center; justify-content: space-between; }
.live { font: 700 9px/1 var(--mono); color: #04121a; background: var(--acc); border-radius: 4px; padding: 3px 4px; }
.ph-card { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 7px; border-radius: 12px; background: var(--surface-2); font: 500 11px/1.2 var(--font); }
.ph-term { padding: 9px 10px; border-radius: 12px; background: #0a0f1a; border: 1px solid var(--line); font: 10.5px/1.6 var(--mono); min-height: 110px; }
.ph-shimmer { height: 8px; margin-top: 7px !important; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), #22304a, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.ph-shimmer.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ph-progress { margin-top: 12px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.ph-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-2)); animation: fill 3s ease-in-out infinite; transform-origin: 0 50%; }
.bubble { margin: 12px 0 0 auto; max-width: 92%; padding: 9px 11px; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #04121a; font: 600 11px/1.35 var(--font); animation: bubble 0.6s cubic-bezier(.2, .8, .2, 1.2) 0.2s both; }
.bubble.alt { background: var(--surface-2); color: var(--text); border-radius: 14px 14px 14px 4px; margin-left: 0; }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(0.9); } }
.ph-note { margin-top: 10px !important; font: 500 10px/1.3 var(--mono); color: var(--acc); text-align: center; }
.lock { text-align: center; }
.lock-time { font: 300 44px/1 var(--font); margin: 6px 0 14px !important; letter-spacing: -0.02em; }
.notif { text-align: left; padding: 9px 10px; border-radius: 16px; background: rgba(40, 52, 78, 0.85); animation: drop 0.6s cubic-bezier(.2, .8, .2, 1.15) 0.3s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px) scale(0.95); } }
.notif-head { font: 600 9.5px/1.2 var(--font); color: var(--muted); margin-bottom: 4px !important; text-transform: uppercase; letter-spacing: 0.04em; }
.notif-title { font: 700 11.5px/1.3 var(--font); }
.notif-body { font: 400 10.5px/1.35 var(--font); color: var(--muted); }
.notif-shot { margin-top: 7px; padding: 7px; border-radius: 8px; background: #05070d; display: grid; gap: 4px; }
.notif-shot i { display: block; height: 5px; border-radius: 3px; background: #22304a; }
.notif-shot i:nth-child(1) { width: 70%; background: var(--acc); opacity: 0.7; }
.notif-shot i:nth-child(3) { width: 85%; }
.notif-shot i:nth-child(4) { width: 40%; background: var(--ok); opacity: 0.7; }
.notif-shot.mini { padding: 5px; gap: 3px; }
.notif-shot.mini i { height: 4px; }
.tf-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.tf-icon { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--acc-3), var(--acc-2)); }
.tf-name { font: 700 12px/1.2 var(--font); }
.tf-build { font: 400 9.5px/1.3 var(--mono); color: var(--muted); }
.tf-btn { font: 700 10px/1 var(--font); color: #04121a; background: var(--acc); border-radius: 999px; padding: 6px 9px; animation: pulse-btn 1.6s ease-in-out infinite; }
@keyframes pulse-btn { 50% { box-shadow: 0 0 0 6px rgba(62, 230, 196, 0.2); } }
.shot-thumb { height: 120px; border-radius: 12px; border: 1px solid var(--line-2); background: #0a0f1a; padding: 12px; display: grid; align-content: start; gap: 8px; animation: snap 0.5s ease 0.1s both; }
.shot-thumb i { display: block; height: 10px; border-radius: 5px; background: #22304a; }
.shot-thumb i:nth-child(2) { width: 50%; outline: 2px dashed var(--warn); outline-offset: 4px; }
@keyframes snap { from { opacity: 0; transform: scale(1.1); filter: brightness(2.5); } }

/* Apple Watch */
.dev-watch { left: 26px; top: 368px; width: 140px; height: 168px; border-radius: 42px; background: #05070d; border: 6px solid #1c2436; }
.dev-watch::before, .dev-watch::after { content: ""; position: absolute; left: 22px; right: 22px; height: 26px; background: #141b2b; z-index: -1; }
.dev-watch::before { top: -30px; border-radius: 10px 10px 0 0; }
.dev-watch::after { bottom: -30px; border-radius: 0 0 10px 10px; }
.watch-crown { position: absolute; right: -11px; top: 38px; width: 6px; height: 26px; border-radius: 3px; background: #2a3550; }
.watch-screen { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; }
.watch-screen > .scene { position: absolute; inset: 18px 14px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; margin-bottom: 8px; }
.wave i { width: 5px; height: 30%; border-radius: 3px; background: var(--acc); animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 0.1s; }
.wave i:nth-child(3) { animation-delay: 0.25s; }
.wave i:nth-child(4) { animation-delay: 0.4s; }
.wave i:nth-child(5) { animation-delay: 0.2s; }
.wave i:nth-child(6) { animation-delay: 0.35s; }
.wave i:nth-child(7) { animation-delay: 0.05s; }
@keyframes wave { 50% { height: 100%; } }
.w-text { font: 600 11px/1.35 var(--font); text-align: center; }
.w-big { font: 700 34px/1 var(--font); text-align: center; margin: 8px 0 6px !important; animation: pop 0.5s ease both; }
.w-label { font: 700 10px/1 var(--font); color: var(--acc); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px !important; }
.w-row { display: flex; align-items: center; gap: 7px; font: 600 11px/1.3 var(--font); margin-bottom: 5px !important; }
.w-quota { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.w-quota i { display: block; width: 42%; height: 100%; background: var(--ok); }

/* example clock */
.clock { position: absolute; left: 186px; top: 400px; width: 170px; height: 104px; padding: 14px; border-radius: 16px; border: 1px dashed rgba(62, 230, 196, 0.45); background: rgba(62, 230, 196, 0.05); }
.clock-label { font: 600 10px/1.2 var(--mono); color: var(--acc); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px !important; }
.clock-val { font: 700 17px/1.25 var(--font); }
.clock-val small { font: 500 11px/1.3 var(--mono); color: var(--muted); }

/* data paths + packets */
.flow { position: absolute; left: 0; top: 0; width: 560px; height: 560px; overflow: visible; pointer-events: none; z-index: 3; }
.flow path { fill: none; stroke: rgba(62, 230, 196, 0.55); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -11; } }
.packet { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #c9fff3; box-shadow: 0 0 0 3px rgba(62, 230, 196, 0.35), 0 0 18px var(--acc); z-index: 4; offset-rotate: 0deg; animation: travel 2.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.p-a { offset-path: path("M96 368 C 110 300 330 350 380 310 S 330 220 240 200"); }
.p-b { offset-path: path("M200 76 C 160 70 64 70 64 40 L 208 40"); }
.p-c { offset-path: path("M300 76 C 330 70 352 60 352 40 L 496 40"); }
.p-d { offset-path: path("M496 40 C 496 100 470 130 464 166"); }
.p-e { offset-path: path("M464 166 C 464 100 352 90 352 40 L 64 40 C 64 56 90 70 120 76"); animation-duration: 3s; }
.stage .packet.rev { animation-direction: reverse; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ---------- features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.feature {
  position: relative; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, -20%), rgba(62, 230, 196, 0.12), transparent 40%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.feature:hover::before { opacity: 1; }
.feature .icon-lg { color: var(--acc); margin-bottom: 0.9rem; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.js .features .reveal:nth-child(3n+2), .js .tools .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.js .features .reveal:nth-child(3n), .js .tools .reveal:nth-child(3n) { transition-delay: 0.16s; }

/* ---------- architecture ---------- */
.arch { margin: 0; padding: clamp(1rem, 3vw, 2rem); border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 0%, rgba(108, 140, 255, 0.08), transparent 60%), var(--bg-2); }
.arch-svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.arch-tall { display: none; max-width: 440px; margin: 0 auto; }
@media (max-width: 760px) {
  .arch-wide { display: none; }
  .arch-tall { display: block; }
}
.arch .e { fill: none; stroke: rgba(140, 170, 255, 0.4); stroke-width: 2; stroke-dasharray: 6 6; animation: dash-arch 1.4s linear infinite; }
.arch .e-sec { stroke: rgba(62, 230, 196, 0.7); }
.arch .e-push { stroke: rgba(176, 124, 255, 0.7); }
.arch .e-kit { stroke: rgba(255, 198, 92, 0.65); }
@keyframes dash-arch { to { stroke-dashoffset: -12; } }
.arch .labels text { fill: var(--muted); font: 500 12px var(--mono); }
.arch .labels .lab-push { fill: #cfb2ff; }
.arch .labels .tick { stroke: rgba(140, 170, 255, 0.4); stroke-width: 1; }
.arch .n rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.arch .n-core rect { fill: #0f1d2c; stroke: var(--acc); stroke-width: 2; }
.arch .n-dev rect { stroke: rgba(108, 140, 255, 0.7); }
.arch .n-net rect { stroke: rgba(62, 230, 196, 0.7); fill: rgba(62, 230, 196, 0.08); }
.arch .n-cloud rect { stroke: rgba(176, 124, 255, 0.55); }
.arch .n-kit rect { stroke: rgba(255, 198, 92, 0.65); }
.arch .nt { fill: var(--text); font: 600 15px var(--font); }
.arch .ns { fill: var(--muted); font: 500 12px var(--mono); }
.arch .pk { fill: #c9fff3; }
.arch .pk-push { fill: #e2d0ff; }
.arch .pk-kit { fill: #ffe2a8; }
.js .arch .n { opacity: 0; transform: scale(0.94); transform-box: fill-box; transform-origin: center; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1.1); }
.js .arch.is-visible .n { opacity: 1; transform: none; }
.js .arch.is-visible .n:nth-child(2) { transition-delay: 0.08s; }
.js .arch.is-visible .n:nth-child(3) { transition-delay: 0.16s; }
.js .arch.is-visible .n:nth-child(4) { transition-delay: 0.24s; }
.js .arch.is-visible .n:nth-child(5) { transition-delay: 0.32s; }
.js .arch.is-visible .n:nth-child(6) { transition-delay: 0.4s; }
.js .arch.is-visible .n:nth-child(7) { transition-delay: 0.48s; }
.js .arch.is-visible .n:nth-child(8) { transition-delay: 0.56s; }
.js .arch.is-visible .n:nth-child(9) { transition-delay: 0.64s; }
.js .arch.is-visible .n:nth-child(10) { transition-delay: 0.72s; }
.js .arch.is-visible .n:nth-child(n+11) { transition-delay: 0.8s; }
.js .arch .edges, .js .arch .labels, .js .arch .packets { opacity: 0; transition: opacity 0.8s ease 0.6s; }
.js .arch.is-visible .edges, .js .arch.is-visible .labels, .js .arch.is-visible .packets { opacity: 1; }
.arch figcaption { margin-top: 1.5rem; }
.arch-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.arch-notes li { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.arch-notes strong { color: var(--text); }

/* ---------- install ---------- */
.install-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.install-step { position: relative; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.install-step .step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #04121a; font-size: 1rem; margin-bottom: 1rem; }
.install-step p { color: var(--muted); font-size: 0.97rem; }
.tf-slot { margin: auto 0 0.6rem; }
/* TestFlight link is configured only via its href in index.html: empty href = "Link folgt" (no JS needed). */
.tf-link[href=""] { display: none; }
.tf-link:not([href=""]) + .badge-soon { display: none; }
.tf-slot:has(.tf-link:not([href=""])) + .tf-soon-note { display: none; }
.tf-soon-note { margin: 0; }
.badge-soon { display: inline-flex; align-items: center; gap: 0.4rem; font: 600 0.85rem/1 var(--mono); color: var(--warn); padding: 0.55rem 0.8rem; border-radius: 999px; border: 1px dashed rgba(255, 198, 92, 0.5); }
.badge-soon[hidden] { display: none; }
.cmd { display: flex; align-items: stretch; border-radius: 12px; border: 1px solid var(--line-2); background: #05080f; overflow: hidden; margin-bottom: 0.9rem; }
.cmd code { flex: 1; min-width: 0; padding: 0.85rem 0.9rem; background: none; border-radius: 0; font-size: 0.82rem; line-height: 1.5; color: #c9fff3; overflow-x: auto; white-space: nowrap; }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 0.9rem; border: 0; border-left: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); font: 600 0.85rem/1 var(--font); cursor: pointer; }
.copy-btn:hover { background: rgba(62, 230, 196, 0.12); }
.copy-btn .copy-done { display: none; color: var(--ok); }
.copy-btn.is-copied .copy-label { display: none; }
.copy-btn.is-copied .copy-done { display: inline; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.checks li { position: relative; padding-left: 1.7rem; color: var(--text); font-size: 0.97rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: rgba(62, 230, 196, 0.15); border: 1.5px solid var(--acc); }
.checks li::after { content: ""; position: absolute; left: 0.36rem; top: 0.48em; width: 0.32rem; height: 0.55rem; border: solid var(--acc); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.reqs { padding: 1.3rem 1.6rem; border-radius: var(--radius); border: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; }
.reqs h3 { margin: 0; font-size: 1rem; }
.reqs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.reqs li { font: 500 0.85rem/1.2 var(--mono); padding: 0.45rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }

/* ---------- tools ---------- */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.tool { position: relative; display: flex; flex-direction: column; padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.tool-wide { grid-column: span 2; }
.mono {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 0.9rem; border-radius: 12px;
  font: 700 0.95rem/1 var(--mono); color: var(--acc); background: rgba(62, 230, 196, 0.08); border: 1px solid rgba(62, 230, 196, 0.25);
}
.tool h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.tool h3 small { color: var(--muted); font-weight: 500; }
.tool p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.75rem; }
.tool .lic { list-style: none; margin: auto 0 0.4rem; padding: 0; display: grid; gap: 0.3rem; font: 500 0.78rem/1.45 var(--mono); }
.tool .lic li { position: relative; padding-left: 1.1em; }
.tool .lic li::before { content: "§"; position: absolute; left: 0; color: var(--acc); }
.tool .lic a { color: var(--text); text-decoration-color: rgba(233, 237, 246, 0.35); }
.tool .lic a:hover { color: var(--acc); }
.tool .src { font: 500 0.74rem/1.4 var(--mono); color: var(--dim); margin-bottom: 0.6rem; }
.tool .src::before { content: "↧ "; color: var(--acc); }
.beta-note { font-size: 0.88rem !important; padding: 0.7rem 0.85rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.badge-beta { display: inline-block; margin-left: 0.4rem; font: 700 0.68rem/1 var(--mono); letter-spacing: 0.06em; color: #1a1200; background: var(--warn); padding: 0.28rem 0.4rem; border-radius: 6px; vertical-align: 0.25em; }
.tool-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; }
.tool-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.tool-link::after { content: " ↗"; }
.tool-link:hover { text-decoration: underline; }
@media (max-width: 600px) { .tool-wide { grid-column: auto; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: start; }
.footer-brand .brand { margin-bottom: 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.trademark { grid-column: 1 / -1; margin: 0; color: var(--dim); max-width: 860px; }
.site-footer a { overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .timeline { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "steps"; gap: 0; }
  .stage-wrap {
    top: var(--nav-h); z-index: 5; padding: 0.75rem 0 1rem; margin: 0 -1.25rem; padding-inline: 1.25rem;
    background: linear-gradient(var(--bg) calc(100% - 14px), transparent);
  }
  .stage { width: min(100%, calc((100svh - var(--nav-h)) * 0.44)); margin: 0 auto; }
  .step { min-height: 52vh; padding-top: 1rem; }
  .install-steps { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) and (min-width: 640px) {
  .install-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-step:last-child { grid-column: 1 / -1; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .arch .n, .js .arch .edges, .js .arch .labels { opacity: 1; transform: none; }
  .packet, .arch .packets { display: none !important; }
}

/* ---------- legal pages ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.todo { border: 1px dashed var(--warn); background: rgba(255, 198, 92, 0.07); color: var(--text); padding: 1rem 1.2rem; border-radius: 14px; margin: 1.2rem 0; }
.todo::before { content: "TODO"; display: inline-block; margin-right: 0.6rem; font: 700 0.75rem/1 var(--mono); color: #1a1200; background: var(--warn); padding: 0.3rem 0.45rem; border-radius: 6px; }
mark.ph { background: rgba(255, 198, 92, 0.18); color: var(--warn); padding: 0 0.25em; border-radius: 4px; font-family: var(--mono); font-size: 0.92em; }
.notfound { min-height: calc(100vh - var(--nav-h) - 200px); display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .code { font: 800 clamp(5rem, 20vw, 10rem)/1 var(--mono); background: linear-gradient(100deg, var(--acc), var(--acc-2), var(--acc-3)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; }
.page-nav .nav-links { display: none; }
.page-nav .btn { white-space: nowrap; }
@media (max-width: 440px) { .page-nav .brand span { display: none; } }
