/* ─────────────────────────────────────────────────────────────
   Stillpoint — showcase site
   Deep ink, one teal accent, one warm sand accent.
   ───────────────────────────────────────────────────────────── */

:root {
  --ink:        #0a101c;
  --ink-2:      #101a2b;
  --ink-3:      #16223a;
  --paper:      #f6f7f5;
  --paper-2:    #ffffff;
  --text:       #16202f;
  --text-dim:   #5c6b80;
  --text-dim-2: #8d9bb0;
  --text-lite:  #cfd8e6;
  --text-lite-dim: #8b9ab2;

  --teal:       #16a394;
  --teal-lite:  #3fd0bd;
  --sand:       #d8b273;
  --violet:     #7b6cf6;
  --rose:       #e2725b;

  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1140px;

  --font: ui-sans-serif, -apple-system, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(20, 32, 47, .07);
  padding: .12em .38em;
  border-radius: 5px;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 22px 22px;
  mix-blend-mode: overlay;
}

/* ── nav ────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 16, 28, .82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }

.mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--teal-lite), var(--teal) 58%, #0c6f66);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 18px rgba(63,208,189,.4);
}

.brand-text { font-size: 1.02rem; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-lite-dim); font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff !important;
}
.nav-cta:hover { background: rgba(255,255,255,.16); }

/* ── hero ───────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(22,163,148,.28), transparent 62%),
    radial-gradient(760px 520px at 8% 105%, rgba(123,108,246,.18), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 84px 28px 0;
  overflow: hidden;
}

.hero-inner { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--teal-lite);
  background: rgba(63,208,189,.10);
  border: 1px solid rgba(63,208,189,.26);
  padding: 6px 14px; border-radius: 999px;
}

.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-lite); box-shadow: 0 0 0 0 rgba(63,208,189,.65); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,208,189,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(63,208,189,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,208,189,0); }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -.022em;
  margin: 26px 0 0;
  font-weight: 600;
  max-width: 19ch;
}
.hero h1 em { font-style: italic; color: var(--teal-lite); }

.lede {
  font-size: 1.13rem; line-height: 1.72; color: var(--text-lite);
  max-width: 62ch; margin: 24px 0 0;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--teal); color: #04231f; }
.btn-primary:hover { background: var(--teal-lite); }

.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }

.hero-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 34px;
  margin: 46px 0 0; padding: 26px 0 30px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--text-lite-dim); font-size: .9rem;
}
.hero-facts strong { display: block; font-size: 1.75rem; color: #fff; font-weight: 640; letter-spacing: -.02em; }

.hero-shot { max-width: var(--maxw); margin: 14px auto 0; padding: 0 0 0; }
.hero-shot img {
  width: 100%;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255,255,255,.13);
  border-bottom: none;
  box-shadow: 0 -20px 80px rgba(0,0,0,.5);
}

/* ── bands ──────────────────────────────────────────────────── */

.band { padding: 92px 28px; }
.band-quiet { background: var(--paper-2); border-top: 1px solid rgba(20,32,47,.07); border-bottom: 1px solid rgba(20,32,47,.07); }
.band-dark { background: var(--ink); color: #fff; }

.band-inner { max-width: var(--maxw); margin: 0 auto; }
.band-inner.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 12px;
}
.band-dark .kicker { color: var(--teal-lite); }

.band h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  line-height: 1.2; letter-spacing: -.018em; font-weight: 600;
  margin: 0 0 20px; max-width: 24ch;
}
.band h2.center { max-width: 30ch; }

.body-wide { font-size: 1.06rem; line-height: 1.78; color: var(--text-dim); max-width: 70ch; }
.band-dark .body-wide { color: var(--text-lite); }
.dim { color: var(--text-dim-2); }
.band-dark .dim { color: var(--text-lite-dim); }

/* ── video ──────────────────────────────────────────────────── */

.video-frame {
  max-width: 980px; margin: 40px auto 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 34px 90px rgba(10,16,28,.34);
}
.video-frame video { width: 100%; display: block; }

/* The animated loop, for people who would rather not press play. */
.loop-frame { margin-top: 26px; }
.loop-frame img { width: 100%; display: block; }
.loop-caption {
  max-width: 62ch; margin: 18px auto 0;
  font-size: .95rem; color: var(--text-dim); line-height: 1.6;
}

/* ── feature grid ───────────────────────────────────────────── */

.grid {
  display: grid; gap: 20px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid rgba(20,32,47,.09);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(22,163,148,.4);
  box-shadow: 0 16px 40px rgba(16,26,43,.09);
}

.card-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(22,163,148,.16), rgba(123,108,246,.13));
  color: var(--teal); font-size: 1.15rem; margin-bottom: 16px;
}

.card h3 { font-size: 1.06rem; margin: 0 0 9px; letter-spacing: -.01em; font-weight: 650; }
.card p { margin: 0; color: var(--text-dim); font-size: .95rem; line-height: 1.68; }

/* ── privacy split ──────────────────────────────────────────── */

.split {
  display: grid; gap: 18px; margin-top: 46px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.split-item {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
  background: rgba(255,255,255,.035);
}
.split-item h3 { font-size: 1.01rem; margin: 0 0 9px; color: var(--teal-lite); font-weight: 620; }
.split-item p { margin: 0; font-size: .93rem; line-height: 1.66; color: var(--text-lite-dim); }
.band-dark code { background: rgba(255,255,255,.1); color: var(--teal-lite); }

.promise {
  margin-top: 46px; padding: 30px 32px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(22,163,148,.16), rgba(123,108,246,.1));
  border: 1px solid rgba(63,208,189,.26);
  text-align: center;
}
.promise p { margin: 0 0 6px; font-size: 1.03rem; color: var(--text-lite); }
.promise p:last-child { margin-bottom: 0; color: var(--text-lite-dim); }
.promise strong { color: #fff; }

/* ── pipeline ───────────────────────────────────────────────── */

.pipeline {
  display: grid; gap: 16px; margin-top: 46px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.stage {
  position: relative;
  background: var(--paper-2);
  border: 1px solid rgba(20,32,47,.09);
  border-radius: var(--radius-sm);
  padding: 26px 22px 24px;
}
.num {
  font-family: var(--mono); font-size: .76rem; font-weight: 700;
  color: var(--teal); letter-spacing: .08em;
}
.stage h4 { margin: 8px 0 8px; font-size: 1.04rem; font-weight: 650; letter-spacing: -.01em; }
.stage p { margin: 0; font-size: .91rem; line-height: 1.66; color: var(--text-dim); }

/* ── shots ──────────────────────────────────────────────────── */

.shots {
  display: grid; gap: 26px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}
.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: var(--radius-sm);
  border: 1px solid rgba(20,32,47,.11);
  box-shadow: 0 14px 34px rgba(16,26,43,.10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot:hover img { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(16,26,43,.16); }
.shot figcaption { margin-top: 13px; font-size: .9rem; color: var(--text-dim); }

/* ── code ───────────────────────────────────────────────────── */

.code {
  margin: 38px auto 0; max-width: 640px;
  background: var(--ink-2); color: var(--teal-lite);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  font-family: var(--mono); font-size: .87rem; line-height: 1.75;
  overflow-x: auto; text-align: left;
}
.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.center-actions { justify-content: center; margin-top: 34px; }

/* ── faq ────────────────────────────────────────────────────── */

details {
  border-bottom: 1px solid rgba(20,32,47,.1);
  padding: 20px 0;
}
details:first-of-type { border-top: 1px solid rgba(20,32,47,.1); }
summary {
  cursor: pointer; font-weight: 620; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 18px;
  letter-spacing: -.005em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; font-weight: 400; line-height: 1.1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--text-dim); font-size: .96rem; line-height: 1.72; max-width: 66ch; }

/* ── footer ─────────────────────────────────────────────────── */

.foot { background: var(--ink); color: var(--text-lite-dim); padding: 56px 28px 64px; font-size: .9rem; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; }
.foot p { margin: 0 0 12px; max-width: 78ch; }
.foot strong { color: #fff; }
.foot .links { margin-top: 22px; }
.foot .links a { color: var(--teal-lite); margin-right: 4px; }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .band { padding: 66px 20px; }
  .hero { padding: 62px 20px 0; }
  .shots { grid-template-columns: 1fr; }
  .hero-facts { gap: 22px; }
}

/* ── free library shelf ─────────────────────────────────────── */

.shelf {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin-top: 44px;
}
.book {
  background: var(--paper-2); border: 1px solid rgba(20,32,47,.1);
  border-radius: var(--radius-sm); padding: 22px 20px 18px; position: relative;
  box-shadow: 0 2px 10px rgba(16,26,43,.05);
}
.book-badge {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--teal); background: rgba(22,163,148,.1);
  border: 1px solid rgba(22,163,148,.24); border-radius: 999px;
  padding: 3px 9px; margin-bottom: 13px;
}
.book h3 { font-size: 1.02rem; margin: 0 0 2px; letter-spacing: -.01em; font-weight: 650; }
.book-author { margin: 0 0 9px !important; font-size: .82rem !important; color: var(--teal) !important; font-weight: 600; }
.book p { margin: 0; color: var(--text-dim); font-size: .89rem; line-height: 1.62; }
.book-licence { margin-top: 12px !important; font-size: .74rem !important; color: var(--text-dim-2) !important; letter-spacing: .02em; }
