/* Standard Deviation marketing site — v3 shared styles.
 * Imports brand tokens from the vendored design system. Surface-specific
 * tokens live here; brand-wide tokens live in design-system/colors_and_type.css.
 * <!-- design system v3.0 --> */

@import "/shared/design-system/colors_and_type.css";

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: var(--fw-normal);
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(168,85,247,0.18); color: rgb(var(--ink)); }

img, svg { max-width: 100%; display: block; }

/* ── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-heading);
  line-height: 1.08;
  color: rgb(var(--ink));
}
h1 { font-size: clamp(44px, 7.2vw, 80px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.028em; line-height: 1.1; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: 14px; letter-spacing: -0.01em; }

p  { color: rgb(var(--ink-muted)); }
a  { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: rgb(var(--brand-purple)); }

strong { font-weight: var(--fw-bold); color: rgb(var(--ink)); }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168,85,247,0.08);
  color: rgb(var(--brand-purple));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgb(var(--ink-light));
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gradient-hero-h);
  border-radius: 2px;
}
.eyebrow.no-bar::before { display: none; }
.eyebrow.center-text::before { display: none; }

.grad-text {
  background: var(--gradient-hero-h);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.grad-rule {
  height: 3px; border: none;
  background: var(--gradient-hero-h);
}

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: rgb(var(--ink-muted));
  max-width: 60ch;
  font-weight: var(--fw-normal);
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }

section { padding: 112px 0; position: relative; }
section.compact { padding: 72px 0; }
section.tight   { padding: 40px 0; }

@media (max-width: 720px) {
  section { padding: 72px 0; }
  section.compact { padding: 56px 0; }
  .container, .container-narrow { padding: 0 20px; }
}

/* Subtle ambient surface variants */
.surface-soft  { background: rgb(var(--bg-soft)); }
.surface-ink   { background: rgb(var(--ink-deep)); color: rgb(var(--white)); }
.surface-ink p, .surface-ink .lede { color: rgba(255,255,255,0.78); }
.surface-ink h1, .surface-ink h2, .surface-ink h3, .surface-ink h4 { color: rgb(var(--white)); }
.surface-ink .eyebrow { color: rgba(255,255,255,0.72); }
.surface-gradient { background: var(--gradient-hero); color: rgb(var(--white)); }
.surface-gradient h1, .surface-gradient h2, .surface-gradient h3 { color: rgb(var(--white)); }
.surface-gradient p, .surface-gradient .lede { color: rgba(255,255,255,0.92); }

/* ── Nav ────────────────────────────────────────────────────────────── */
nav.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  width: 100%;
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(196,184,216,0.22);
}
.nav-brand {
  font-weight: var(--fw-bold); font-size: 19px; letter-spacing: -0.025em;
  color: rgb(var(--ink));
}
.nav-brand .light { font-weight: var(--fw-light); }
.nav-brand:hover { color: rgb(var(--ink)); }

.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: rgb(var(--ink-muted));
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-links a:not(.nav-cta):hover {
  color: rgb(var(--ink));
  background: rgba(168,85,247,0.06);
}
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: rgb(var(--ink));
  font-weight: var(--fw-bold);
}
.nav-cta {
  font-weight: var(--fw-bold);
  padding: 9px 16px !important;
  border-radius: 999px;
  background: rgb(var(--ink));
  color: rgb(var(--white)) !important;
  font-size: 13px;
  letter-spacing: 0.01em;
  margin-left: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13,10,20,0.18);
  color: rgb(var(--white)) !important;
  background: rgb(var(--ink));
}

@media (max-width: 720px) {
  nav.site-nav { padding: 10px 16px; }
  .nav-brand { font-size: 17px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.nav-cta) { padding: 6px 8px; font-size: 12.5px; }
  .nav-cta { padding: 7px 13px !important; font-size: 12px; margin-left: 4px; }
}
@media (max-width: 420px) {
  nav.site-nav { padding: 10px 12px; }
  .nav-brand { font-size: 15px; }
  .nav-links a:not(.nav-cta) { padding: 5px 6px; font-size: 11.5px; }
  .nav-cta { padding: 6px 11px !important; font-size: 11.5px; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer.site-footer {
  position: relative;
  padding: 64px 28px 36px;
  margin-top: 0;
  font-size: 13px;
  color: rgb(var(--ink-light));
  background: rgb(var(--ink-deep));
  color: rgba(255,255,255,0.72);
}
footer.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-hero-h);
}
footer.site-footer .container {
  display: grid; gap: 36px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  max-width: 1200px;
}
@media (max-width: 720px) {
  footer.site-footer .container { grid-template-columns: 1fr 1fr; }
}
footer.site-footer .nav-brand {
  color: rgb(var(--white));
  font-size: 19px;
}
footer.site-footer .nav-brand:hover { color: rgb(var(--white)); }
footer.site-footer p { color: rgba(255,255,255,0.55); font-size: 13px; }
footer.site-footer h4 {
  font-size: 11px; font-weight: var(--fw-bold); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: rgb(var(--white)); margin-bottom: 14px;
}
footer.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer.site-footer a { color: rgba(255,255,255,0.65); }
footer.site-footer a:hover { color: rgb(var(--white)); }
footer.site-footer .footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: var(--fw-bold); font-size: 14px; letter-spacing: var(--tracking-cta);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: rgb(var(--ink));
  color: rgb(var(--white));
  box-shadow: 0 6px 18px rgba(13,10,20,0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13,10,20,0.24);
  color: rgb(var(--white));
  background: rgb(var(--ink-deep));
}
.btn-gradient {
  background: var(--gradient-hero);
  color: rgb(var(--white));
  border: none;
  box-shadow: 0 6px 18px rgba(168,85,247,0.30);
}
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(168,85,247,0.40);
  color: rgb(var(--white));
}
.btn-secondary {
  background: transparent;
  color: rgb(var(--ink));
  border: 1px solid rgba(90,60,140,0.18);
}
.btn-secondary:hover {
  border-color: rgb(var(--ink));
  color: rgb(var(--ink));
  background: rgba(168,85,247,0.04);
}
.btn-ghost {
  background: transparent; color: rgb(var(--ink));
  padding: 8px 12px;
  border-radius: 8px;
}
.btn-ghost:hover { background: rgba(168,85,247,0.08); color: rgb(var(--ink)); }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn .arrow,
.btn::after {
  transition: transform 0.18s ease;
}

/* Arrow link — for inline "Read more →" callouts */
.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: var(--fw-bold); font-size: 14px;
  color: rgb(var(--brand-purple));
  letter-spacing: var(--tracking-cta);
}
.arrow-link::after {
  content: "→";
  transition: transform 0.18s ease;
}
.arrow-link:hover::after { transform: translateX(4px); }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
  background: rgb(var(--white));
  border: 1px solid rgba(90,60,140,0.10);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(13,10,20,0.08), 0 4px 12px rgba(168,85,247,0.06);
  border-color: rgba(90,60,140,0.18);
}
.card h3 { margin-bottom: 6px; }
.card .eyebrow { margin-bottom: 16px; display: inline-flex; }

.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Spotlight card — gradient ring */
.card.spotlight {
  border: none;
  background:
    linear-gradient(rgb(var(--white)), rgb(var(--white))) padding-box,
    var(--gradient-hero-h) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 36px rgba(168,85,247,0.10);
}

/* Soft card — for nested grids inside surface-soft sections */
.card.soft {
  background: rgb(var(--white));
  border: 1px solid rgba(90,60,140,0.08);
}

/* Dark card on ink surfaces */
.surface-ink .card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.surface-ink .card h3 { color: rgb(var(--white)); }
.surface-ink .card p { color: rgba(255,255,255,0.65); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  position: relative;
}
.hero h1 { margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero with ambient gradient blobs */
.hero.hero-ambient {
  overflow: hidden;
  isolation: isolate;
}
.hero.hero-ambient::before,
.hero.hero-ambient::after {
  content: "";
  position: absolute; z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.hero.hero-ambient::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(236,72,153,0.35), transparent 70%);
  top: -120px; left: -120px;
}
.hero.hero-ambient::after {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(249,115,22,0.28), transparent 70%);
  top: 40px; right: -160px;
}

/* ── Two-up panels ──────────────────────────────────────────────────── */
.two-up {
  display: grid; gap: 24px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 820px) {
  .two-up { grid-template-columns: 1fr; }
}

.three-up {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) {
  .three-up { grid-template-columns: 1fr; }
}

/* Spotlight + plain cards inside .two-up should breathe less on mobile */
@media (max-width: 820px) {
  .card.spotlight,
  .two-up .card {
    padding: 28px !important;
  }
  .two-up h3 { font-size: 22px !important; }
}

/* ── Dual-mode cards (managed vs self-serve) ────────────────────────── */
.mode-card {
  background: rgb(var(--white));
  border: 1px solid rgba(90,60,140,0.10);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(13,10,20,0.07);
}
.mode-card h3 { margin-bottom: 8px; }
.mode-card .price {
  font-size: 14px; color: rgb(var(--brand-purple));
  font-weight: var(--fw-bold); letter-spacing: var(--tracking-cta);
  margin: 16px 0;
}
.mode-card.managed { border-top: 3px solid rgb(var(--brand-pink)); }
.mode-card.self-serve { border-top: 3px solid rgb(var(--brand-purple)); }

/* ── Pills / chips ──────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: var(--fw-bold); letter-spacing: var(--tracking-cta);
  text-transform: uppercase;
  background: rgba(168,85,247,0.10);
  color: rgb(var(--brand-purple));
}
.pill.pink   { background: rgba(236,72,153,0.10); color: rgb(var(--brand-pink)); }
.pill.violet { background: rgba(124,58,237,0.10); color: rgb(var(--brand-violet)); }
.pill.orange { background: rgba(249,115,22,0.10); color: rgb(var(--brand-orange)); }
.pill.ink    { background: rgba(13,10,20,0.08); color: rgb(var(--ink)); }

/* Module dot — for OS module callouts */
.dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 999px;
  background: rgb(var(--brand-purple));
}
.dot.pink   { background: rgb(var(--brand-pink)); }
.dot.violet { background: rgb(var(--brand-violet)); }
.dot.orange { background: rgb(var(--brand-orange)); }

/* ── Feature list ───────────────────────────────────────────────────── */
.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.55;
  color: rgb(var(--ink-muted));
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--gradient-hero-h);
  opacity: 0.95;
  mask: radial-gradient(circle at center, transparent 4px, #000 4.5px);
  -webkit-mask: radial-gradient(circle at center, transparent 4px, #000 4.5px);
}

/* ── Stats ──────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat .label {
  font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgb(var(--ink-light));
  display: block; margin-bottom: 8px;
}
.stat .value {
  font-size: 36px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  color: rgb(var(--ink));
  line-height: 1.05;
}
.stat .value .grad-text { background: var(--gradient-hero-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Section head — eyebrow + h2 + optional lede ─────────────────────── */
.section-head { max-width: 700px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head.center-text { margin: 0 auto; text-align: center; }
.section-head.center-text .eyebrow::before { display: none; }
.section-head.center-text .eyebrow { padding-left: 0; }

/* ── Module preview card (for StandardOS visual) ───────────────────── */
.module-stack {
  display: flex; flex-direction: column; gap: 1px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(196,184,216,0.16);
  border: 1px solid rgba(90,60,140,0.10);
}
.module-stack .row {
  background: rgb(var(--white));
  padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.module-stack .row strong {
  font-size: 15px;
}
.module-stack .row p {
  font-size: 13px; color: rgb(var(--ink-muted));
  margin-top: 6px;
  flex: 1 1 100%;
}
.module-stack .row .copy { flex: 1 1 auto; }

/* ── Ambient dot grid (legacy class kept for any pages still using it) */
.dot-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(196,184,216,0.18) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

/* ── Utilities ──────────────────────────────────────────────────────── */
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.center-text { text-align: center; }
.relative { position: relative; }
.z-1 { position: relative; z-index: 1; }
.muted { color: rgb(var(--ink-light)); }
.tight-text { max-width: 56ch; }

/* Logo dot accent for cards */
.module-accent {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgb(var(--ink-light));
}
