/* ClerkBrain marketing site - shared styles.
   Palette matches the app's own brand mark (indigo/cyan/pink gradient on deep navy). */

:root {
  --bg: #0b0e1f;
  --bg2: #0b1030;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f4f6fb;
  --text-dim: #aab2c8;
  --text-dimmer: #7b84a0;
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --pink: #e879f9;
  --warm1: #ff8a5b;
  --warm2: #ff3d81;
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(99, 102, 241, 0.25), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, rgba(232, 121, 249, 0.14), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--indigo) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 10px;
}

.lede { color: var(--text-dim); font-size: 1.1rem; max-width: 60ch; }

/* ---- Header ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 14, 31, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.95rem; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
  color: #0b0e1f !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(129, 140, 248, 0.45); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 0 0; flex-direction: column; align-items: flex-start;
    padding: 24px; gap: 18px; background: var(--bg2); border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-110%); transition: transform 0.25s ease; z-index: 49;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* ---- Hero ---- */
.hero { padding: 86px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.hero::before { width: 420px; height: 420px; background: var(--indigo); top: -120px; left: -80px; }
.hero::after { width: 380px; height: 380px; background: var(--pink); top: 40px; right: -100px; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
}
.hero-logo { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 26px; box-shadow: 0 20px 60px rgba(99,102,241,0.4); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 18px; font-weight: 800; }
.hero .lede { margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700;
  padding: 14px 26px; border-radius: 999px; font-size: 1rem; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--indigo), var(--pink));
  background-size: 200% auto; color: #080a18; box-shadow: 0 10px 34px rgba(129,140,248,0.4);
}
.btn-primary:hover { background-position: right center; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--card-border); color: var(--text); background: var(--card); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.trust-line { color: var(--text-dimmer); font-size: 0.85rem; }

/* ---- Sections ---- */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 14px; font-weight: 800; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(129,140,248,0.4); background: rgba(255,255,255,0.06); }
.card .icon { font-size: 1.8rem; margin-bottom: 14px; display: inline-block; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.shot {
  border-radius: 14px; border: 1px solid var(--card-border); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.shot img { width: 100%; }

.showcase-row { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: center; margin-bottom: 70px; }
.showcase-row.reverse { direction: rtl; }
.showcase-row.reverse > * { direction: ltr; }
@media (max-width: 880px) { .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; direction: ltr; } }
.showcase-text h3 { font-size: 1.5rem; margin: 10px 0 12px; }
.showcase-text p { color: var(--text-dim); }
.showcase-text ul { color: var(--text-dim); padding-left: 20px; }
.showcase-text li { margin-bottom: 6px; }

.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; background: rgba(34,211,238,0.12); color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.3); margin-bottom: 10px;
}

.band {
  background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(232,121,249,0.08));
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
}

.faq-item { border-bottom: 1px solid var(--card-border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--cyan); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-dim); margin: 12px 0 0; }

.breadcrumb { font-size: 0.85rem; color: var(--text-dimmer); margin: 24px 0 0; }
.breadcrumb a { color: var(--text-dimmer); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-dim); }

footer.site { border-top: 1px solid var(--card-border); padding: 50px 0 36px; color: var(--text-dimmer); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--text-dim); font-size: 0.85rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--text-dimmer); }
.footer-grid a:hover { color: var(--text-dim); }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose p, .prose li { color: var(--text-dim); }
.prose a { color: var(--cyan); }
.prose ul { padding-left: 22px; }

.page-hero { padding: 54px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 10px 0 14px; }

.disclosure { font-size: 0.85rem; color: var(--text-dimmer); text-align: center; margin-top: -10px; }

.shot a, .hero-frame a { display: block; cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 7, 18, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 24px 24px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: min(96vw, 1440px); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); background: #fff; }
.lightbox-caption { color: #cfd6e6; font-family: Arial, sans-serif; font-size: 0.9rem; margin: 14px 0 0; text-align: center; max-width: 80ch; }
.lightbox-close { position: absolute; top: 16px; right: 20px; font: 600 1rem Arial, sans-serif; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255,255,255,0.24); outline: 2px solid #fff; outline-offset: 2px; }
body.lightbox-open { overflow: hidden; }
