/* DeskRift promo site. Palette is taken from the engine's real output:
   near-black blue void, nebula violet, star cyan, accretion amber. */

:root {
  --void: #04060d;
  --surface: #0b101e;
  --surface-2: #111830;
  --line: rgba(139, 150, 184, 0.16);
  --starlight: #eaf0ff;
  --dim: #97a2c4;
  --nebula: #7b5cff;
  --cyan: #46d4ff;
  --plasma: #ffb347;
  --plasma-deep: #ff8a3d;
  --radius: 14px;
  --pad: clamp(20px, 4vw, 56px);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

::selection { background: rgba(70, 212, 255, 0.3); color: var(--starlight); }

/* themed scrollbar */
html { scrollbar-color: #2a3555 var(--void); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a3555, #1c2440);
  border-radius: 8px;
  border: 2px solid var(--void);
}
::-webkit-scrollbar-thumb:hover { background: #3a4770; }

body {
  background: var(--void);
  color: var(--starlight);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 18px;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(4, 6, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--starlight);
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--dim);
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links a:hover { color: var(--starlight); text-decoration: none; }
.nav-links a.active { color: var(--cyan); }
.nav-links a.btn-primary { color: #221302; font-size: 14.5px; padding: 9px 20px; }
.nav-links a.btn-primary:hover { color: #221302; }

.lang { font-family: var(--mono); font-size: 13px; }

/* burger (mobile) */
.burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: rgba(234, 240, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--starlight);
  transition: transform 0.25s, opacity 0.25s;
}
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* a11y skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--cyan);
  color: var(--starlight);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--plasma), var(--plasma-deep));
  color: #221302;
  box-shadow: 0 8px 30px rgba(255, 138, 61, 0.28);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover { box-shadow: 0 10px 38px rgba(255, 138, 61, 0.42); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--starlight);
  border-color: rgba(234, 240, 255, 0.25);
  background: rgba(234, 240, 255, 0.04);
}
.btn-ghost:hover { background: rgba(234, 240, 255, 0.1); }

.btn small { font-weight: 500; opacity: 0.75; font-size: 12px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-bg::after {
  position: absolute;
  inset: -3.5%;
  z-index: -2;
}
.hero-bg { will-change: transform; }
/* The hero background IS the product: a looped capture of the real engine. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.hero-live-badge {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--plasma);
  background: rgba(4, 6, 13, 0.6);
  border: 1px solid rgba(255, 179, 71, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: reduce) {
  /* site.js pauses the video; the poster frame stays */
}
.hero-bg::after {
  content: "";
  /* The shared rule above gives ::after z-index:-2 — inside .hero-bg's stacking
     context that paints BELOW the slide children. Lift the scrim above them. */
  z-index: 2;
  background:
    linear-gradient(100deg, rgba(4, 6, 13, 0.96) 12%, rgba(4, 6, 13, 0.72) 42%, rgba(4, 6, 13, 0.28) 68%, rgba(4, 6, 13, 0.1) 85%),
    radial-gradient(90% 120% at 18% 60%, rgba(4, 6, 13, 0.55), transparent 70%),
    linear-gradient(to top, var(--void) 0, transparent 22%),
    linear-gradient(to bottom, rgba(4, 6, 13, 0.6) 0, transparent 18%);
}
.hero-inner h1,
.hero-inner .lede,
.hero-inner .spec-line {
  text-shadow: 0 1px 3px rgba(4, 6, 13, 0.85), 0 4px 26px rgba(4, 6, 13, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

#stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-inner { position: relative; padding: 140px 0 120px; max-width: 720px; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  margin-bottom: 26px;
}
.hero h1 .rift {
  background: linear-gradient(100deg, #7ce4ff 0%, #b39aff 50%, #7ce4ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* text-shadow bleeds through clipped-gradient glyphs and muddies them */
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(4, 6, 13, 0.6));
  animation: riftShimmer 9s ease-in-out infinite alternate;
}
@keyframes riftShimmer {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .rift { animation: none; }
}

.hero .lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--dim);
  max-width: 56ch;
  margin-bottom: 38px;
}
.hero .lede strong { color: var(--starlight); font-weight: 600; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.spec-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  line-height: 2;
}
.spec-line b { color: var(--cyan); font-weight: 500; }
.spec-line .sep { margin: 0 14px; color: rgba(139, 150, 184, 0.4); }

/* ---------- rift dividers ---------- */
/* The app is named after a rift; sections tear diagonally into each other. */

.rift-section { position: relative; }
.rift-section::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  height: 70px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
/* faint glow along the rift edge — the brand motif, made visible */
.rift-section::after {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(70, 212, 255, 0.1), rgba(123, 92, 255, 0.05) 60%, transparent);
  clip-path: polygon(0 100%, 100% 0, 100% 14%, 0 114%);
  opacity: 0.9;
}

.band { background: var(--void); padding: clamp(70px, 9vw, 130px) 0; }
.band-raised { background: var(--surface); }

/* ---------- sections ---------- */

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 18px; }
.section-head p { color: var(--dim); font-size: 17.5px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card figure { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; }
.card figure img,
.card figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card:hover figure img,
.card:hover figure video { transform: scale(1.045); }
.card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(4, 6, 13, 0.72);
  border: 1px solid var(--line);
  color: var(--dim);
  backdrop-filter: blur(6px);
}
.card figcaption.live { color: var(--plasma); border-color: rgba(255, 179, 71, 0.35); }
.card-body { padding: 24px 26px 28px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--dim); font-size: 15.5px; }

/* ---------- feature split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split.flip > .split-media { order: 2; }
/* engine showcase: give the живое видео noticeably more width */
#space .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
@media (max-width: 860px) {
  .split, #space .split { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
}

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.split-media video { display: block; width: 100%; height: auto; }
.media-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(4, 6, 13, 0.72);
  border: 1px solid rgba(255, 179, 71, 0.35);
  color: var(--plasma);
  backdrop-filter: blur(6px);
}

.split h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 20px; }
.split .body-copy { color: var(--dim); margin-bottom: 26px; }
.split .body-copy strong { color: var(--starlight); font-weight: 600; }

.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; color: var(--dim); font-size: 15.5px; }
.feature-list li strong { color: var(--starlight); font-weight: 600; }
.feature-list .tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--cyan);
  background: rgba(70, 212, 255, 0.12);
  border: 1px solid rgba(70, 212, 255, 0.3);
}

/* ---------- performance tiles ---------- */

.perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.perf {
  --glow: var(--plasma);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 24, 48, 0.9), rgba(9, 13, 26, 0.95));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 28px 30px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.perf::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -40px;
  width: 220px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  opacity: 0.16;
  transition: opacity 0.25s;
  pointer-events: none;
}
.perf::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--glow), transparent 65%);
  opacity: 0.55;
}
.perf:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--glow) 45%, transparent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.perf:hover::before { opacity: 0.3; }
.perf:nth-child(1) { --glow: var(--plasma); }
.perf:nth-child(2) { --glow: var(--cyan); }
.perf:nth-child(3) { --glow: var(--nebula); }
.perf:nth-child(4) { --glow: #4ade9d; }
.perf .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 4.2vw, 54px);
  line-height: 1;
  display: block;
  margin-bottom: 20px;
  background: linear-gradient(160deg, #f2f6ff 20%, var(--glow) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.perf h3 { font-size: 17px; margin-bottom: 10px; }
.perf p { color: var(--dim); font-size: 14.5px; }
.perf .perf-tag {
  position: absolute;
  top: 30px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--glow) 80%, #ffffff 20%);
  border: 1px solid color-mix(in srgb, var(--glow) 40%, transparent);
  background: color-mix(in srgb, var(--glow) 10%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- FAQ ---------- */

.faq { max-width: 860px; display: grid; gap: 14px; }
.faq details {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 26px;
  transition: border-color 0.2s, background 0.2s;
}
.faq details:hover { border-color: rgba(70, 212, 255, 0.3); }
.faq details[open] {
  border-color: rgba(123, 92, 255, 0.4);
  background: linear-gradient(180deg, var(--surface-2), rgba(123, 92, 255, 0.06));
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  padding: 18px 40px 18px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(70, 212, 255, 0.35);
  background: rgba(70, 212, 255, 0.08);
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 17px;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--dim); padding: 0 0 20px; max-width: 68ch; }
/* smooth expand where ::details-content is supported (Chromium 131+) */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- download band ---------- */

.download {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 50% 110%, rgba(123, 92, 255, 0.28), transparent 70%),
    radial-gradient(40% 60% at 70% 100%, rgba(70, 212, 255, 0.12), transparent 70%);
  pointer-events: none;
}
/* faint engine frame behind the final CTA */
.download::after {
  content: "";
  position: absolute;
  inset: -8%;
  background: url("../assets/hero-poster.webp") center 40% / cover no-repeat;
  filter: blur(34px) saturate(1.25);
  opacity: 0.32;
  pointer-events: none;
}
.download .wrap { z-index: 1; }
.download .wrap { position: relative; }
.download h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; }
.download p { color: var(--dim); max-width: 54ch; margin: 0 auto 36px; }
.download .btn { font-size: 17px; padding: 16px 34px; }
.download .fineprint {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 38px 0 30px;
  color: var(--dim);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .tagline { font-size: 13px; color: var(--dim); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--dim); }
footer a:hover { color: var(--starlight); }
.footer-meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(151, 162, 196, 0.65);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: space-between;
}

/* ---------- content-type chips (hero) ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--starlight);
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(234, 240, 255, 0.18);
  background: rgba(11, 16, 30, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.6s, background 0.6s, color 0.6s;
}
.chip b { color: var(--cyan); font-weight: 500; }
.chip.on {
  border-color: rgba(70, 212, 255, 0.65);
  background: rgba(70, 212, 255, 0.14);
  box-shadow: 0 0 18px rgba(70, 212, 255, 0.18);
}

/* ---------- sources strip ---------- */

.sources {
  border-block: 1px solid var(--line);
  padding: 26px 0;
  background: linear-gradient(90deg, rgba(11, 16, 30, 0.5), rgba(17, 24, 48, 0.6), rgba(11, 16, 30, 0.5));
}
.sources .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.sources .src { white-space: nowrap; }
.sources .src::before { content: "◆ "; font-size: 9px; color: var(--nebula); }
.sources .src-label {
  color: var(--starlight);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11.5px;
}

/* ---------- bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.bento .card { position: relative; }
.bento .card:hover { border-color: rgba(70, 212, 255, 0.35); }
.b-lg { grid-column: span 4; }
.b-sm { grid-column: span 2; }
.b-md { grid-column: span 3; }
@media (max-width: 980px) {
  .b-lg, .b-sm, .b-md { grid-column: span 6; }
}
.bento .b-lg figure { aspect-ratio: 16 / 7.4; }
.bento .b-sm figure, .bento .b-md figure { aspect-ratio: 16 / 9; }
.card-text-only {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(123, 92, 255, 0.14), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(70, 212, 255, 0.08), transparent 60%),
    var(--surface-2);
}
.card-text-only::before {
  content: "≡ ▶ ★ ✂";
  display: block;
  font-size: 15px;
  letter-spacing: 12px;
  color: rgba(70, 212, 255, 0.55);
  margin-bottom: 4px;
}
.card-text-only h3 { font-size: 19px; }
.card-text-only p { color: var(--dim); font-size: 15.5px; }

/* ---------- app window mockup ---------- */

.window {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1117;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(70, 212, 255, 0.06),
    0 0 90px rgba(70, 212, 255, 0.1),
    0 30px 120px rgba(123, 92, 255, 0.12);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0b0e16;
}
.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(234, 240, 255, 0.14);
}
.window-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.window img { width: 100%; height: auto; }

/* ---------- film grain ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { will-change: auto; }
  .card figure img { transition: none; }
}

@media (max-width: 720px) {
  .burger { display: flex; }
  .nav-inner { flex-wrap: wrap; gap: 14px; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 16px;
    border-top: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 6px; font-size: 16px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(234, 240, 255, 0.05); }
  .nav-links a.btn-primary { justify-content: center; margin-top: 8px; }
  .nav.open { background: rgba(4, 6, 13, 0.92); }
  .hero-inner { padding-top: 120px; }
  .spec-line .sep { margin: 0 8px; }
}

/* ---------- install steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--dim); font-size: 15px; }
.step p a { font-weight: 600; }
.step-visual {
  margin-top: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(rgba(139, 150, 184, 0.14) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--void);
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* step 1: downloaded file row */
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(70, 212, 255, 0.25);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--starlight);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.file-row .dl {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 71, 0.15);
  border: 1px solid rgba(255, 179, 71, 0.4);
  color: var(--plasma);
  font-size: 15px;
}
.file-row small { color: var(--dim); font-size: 11px; }
/* step 2: taskbar tray mock */
.tray-mock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #141a2e, #0d1222);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.tray-mock .t-ico {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(234, 240, 255, 0.12);
}
.tray-mock img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px rgba(70, 212, 255, 0.7));
}
.tray-mock .t-time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  margin-left: 6px;
}
/* step 3: app screenshot crop */
.step-visual img.app-crop {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top center;
}

/* trust line under download CTA */
.trust-line {
  margin-top: 26px;
  font-size: 14px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
}
.trust-line span::before { content: "✓ "; color: #4ade9d; }
