/* Shared CSS for /features/* — mirrors the design tokens + nav + hero
   patterns from landing/index.html so feature pages feel native to the
   marketing site without copy-pasting hundreds of lines per page.

   Each feature page links this file and then adds its page-specific
   bits inline. Keep additions here scoped to elements multiple feature
   pages use; one-offs stay inline. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050508;
  --t1: #f0eef6;
  --t2: rgba(240, 238, 246, 0.65);
  --t3: rgba(240, 238, 246, 0.3);
  --ac: #0EC8C8;
  --ac2: #7B61FF;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --success: #4ade80;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ac); text-decoration: none; transition: color 0.15s; }
a:hover { color: #5BD9D9; }

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

/* ── Animated gradient mesh background — same orbs as homepage ── */
.bg-mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-mesh .orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; will-change: transform; }
.bg-mesh .orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14, 200, 200, 0.4), transparent 70%);
  top: -10%; left: -10%;
  animation: drift1 20s ease-in-out infinite;
}
.bg-mesh .orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.35), transparent 70%);
  bottom: -15%; right: -10%;
  animation: drift2 25s ease-in-out infinite;
}
.bg-mesh .orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14, 200, 200, 0.2), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: drift3 18s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 100px) scale(0.95); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -80px) scale(1.05); }
  66% { transform: translate(50px, -40px) scale(0.9); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* ── Page shell ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ── Nav (mirrors homepage) ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--t1); font-weight: 600; text-decoration: none; font-size: 15px; }
.nav-brand-mark {
  width: 20px; height: 20px; flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(14, 200, 200, 0.4));
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: var(--t2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--t1); }
.nav-cta {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--t1) !important;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Typography ── */
h1, h2, h3, h4 {
  color: var(--t1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: 2.8rem; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.6rem; font-weight: 600; }
p { color: var(--t2); margin-bottom: 1rem; }
p strong, li strong { color: var(--t1); font-weight: 600; }
ul, ol { margin: 0.5rem 0 1.25rem 1.4rem; color: var(--t2); }
li { margin-bottom: 0.4rem; }
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #B4EBEB;
}

.gradient-text {
  background: linear-gradient(135deg, var(--ac) 0%, #7BE0E0 40%, var(--ac2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  color: var(--t2);
  font-size: 1.18rem;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ac), #0AADAD);
  color: #050508;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #050508; }

.btn-secondary {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--t1);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: var(--t1); }

/* ── Feature index card grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.feature-card {
  display: block;
  padding: 1.4rem 1.5rem 1.6rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(14, 200, 200, 0.3);
  transform: translateY(-2px);
  color: inherit;
}
.feature-card-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ac);
  margin-bottom: 0.5rem;
}
.feature-card-kicker.is-new::after {
  content: 'New';
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  color: var(--success);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.feature-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.feature-card-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.5;
  margin-bottom: 0;
}
.feature-card-arrow {
  margin-top: 0.9rem;
  font-size: 13px;
  color: var(--ac);
  font-weight: 500;
}

/* ── Hero (feature pages) ── */
.feature-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.feature-hero .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ac);
  margin-bottom: 1rem;
}
.feature-hero .kicker .new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  color: var(--success);
  font-size: 9.5px;
}

/* ── Section blocks within a feature page ── */
.feature-section {
  max-width: 880px;
  margin: 0 auto 3.5rem;
}
.feature-shot {
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.feature-shot img { display: block; width: 100%; }
.feature-shot.framed {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.feature-callout {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(14, 200, 200, 0.06);
  border-left: 3px solid var(--ac);
  border-radius: 8px;
}
.feature-callout p { color: var(--t1); margin: 0; font-size: 15px; }

/* ── FAQ ── */
.faq-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--glass-border);
}
.faq-item:last-child { border-bottom: 1px solid var(--glass-border); }
.faq-q {
  color: var(--t1);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.faq-a { color: var(--t2); margin-bottom: 0; }

/* ── Related-features strip ── */
.related-strip {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.related-strip h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
  margin: 0 0 1rem;
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}
.related-card {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass);
  text-decoration: none;
  color: var(--t1);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.related-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(14, 200, 200, 0.3);
  color: var(--t1);
}
.related-card span {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--t2);
  margin-top: 0.2rem;
}

/* ── CTA block (page bottom) ── */
.feature-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}
.feature-cta h3 {
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
}
.feature-cta p {
  margin-bottom: 1.5rem;
}
.feature-cta .trial-note {
  display: block;
  margin-top: 0.8rem;
  color: var(--t3);
  font-size: 13px;
}

/* ── Prev/Next strip (between hero pages) ── */
.feature-walk {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
}
.feature-walk a {
  color: var(--t2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-walk a:hover { color: var(--ac); }
.feature-walk .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
}

/* ── Footer ── */
footer {
  text-align: center;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--t3);
  font-size: 13px;
}
footer a { color: var(--t2); margin: 0 4px; }
footer a:hover { color: var(--t1); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .page { padding: 2rem 1.25rem 3rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .lede { font-size: 1.05rem; }
  .nav { margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; }
  .nav-links a { font-size: 13px; }
}
