/* ============================================================
   Mixbound — Design System
   ============================================================ */

:root {
  --brand-orange: 24 95% 53%;
  --brand-coral:  10 85% 57%;
  --brand-pink:   340 82% 52%;
  --gradient-primary: linear-gradient(135deg, hsl(24, 95%, 53%) 0%, hsl(10, 85%, 57%) 50%, hsl(340, 82%, 52%) 100%);
  --gradient-subtle:  linear-gradient(135deg, hsla(24, 95%, 53%, 0.1) 0%, hsla(340, 82%, 52%, 0.1) 100%);

  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 14%, 10%);
  --card:       hsl(0, 0%, 100%);
  --muted:      hsl(220, 14%, 96%);
  --muted-fg:   hsl(220, 9%, 46%);
  --primary:    hsl(24, 95%, 53%);
  --primary-soft: hsla(24, 95%, 53%, 0.08);
  --destructive: hsl(0, 84%, 60%);
  --border:      hsl(220, 13%, 91%);
  --border-soft: hsla(220, 13%, 91%, 0.6);
  --section-alt: hsl(220, 14%, 98%);
  --ring:        hsl(24, 95%, 53%);

  --radius-sm: 0.375rem;
  --radius:    0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
  --shadow-lift: 0 10px 40px -15px hsla(10, 85%, 57%, 0.18);
}

/* ─── Reset & base ─────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "rlig" 1, "calt" 1;
}

img, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.2;
}

/* ─── Layout primitives ────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section       { padding: 5rem 0; }
.section-lg    { padding: 5rem 0; }
.section-hero  { padding: 4rem 0; }

@media (min-width: 768px) {
  .section      { padding: 7rem 0; }
  .section-lg   { padding: 7rem 0; }
  .section-hero { padding: 6rem 0; }
}

.section-alt    { background: var(--section-alt); }
.section-subtle { position: relative; overflow: hidden; background: var(--gradient-subtle); }

.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }

/* ─── Typography ───────────────────────────────────────────── */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.text-muted    { color: var(--muted-fg); }
.text-primary  { color: var(--primary); }
.text-foreground { color: var(--foreground); }

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-fg);
}
@media (min-width: 768px) { .lead { font-size: 1.25rem; } }

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

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
@media (min-width: 768px)  { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
@media (min-width: 768px) { .page-title { font-size: 3rem; } }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

.block-title {
  font-size: 1.5rem;
  font-weight: 700;
}
@media (min-width: 768px) { .block-title { font-size: 1.875rem; } }

/* ─── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: var(--background);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); }

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn .icon-arrow { width: 1.25rem; height: 1.25rem; }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 640px) { .btn-group { flex-direction: row; } }

.btn-group-left { justify-content: flex-start; }

/* ─── Badge / pill ─────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ─── Cards ────────────────────────────────────────────────── */

.card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border-soft);
}
.card-lg { padding: 2.5rem; }
@media (min-width: 768px) { .card-lg { padding: 3rem; } }

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 1px solid var(--border-soft);
  text-align: left;
}

.card-callout {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: var(--gradient-subtle);
  border: 1px solid hsla(220, 13%, 91%, 0.4);
}
@media (min-width: 768px) { .card-callout { padding: 3rem; } }

/* ─── Icon box ─────────────────────────────────────────────── */

.icon-box {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.icon-box svg { width: 1.5rem; height: 1.5rem; }

.icon-box-lg { width: 4rem; height: 4rem; border-radius: var(--radius-xl); }
.icon-box-lg svg { width: 2rem; height: 2rem; }

.icon-box-sm {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box-sm svg { width: 1.25rem; height: 1.25rem; }

/* ─── Grid helpers ─────────────────────────────────────────── */

.grid { display: grid; gap: 2rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 2rem; grid-template-columns: 1fr; }

.grid-2-sm, .grid-3-sm { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
  .grid-3-sm { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-tight { gap: 1.5rem; }

.stack-lg > * + * { margin-top: 2rem; }

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: var(--gradient-subtle);
}
@media (min-width: 768px)  { .hero { padding: 7rem 0; } }
@media (min-width: 1024px) { .hero { padding: 9rem 0; } }

.hero-content { position: relative; text-align: center; }
.hero-content-left { text-align: left; max-width: 48rem; }

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-fg);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.25rem; } }

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* ─── Header (sticky nav) ──────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsla(220, 13%, 91%, 0.5);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.nav {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 2rem; width: auto; }

.nav-links { display: none; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--foreground); background: var(--muted); }

.nav-cta { display: none; }
.nav-cta .btn { padding: 0.5rem 1rem; font-size: 0.875rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--muted-fg);
  border-radius: var(--radius);
}
.nav-toggle:hover { color: var(--foreground); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
}
.nav-mobile.is-open { display: block; }
.nav-mobile-inner { padding: 1rem 0; }
.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  color: var(--muted-fg);
  transition: color 0.15s ease;
}
.nav-mobile a:hover { color: var(--foreground); }
.nav-mobile .btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .nav-links, .nav-cta { display: flex; align-items: center; gap: 0.25rem; }
  .nav-cta { gap: 0.75rem; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ─── Footer ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: hsla(220, 14%, 96%, 0.5);
}
.site-footer-inner {
  padding: 3rem 0;
}
@media (min-width: 768px) { .site-footer-inner { padding: 4rem 0; } }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand img { height: 1.75rem; width: auto; }
.footer-tagline {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.footer-links li + li { margin-top: 0.75rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--foreground); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ─── Steps (how-it-works) ─────────────────────────────────── */

.steps { max-width: 56rem; margin: 0 auto; }

.step {
  position: relative;
  display: flex;
  gap: 2rem;
  padding-bottom: 4rem;
}
.step:last-child { padding-bottom: 0; }

.step-rail {
  position: absolute;
  left: 1.5rem;
  top: 4rem;
  width: 1px;
  height: calc(100% - 4rem);
  background: var(--border);
}

.step-icon { position: relative; flex-shrink: 0; }
.step-number {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.step-title {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}
@media (min-width: 768px) { .step-title { font-size: 1.5rem; } }
.step-desc {
  margin-top: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.7;
  max-width: 36rem;
}

/* ─── Use-case / audience blocks ───────────────────────────── */

.case-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-block + .case-block { margin-top: 1rem; }
.case-block p { margin-top: 0.25rem; }

.case-impact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.audience-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border-soft);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.audience-card + .audience-card { margin-top: 2rem; }

.signal-list { margin-top: 0.75rem; }
.signal-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
}
.signal-list li + li { margin-top: 0.5rem; }
.signal-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--primary);
  flex-shrink: 0;
}
.signal-dot-muted { background: var(--muted-fg); }

/* ─── Fit/not-fit columns ──────────────────────────────────── */

.fit-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--background);
  border: 1px solid var(--border-soft);
}
.fit-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.fit-title svg { width: 1.25rem; height: 1.25rem; }
.fit-title-good svg { color: var(--primary); }
.fit-title-bad  svg { color: var(--muted-fg); }

.fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fit-list li + li { margin-top: 1rem; }
.fit-list .signal-dot { margin-top: 0.625rem; }
.fit-list-muted { color: var(--muted-fg); }

/* ─── Integration card (stack page) ────────────────────────── */

.integration {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.integration-name  { font-weight: 600; color: var(--foreground); }
.integration-cat   { font-size: 0.875rem; color: var(--muted-fg); }

/* ─── Principle tile (center-aligned) ──────────────────────── */

.principle {
  text-align: center;
}
.principle .icon-box {
  margin: 0 auto 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
}
.principle-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.principle-desc {
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ─── Form ─────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.form-label .req { color: var(--destructive); }

.form-input, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-textarea { resize: vertical; min-height: 7rem; }

.form-input::placeholder, .form-textarea::placeholder { color: var(--muted-fg); }

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px hsla(24, 95%, 53%, 0.15);
}

.form-error-text { font-size: 0.875rem; color: var(--destructive); }
.form-error-text.is-hidden { display: none; }

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}
.form-alert.is-hidden { display: none; }
.form-alert-success { background: hsla(24, 95%, 53%, 0.1); color: var(--primary); }
.form-alert-error   { background: hsla(0, 84%, 60%, 0.1);  color: var(--destructive); }

.form-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-footnote {
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-align: center;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.form-header-meta h2 { font-size: 1.25rem; font-weight: 600; }
.form-header-meta p  { font-size: 0.875rem; color: var(--muted-fg); }

/* ─── 404 ──────────────────────────────────────────────────── */

.error-code {
  display: inline-block;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 768px) { .error-code { font-size: 8rem; } }

/* ─── Privacy prose ────────────────────────────────────────── */

.prose > * + * { margin-top: 3rem; }
.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.prose p {
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ─── Misc utilities ───────────────────────────────────────── */

.is-hidden { display: none !important; }

.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
