/* Pitch-Showrooms portal. Dark, cinematic, one stylesheet, no framework. */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07090d;
  --bg2: #0c1017;
  --panel: rgba(255, 255, 255, 0.045);
  --panel2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.18);
  --text: #eef1f5;
  --muted: #9aa4b2;
  --dim: #808a99;
  --gold1: #ffd27a;
  --gold2: #ff7a45;
  --teal: #5fe3cf;
  --teal2: #2bb6a3;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 22px;
  --wrap: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold1); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold1); color: #111; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grad {
  background: linear-gradient(100deg, var(--gold1) 0%, #ffab5e 45%, var(--gold2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; font-size: 17px; }
.brand svg { width: 28px; height: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav li a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s, background .2s;
}
.nav li a:hover, .nav li a.active { color: var(--text); background: var(--panel2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  padding: 120px 0 120px;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; background: #0b0d10; }
.kb {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 2.2s ease;
  will-change: opacity, transform;
}
.kb.is-on { opacity: 1; animation: kenburns 14s linear forwards; }
.kb:nth-child(2n).is-on { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); } }
@keyframes kenburns2 { from { transform: scale(1.16) translate3d(2%, 1%, 0); } to { transform: scale(1.04) translate3d(0, 0, 0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .94) 0%, rgba(7, 9, 13, .78) 38%, rgba(7, 9, 13, .25) 70%, rgba(7, 9, 13, .35) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, 0) 22%, rgba(7, 9, 13, 0) 65%, var(--bg) 100%);
}
.hero-shade::after { /* film grain */
  content: ''; position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%;
  left: var(--gx, 30%); top: var(--gy, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 170, 90, .16) 0%, rgba(255, 140, 60, .05) 35%, transparent 65%);
  pointer-events: none; transition: left .8s var(--ease), top .8s var(--ease);
}
.hero-in { position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--line2); border-radius: 999px; background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 600; color: #dfe4ea; letter-spacing: .01em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero h1 {
  margin-top: 26px; font-size: clamp(42px, min(7.4vw, 11.5vh), 96px); font-weight: 800; letter-spacing: -0.045em; line-height: .98;
}
.lead { margin-top: 26px; max-width: 590px; font-size: clamp(17px, 1.6vw, 20px); color: #c9d0d9; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: #1a0f05;
  background: linear-gradient(100deg, var(--gold1), #ffa95a 55%, var(--gold2));
  box-shadow: 0 10px 40px -10px rgba(255, 140, 60, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(255, 140, 60, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { color: var(--text); border: 1px solid var(--line2); background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 56px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.stats dd { margin: 0; font-size: 40px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats dd.small { font-size: 17px; line-height: 1.15; letter-spacing: -0.01em; padding-top: 4px; font-weight: 700; }

.lms-card {
  position: absolute; right: max(var(--gutter), (100% - var(--wrap)) / 2); bottom: 110px; width: 290px;
  padding: 18px 20px 16px; border-radius: 18px;
  background: rgba(12, 16, 22, .58); border: 1px solid var(--line2);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.lms-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; color: #dfe4ea; letter-spacing: .02em; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.lms-lines { margin-top: 12px; display: grid; gap: 2px; }
.lms-lines li {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted);
}
.lms-lines li b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.lms-lines b.ok { color: var(--ok); }
.lms-lines b.warn { color: var(--warn); }
.js .lms-lines li { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .lms-lines li.on { opacity: 1; transform: none; }
.lms-foot { margin-top: 8px; font-size: 12px; color: var(--dim); }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 2s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 104px 0; }
/* Ambient light behind sections */
#raeume::before, #qualitaet::before, #koennen::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; width: 900px; height: 700px; border-radius: 50%; filter: blur(20px);
}
#raeume::before { left: -300px; top: 80px; background: radial-gradient(closest-side, rgba(255, 150, 70, .07), transparent); }
#qualitaet::before { right: -300px; top: 200px; background: radial-gradient(closest-side, rgba(95, 227, 207, .06), transparent); }
#koennen::before { left: 20%; top: 0; background: radial-gradient(closest-side, rgba(120, 170, 255, .06), transparent); }
main { position: relative; z-index: 0; overflow-x: clip; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 180, 90, .05), rgba(95, 227, 207, .04));
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: rgba(238, 241, 245, .82);
}
.marquee span::after { content: ''; width: 9px; height: 9px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold1), var(--gold2)); border-radius: 2px; }
.marquee span:nth-child(even) { color: rgba(238, 241, 245, .45); }
@keyframes marquee { to { transform: translateX(-50%); } }
.sec-head.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head-row > div:first-child { max-width: 780px; }
.gal-nav { display: flex; gap: 10px; flex: none; }
.gal-btn {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: var(--panel); border: 1px solid var(--line2); transition: background .2s, transform .2s var(--ease);
}
.gal-btn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.gal-btn svg { width: 20px; height: 20px; }
.sec-head { max-width: 900px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold1);
}
.sec-head h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 780; letter-spacing: -0.04em; text-wrap: balance; }
.sec-lead { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 680px; }
.sec-lead a { color: var(--text); text-decoration-color: var(--gold2); text-underline-offset: 3px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
#tierChips { padding-right: 22px; border-right: 1px solid var(--line); }
.chip {
  appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  font: inherit; font-size: 14.5px; font-weight: 550; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease);
  min-height: 40px;
}
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip[aria-pressed="true"] { color: #10141a; background: #f2f4f7; border-color: #f2f4f7; }
.chip[data-tier="hq"][aria-pressed="true"] { background: linear-gradient(100deg, var(--gold1), var(--gold2)); border-color: transparent; color: #1a0f05; }
.chip[data-tier="standard"][aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #052621; }
.chip .count { margin-left: 6px; opacity: .6; font-variant-numeric: tabular-nums; }
.filter-status { min-height: 1.6em; margin-bottom: 18px; font-size: 14px; color: var(--dim); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  border: 1px solid var(--line);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s var(--ease), opacity .45s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
}
.card.tilting { transition: transform .08s linear, border-color .3s, box-shadow .4s var(--ease); }
.card:hover { border-color: var(--line2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .08) inset; }
.card.is-hq { border-color: rgba(255, 190, 110, .28); }
.card.is-hq::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(140deg, rgba(255, 210, 122, .7), rgba(255, 122, 69, .15) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 170, 90, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card.featured { grid-column: span 2; }
.card.featured .card-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 340px; }
@media (min-width: 1100px) {
  .card.featured { flex-direction: row; grid-column: span 3; }
  .card.featured .card-media { flex: 1.45 1 0; min-height: 440px; }
  .card.featured .card-body { flex: 1 1 0; padding: 36px 36px 32px; justify-content: center; }
  .card.featured .card-title { font-size: 34px; }
}
.card.filtered-out { display: none; }
.card.entering { animation: cardIn .55s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #11151b; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .9s ease; }
.card:hover .card-media img.cur { transform: scale(1.07); }
.card-media img.next { opacity: 0; }
.card-media img.next.show { opacity: 1; }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 13, 0) 55%, rgba(7, 9, 13, .55)); pointer-events: none; }
.card-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 45%);
}
.card:hover .card-shine { opacity: 1; }
.card-badges { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}
.badge-hq { color: #1a0f05; background: linear-gradient(100deg, var(--gold1), var(--gold2)); box-shadow: 0 6px 20px -6px rgba(255, 140, 60, .7); }
.badge-std { color: #052621; background: var(--teal); }
.badge-soon { color: #e9eef5; background: rgba(20, 24, 31, .7); border: 1px solid var(--line2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge-extra { color: #f3f5f8; background: rgba(10, 12, 16, .6); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 650; letter-spacing: .02em; text-transform: none; }
.badge-auto { color: #e8f4ff; background: rgba(120, 170, 255, .16); border: 1px solid rgba(140, 180, 255, .35); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 550; }
.card-ind { display: inline-flex; align-items: center; gap: 7px; }
.card-ind::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--ind, var(--teal)); }
.card-dur { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.card-dur svg { width: 14px; height: 14px; }
.card-title { margin-top: 12px; font-size: 23px; font-weight: 730; letter-spacing: -0.025em; }
.card-company { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.card-company b { color: #dfe4ea; font-weight: 600; }
.card-sum { margin-top: 14px; font-size: 15.5px; color: #c4cbd5; line-height: 1.55; }
.card-goals { margin-top: 16px; display: grid; gap: 8px; }
.card-goals li { position: relative; padding-left: 24px; font-size: 14.5px; color: #b5bdc8; line-height: 1.45; }
.card-goals li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(95, 227, 207, .14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%235fe3cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 15px no-repeat;
}
.is-hq .card-goals li::before { background-color: rgba(255, 190, 110, .14); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23ffc27a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.card-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.card .btn-open { color: var(--text); background: rgba(255, 255, 255, .08); border: 1px solid var(--line2); }
.card .btn-open:hover { background: #f2f4f7; color: #10141a; border-color: #f2f4f7; transform: translateY(-1px); }
.card.is-hq .btn-open { color: #1a0f05; background: linear-gradient(100deg, var(--gold1), var(--gold2)); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(255, 140, 60, .7); }
.card.is-hq .btn-open:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(255, 140, 60, .9); }
.card-host { font-size: 12.5px; color: var(--dim); overflow-wrap: anywhere; }

/* Coming soon card */
.card.soon .card-media { display: grid; place-items: center; background: #0d1015; }
.soon-art { position: absolute; inset: 0; overflow: hidden; }
.soon-art::before {
  content: ''; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(95, 227, 207, .0), rgba(95, 227, 207, .25), rgba(255, 210, 122, .25), rgba(255, 122, 69, .0) 60%, rgba(95, 227, 207, 0));
  filter: blur(40px); animation: spin 14s linear infinite;
}
.soon-art::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.soon-icon { position: relative; z-index: 1; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 26px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.soon-icon svg { width: 46px; height: 46px; stroke: #e9eef5; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.soon-note { font-size: 14px; color: var(--muted); }

.footnote { margin-top: 26px; font-size: 13.5px; color: var(--dim); }

/* ---------- Compare ---------- */
.compare-sec { padding-top: 60px; }
.compare {
  position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9;
  border: 1px solid var(--line2); background: #11151b; user-select: none; -webkit-user-select: none;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03);
  touch-action: pan-y;
}
.compare > img, .compare-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 20px rgba(0, 0, 0, .5); pointer-events: none; }
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(15, 18, 24, .55); border: 2px solid #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cmp-handle span::before, .cmp-handle span::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; margin-top: -7px; }
.cmp-handle span::before { left: 7px; border-right-color: #fff; }
.cmp-handle span::after { right: 7px; border-left-color: #fff; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare input[type="range"]:focus-visible ~ .cmp-handle span, .compare:focus-within .cmp-handle span { outline: 3px solid var(--gold1); outline-offset: 3px; }
.cmp-label {
  position: absolute; top: 18px; z-index: 1; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
}
.cmp-l { left: 18px; color: #1a0f05; background: linear-gradient(100deg, var(--gold1), var(--gold2)); }
.cmp-r { right: 18px; color: #052621; background: var(--teal); }
.compare figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; font-size: 14px; color: #d5dbe3; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 10, .8));
}

/* ---------- Quality tiers ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tier {
  position: relative; padding: 34px 34px 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line);
}
.tier::after { content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.tier-std::after { background: radial-gradient(circle, rgba(95, 227, 207, .16), transparent 65%); }
.tier-hq::after { background: radial-gradient(circle, rgba(255, 170, 90, .2), transparent 65%); }
.tier-hq { border-color: rgba(255, 190, 110, .3); }
.tier h3 { margin-top: 18px; font-size: 28px; font-weight: 750; }
.tier > p:not(.badge):not(.fit) { margin-top: 12px; color: var(--muted); }
.ticks { margin-top: 22px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: #d3d9e1; font-size: 16px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(95, 227, 207, .15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%235fe3cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 18px no-repeat;
}
.tier-hq .ticks li::before { background-color: rgba(255, 190, 110, .15); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23ffc27a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.fit { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.fit b { color: var(--text); }

.auto {
  margin-top: 22px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
  padding: 38px; border-radius: var(--radius); border: 1px solid rgba(140, 180, 255, .2);
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(120, 170, 255, .1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}
.auto h3 { margin-top: 18px; font-size: 28px; font-weight: 750; }
.auto-text > p:not(.badge) { margin-top: 12px; color: var(--muted); }
.steps { margin-top: 24px; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding-left: 46px; display: grid; gap: 2px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 750; font-size: 14px; color: #dbe8ff; background: rgba(120, 170, 255, .14); border: 1px solid rgba(140, 180, 255, .3);
}
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 15px; }
.ladder { display: grid; gap: 14px; }
.rung { display: grid; grid-template-columns: 74px 1fr; gap: 6px 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.rung-name { font-weight: 750; font-size: 15px; }
.rung-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rung-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.4s var(--ease) .2s; }
.ladder.in .rung-bar i { width: var(--w); }
.rung-high .rung-bar i { background: linear-gradient(90deg, var(--gold1), var(--gold2)); }
.rung-mid .rung-bar i { background: linear-gradient(90deg, #9ec5ff, #6f9dff); }
.rung-low .rung-bar i { background: linear-gradient(90deg, #8be8d9, var(--teal2)); }
.rung-dev { grid-column: 2; font-size: 14px; color: var(--muted); }
.ladder-note { font-size: 13px; color: var(--dim); }

/* ---------- Devices ---------- */
.table-wrap { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, .025); }
.devices { width: 100%; border-collapse: collapse; font-size: 15px; }
.devices th, .devices td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.devices thead th { border-top: 0; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); font-weight: 600; }
.devices thead th:first-child { width: 36%; }
.devices tbody th { font-weight: 600; color: var(--text); }
.devices tbody th small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--dim); }
.devices td { color: #c3cad4; }
.devices tbody tr { transition: background .2s; }
.devices tbody tr:hover { background: rgba(255, 255, 255, .03); }
i.y, i.m, i.n { display: inline-block; width: 22px; height: 22px; margin-right: 10px; vertical-align: -6px; border-radius: 50%; flex: none; background-position: center; background-repeat: no-repeat; background-size: 14px; }
i.y { background-color: rgba(74, 222, 128, .16); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.4l2.9 2.9 6-6.4' fill='none' stroke='%234ade80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
i.m { background-color: rgba(251, 191, 36, .16); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 9.2c1.6-2.4 3.4-2.4 5 0s3.4 2.4 5 0' fill='none' stroke='%23fbbf24' stroke-width='2.2' stroke-linecap='round'/></svg>"); }
i.n { background-color: rgba(248, 113, 113, .16); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 4.5l7 7m0-7-7 7' fill='none' stroke='%23f87171' stroke-width='2.2' stroke-linecap='round'/></svg>"); }
.devices td { position: relative; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; }
.rule-of-thumb { margin-top: 28px; padding: 20px 24px; border-radius: 16px; border-left: 3px solid var(--gold1); background: rgba(255, 200, 110, .06); color: #d6dce4; }

/* ---------- Gallery ---------- */
.gallery-sec { padding-bottom: 80px; }
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  padding: 4px max(var(--gutter), (100% - var(--wrap)) / 2) 22px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.gallery figure { flex: 0 0 min(540px, 82vw); margin: 0; scroll-snap-align: start; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #11151b; position: relative; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 14px; font-weight: 550; background: linear-gradient(180deg, transparent, rgba(5, 7, 10, .85)); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.features li { padding: 26px 24px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.features li:hover { border-color: var(--line2); transform: translateY(-3px); }
.features svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; fill: none; stroke: var(--gold1); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: rgba(255, 200, 110, .1); border: 1px solid rgba(255, 200, 110, .22); }
.features h3 { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.features p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.flow { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.flow li { position: relative; padding: 26px 28px 26px 84px; display: grid; gap: 3px; background: rgba(255, 255, 255, .025); }
.flow li + li { border-left: 1px solid var(--line); }
.flow .n { position: absolute; left: 26px; top: 26px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #1a0f05; background: linear-gradient(120deg, var(--gold1), var(--gold2)); }
.flow b { font-size: 16.5px; }
.flow li > span:last-child { color: var(--muted); font-size: 14.5px; }

/* ---------- Tips ---------- */
.tips-sec { padding-top: 0; }
.tips { padding: 34px 36px; border-radius: var(--radius); border: 1px dashed var(--line2); background: rgba(255, 255, 255, .02); }
.tips h2 { font-size: 22px; font-weight: 720; }
.tips ul { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.tips li { color: var(--muted); font-size: 15.5px; padding-left: 18px; position: relative; }
.tips li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold1); }
.tips b { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.brand.small { font-size: 15px; color: var(--muted); }
.brand.small svg { width: 22px; height: 22px; }
.fict { color: var(--muted); font-size: 14.5px; }
.foot-links { color: var(--dim); font-size: 14px; }
.foot-links a { color: var(--muted); text-underline-offset: 3px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lms-card { display: none; }
  .auto { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .tips ul { grid-template-columns: 1fr; }
  #tierChips { border-right: 0; padding-right: 0; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; --radius: 18px; }
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 104px 0 96px; align-items: flex-end; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, .55) 40%, rgba(7, 9, 13, .9) 75%, var(--bg) 100%); }
  .hero h1 { font-size: min(8.7vw, 52px); }
  .stats { gap: 14px 28px; margin-top: 40px; }
  .stats dd { font-size: 32px; }
  .btn { width: 100%; justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; }
  .card.featured .card-media { min-height: 0; aspect-ratio: 16 / 9; }
  .card-body { padding: 20px 20px 22px; }
  .card .btn { width: auto; }
  .features { grid-template-columns: 1fr; }
  .tier, .auto, .tips { padding: 26px 22px; }
  .rung { grid-template-columns: 64px 1fr; padding: 14px; }
  .compare { aspect-ratio: 4 / 3; border-radius: 18px; }
  .compare figcaption { font-size: 12.5px; padding: 30px 14px 10px; }
  .cmp-label { top: 12px; font-size: 11px; padding: 5px 10px; }
  .cmp-l { left: 12px; } .cmp-r { right: 12px; }
  .scroll-hint { display: none; }
  .gal-nav { display: none; }
  .kicker { font-size: 12px; padding: 6px 12px 6px 10px; }
  .compare figcaption { display: none; }
  .badge-extra { display: none; }
  .filters { display: block; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  #tierChips { margin-bottom: 6px; }
  /* Device table becomes stacked cards */
  .devices thead { display: none; }
  .devices, .devices tbody, .devices tr, .devices th, .devices td { display: block; width: 100%; }
  .devices tr { padding: 16px 18px; border-top: 1px solid var(--line); }
  .devices tr:first-child { border-top: 0; }
  .devices th, .devices td { padding: 0; border: 0; }
  .devices td { margin-top: 10px; display: flex; align-items: flex-start; }
  .devices td::before { content: attr(data-label); flex: 0 0 104px; font-size: 11.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; padding-top: 3px; }
  .devices td:nth-child(2)::before { color: var(--teal); }
  .devices td:nth-child(3)::before { color: var(--gold1); }
  .devices td i { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .kb.is-on { animation: none; transform: scale(1.04); }
  .js .reveal { opacity: 1; transform: none; }
}
