/* ShelfDrop landing page
   Theme: dark only (locked). Accent: seafoam mint #7af0c8 (locked, single accent).
   Radius tiers (documented): panels 22px, small surfaces 12px, buttons pill.
   Glass surfaces below are a WEB GLASSMORPHISM APPROXIMATION. They are not
   Apple's official Liquid Glass material, which exists only on Apple platforms. */

:root {
  --bg: #07080a;
  --bg-elev: #0e1013;
  --text: #f2f6f4;
  --text-dim: #9aa4a1;
  --text-faint: #6c7672;

  --accent: #7af0c8;        /* the one locked accent */
  --accent-deep: #43d6a3;   /* same hue, deeper; for gradients only */
  --accent-ink: #042019;    /* dark text on accent fills */

  --hair: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);

  --radius-panel: 22px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* English-only landing page */
  --font: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 720px at 50% -12%, rgba(122, 240, 200, 0.09), transparent 60%),
    radial-gradient(900px 600px at 85% 6%, rgba(122, 240, 200, 0.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

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

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

h1, h2, h3 { margin: 0; letter-spacing: -0.015em; line-height: 1.1; font-weight: 700; }

p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

#top-sentinel { position: absolute; top: 0; height: 1px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-radius: var(--radius-pill);
  padding: 0.66rem 1.25rem;
  font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.2s ease, border-color 0.2s ease;
}
.btn i { font-size: 1.1em; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost { border-color: var(--glass-border); color: var(--text); background: rgba(255, 255, 255, 0.025); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

a:focus-visible, .btn:focus-visible, .copy-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ---------- Glass (web glassmorphism approximation) ---------- */
.glass {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 60px rgba(0, 0, 0, 0.45);
}
/* pointer-tracked specular highlight (vars set in app.js) */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -10%),
    rgba(255, 255, 255, 0.1), transparent 60%);
}
.glass--accent {
  border-color: rgba(122, 240, 200, 0.22);
  background:
    linear-gradient(150deg, rgba(122, 240, 200, 0.16), rgba(122, 240, 200, 0.04)),
    rgba(122, 240, 200, 0.05);
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .glass--accent {
    background: var(--bg-elev);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 10, 12, 0.7);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--hair);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: auto; padding: 0.46rem 0.95rem; font-size: 0.84rem; }
.nav-cta i { font-size: 1em; }

/* ---------- Hero ---------- */
.hero {
  min-height: 86svh; display: flex; align-items: center;
  padding-top: clamp(72px, 10vh, 104px); padding-bottom: clamp(64px, 9vh, 96px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; width: 100%;
}
.hero-copy h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 700; }
.lede {
  margin-top: 22px; max-width: 30ch; color: var(--text-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 240, 200, 0.28), transparent 65%);
  filter: blur(40px);
}
.hero-art img {
  width: clamp(220px, 32vw, 340px); height: auto; position: relative;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.55));
}
/* Hero entrance (pure CSS, runs without JS). The icon itself is static (no float, no tilt). */
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-copy h1 { animation: heroRise 0.9s var(--ease) 0.05s both; }
.hero-copy .lede { animation: heroRise 0.9s var(--ease) 0.18s both; }
.hero-copy .hero-actions { animation: heroRise 0.9s var(--ease) 0.32s both; }
.hero-art { animation: fadeIn 1s var(--ease) 0.15s both; }

/* ---------- Trust row ---------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-block: 28px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.96rem; }
.trust-item i { font-size: 1.3rem; color: var(--accent); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(72px, 11vw, 132px); }
.section-head { margin-bottom: 48px; max-width: 60ch; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-sub { margin-top: 14px; color: var(--text-dim); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; margin-bottom: 16px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell { padding: 28px; min-height: 188px; display: flex; flex-direction: column; }
.cell.lg { grid-column: span 2; }
/* combine reveal (opacity/transform) and hover (border/shadow) transitions on one selector */
.js .bento .cell { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease; }
.bento .cell:hover { border-color: rgba(122, 240, 200, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 72px rgba(0, 0, 0, 0.52); }
.cell-icon { font-size: 1.9rem; color: var(--accent); margin-bottom: auto; }
.cell h3 { font-size: 1.22rem; margin-top: 22px; }
.cell p { margin-top: 10px; color: var(--text-dim); font-size: 0.98rem; line-height: 1.5; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell.lg { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cell.lg { grid-column: span 1; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--hair);
}
.step:last-child { border-bottom: 0; }
.step .num {
  font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 0.9;
  font-variant-numeric: tabular-nums; min-width: 48px;
}
.step h3 { font-size: 1.3rem; }
.step p { margin-top: 8px; color: var(--text-dim); }

/* ---------- Supported chips ---------- */
.supported .section-head { text-align: center; margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; margin: 0 auto; }
.chip {
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 0.55rem 0.95rem; font-size: 0.92rem; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03); transition: color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { color: var(--text); border-color: rgba(122, 240, 200, 0.4); }

/* ---------- Install ---------- */
.install-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: start; }
.install-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.install-steps li {
  counter-increment: step; position: relative; padding: 18px 0 18px 52px;
  border-bottom: 1px solid var(--hair); color: var(--text-dim); font-size: 1.02rem;
}
.install-steps li:last-child { border-bottom: 0; }
.install-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 650; font-size: 0.95rem;
  color: var(--accent); border: 1px solid rgba(122, 240, 200, 0.32);
}
.install-steps a { color: var(--text); border-bottom: 1px solid rgba(122, 240, 200, 0.5); }
.install-steps code, .lede code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; }

.note { padding: 26px; }
.note-title { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); }
.note-title i { color: var(--accent); }
.note p { color: var(--text-dim); font-size: 0.98rem; margin-top: 10px; }
.note-foot { margin-top: 20px; }

.code-block { position: relative; margin-top: 12px; }
.code {
  margin: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair);
  border-radius: var(--radius-sm); padding: 14px 46px 14px 16px;
  font-size: 0.84rem; color: #cfeee2; overflow-x: auto; line-height: 1.5;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair);
  color: var(--text-dim); transition: color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover { color: var(--text); border-color: rgba(122, 240, 200, 0.4); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: clamp(64px, 9vw, 104px) 28px; }
/* soft mint halo replaces the icon as the focal anchor above the headline */
.final::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 34%; transform: translate(-50%, -50%);
  width: 460px; max-width: 72%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(122, 240, 200, 0.16), transparent 62%);
  filter: blur(34px);
}
.final h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 18ch; margin-inline: auto; }
.final .hero-actions { margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); padding-block: 40px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); font-size: 0.94rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-meta { display: flex; gap: 18px; color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Reveal animation (gated on .js: without JS, everything is visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; min-height: 260px; }
  .hero-actions { justify-content: center; }
  .lede { margin-inline: auto; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .install-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav-cta span { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy h1, .hero-copy .lede, .hero-copy .hero-actions, .hero-art {
    animation: none; opacity: 1; transform: none;
  }
  .btn, .nav, .chip { transition: none; }
}
