/* ═══════════════════════════════════════════════════════════
   DirRock landing page — styles.css
   Stone-on-deep-black theme, mirrored from the app's identity.
   ═══════════════════════════════════════════════════════════ */

/* ── Self-hosted variable fonts (no external requests) ────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/InterVariable.woff2') format('woff2-variations'),
       url('../assets/fonts/InterVariable.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../assets/fonts/JetBrainsMono.woff2') format('woff2-variations'),
       url('../assets/fonts/JetBrainsMono.woff2') format('woff2');
}

:root {
  /* Brand */
  --stone:        #c5c7c8;
  --stone-bright: #dcdedf;
  --stone-dim:    rgba(197, 199, 200, 0.20);
  --stone-glow:   rgba(197, 199, 200, 0.08);

  /* Surfaces */
  --bg-0: #07080b;
  --bg-1: #0d0f14;
  --bg-2: #14171e;
  --bg-3: #1c2029;
  --bg-card: rgba(28, 32, 41, 0.6);
  --line:   rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);

  /* Type */
  --fg-0: #f0f1f3;
  --fg-1: #c8cbd1;
  --fg-2: #8a8e98;
  --fg-3: #5a5e68;

  /* Sizing */
  --container: 1240px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;

  /* Type scale */
  --fs-display: clamp(3rem, 7.5vw, 6.25rem);
  --fs-h2:      clamp(2rem,  4vw,  3.25rem);
  --fs-h3:      clamp(1.5rem, 2.6vw, 2.125rem);
  --fs-h4:      1.0625rem;
  --fs-body:    1.0625rem;
  --fs-lg:      1.1875rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.65, 0.2, 1);
  --t-fast: 180ms;
  --t-med:  320ms;
  --t-slow: 700ms;
}

/* ═══════════════════════════════════════════════════════════
   Reset & base
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg-1);
  background: var(--bg-0);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

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

a {
  color: var(--stone-bright);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--fg-0); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--fg-0);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
}

h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; font-weight: 600; line-height: 1.3; }

p  { margin: 0; color: var(--fg-1); }

::selection { background: var(--stone); color: var(--bg-0); }

/* Subtle grain overlay site-wide */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

/* ═══════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--stone);
  color: var(--bg-0);
  border-color: var(--stone);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 10px 30px -8px rgba(197, 199, 200, 0.4);
}
.btn--primary:hover {
  background: var(--stone-bright);
  border-color: var(--stone-bright);
  color: var(--bg-0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 16px 40px -10px rgba(197, 199, 200, 0.5);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-0);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--stone-dim);
  color: var(--fg-0);
}

/* ═══════════════════════════════════════════════════════════
   Nav
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              backdrop-filter var(--t-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 8, 11, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-0);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__brand:hover { color: var(--fg-0); }
.nav__brand img { width: 32px; height: 32px; }

.nav__brand-text { font-size: 1.0625rem; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: var(--fs-sm);
}
.nav__links a { color: var(--fg-1); }
.nav__links a:hover { color: var(--fg-0); }

.nav__cta { padding: 10px 16px; font-size: var(--fs-sm); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 168px 0 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.hero__glow--1 {
  width: 560px; height: 560px;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(197, 199, 200, 0.16), transparent 65%);
}
.hero__glow--2 {
  width: 720px; height: 720px;
  bottom: -300px; right: -240px;
  background: radial-gradient(circle, rgba(110, 144, 200, 0.10), transparent 65%);
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 980px;
}

.hero__logo-wrap {
  display: inline-flex;
  margin-bottom: 28px;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.6))
          drop-shadow(0 4px 12px rgba(197, 199, 200, 0.25));
  animation: float 6s var(--ease-out) infinite;
}
.hero__logo {
  width: clamp(108px, 14vw, 160px);
  height: clamp(108px, 14vw, 160px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 0%, var(--stone) 60%, #8b8e94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}

.hero__tagline {
  font-size: clamp(1.125rem, 1.75vw, 1.5rem);
  color: var(--fg-1);
  max-width: 720px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.45;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-sm);
  color: var(--fg-2);
  flex-wrap: wrap;
  justify-content: center;
}
.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--fg-3);
}

.hero__preview {
  margin-top: 80px;
  padding-inline: 28px;
  max-width: var(--container);
  margin-inline: auto;
}

.hero__preview-frame {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 8px;
  border: 1px solid var(--line-2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 60px 120px -40px rgba(0, 0, 0, 0.8),
    0 30px 60px -30px rgba(197, 199, 200, 0.15);
}
.hero__preview-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero__preview-frame img {
  width: 100%;
  border-radius: calc(var(--r-xl) - 7px);
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   Strip
   ═══════════════════════════════════════════════════════════ */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
  background: linear-gradient(180deg, transparent, rgba(197, 199, 200, 0.02), transparent);
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.strip__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline: 8px;
  border-left: 1px solid var(--line-2);
}
.strip__item:first-child { border-left: none; }

.strip__num {
  font-size: clamp(2rem, 3vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg-0);
  font-family: 'JetBrains Mono', 'Inter', sans-serif;
  line-height: 1;
}

.strip__label {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: 1.35;
}

@media (max-width: 760px) {
  .strip__inner { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .strip__item:nth-child(3) { border-left: none; }
}

/* ═══════════════════════════════════════════════════════════
   Section header
   ═══════════════════════════════════════════════════════════ */

.section-header {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--stone-glow);
  border: 1px solid var(--stone-dim);
}

.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: var(--fs-lg);
  color: var(--fg-2);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   Features
   ═══════════════════════════════════════════════════════════ */

.features {
  padding: 140px 0 80px;
  position: relative;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto 140px;
  padding-inline: 28px;
  position: relative;
}

.feature--reverse .feature__copy { order: 2; }
.feature--reverse .feature__media { order: 1; }

.feature__step {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-bottom: 22px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--stone-glow);
  border: 1px solid var(--stone-dim);
  text-transform: uppercase;
}

.feature h3 { margin-bottom: 22px; }

.feature__copy > p {
  font-size: var(--fs-lg);
  color: var(--fg-1);
  margin-bottom: 28px;
  line-height: 1.55;
}

.feature__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--fg-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.feature__bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 1.5px;
  background: var(--stone);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--stone-glow);
}

.feature__media {
  position: relative;
}

.screenshot {
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.8),
    0 14px 30px -16px rgba(0, 0, 0, 0.7);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
  cursor: zoom-in;
}
.screenshot:hover {
  transform: translateY(-4px);
  border-color: var(--stone-dim);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 20px 40px -20px rgba(197, 199, 200, 0.20);
}

.screenshot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
}

.screenshot img {
  width: 100%;
  display: block;
}

.screenshot--narrow img {
  max-height: 460px;
  object-fit: contain;
  background: #000;
}

@media (max-width: 940px) {
  .feature { grid-template-columns: 1fr; gap: 36px; margin-bottom: 88px; }
  .feature--reverse .feature__copy { order: 1; }
  .feature--reverse .feature__media { order: 2; }
}

/* ═══════════════════════════════════════════════════════════
   Specs
   ═══════════════════════════════════════════════════════════ */

.specs {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(197, 199, 200, 0.04), transparent 70%),
    var(--bg-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.spec {
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out);
}
.spec:hover {
  border-color: var(--stone-dim);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.spec__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--stone-glow);
  border: 1px solid var(--stone-dim);
  color: var(--stone);
  margin-bottom: 18px;
}
.spec__icon svg { width: 22px; height: 22px; }

.spec h4 { color: var(--fg-0); margin-bottom: 8px; }
.spec p  { color: var(--fg-2); font-size: var(--fs-sm); line-height: 1.55; }

@media (max-width: 880px) {
  .specs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .specs__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Download
   ═══════════════════════════════════════════════════════════ */

.download {
  padding: 120px 0 140px;
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(197, 199, 200, 0.06), transparent 70%);
}

.download__inner { max-width: 1080px; margin: 0 auto; }

.download__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}

.download__grid--single {
  grid-template-columns: 1fr;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.download-card {
  display: block;
  padding: 36px 32px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  color: var(--fg-1);
  transition: all var(--t-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.download-card:hover {
  border-color: var(--stone-dim);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  color: var(--fg-1);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7),
              0 20px 40px -20px rgba(197, 199, 200, 0.10);
}

.download-card--primary {
  background: linear-gradient(180deg, rgba(197, 199, 200, 0.10), rgba(197, 199, 200, 0.02));
  border-color: var(--stone-dim);
}
.download-card--primary:hover {
  background: linear-gradient(180deg, rgba(197, 199, 200, 0.16), rgba(197, 199, 200, 0.04));
  border-color: var(--stone);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7),
              0 20px 40px -20px rgba(197, 199, 200, 0.30);
}

.download-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--stone-glow);
  border: 1px solid var(--stone-dim);
  color: var(--stone);
  margin-bottom: 20px;
}
.download-card--primary .download-card__icon {
  background: var(--stone);
  color: var(--bg-0);
  border-color: var(--stone);
  box-shadow: 0 8px 24px -8px rgba(197, 199, 200, 0.5);
}

.download-card h4 {
  color: var(--fg-0);
  font-size: 1.375rem;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.download-card p {
  color: var(--fg-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin-bottom: 22px;
}

.download-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--stone-bright);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

.download__fineprint {
  text-align: center;
  margin-top: 40px;
  font-size: var(--fs-sm);
  color: var(--fg-3);
}

.download__deeplink {
  text-align: center;
  margin-top: 18px;
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.download__deeplink a {
  color: var(--stone-bright);
  margin-left: 6px;
  font-weight: 500;
  border-bottom: 1px solid var(--stone-dim);
  padding-bottom: 1px;
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.download__deeplink a:hover {
  color: var(--fg-0);
  border-bottom-color: var(--stone);
}

.download__promises {
  list-style: none;
  margin: 56px auto 0;
  padding: 28px 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 880px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(197, 199, 200, 0.04), rgba(197, 199, 200, 0.01));
}

.download__promises li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stone-dim);
  color: var(--fg-0);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.download__promise-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone);
  box-shadow: 0 0 12px var(--stone-glow);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .download__grid { grid-template-columns: 1fr; }
  .download__promises {
    padding: 22px 18px;
    gap: 10px;
  }
  .download__promises li { padding: 8px 16px; font-size: var(--fs-xs); }
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--bg-0);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand-name {
  color: var(--fg-0);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer__brand-meta {
  font-size: var(--fs-xs);
  color: var(--fg-3);
  margin-top: 2px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
}
.footer__links a { color: var(--fg-2); }
.footer__links a:hover { color: var(--fg-0); }

/* ═══════════════════════════════════════════════════════════
   Lightbox
   ═══════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  padding: 32px;
  animation: fadeIn 200ms var(--ease-out);
}
.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.95);
  cursor: zoom-out;
}

.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  color: var(--fg-0);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--stone-dim);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   Reveal animations
   ═══════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ═══════════════════════════════════════════════════════════
   Privacy page (shared)
   ═══════════════════════════════════════════════════════════ */

.legal {
  padding: 168px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.legal__lead {
  color: var(--fg-2);
  font-size: var(--fs-lg);
  margin-bottom: 56px;
}
.legal h2 {
  font-size: 1.625rem;
  margin: 56px 0 16px;
  letter-spacing: -0.015em;
}
.legal p { margin-bottom: 16px; line-height: 1.65; color: var(--fg-1); }
.legal ul { color: var(--fg-1); padding-left: 22px; line-height: 1.65; }
.legal li { margin-bottom: 6px; }
.legal code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--stone-bright);
}
.legal a { text-decoration: underline; text-underline-offset: 3px; }

.legal__meta {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--fg-3);
}

/* Eye-catching marker for placeholder text in the Impressum template.
   Once you've replaced every <span class="todo">…</span> with real data,
   this rule still works as a no-op (no .todo elements left to highlight). */
.legal .todo {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 2px;
  border-radius: 4px;
  background: rgba(255, 188, 0, 0.12);
  border: 1px dashed rgba(255, 188, 0, 0.55);
  color: #ffd166;
  font-size: 0.92em;
  font-family: 'JetBrains Mono', monospace;
}
