/* ==========================================================================
   Elite Memo Pro — landing site
   Dark glassmorphism design system
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Typography & shared components
   5.  Background atmosphere
   6.  Header & navigation
   7.  Hero
   8.  Trust band
   9.  Features
   10. Screenshots
   11. Privacy
   12. Documentation
   13. FAQ
   14. Download CTA
   15. Footer
   16. Motion
   17. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #070a0f;
  --bg-2: #0a0f16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.065);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #e9eff7;
  --text-dim: #a2b1c4;
  --text-mute: #74869a;

  /* Accents */
  --accent: #2dd4bf;        /* teal   */
  --accent-soft: rgba(45, 212, 191, 0.14);
  --accent-line: rgba(45, 212, 191, 0.38);
  --gold: #f4c453;          /* premium */
  --gold-soft: rgba(244, 196, 83, 0.14);
  --sky: #7dd3fc;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Spacing */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.6rem, 7vw, 6.5rem);
  --maxw: 1240px;

  /* Effects */
  --blur: saturate(150%) blur(16px);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px -20px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
  --ring: 0 0 0 3px rgba(45, 212, 191, 0.35);

  /* Type */
  --font-display: "Space Grotesk", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;

  --header-h: 68px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: #5eead4; text-decoration: underline; }

ul, ol { padding: 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

::selection { background: rgba(45, 212, 191, 0.3); color: #fff; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 800px; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 20%, rgba(255, 255, 255, 0.018) 80%, transparent);
  border-block: 1px solid var(--border);
  pointer-events: none;
}
.section > .container { position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #05231f;
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* ==========================================================================
   4. Typography & shared components
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.15em 0.42em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: #d7e4f2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}
.section-title {
  font-size: clamp(1.85rem, 1.3rem + 2.6vw, 3rem);
  margin-bottom: 0.85rem;
}
.section-lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 0.97rem + 0.3vw, 1.15rem);
}

/* Desktop: set the lead beside the title so the full width is used */
@media (min-width: 1000px) {
  .section-head {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.9rem 3.5rem;
    align-items: end;
  }
  .section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .section-head .section-title { margin-bottom: 0; }
  .section-head .section-lead { margin-bottom: 0.4rem; }
}

/* Glass card */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 0.6rem 1rem; font-size: 0.86rem; }
.btn--lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

.btn--primary {
  --btn-fg: #05231f;
  background: linear-gradient(135deg, var(--accent), #22b8a6);
  border-color: transparent;
  box-shadow: 0 12px 30px -12px rgba(45, 212, 191, 0.7);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #4ee0cd, #2ac2af);
  box-shadow: 0 18px 40px -14px rgba(45, 212, 191, 0.85);
}

.btn--ghost { background: var(--surface); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent-line); }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--sm { width: 1em; height: 1em; }

/* ==========================================================================
   5. Background atmosphere
   ========================================================================== */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(125, 211, 252, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}
.bg-atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-atmosphere__glow--a {
  width: 46vw;
  height: 46vw;
  top: -12vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 70%);
}
.bg-atmosphere__glow--b {
  width: 40vw;
  height: 40vw;
  bottom: -14vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(244, 196, 83, 0.16), transparent 70%);
}
.bg-atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 12, 18, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}
.brand__text { font-size: 1.02rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}
.nav__link {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--r-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.nav__link.is-active { color: var(--accent); background: var(--accent-soft); }
.nav__actions { display: flex; align-items: center; gap: 0.55rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 19px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__title {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.15rem;
}
.hero__title-accent {
  color: var(--accent);
  text-shadow: 0 0 46px rgba(45, 212, 191, 0.35);
}
.hero__lead {
  max-width: 34rem;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 0.98rem + 0.4vw, 1.2rem);
  margin-bottom: 1.9rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.9rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mute);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding-inline: 2%;
}
.phone {
  position: relative;
  width: min(288px, 66vw);
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 20px;
  background: #05070a;
  border-radius: var(--r-pill);
  z-index: 2;
}
.phone__screen {
  width: 100%;
  border-radius: 34px;
  background: #05070a;
}

.float-card {
  position: absolute;
  z-index: 3;
  padding: 0.9rem 1rem;
  background: rgba(12, 18, 26, 0.82);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
.float-card--a { top: 19%; left: 0; width: 182px; }
.float-card--b { bottom: 13%; right: 0; animation-delay: -3.5s; }
.float-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.55rem;
}
.mini-check { list-style: none; display: grid; gap: 0.4rem; }
.mini-check li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.83rem;
  color: var(--text-dim);
}
.mini-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--border-2);
  border-radius: 5px;
}
.mini-check li.is-done { color: var(--text-mute); text-decoration: line-through; }
.mini-check li.is-done::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305231f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 72% no-repeat;
  border-color: transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  white-space: nowrap;
}
.pill--safe { color: #86efac; border-color: rgba(134, 239, 172, 0.3); background: rgba(134, 239, 172, 0.1); }

/* ==========================================================================
   8. Trust band
   ========================================================================== */
.trust {
  position: relative;
  z-index: 1;
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 2rem;
  list-style: none;
}
.trust__item { display: grid; gap: 0.2rem; }
.trust__item strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text);
}
.trust__item span { font-size: 0.88rem; color: var(--text-mute); }

/* ==========================================================================
   9. Features
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.15rem;
  }
  .feature { grid-column: span 4; }
  .feature--half { grid-column: span 6; }
  .feature--hero { grid-column: span 6; grid-row: span 2; }
}
.feature {
  padding: 1.6rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--surface-2);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.05rem;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-2);
  color: var(--accent);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-size: 1.12rem; margin-bottom: 0.45rem; }
.feature__text { font-size: 0.93rem; color: var(--text-dim); }

.feature--hero {
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  background:
    radial-gradient(520px 260px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}
.feature--hero .feature__title { font-size: 1.35rem; }
.feature--hero .feature__text { font-size: 0.97rem; max-width: 34rem; }
.feature__canvas {
  margin-top: auto;
  padding-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
}
.feature__canvas svg {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(3, 6, 10, 0.5);
}
.feature__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}
.feature__tools li {
  padding: 0.34rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

/* ==========================================================================
   10. Screenshots
   ========================================================================== */
.shots {
  position: relative;
  z-index: 1;
  padding-block: 0.5rem 1rem;
}
.shots__track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 1.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.shots__track::-webkit-scrollbar { height: 8px; }
.shots__track::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }
.shots__track::-webkit-scrollbar-track { background: transparent; }
.shot {
  flex: 0 0 auto;
  width: clamp(196px, 58vw, 232px);
  scroll-snap-align: center;
  text-align: center;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  /* The source screenshots are 1080x2400; reserving that ratio keeps every card
     the same height and stops the gallery from reflowing as images arrive. */
  aspect-ratio: 1080 / 2400;
  border-radius: 20px;
  border: 1px solid var(--border-2);
  background: #05070a;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.shot:hover img { transform: translateY(-6px); border-color: var(--accent-line); }
.shot figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Tablet and up: a centred gallery instead of a scrolling strip.
   The track is capped to the page container so the cards line up with the
   heading, and the wrapping row centres itself, so the final row of a 14-shot
   set never leaves one side full and the other side empty. */
@media (min-width: 720px) {
  .shots {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .shots__track {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.9rem, 1.5vw, 1.4rem);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0.25rem 0 0.75rem;
  }
  .shot {
    flex: 0 0 clamp(150px, 15.5vw, 208px);
    width: auto;
    scroll-snap-align: none;
  }
  .shot:hover img { transform: translateY(-6px); }
}

/* ==========================================================================
   11. Privacy
   ========================================================================== */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.check-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-dim);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 62% no-repeat;
  border: 1px solid var(--accent-line);
}
.privacy__card { padding: 1.6rem; }
.privacy__card-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.perm-list { display: grid; gap: 0.85rem; }
.perm dt { margin-bottom: 0.15rem; }
.perm dd { margin: 0; font-size: 0.87rem; color: var(--text-mute); }
.perm-note {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ==========================================================================
   12. Documentation
   ========================================================================== */
.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.docs__nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  min-width: 0;
}
.docs__nav ul { list-style: none; display: grid; gap: 0.2rem; }
.docs__nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mute);
  border-left: 2px solid var(--border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.docs__nav a:hover {
  color: var(--text);
  border-left-color: var(--accent-line);
  background: var(--surface);
  text-decoration: none;
}
/* minmax(0, 1fr) rather than the implicit auto column: an auto column is sized by
   the widest thing inside it, so one long line in a code block used to push the
   whole documentation card wider than the page and off the screen. */
.docs__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; min-width: 0; }
.doc { min-width: 0; padding: clamp(1.4rem, 3vw, 2rem); scroll-margin-top: calc(var(--header-h) + 20px); }
.doc__title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.doc p { color: var(--text-dim); }
.doc p + p { margin-top: 0.85rem; }
.doc__note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.87rem;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--r-sm);
}
.doc__list { list-style: none; display: grid; gap: 0.55rem; margin-top: 1rem; }
.doc__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.doc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.code {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  max-width: 100%;
  overflow-x: auto;
  background: rgba(3, 6, 10, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #cfe3dd;
}
.code code {
  padding: 0;
  background: none;
  border: none;
  font-size: inherit;
  color: inherit;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.module {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.module__name { font-family: var(--font-mono); font-size: 0.86rem; color: var(--accent); }
.module__desc { font-size: 0.8rem; color: var(--text-mute); }

/* ==========================================================================
   13. FAQ
   ========================================================================== */
.faq { display: grid; gap: 0.7rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq__item[open] { border-color: var(--accent-line); background: var(--surface-2); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ==========================================================================
   14. Download CTA
   ========================================================================== */
.download__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(600px 240px at 12% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, var(--gold-soft), transparent 70%),
    var(--surface-2);
  overflow: hidden;
}
.download__title {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem);
  margin-bottom: 0.5rem;
}
.download__lead { color: var(--text-dim); max-width: 34rem; }
.download__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 13, 0.6);
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.6rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.2rem;
  padding-bottom: 2.2rem;
}
.site-footer__brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.site-footer__brand img { border-radius: 9px; border: 1px solid var(--border-2); }
.site-footer__name { font-family: var(--font-display); font-weight: 600; }
.site-footer__tag { font-size: 0.88rem; color: var(--text-mute); }

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-dim); }
.footer-col a:hover { color: var(--accent); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ==========================================================================
   16. Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

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

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 420px; }
  .hero__lead { margin-inline: auto; }
  .hero__copy { text-align: center; }
  .hero__actions, .hero__meta { justify-content: center; }
  .privacy { grid-template-columns: 1fr; }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(10, 15, 22, 0.94);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__link { padding: 0.7rem 0.9rem; font-size: 0.98rem; }
  .nav__actions { justify-content: stretch; }
  .nav__actions .btn { flex: 1; }

  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs__nav {
    position: static;
    margin-bottom: 0.4rem;
  }
  .docs__nav ul {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }
  .docs__nav ul::-webkit-scrollbar { display: none; }
  .docs__nav a {
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--surface);
  }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .trust__list { grid-template-columns: 1fr; }
  .float-card--a { left: -2%; top: 6%; }
  .float-card--b { right: -2%; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download__card { flex-direction: column; align-items: flex-start; }
  .download__actions { width: 100%; }
  .download__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .float-card--a { display: none; }
  .hero__visual { min-height: 360px; }
}

/* ==========================================================================
   18. Prose pages (privacy, conduct)
   ========================================================================== */
.page-hero {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.6rem, 6vw, 4.5rem) clamp(1.4rem, 3vw, 2rem);
}
.page-hero__title {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-hero__lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 0.97rem + 0.3vw, 1.12rem);
  max-width: 46rem;
}
.page-hero__meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.prose { padding: clamp(1.6rem, 4vw, 3rem); }
.prose > * + * { margin-top: 1rem; }

.prose h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.65rem);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 {
  font-size: 1.08rem;
  margin-top: 1.8rem;
  color: var(--text);
}
.prose p, .prose li { color: var(--text-dim); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration: underline; }
.prose hr.prose__rule {
  margin-block: 2.4rem;
  border: none;
  border-top: 1px solid var(--border);
}

.table-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(3, 6, 10, 0.45);
}
.prose table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prose thead th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.prose tbody td {
  padding: 0.85rem 1rem;
  vertical-align: top;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover td { background: rgba(255, 255, 255, 0.022); }
.prose tbody td:first-child { color: var(--text); }

.callout {
  margin-top: 1.8rem;
  padding: 1.1rem 1.3rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
}
.callout p { color: var(--text); }

@media (max-width: 640px) {
  .prose { padding: 1.3rem; }
  .prose table { min-width: 420px; }
}

@media print {
  .site-header, .site-footer, .nav, .bg-atmosphere, .skip-link { display: none !important; }
  body { background: #fff; color: #111; }
  .card { border: 1px solid #ddd; box-shadow: none; backdrop-filter: none; background: #fff; }
  .prose p, .prose li, .page-hero__lead { color: #333; }
  a { color: #0a58ca; }
}
