:root {
  color-scheme: dark;
  --bg: #0b0b14;
  --bg-deep: #07070d;
  --surface: rgba(25, 25, 42, 0.78);
  --surface-strong: #171729;
  --surface-soft: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(227, 0, 11, 0.38);
  --text: #f7f7fb;
  --muted: #adadc2;
  --muted-2: #74748d;
  --red: #e3000b;
  --red-hot: #ff3440;
  --yellow: #ffd166;
  --green: #22c55e;
  --blue: #5db7ff;
  --purple: #9b5cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(227, 0, 11, 0.2), transparent 30%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::selection {
  background: rgba(227, 0, 11, 0.55);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  clip-path: inset(50%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, black 62%, transparent);
}

.orb {
  position: absolute;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.35;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-one {
  top: 7%;
  right: -8%;
  background: var(--red);
}

.orb-two {
  top: 42%;
  left: -12%;
  background: var(--purple);
  animation-delay: -4s;
}

.orb-three {
  bottom: -18%;
  right: 24%;
  background: var(--blue);
  animation-delay: -8s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(255,255,255,0.09), transparent 30%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 13, 0.76);
  border-color: var(--border);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-links,
.nav-actions,
.nav-cta,
.language-toggle {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(227, 0, 11, 0.3);
}

.nav-links {
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  gap: 10px;
  flex-shrink: 0;
}

.language-toggle {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-toggle a {
  min-width: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.language-toggle a:hover,
.language-toggle a.is-active {
  color: white;
  background: rgba(227, 0, 11, 0.72);
}

.nav-links a,
.nav-cta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-cta:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-cta {
  border: 1px solid rgba(227, 0, 11, 0.42);
  background: rgba(227, 0, 11, 0.12);
  color: white;
}

.section,
.section-sm {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 28px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.28fr);
  align-items: center;
  gap: 36px;
  padding-top: 36px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red-hot);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 6vw, 5.7rem);
}

html[lang="de"] h1 {
  font-size: clamp(2.55rem, 5vw, 4.7rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.hero-text,
.section-copy p,
.section-heading p,
.community-card p,
.site-footer p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-text {
  max-width: 640px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.builder-line {
  margin: -4px 0 0;
  color: var(--muted-2);
  font-size: 0.98rem;
  font-weight: 700;
}

.builder-line a,
.community-card a:not(.button),
.site-footer p a {
  color: white;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(227, 0, 11, 0.72);
  text-underline-offset: 4px;
}

.hero-actions,
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 900;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(227, 0, 11, 0.8);
  background: linear-gradient(135deg, var(--red), #ff5b65);
  box-shadow: 0 16px 46px rgba(227, 0, 11, 0.35);
  color: white;
}

.button-primary:hover {
  box-shadow: 0 20px 58px rgba(227, 0, 11, 0.5);
}

.button-ghost {
  background: rgba(255,255,255,0.05);
  color: white;
}

.hero-badges {
  margin-top: 24px;
}

.hero-badges span,
.logo-strip span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-stage {
  position: relative;
  perspective: 1400px;
}

.hero-card,
.screenshot-shot,
.terminal-card,
.community-card,
.phone {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  width: calc(100% + 58px);
  margin-top: -26px;
  margin-left: 26px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  --tilt-base: rotateX(5deg) rotateY(-9deg);
  transform-style: preserve-3d;
}

.hero-card img {
  width: 100%;
  height: auto;
  filter: brightness(1.14) saturate(1.08);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(7, 7, 13, 0.7);
  border-bottom: 1px solid var(--border);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--red-hot);
}

.window-bar span:nth-child(2) {
  background: var(--yellow);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 3px;
  width: min(240px, 48vw);
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: rgba(14, 14, 24, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: float 4s ease-in-out infinite alternate;
}

.floating-card strong {
  color: white;
  font-size: 1.12rem;
  line-height: 1.15;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.floating-card-one {
  top: 12%;
  left: -34px;
}

.floating-card-two {
  right: -18px;
  bottom: 11%;
  animation-delay: -1.8s;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split-section,
.scanner-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.context-section {
  padding-bottom: 72px;
}

.context-grid {
  display: grid;
  gap: 18px;
}

.context-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.context-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.context-card {
  min-height: 230px;
  padding: 26px;
  border-radius: var(--radius-md);
}

.context-card h3 {
  margin-bottom: 12px;
}

.context-card p {
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 0;
}

.context-card code {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #d9f99d;
  font-size: 0.9em;
}

.feature-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.16);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 14%, rgba(227,0,11,0.09), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.035), transparent 52%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 0;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.03));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.055);
}

.feature-card:hover::before {
  opacity: 0.7;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: rgba(227, 0, 11, 0.16);
  font-size: 1.5rem;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.03);
  background: rgba(227, 0, 11, 0.22);
  box-shadow: 0 12px 26px rgba(227, 0, 11, 0.18);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.screenshot-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.screenshot-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.screenshot-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7,7,13,0.72), transparent 38%);
}

.screenshot-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.screenshot-shot:hover img {
  transform: scale(1.04);
}

.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox-trigger:focus-visible {
  outline: 3px solid rgba(255, 52, 64, 0.95);
  outline-offset: -3px;
}

.screenshot-shot figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: white;
  font-weight: 900;
}

.shot-wide {
  grid-column: span 12;
  aspect-ratio: 16 / 8;
}

.shot-crop {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
}

.crop-left img {
  object-position: left center;
}

.crop-center img {
  object-position: center center;
}

.crop-right img {
  object-position: right center;
}

.scanner-section {
  grid-template-columns: 1fr 0.9fr;
}

.phone-stack {
  position: relative;
  min-height: 560px;
}

.phone {
  position: absolute;
  width: min(320px, 70vw);
  min-height: 520px;
  padding: 18px;
  border-radius: 38px;
}

.phone-front {
  left: 32%;
  top: 0;
  background: linear-gradient(160deg, rgba(23,23,41,0.96), rgba(75,10,24,0.86));
}

.phone-back {
  left: 14%;
  top: 58px;
  transform: rotate(-9deg);
  background: rgba(255,255,255,0.05);
}

.scan-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: 340px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(227,0,11,0.18), rgba(0,0,0,0.45));
  border: 1px solid rgba(255,255,255,0.12);
}

.scan-frame img {
  width: 178px;
  border-radius: 14px;
  transform: rotate(-5deg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.scan-line {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 18px var(--green);
  animation: scan 2.4s ease-in-out infinite;
}

.phone-meta {
  display: grid;
  gap: 6px;
  padding: 22px 4px 0;
}

.phone-meta strong {
  font-size: 1.3rem;
}

.phone-meta span,
.check-list {
  color: var(--muted);
}

.phone-card {
  position: relative;
  overflow: hidden;
  height: 280px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 26%, rgba(227,0,11,0.20), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(227,0,11,0.14));
}

.card-preview-stack {
  display: grid;
  place-items: center;
}

.preview-card {
  position: absolute;
  width: 128px;
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(0,0,0,0.42);
}

.preview-card-one {
  left: 42px;
  top: 42px;
  transform: rotate(-12deg);
  z-index: 2;
}

.preview-card-two {
  right: 34px;
  top: 70px;
  transform: rotate(10deg);
  opacity: 0.9;
}

.phone-line {
  width: 78%;
  height: 14px;
  margin: 26px 0 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.phone-line.short {
  width: 48%;
  margin-top: 12px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--green);
  font-weight: 900;
}

.self-hosted-section {
  padding-top: 72px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -14px auto 28px;
  max-width: 820px;
}

.tech-stack span {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.faq-section {
  padding-top: 76px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.faq-card p {
  color: #c4c4d4;
  line-height: 1.68;
  margin-bottom: 0;
}

.terminal-card {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
}

pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
}

code {
  color: #d9f99d;
  font: 700 0.96rem/1.8 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.community-section {
  padding-top: 72px;
}

.community-grid {
  display: grid;
  gap: 18px;
}

.community-build {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 209, 102, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(227,0,11,0.18), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}

.community-kicker {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-build-copy p {
  max-width: 720px;
  margin-bottom: 0;
}

.community-build-copy p + p {
  margin-top: 14px;
}

.community-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.community-steps {
  display: grid;
  gap: 10px;
}

.community-steps span {
  position: relative;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7, 7, 13, 0.34);
  color: #f7f7fb;
  font-weight: 800;
}

.community-steps span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 18px rgba(227, 0, 11, 0.46);
  transform: translateY(-50%);
}

.community-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  text-align: center;
}

.community-action p {
  margin-bottom: 0;
  color: var(--muted);
}

.community-action .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 64px;
  display: grid;
  justify-items: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-main {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
}

.site-footer p {
  max-width: 840px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: min(460px, 100%);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-bottom: 2px;
  color: white;
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--red-hot), rgba(255,255,255,0.65)) bottom center / 0 2px no-repeat;
  transition: color 0.2s ease, transform 0.2s ease, background-size 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff3f4;
  transform: translateY(-2px);
  background-size: 100% 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  --tilt-base: rotateX(0deg) rotateY(0deg);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  transform: perspective(1100px) var(--tilt-base) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, var(--tilt-lift), 0);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.tilt-card.is-tilting {
  transition-duration: 80ms;
}

.reveal.tilt-card {
  transform: perspective(1100px) var(--tilt-base) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, var(--tilt-lift), 0);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 3, 8, 0.86);
  backdrop-filter: blur(18px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  position: relative;
  width: min(1180px, 94vw);
  max-height: 88vh;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(88vh - 54px);
  object-fit: contain;
  background: #05050a;
}

.lightbox-frame figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  border-top: 1px solid var(--border);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 81;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: scale(1.06);
  background: rgba(227, 0, 11, 0.72);
  outline: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, -28px, 0) scale(1.08); }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-16px); }
}

@keyframes scan {
  0%, 100% { top: 22px; opacity: 0.2; }
  45%, 60% { opacity: 1; }
  50% { top: calc(100% - 22px); }
}

@keyframes shimmer {
  from { transform: translateX(-40%); }
  to { transform: translateX(40%); }
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .scanner-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-stage {
    order: -1;
  }

  .hero-card {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    --tilt-base: rotateX(0deg) rotateY(0deg);
  }

  .phone-stack {
    min-height: 520px;
  }

  .phone-front {
    left: 30%;
  }

  .phone-back {
    left: 6%;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .context-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .shot-wide,
  .shot-crop {
    grid-column: span 12;
  }

  .shot-wide {
    aspect-ratio: 4 / 3;
  }

  .floating-card {
    display: none;
  }

  .community-build {
    grid-template-columns: 1fr;
  }

  .community-action {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .community-action .button {
    align-self: flex-start;
  }

  .site-footer {
    padding: 42px 0 54px;
  }

  .footer-links,
  .footer-legal {
    gap: 10px 14px;
  }

  .phone-stack {
    min-height: 500px;
  }

  .phone {
    width: min(300px, 82vw);
  }

  .phone-front {
    left: 18%;
  }

  .phone-back {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .site-footer a:hover,
  .site-footer a:focus-visible {
    transform: none;
  }
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.screenshot-strip figure {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.screenshot-strip figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,13,0.68), transparent 46%);
  pointer-events: none;
}

.screenshot-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.screenshot-strip figure:hover img {
  transform: scale(1.05);
}

.screenshot-strip figcaption {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  font-size: 0.88rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  .screenshot-strip {
    grid-template-columns: 1fr 1fr;
  }
}
