/* =========================================================================
   Glass Overlay — shared site styles
   Tokens, liquid-glass panels, nav, hero, sections, pricing, responsive.
   ========================================================================= */

:root {
  color-scheme: dark;
  --text: #e8eef6;
  --text-2: #8fa6c4;
  --fine: #6c809c;
  --rim: rgba(120, 170, 255, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0; min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: var(--text); line-height: 1.5;
  background: radial-gradient(1200px 800px at 50% -10%, #16243a 0%, #0a0e14 55%, #05070b 100%);
  background-attachment: fixed;
}

/* Soft blue light blooms so the glass has light to catch. */
body::before, body::after {
  content: ""; position: fixed; pointer-events: none; z-index: -1;
  border-radius: 50%;
}
body::before {
  width: 70vw; height: 70vw; top: -28vw; left: -22vw;
  background: radial-gradient(closest-side, rgba(63,134,245,0.18), transparent 70%);
}
body::after {
  width: 60vw; height: 60vw; bottom: -25vw; right: -18vw;
  background: radial-gradient(closest-side, rgba(127,180,255,0.10), transparent 70%);
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px 40px; }

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

/* Anchored sections clear the sticky nav. */
section[id] { scroll-margin-top: 96px; }

/* ---- Liquid Glass panel ------------------------------------------------ */
.glass {
  position: relative;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,0.10), transparent 70%),
    rgba(255,255,255,0.04);
  border: 1px solid var(--rim);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
/* Rim lensing — 1px conic rim: bright ice-blue at top-left, weaker
   glint at bottom-right, near-transparent elsewhere. */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: conic-gradient(from 315deg,
    rgba(212,231,255,0.7)  0deg,
    rgba(212,231,255,0.06) 80deg,
    rgba(212,231,255,0.06) 135deg,
    rgba(212,231,255,0.35) 180deg,
    rgba(212,231,255,0.06) 225deg,
    rgba(212,231,255,0.06) 280deg,
    rgba(212,231,255,0.7)  360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Specular glint that tracks the pointer (via --mx/--my, set in site.js). */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(220px 220px at var(--mx, 30%) var(--my, 0%),
    rgba(255,255,255,0.08), transparent 65%);
}

/* ---- Headline gradient ------------------------------------------------- */
.grad, .hero h1 {
  background: linear-gradient(180deg, #fff, #bcd4ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; padding: 14px 28px; font-size: 16px; font-weight: 600;
  color: #061224; text-decoration: none; border-radius: 12px;
  background: linear-gradient(180deg, #7fb4ff, #3f86f5);
  box-shadow: 0 8px 24px rgba(63,134,245,0.4);
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
  display: inline-block; padding: 13px 26px; font-size: 16px; font-weight: 600;
  color: var(--text); text-decoration: none; border-radius: 12px;
  border: 1px solid var(--rim);
  background: rgba(255,255,255,0.04);
  transition: background 0.15s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---- Sticky glass nav ---------------------------------------------------- */
.nav-outer {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 24px 8px;
}
.nav {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 10px 16px; border-radius: 16px;
}
.nav .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 16px; letter-spacing: -0.2px;
}
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav .links a {
  color: var(--text-2); text-decoration: none;
  font-size: 14px; padding: 8px 12px; border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav .links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav .links a[aria-current="page"] { color: var(--text); }
.nav .nav-cta {
  margin-left: 4px; padding: 9px 16px; font-size: 14px; font-weight: 600;
  color: #061224; text-decoration: none; border-radius: 10px;
  background: linear-gradient(180deg, #7fb4ff, #3f86f5);
  box-shadow: 0 6px 18px rgba(63,134,245,0.35);
  transition: filter 0.15s ease;
}
.nav .nav-cta:hover { filter: brightness(1.06); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { text-align: center; padding: 64px 32px 0; }
.hero h1 {
  margin: 0 0 12px; font-size: 54px; font-weight: 700; letter-spacing: -0.5px;
}
.hero .tagline { color: var(--text-2); font-size: 18px; max-width: 680px; margin: 0 auto 8px; }
.hero .works-with { color: var(--fine); font-size: 14px; margin: 0 0 30px; }
.hero .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }

/* Glass-framed, slightly tilted hero screenshot. */
.shot-frame {
  padding: 12px; overflow: hidden;
}
.shot-frame img { border-radius: 12px; }
.hero-shot {
  max-width: 880px; margin: 44px auto 0;
  perspective: 1400px;
}
.hero-shot .shot-frame {
  transform: rotateX(5deg) rotateY(-4deg) translateY(-4px);
  transform-style: preserve-3d;
  box-shadow: 0 50px 120px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ---- Feature teaser cards -------------------------------------------------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin: 56px 0 28px;
}
.card {
  padding: 26px 24px; color: inherit; text-decoration: none; display: block;
  transition: transform 0.15s ease;
}
a.card:hover { transform: translateY(-2px); }
.card .glyph {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px;
  background: linear-gradient(160deg, rgba(127,180,255,0.35), rgba(63,134,245,0.15));
  border: 1px solid rgba(120,170,255,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  display: grid; place-items: center;
  font-size: 19px; line-height: 1; color: #cfe2ff;
}
.card h2, .card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--text); }
.card p  { margin: 0; font-size: 13.5px; color: var(--text-2); }
.card .more { display: inline-block; margin-top: 12px; font-size: 13px; color: #9cc2ff; }

/* ---- Full-width screenshot band --------------------------------------------- */
.band { margin: 28px 0; padding: 14px; }
.band img { border-radius: 12px; }
.band figcaption {
  text-align: center; color: var(--text-2); font-size: 14px;
  padding: 14px 18px 6px; max-width: 720px; margin: 0 auto;
}

/* ---- Invite / generic centered panel ------------------------------------------ */
.invite { padding: 34px 32px; text-align: center; margin: 10px 0 28px; }
.invite h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.invite p { color: var(--text-2); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* ---- Page headers (features / pricing) ------------------------------------------ */
.page-head { text-align: center; padding: 56px 24px 12px; }
.page-head h1 { margin: 0 0 10px; font-size: 42px; font-weight: 700; letter-spacing: -0.5px; }
.page-head p { color: var(--text-2); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ---- Alternating feature splits (features.html) ----------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; align-items: center;
  margin: 44px 0;
}
.split .shot-frame { padding: 10px; }
.split .copy h2 { margin: 0 0 12px; font-size: 28px; font-weight: 700; letter-spacing: -0.3px; }
.split .copy > p { color: var(--text-2); font-size: 15.5px; margin: 0 0 18px; }
.split.flip .copy { order: -1; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: var(--text-2);
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(120,170,255,0.10);
}
.bullets li strong { color: var(--text); font-weight: 600; }
.bullets .tick {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 6px; font-size: 12px; line-height: 20px; text-align: center;
  color: #cfe2ff;
  background: linear-gradient(160deg, rgba(127,180,255,0.35), rgba(63,134,245,0.15));
  border: 1px solid rgba(120,170,255,0.3);
}

/* ---- Pricing --------------------------------------------------------------------- */
.beta-chip {
  display: inline-block; margin: 0 auto;
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #cfe2ff;
  background: rgba(127,180,255,0.10);
  border: 1px solid rgba(120,170,255,0.35);
}
.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 18px; margin: 36px 0 14px;
}
.tier { padding: 26px 22px; display: flex; flex-direction: column; }
.tier .tier-name { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: var(--text); }
.tier .price { margin: 0 0 4px; font-size: 34px; font-weight: 700; letter-spacing: -0.5px; }
.tier .price .per { font-size: 14px; font-weight: 500; color: var(--fine); letter-spacing: 0; }
.tier .tier-sub { margin: 0 0 16px; font-size: 13px; color: var(--fine); }
.tier ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; flex: 1; }
.tier ul li { font-size: 13.5px; color: var(--text-2); padding-left: 22px; position: relative; }
.tier ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #9cc2ff; font-size: 12px;
}
.tier .btn, .tier .btn-ghost { text-align: center; font-size: 14.5px; padding: 11px 18px; }
.tier.popular { border-color: rgba(127,180,255,0.45); }
.tier .pop-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: #061224;
  background: linear-gradient(180deg, #7fb4ff, #3f86f5);
  box-shadow: 0 6px 18px rgba(63,134,245,0.4);
  white-space: nowrap;
}
.pricing-notes { padding: 28px 30px; margin: 24px 0; }
.pricing-notes h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.pricing-notes dl { margin: 0; display: grid; gap: 14px; }
.pricing-notes dt { font-size: 14.5px; font-weight: 600; color: var(--text); margin: 0 0 2px; }
.pricing-notes dd { font-size: 14px; color: var(--text-2); margin: 0; }

/* ---- Footer -------------------------------------------------------------------------- */
.site-footer {
  text-align: center; color: var(--fine); font-size: 12.5px;
  padding: 28px 0 24px;
}
.site-footer .foot-links { margin-bottom: 8px; }
.site-footer .foot-links a {
  color: var(--text-2); text-decoration: none; font-size: 13px; margin: 0 10px;
}
.site-footer .foot-links a:hover { color: var(--text); }
.site-footer p { margin: 4px 0; }

/* ---- Responsive ------------------------------------------------------------------------ */
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 20px; }
  .split.flip .copy { order: 0; }
  .split .shot-frame { order: -1; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 38px; }
  .hero { padding: 44px 20px 0; }
  .hero-shot .shot-frame { transform: none; }
  .page-head h1 { font-size: 32px; }
  .features, .tiers { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
  .nav .links { margin-left: 0; justify-content: center; }
  .split .copy h2 { font-size: 23px; }
}

/* ---- Accessibility fallbacks -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-shot .shot-frame { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: #121a28;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .glass::after { display: none; }
}
