/* ============================================================
   THE APP LAB — design system
   Dark grey base · cyan→teal accent · Space Grotesk + JetBrains Mono
   ============================================================ */

:root {
  /* Surfaces — cool dark grey */
  --bg-0: #0b0e10;     /* page */
  --bg-1: #101418;     /* raised section */
  --bg-2: #161b20;     /* card */
  --bg-3: #1d242b;     /* card hover / inset */

  /* Lines */
  --line:        rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);

  /* Text */
  --tx-hi:  #e9eef1;
  --tx-mid: #98a4ac;
  --tx-lo:  #626d75;

  /* Accent — App Laboratory brand gradient (green → blue → deep blue) */
  --acc:        #0a9be3;
  --acc-bright: #19c9f5;
  --acc-teal:   #18c463;
  --acc-deep:   #1f47d6;
  --acc-glow:   rgba(25, 180, 255, 0.35);
  --acc-soft:   rgba(10, 155, 227, 0.11);

  --grad: linear-gradient(158deg, #18c463 0%, #06a9ef 52%, #1f47d6 100%);

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--display);
  background: var(--bg-0);
  color: var(--tx-hi);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--acc-glow); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

section { position: relative; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared atoms ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--acc-bright);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--acc);
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tx-lo);
}

h1, h2, h3 { font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }

.btn {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #04181d;
  font-weight: 700;
  box-shadow: 0 0 0 0 var(--acc-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px var(--acc-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--tx-hi);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc-bright); background: var(--acc-soft); }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(11, 14, 16, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand .mark {
  height: 30px;
  width: auto;
  flex: none;
  display: block;
  filter: drop-shadow(0 0 14px var(--acc-glow));
}
.brand b { color: var(--tx-hi); font-weight: 700; }
.brand .bt { color: var(--tx-hi); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--tx-mid);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--tx-hi); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--acc);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 16px; }

/* ---------- Apps mega-menu ---------- */
.has-mega { position: relative; display: flex; align-items: center; }
.mega-trigger {
  font-size: 14.5px; color: var(--tx-mid); background: none; border: 0; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 0;
  transition: color .2s;
}
.has-mega:hover .mega-trigger, .has-mega:focus-within .mega-trigger { color: var(--tx-hi); }
.mega-trigger .chev { width: 11px; height: 11px; transition: transform .25s var(--ease); }
.has-mega:hover .chev, .has-mega:focus-within .chev { transform: rotate(180deg); }
.mega-panel {
  position: absolute; top: calc(100% + 18px); left: 0;
  width: 600px; max-width: 92vw;
  background: rgba(13,17,21,0.94); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.8), 0 0 60px -30px var(--acc-glow);
  padding: 18px; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; z-index: 120;
}
.mega-panel::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel, .has-mega.open .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.mega-app { display: block; padding: 15px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .2s, background .2s; }
.mega-app:hover { border-color: var(--acc); background: var(--bg-3); }
.mega-app.soon { opacity: .74; }
.mega-app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mega-app-head img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.mega-app-head .ph { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-bright); font-family: var(--mono); font-size: 15px; }
.mega-app-head b { font-size: 15px; color: var(--tx-hi); font-weight: 700; }
.mega-app-head .badge { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 100px; margin-left: auto; }
.mega-app-head .badge.live { background: var(--acc-soft); color: var(--acc-bright); }
.mega-app-head .badge.dev { background: rgba(255,255,255,0.06); color: var(--tx-lo); }
.mega-app .mega-desc { font-size: 12px; color: var(--tx-lo); line-height: 1.5; margin: 0 0 11px; }
.mega-sublinks { display: flex; flex-direction: column; gap: 1px; }
.mega-sublinks a { font-size: 13px; color: var(--tx-mid); padding: 7px 9px; border-radius: 8px; display: flex; align-items: center; gap: 9px; transition: color .18s, background .18s; }
.mega-sublinks a::after { display: none; }
.mega-sublinks a:hover { color: var(--tx-hi); background: rgba(255,255,255,0.04); }
.mega-sublinks a .d { width: 4px; height: 4px; border-radius: 50%; background: var(--acc); flex: none; }
/* mobile apps accordion */
.m-group { border-bottom: 1px solid var(--line); }
.m-group > summary { list-style: none; cursor: pointer; padding: 12px 0; font-size: 20px; font-weight: 500; color: var(--tx-hi); display: flex; align-items: center; gap: 8px; }
.m-group > summary::-webkit-details-marker { display: none; }
.m-group > summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--acc); font-weight: 400; }
.m-group[open] > summary::after { content: "−"; }
.m-app-block { padding: 2px 2px 12px; }
.m-app-block .m-app-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc-bright); padding: 8px 6px 4px; display: flex; align-items: center; gap: 8px; }
.m-app-block .m-app-name img { width: 20px; height: 20px; border-radius: 5px; }
.m-app-block a { padding: 9px 6px; font-size: 16px; color: var(--tx-mid); display: block; border: 0; }
.m-app-block.soon .m-app-name { color: var(--tx-lo); }

/* ---------- language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}
.lang-toggle button {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--tx-mid);
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: color .2s var(--ease), background .25s var(--ease);
}
.lang-toggle button:not(.active):hover { color: var(--tx-hi); }
.lang-toggle button.active {
  background: var(--grad);
  color: #04181d;
  font-weight: 700;
}
.lang-toggle.mobile {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.lang-toggle.mobile button { flex: 1; padding: 10px; font-size: 14px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  position: absolute;
  width: 16px; height: 1.6px;
  background: var(--tx-hi);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span::before { transform: translate(-50%, -6px); }
.burger span::after  { transform: translate(-50%, 6px); }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translate(-50%, 0) rotate(45deg); }
body.menu-open .burger span::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* mobile sheet */
.mobile-menu {
  position: fixed;
  inset: 72px 0 auto 0;
  z-index: 99;
  background: rgba(11,14,16,0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 18px var(--gutter) 26px;
  transform: translateY(-110%);
  transition: transform .4s var(--ease);
}
body.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu a {
  font-size: 20px;
  font-weight: 500;
  padding: 12px 0;
  color: var(--tx-hi);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(130px, 18vh, 220px);
  padding-bottom: clamp(70px, 10vh, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(6,182,212,0.16) 0%, rgba(6,182,212,0) 60%);
  pointer-events: none;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

/* drifting platform glyphs */
.floaters {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.floater {
  position: absolute;
  color: var(--acc);
  opacity: 0.09;
  will-change: transform;
  animation-name: floatA;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.floater svg { width: 100%; height: auto; display: block; }
.floater.fb { animation-name: floatB; }
.floater.fc { animation-name: floatC; }
.floater.fd { animation-name: floatD; }

@keyframes floatA {
  from { transform: translate3d(0, 0, 0) rotate(-8deg); }
  to   { transform: translate3d(34px, -120px, 0) rotate(26deg); }
}
@keyframes floatB {
  from { transform: translate3d(0, 0, 0) rotate(10deg); }
  to   { transform: translate3d(-46px, -150px, 0) rotate(-30deg); }
}
@keyframes floatC {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(40px, -90px, 0) rotate(40deg); }
}
@keyframes floatD {
  from { transform: translate3d(0, 0, 0) rotate(-14deg); }
  to   { transform: translate3d(-30px, -130px, 0) rotate(18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .floater { animation: none; }
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 88px);
  margin: 22px 0 0;
}
.hero h1 .hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--tx-mid);
  max-width: 30em;
  line-height: 1.55;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 42px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--tx-lo);
}
.hero-meta b { color: var(--tx-hi); font-weight: 500; }
.hero-meta .dot { color: var(--acc); }

/* phone visual */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  background: var(--grad);
  filter: blur(90px);
  opacity: 0.28;
  border-radius: 50%;
}
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 290 / 600;
  background: linear-gradient(160deg, #20272d, #12161a);
  border-radius: 42px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.5);
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone .notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #05080a;
  border-radius: 100px;
  z-index: 3;
}
.app-top {
  padding: 38px 18px 16px;
  background: linear-gradient(180deg, rgba(6,182,212,0.14), transparent);
}
.app-top .app-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--grad);
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 8px 20px -6px var(--acc-glow);
}
.app-top .app-icon::after {
  content: "";
  position: absolute; inset: 15px;
  border: 2px solid rgba(4,24,29,0.85);
  border-radius: 3px;
}
.app-top h4 { font-size: 17px; }
.app-top p { font-family: var(--mono); font-size: 10.5px; color: var(--acc-bright); margin-top: 3px; }

.app-rows { padding: 6px 14px; display: grid; gap: 9px; }
.app-row {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-row .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-3); flex: none; position: relative; }
.app-row .ic::after { content:""; position:absolute; inset: 8px; border-radius: 2px; background: var(--acc); opacity: .6; }
.app-row .ln { flex: 1; display: grid; gap: 5px; }
.app-row .ln i { height: 6px; border-radius: 3px; background: var(--bg-3); display: block; }
.app-row .ln i:first-child { width: 70%; background: #2b343b; }
.app-row .ln i:last-child { width: 45%; }
.app-row.done .ic::after { background: var(--acc-teal); opacity: 1; }
.app-cta {
  margin: auto 14px 16px;
  background: var(--grad);
  color: #04181d;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  padding: 11px;
  border-radius: 11px;
}

/* ---------- iPad / tablet mockup ---------- */
.tablet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, #20272d, #12161a);
  border-radius: 30px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.5);
}
.tablet .cam {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #05080a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  z-index: 3;
}
.tablet .screen {
  width: 100%; height: auto;
  border-radius: 15px;
  overflow: hidden;
  display: block;
  background: var(--bg-1);
}
.screen-shot {
  width: 100%; height: auto;
  display: block;
}
.t-side {
  width: 33%;
  min-width: 92px;
  background: rgba(0,0,0,0.18);
  border-right: 1px solid var(--line);
  padding: 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.t-logo { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.t-nav { display: grid; gap: 7px; margin-top: 6px; }
.t-item { height: 30px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.t-item.active { background: var(--acc-soft); border-color: rgba(34,211,238,0.3); }
.t-avatar { margin-top: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); }
.t-main { flex: 1; min-width: 0; padding: 15px 15px 14px; display: flex; flex-direction: column; }
.t-head h4 { font-size: 16px; }
.t-head p { font-family: var(--mono); font-size: 10.5px; color: var(--acc-bright); margin-top: 3px; }
.t-rows { margin-top: 12px; display: grid; gap: 8px; flex: 1; align-content: start; }
.tablet .app-cta { margin: 12px 0 0; }

/* tablet themed for the ServiceLab (navy) section */
.apps .tablet { background: linear-gradient(160deg, #1a1766, #0a0838); border-color: rgba(129,140,248,0.22); }
.apps .tablet .screen { background: #0a0838; }
.apps .t-side { background: rgba(0,0,0,0.22); border-color: rgba(129,140,248,0.12); }
.apps .t-item { background: rgba(255,255,255,0.04); border-color: rgba(129,140,248,0.12); }
.apps .t-avatar { background: rgba(255,255,255,0.06); border-color: rgba(129,140,248,0.12); }

/* ============================================================
   GENERIC SECTION HEADERS
   ============================================================ */
.sec { padding: clamp(80px, 12vh, 140px) 0; }
.sec-head { max-width: 640px; margin-bottom: clamp(40px, 6vh, 64px); }
.sec-head h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  margin-top: 16px;
}
.sec-head p {
  margin-top: 18px;
  color: var(--tx-mid);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}

/* ============================================================
   APPS SHOWCASE
   ============================================================ */
.apps {
  /* ServiceLab palette — sampled from the logo (deep navy + lavender→periwinkle) */
  --acc:        #6366f1;
  --acc-bright: #9aa3ff;
  --acc-teal:   #c2c6ff;
  --acc-deep:   #4338ca;
  --acc-glow:   rgba(110, 116, 248, 0.45);
  --acc-soft:   rgba(110, 116, 248, 0.13);
  --grad: linear-gradient(160deg, #dfe0fa 0%, #9aa3ff 42%, #5b5cf6 100%);

  border-block: 1px solid rgba(129, 140, 248, 0.16);
  /* bottom fade back to grey; top transition handled by ::before blend */
  background:
    linear-gradient(180deg, var(--bg-0) 0%, rgba(11,14,16,0) 6%, rgba(11,14,16,0) 86%, var(--bg-0) 100%),
    linear-gradient(180deg, #120e50 0%, #0b0840 40%, #070330 72%, #050228 100%);
}
/* clean blend: green/blue easing down through purple into navy */
.apps::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 560px;
  background:
    linear-gradient(180deg,
      rgba(20,210,225,0.11) 0%,
      rgba(56,128,240,0.10) 28%,
      rgba(116,96,250,0.09) 54%,
      rgba(99,102,241,0.04) 76%,
      transparent 100%);
  pointer-events: none;
}
.apps .wrap { position: relative; z-index: 1; }

/* navy card + indigo glows inside the section */
.apps .app-feature {
  background: linear-gradient(160deg, #110d54 0%, #0c0942 100%);
  border-color: rgba(129, 140, 248, 0.18);
}
.apps .app-feature::before {
  background: radial-gradient(circle, rgba(110,116,248,0.20), transparent 65%);
}
.apps .app-top {
  background: linear-gradient(180deg, rgba(110,116,248,0.20), transparent);
}
.apps .phone {
  background: linear-gradient(160deg, #1a1766, #0a0838);
  border-color: rgba(129, 140, 248, 0.22);
}
.apps .phone .screen { background: #0a0838; }
.apps .app-row { background: rgba(255,255,255,0.04); border-color: rgba(129,140,248,0.12); }
.apps .app-row .ic { background: rgba(255,255,255,0.06); }
.apps .app-row .ln i:first-child { background: rgba(154,163,255,0.4); }
.apps .app-row .ln i:last-child { background: rgba(255,255,255,0.12); }
.apps .store { background: #07042a; }

/* real ServiceLab logo in the app icons */
.icon-logo {
  background-image: url('uploads/ServiceLab-clean.png') !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #04022c !important;
}
.icon-logo::after { display: none !important; }

.app-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.app-feature::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(6,182,212,0.13), transparent 65%);
  pointer-events: none;
}
.app-feature .info { position: relative; z-index: 1; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc-teal);
  background: var(--acc-soft);
  border: 1px solid rgba(45,212,191,0.25);
  padding: 6px 12px;
  border-radius: 100px;
}
.app-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc-teal);
  box-shadow: 0 0 0 0 rgba(45,212,191,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,212,191,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(45,212,191,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); }
}
.app-feature .lead {
  display: flex; align-items: center; gap: 18px;
  margin: 24px 0 4px;
}
.app-feature .big-icon {
  width: 76px; height: 76px;
  border-radius: 19px;
  background: var(--grad);
  flex: none;
  position: relative;
  box-shadow: 0 16px 34px -10px var(--acc-glow);
}
.app-feature .big-icon::after {
  content: "";
  position: absolute; inset: 22px;
  border: 3px solid rgba(4,24,29,0.85);
  border-radius: 5px;
}
.app-feature h3 { font-size: clamp(30px, 3.4vw, 42px); }
.app-feature .sub { font-family: var(--mono); font-size: 13px; color: var(--tx-lo); margin-top: 4px; }
.app-feature .desc { color: var(--tx-mid); font-size: 17px; line-height: 1.6; margin-top: 22px; max-width: 34em; }

.app-points { margin-top: 26px; display: grid; gap: 13px; }
.app-points li { list-style: none; display: flex; align-items: flex-start; gap: 12px; color: var(--tx-hi); font-size: 15.5px; }
.app-points .check {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  border-radius: 6px;
  background: var(--acc-soft);
  border: 1px solid rgba(34,211,238,0.3);
  display: grid; place-items: center;
}
.app-points .check::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid var(--acc-bright);
  border-bottom: 2px solid var(--acc-bright);
  transform: rotate(-45deg) translate(1px,-1px);
}
.store-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ios-only {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--tx-lo);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ios-only::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
}
.store {
  display: flex; align-items: center; gap: 10px;
  background: #05080a;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 18px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.store:hover { border-color: var(--acc); transform: translateY(-2px); }
.store .glyph { width: 22px; height: 22px; flex: none; color: var(--tx-hi); }
.store small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--tx-lo); letter-spacing: 0.08em; text-transform: uppercase; }
.store b { font-size: 15px; font-weight: 600; }

.app-feature .visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.app-feature .phone { width: 270px; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px 36px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.feat-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--bg-3);
}
.feat-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acc);
  letter-spacing: 0.1em;
}
.feat-card .ficon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--acc-soft);
  border: 1px solid rgba(34,211,238,0.22);
  margin: 18px 0 22px;
  display: grid; place-items: center;
  color: var(--acc-bright);
}
.feat-card .ficon svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 21px; }
.feat-card p { color: var(--tx-mid); font-size: 15px; line-height: 1.6; margin-top: 12px; }
.feat-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.feat-card:hover::after { transform: scaleX(1); }

/* ============================================================
   ABOUT / MISSION
   ============================================================ */
.about { background: var(--bg-1); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.about-grid .lede-big {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.about-grid .lede-big em { font-style: normal; color: var(--acc-bright); }
.about-body { color: var(--tx-mid); font-size: 17px; line-height: 1.7; display: grid; gap: 18px; }
.principles { margin-top: 34px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.principle .pn { font-family: var(--mono); font-size: 13px; color: var(--acc); }
.principle h4 { font-size: 18px; font-weight: 600; }
.principle p { color: var(--tx-mid); font-size: 14.5px; margin-top: 6px; line-height: 1.6; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.member {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.member:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.member .photo {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, var(--bg-3) 0 9px, var(--bg-2) 9px 18px);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.member .photo span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tx-lo);
  letter-spacing: 0.05em;
}
.member .meta { padding: 16px 8px 8px; }
.member h4 { font-size: 18px; }
.member .role { font-family: var(--mono); font-size: 12px; color: var(--acc-bright); margin-top: 4px; }
.member .bio { color: var(--tx-mid); font-size: 13.5px; margin-top: 10px; line-height: 1.55; }

.join-card {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  gap: 12px;
}
.join-card h4 { font-size: 20px; }
.join-card p { color: var(--tx-mid); font-size: 14px; line-height: 1.55; }
.join-card a { font-family: var(--mono); font-size: 13px; color: var(--acc-bright); display: inline-flex; gap: 8px; align-items: center; }

/* ---------- solo founder feature ---------- */
.founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.2vw, 44px);
  position: relative;
  overflow: hidden;
  max-width: 940px;
}
.founder::before {
  content: "";
  position: absolute;
  top: -30%; left: -8%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--acc-soft), transparent 65%);
  pointer-events: none;
}
.founder-photo {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: repeating-linear-gradient(135deg, var(--bg-3) 0 9px, var(--bg-2) 9px 18px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.founder-photo span { font-family: var(--mono); font-size: 12px; color: var(--tx-lo); letter-spacing: 0.05em; }
.founder-info { position: relative; z-index: 1; }
.founder-info .app-badge { margin-bottom: 18px; }
.founder-info h3 { font-size: clamp(26px, 3vw, 36px); }
.founder-role { font-family: var(--mono); font-size: 13px; color: var(--acc-bright); margin-top: 8px; }
.founder-bio { color: var(--tx-mid); font-size: 16px; line-height: 1.65; margin-top: 18px; max-width: 42em; }
.founder-links { margin-top: 26px; display: flex; gap: 22px; align-items: center; }
.founder-links a {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--tx-hi);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s var(--ease);
}
.founder-links a:hover { color: var(--acc-bright); }
.founder-links .arrow { transition: transform .25s var(--ease); }
.founder-links a:hover .arrow { transform: translateX(3px); }

@media (max-width: 720px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 260px; margin-inline: auto; }
  .founder-info { text-align: center; }
  .founder-info .app-badge { margin-inline: auto; }
  .founder-links { justify-content: center; }
}

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta {
  padding: clamp(80px, 12vh, 150px) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(6,182,212,0.18), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}
.cta h2 { font-size: clamp(36px, 5.5vw, 70px); }
.cta h2 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta p { color: var(--tx-mid); font-size: clamp(16px,1.5vw,19px); margin-top: 22px; line-height: 1.6; }
.cta-actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 64px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .brand { margin-bottom: 18px; }
.footer .blurb { color: var(--tx-mid); font-size: 14.5px; line-height: 1.6; max-width: 26em; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tx-lo);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a { display: block; color: var(--tx-mid); font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--acc-bright); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--tx-lo);
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--tx-mid);
  transition: border-color .2s, color .2s, transform .2s;
}
.footer-bottom .socials a:hover { border-color: var(--acc); color: var(--acc-bright); transform: translateY(-2px); }
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* large desktop — widen the canvas a touch */
@media (min-width: 1500px) {
  :root { --maxw: 1320px; }
}

/* tablets / small laptops */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .lang-toggle { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .hero .lede, .hero-meta { margin-left: auto; margin-right: auto; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual .tablet { max-width: 440px; }
  .app-feature { grid-template-columns: 1fr; }
  .app-feature .visual { margin-top: 10px; }
  .about-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* small tablets / large phones */
@media (max-width: 680px) {
  .feat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 260px; margin-inline: auto; }
  .founder-info { text-align: center; }
  .founder-info .app-badge { margin-inline: auto; }
  .founder-links { justify-content: center; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* phones */
@media (max-width: 520px) {
  .nav-cta .btn-primary { display: none; }
  .brand { font-size: 15px; gap: 9px; }
  .brand .mark { height: 26px; }
  .sec { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .app-feature .lead { flex-wrap: wrap; gap: 14px; }
  .store-row { width: 100%; }
  .store { flex: 1 1 auto; justify-content: center; }
}

/* very small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .app-badge { font-size: 11px; }
  .lang-toggle.mobile button { font-size: 13px; }
}

/* short landscape — keep hero from overflowing the viewport */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: 110px; padding-bottom: 50px; }
}

/* ============================================================
   LEGAL PAGES (Impressum · Datenschutz · AGB)
   ============================================================ */
.legal-hero {
  padding: 150px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--acc-soft) 0%, transparent 55%),
    var(--bg-0);
}
.legal-hero .kicker { display: block; margin-bottom: 16px; }
.legal-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.03em;
}
.legal-hero .legal-sub {
  color: var(--tx-mid);
  margin-top: 16px;
  max-width: 60ch;
  font-size: 16px;
}
.legal-hero .legal-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tx-lo);
  margin-top: 22px;
  letter-spacing: 0.04em;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding: 56px 0 90px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-nav .legal-nav-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tx-lo);
  margin-bottom: 12px;
}
.legal-nav a {
  font-size: 15px;
  color: var(--tx-mid);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.legal-nav a:hover { color: var(--tx-hi); background: var(--bg-2); }
.legal-nav a.active {
  color: var(--acc-bright);
  background: var(--acc-soft);
  border-left-color: var(--acc);
}

.legal-main { min-width: 0; max-width: 760px; }

.legal-section { scroll-margin-top: 96px; }
.legal-section + .legal-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.legal-section > h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.legal-section > .legal-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--acc-bright);
  margin-bottom: 28px;
}

/* prose */
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 34px 0 10px;
  color: var(--tx-hi);
  letter-spacing: -0.01em;
}
.prose h3:first-child { margin-top: 0; }
.prose h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 22px 0 6px;
  color: var(--tx-hi);
}
.prose p, .prose li {
  color: var(--tx-mid);
  font-size: 15.5px;
  line-height: 1.72;
}
.prose p { margin: 0 0 14px; }
.prose a { color: var(--acc-bright); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--acc); }
.prose strong { color: var(--tx-hi); font-weight: 600; }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
}
.prose address {
  font-style: normal;
  color: var(--tx-hi);
  line-height: 1.7;
  font-size: 15.5px;
}

/* placeholder fields the owner must fill in */
.fill {
  color: var(--acc-bright);
  background: var(--acc-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 0.86em;
  white-space: nowrap;
}

.legal-note {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--tx-lo);
  line-height: 1.65;
}
.legal-note strong { color: var(--tx-mid); }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; }
  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .legal-nav .legal-nav-label { width: 100%; margin-bottom: 4px; }
  .legal-nav a { border-left: none; border: 1px solid var(--line); }
  .legal-nav a.active { border-color: var(--acc); }
}
