/* ============================================================
   Pacer — pacer.vercel.app
   Editorial Brutalism: Instrument Serif + Geist + Geist Mono
   ============================================================ */

:root {
  --bg:        #000;
  --bg-2:      #0A0A0A;
  --bg-3:      #131313;
  --fg:        rgba(255, 255, 255, 0.92);
  --fg-dim:    rgba(255, 255, 255, 0.60);
  --fg-faint:  rgba(255, 255, 255, 0.32);
  --accent:    #A7FF00;
  --accent-d:  #93E600;

  --display:   "Instrument Serif", "Times New Roman", Georgia, serif;
  --body:      "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --mono:      "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max:       1240px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);

  --rhythm:    clamp(5rem, 9vw, 8rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

/* ============================================================
   Layout primitives
   ============================================================ */

.band {
  padding: var(--rhythm) var(--gutter);
}
.band-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.band-inner.center { text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero-eyebrow .sep { margin: 0 0.7em; color: var(--fg-faint); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: end;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 280px; gap: 4rem; align-items: end; }
}

.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  display: block;
  max-width: 18ch;
}
.hero-headline em {
  font-style: italic;
  color: var(--fg);
}
.hero-headline .line {
  display: block;
}
.hero-headline .line-2 {
  text-align: right;
  margin-top: 0.5rem;
  padding-left: 8%;
}
@media (min-width: 980px) {
  .hero-headline .line-2 { padding-left: 22%; }
}

.hero-headline .hairline {
  display: block;
  height: 1px;
  background: var(--accent);
  margin: 1.1rem 0 0.4rem;
  width: 38%;
  margin-left: auto;
}

.hero-sub {
  font-family: var(--body);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 38ch;
  margin: clamp(2rem, 3vw, 2.6rem) 0 0;
}
.hero-sub .hl {
  color: var(--accent);
}

/* CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.6rem;
  margin-top: clamp(2rem, 3vw, 2.6rem);
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.4rem 0.95rem 1.2rem;
  background: var(--accent);
  color: #000;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform 180ms ease, background 180ms ease;
  will-change: transform;
}
.cta-primary:hover {
  color: #000;
  background: var(--accent-d);
  transform: translateY(-1px);
}
.cta-glyph { font-size: 12px; line-height: 1; transform: translateY(-1px); }

.cta-large { padding: 1.15rem 1.8rem; font-size: 14px; }

.cta-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.cta-note.big-note { font-size: 12px; margin-top: 1.4rem; }

/* Hero watch */
.hero-watch {
  margin: 0;
  position: relative;
  width: clamp(180px, 26vw, 280px);
  justify-self: end;
}
.hero-watch img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(167, 255, 0, 0.10)) drop-shadow(0 0 0 1px rgba(255,255,255,0.04));
  border-radius: 30px;
}
.hero-watch figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 1rem;
  text-align: right;
}

/* hero divider */
.hero-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 8%, var(--accent) 92%, transparent);
  opacity: 0.35;
  max-width: var(--max);
  margin: 0 auto;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-rule { margin: 0 auto 3rem; }

/* ============================================================
   Sticky install pill
   ============================================================ */

.sticky-install {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-2);
  border: 1px solid rgba(167,255,0,0.4);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
}
.sticky-install.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-install:hover {
  background: var(--accent);
  color: #000;
}
.sticky-install .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.sticky-install:hover .dot { background: #000; box-shadow: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   Editorial bands
   ============================================================ */

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.section-headline {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  color: var(--fg);
}
.section-headline.center { text-align: center; }

.editorial {
  font-family: var(--display);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
.editorial.big {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 18ch;
  color: var(--fg);
}
.editorial.small {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--fg-dim);
  margin-top: 1.6rem;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

/* ============================================================
   Screens grid
   ============================================================ */

.band-screens { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}
.screens-grid figure { margin: 0; }
.screens-grid img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 28px;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.5)) drop-shadow(0 0 0 1px rgba(255,255,255,0.04));
  transition: transform 260ms ease;
}
.screens-grid figure:hover img { transform: translateY(-4px); }
.screens-grid figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 1.2rem;
  text-align: center;
}

/* ============================================================
   Bullets — what you get / perfect for
   ============================================================ */

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bullets li {
  position: relative;
  padding-left: 1.7rem;
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.bullets li:last-child { margin-bottom: 0; }
.bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.3em;
  line-height: 1;
}
.bullets li em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.9em;
  background: var(--bg-2);
  color: var(--accent);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  border: 1px solid rgba(167,255,0,0.18);
}

/* ============================================================
   The facts — mono data block
   ============================================================ */

.band-facts { background: var(--bg); }

.facts {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.15vw, 0.98rem);
  line-height: 1.95;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid var(--accent);
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 3vw, 2.2rem);
  margin: 0;
  white-space: pre;
  overflow-x: auto;
  border-radius: 0;
}
.facts .k {
  color: var(--fg-dim);
  font-weight: 500;
}
.facts .v {
  color: var(--fg);
}
.facts .v.formula {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1em;
}

/* ============================================================
   How it works / Founder note prose
   ============================================================ */

.prose {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--fg);
  max-width: 56ch;
  margin: 0;
}
.prose .mono {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent);
  letter-spacing: 0;
}
.prose em.pull {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 1.4rem;
}
.prose a { color: var(--accent); border-bottom: 1px solid rgba(167,255,0,0.3); }
.prose a:hover { border-bottom-color: var(--accent); }

.signature {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 2rem;
}

/* ============================================================
   FAQ
   ============================================================ */

.band-faq { background: var(--bg); }
.band-faq .section-headline { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .faq-list { grid-template-columns: 1fr 1fr; }
}

.faq-item h3 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.65rem;
  color: var(--fg);
}
.faq-item h3::before {
  content: "Q.";
  color: var(--accent);
  font-style: italic;
  margin-right: 0.4em;
}
.faq-item p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0;
}
.faq-item p a { color: var(--accent); border-bottom: 1px solid rgba(167,255,0,0.3); }

/* ============================================================
   Final CTA
   ============================================================ */

.band-final {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}
.finale {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 clamp(2rem, 3vw, 2.6rem);
  color: var(--fg);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 0 var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
@media (min-width: 780px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; align-items: center; }
}

.footer-col { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-col.footer-links { justify-content: center; }
.footer-col.footer-contact { justify-content: flex-end; }
@media (max-width: 779px) {
  .footer-col.footer-links,
  .footer-col.footer-contact { justify-content: flex-start; }
}

.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.copy { align-self: center; }

.footer a { color: var(--fg-dim); }
.footer a:hover { color: var(--accent); }

/* ============================================================
   Reveal animation on hero
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.line-1            { animation-delay: 0.05s; }
.hero-headline .hairline { animation-delay: 0.32s; }
.line-2            { animation-delay: 0.45s; }
.hero-sub          { animation-delay: 0.65s; }
.cta-row           { animation-delay: 0.85s; }
.hero-watch        { animation-delay: 1.0s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { animation: none; opacity: 1; transform: none; }
  .sticky-install .dot { animation: none; }
  .cta-primary { transition: none; }
}

/* ============================================================
   Mobile tweaks
   ============================================================ */

@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 3rem; }
  .hero-headline .line-2 { padding-left: 12%; }
  .hero-watch { justify-self: center; width: 60%; max-width: 240px; }
  .hero-watch figcaption { text-align: center; }
  .footer-rule { margin-bottom: 2rem; }
  .sticky-install { top: 0.7rem; right: 0.7rem; padding: 0.45rem 0.7rem; font-size: 10px; }
}

@media (max-width: 420px) {
  .hero-eyebrow .sep { display: none; }
  .hero-eyebrow { display: flex; flex-direction: column; gap: 0.25rem; }
}
