/* ============================================================
 * Discovery AI — Marketing site styles
 * Layered on top of styles/tokens.css (codebase-mirrored tokens)
 * ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #ffffff; }
body {
  font-family: var(--font-inter);
  color: var(--black-80);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --- Layout primitives --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* Section vertical rhythm */
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-tight { padding: 64px 0; }

/* --- Eyebrow / section heads --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-100);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
}
.eyebrow-plain::before { display: none; }

/* --- Marketing display type ------------------------------ */
/* These are bigger than the in-product .text-h1 etc.
   Marketing surfaces use Bold 700 for display per design system. */
.display-xl {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--black-100);
  text-wrap: balance;
}
.display-lg {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--black-100);
  text-wrap: balance;
}
.display-md {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--black-100);
  text-wrap: balance;
}
.display-sm {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--black-100);
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--black-60);
  font-weight: 400;
  text-wrap: pretty;
}
.body-lg { font-size: 17px; line-height: 1.55; color: var(--black-60); }
.body    { font-size: 15px; line-height: 1.55; color: var(--black-60); }
.body-sm { font-size: 13px; line-height: 1.5; color: var(--black-60); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px;
  font-weight: 500; font-size: 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary {
  background: var(--primary-100); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 20px -8px rgba(102,82,255,0.55);
}
.btn-primary:hover { background: #5947E6; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 28px -10px rgba(102,82,255,0.7); }
.btn-primary:active { background: #4A37C7; transform: translateY(1px); }
.btn-secondary {
  background: #fff; color: var(--black-100);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--primary-10); border-color: var(--primary-40); color: var(--primary-100); }
.btn-ghost {
  background: transparent; color: var(--black-80);
}
.btn-ghost:hover { color: var(--primary-100); }
.btn-dark {
  background: var(--black-100); color: #fff;
}
.btn-dark:hover { background: #2a2935; }

.btn .arrow {
  display: inline-block; transition: transform .15s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Text link with chevron */
.tlink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary-100);
  font-weight: 500;
  transition: color .12s ease, gap .15s ease;
}
.tlink:hover { color: #4A37C7; gap: 10px; }

/* --- Surfaces --- */
.surface-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.surface-soft {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.lavender-bg {
  background: linear-gradient(180deg, #f4f4ff 0%, #efeffd 100%);
}
.lavender-radial {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(102,82,255,0.06), transparent 70%),
    linear-gradient(180deg, #fafaff 0%, #f3f3fb 100%);
}

/* Hairline divider with violet accent */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}

/* --- Tag / chip --- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-10);
  color: var(--primary-100);
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--primary-20);
}
.chip-neutral {
  background: var(--black-5);
  color: var(--black-80);
  border-color: var(--border);
}
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* --- Nav --- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.92);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-brand img { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--black-80);
  padding: 8px 12px; border-radius: 8px;
  transition: background .12s ease, color .12s ease;
  position: relative;
}
.nav-link:hover { background: var(--primary-10); color: var(--primary-100); }
.nav-link.has-caret::after {
  content: ""; display: inline-block; margin-left: 4px;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .55;
}
.nav-link.is-active { background: var(--primary-10); color: var(--primary-100); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta { height: 40px; padding: 0 16px; font-size: 14px; }

/* --- Sticky footer CTA / band --- */
.cta-band {
  background: linear-gradient(135deg, #1c1830 0%, #2a1d5a 60%, #4530c2 100%);
  color: #fff;
  border-radius: 24px;
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: -40% -10% auto auto;
  width: 60%; aspect-ratio: 1/1;
  background: radial-gradient(circle, rgba(147,114,255,0.55), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

/* --- Hero specifics --- */
.hero-wrap {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(186,170,255,0.35), transparent 60%),
    radial-gradient(60% 50% at 90% 30%, rgba(102,82,255,0.10), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f6f5ff 60%, #ffffff 100%);
}
.hero-mark {
  position: absolute;
  right: -120px; top: -80px;
  width: 720px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  transform: rotate(8deg);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

/* --- Decorative ambient ellipse --- */
.ambient-ellipse {
  position: absolute;
  width: 900px; height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* --- Logo strip --- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: center;
  opacity: 0.85;
}
.logo-strip > * {
  display: flex; justify-content: center;
  filter: grayscale(1);
  opacity: 0.6;
  color: var(--black-60);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-style: italic;
}

/* --- Stat / KPI --- */
.stat-num {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black-100);
}

/* --- Product mock chrome (used in demo section) --- */
.mock-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 30px 60px -20px rgba(22, 19, 49, 0.18),
    0 12px 24px -8px rgba(22, 19, 49, 0.10);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--black-5);
}
.mock-titlebar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #d6d4e4;
}
.mock-url {
  margin-left: 12px;
  flex: 1;
  font-size: 12px;
  color: var(--black-40);
  display: flex; align-items: center; gap: 6px;
}

/* --- Animations --- */
@keyframes pulseSoft {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1.0; transform: scale(1.02); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes dash {
  to { stroke-dashoffset: -16; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp .6s cubic-bezier(.2,.6,.2,1) both; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fafaff;
  padding: 80px 0 40px;
  color: var(--black-60);
}
.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.foot-h {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--black-100);
  margin-bottom: 16px;
}
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-list a { color: var(--black-60); font-size: 14px; transition: color .12s ease; }
.foot-list a:hover { color: var(--primary-100); }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--black-40);
}

/* Tweak panel z-index above everything */
[data-tweaks-panel] { z-index: 999; }

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 28px; }
}
