/* RenderDraw Workflows — Marketing Site */
/* Design: RenderDraw platform — dark steel, cyan, and emerald */
/* Typography: Geist + Geist Mono */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist/geist-mono-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ─────────────────────────────────── */
:root {
  --accent-start: #67e8f9;
  --accent-mid: #34d399;
  --accent-end: #6ee7b7;

  --gold-start: #67e8f9;
  --gold-mid: #34d399;
  --gold-end: #6ee7b7;
  --teal: #00D4FF;

  --bg-void: #050507;
  --bg-primary: #0b0d0f;
  --bg-elevated: #0d0d10;
  --bg-card: rgba(18, 18, 22, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.025);

  --text-primary: #f0ede8;
  --text-secondary: #9d9a94;
  --text-muted: #52504c;

  --border: rgba(103, 232, 249, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.055);

  --shadow-gold: 0 0 60px rgba(110, 231, 183, 0.12);
  --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.55);

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --section-py: clamp(4rem, 9vw, 7rem);
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
}

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: "Geist", ui-sans-serif, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
p:last-child { margin-bottom: 0; }

a { color: var(--gold-mid); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

ul, ol { padding-left: 1.5rem; color: var(--text-secondary); line-height: 1.8; }
li { margin-bottom: 0.4rem; }
strong { color: var(--text-primary); font-weight: 600; }

code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.875em;
  background: rgba(103, 232, 249, 0.07);
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: var(--r-xs);
  padding: 0.15em 0.45em;
  color: var(--gold-start);
}

pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}

pre code { background: none; border: none; padding: 0; font-size: 0.875rem; color: var(--text-secondary); }

blockquote {
  border-left: 3px solid var(--gold-end);
  padding: 1.1rem 1.5rem;
  background: rgba(110, 231, 183, 0.04);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 2rem 0;
  font-style: italic;
}

blockquote p { color: var(--text-secondary); font-size: 1.0625rem; }

hr { border: none; height: 1px; background: var(--border-subtle); margin: 3rem 0; }

/* ─── Layout ─────────────────────────────────────────── */
.container { max-width: 1220px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section { padding: var(--section-py) 0; position: relative; }
.section-alt { background: var(--bg-elevated); }
.section-tinted {
  background: linear-gradient(180deg, transparent 0%, rgba(110, 231, 183, 0.02) 50%, transparent 100%);
}

/* ─── Grid ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.grid-split-wide { display: grid; grid-template-columns: 5fr 4fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-split, .grid-split-wide { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  height: 64px;
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-pipe {
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  user-select: none;
}

.nav-section {
  font-family: 'Geist', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-end);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.125rem;
  list-style: none;
  flex: 1;
  overflow: hidden;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-sm);
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
  opacity: 1;
}

.nav-cta {
  margin-left: auto;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: #000 !important;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
  -webkit-text-fill-color: #000 !important;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

@media (max-width: 900px) { .nav-links { display: none; } }

@media (max-width: 600px) {
  .nav-inner {
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
  }

  .nav-logo { font-size: 0.95rem; }
  .nav-pipe { display: none; }
  .nav-section { font-size: 0.78rem; }
  .nav-cta {
    font-size: 0.72rem;
    padding: 0.42rem 0.75rem;
  }
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  padding-top: calc(64px + clamp(4rem, 9vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(110, 231, 183, 0.07), transparent 70%);
  pointer-events: none;
}

/* Animated grid dots */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(103, 232, 249, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 70%, transparent 100%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-end);
  background: rgba(110, 231, 183, 0.07);
  border: 1px solid rgba(110, 231, 183, 0.18);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; position: relative; z-index: 1; }
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ─── Gradient Text ──────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: #000;
  -webkit-text-fill-color: #000;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(110, 231, 183, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-glass);
  border-color: rgba(103, 232, 249, 0.25);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(103, 232, 249, 0.18);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.card-gold {
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.05), rgba(110, 231, 183, 0.025));
  border-color: rgba(103, 232, 249, 0.14);
}

.card-highlight {
  border-color: rgba(103, 232, 249, 0.32);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.055), transparent);
  position: relative;
}

.card-highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-start), var(--gold-end));
  border-radius: var(--r) var(--r) 0 0;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: rgba(103, 232, 249, 0.07);
  border: 1px solid rgba(103, 232, 249, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.icon-box-teal {
  background: rgba(0, 212, 255, 0.07);
  border-color: rgba(0, 212, 255, 0.14);
}

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--gold-mid); opacity: 1; }
.breadcrumb-sep { opacity: 0.35; user-select: none; }

/* ─── Page Header ────────────────────────────────────── */
.page-header {
  padding-top: calc(64px + 3rem);
  padding-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(110, 231, 183, 0.05), transparent 65%);
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(103, 232, 249, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 60%, transparent);
  pointer-events: none;
}

.page-badge {
  display: inline-flex;
  font-size: 0.7188rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-end);
  background: rgba(110, 231, 183, 0.07);
  border: 1px solid rgba(110, 231, 183, 0.18);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

/* ─── Stats Bar ──────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 3rem 0;
}

.stat-item { padding: 2rem 1.5rem; background: var(--bg-card); text-align: center; }

.stat-value {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 600; }

/* ─── Workflow Chain Visual ──────────────────────────── */
.workflow-chain { display: flex; flex-direction: column; gap: 0; }

.workflow-block {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  position: relative;
  transition: all 0.2s;
  margin-bottom: 0;
}

.workflow-block:hover {
  border-color: rgba(103, 232, 249, 0.22);
  background: rgba(103, 232, 249, 0.016);
}

.workflow-connector {
  display: flex;
  justify-content: center;
  height: 20px;
  position: relative;
}

.workflow-connector::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.3), rgba(103, 232, 249, 0.06));
}

.workflow-connector::after {
  content: '▼';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  color: rgba(103, 232, 249, 0.3);
  line-height: 1;
}

.block-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(103, 232, 249, 0.07);
  border: 1px solid rgba(103, 232, 249, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.block-info h4 { font-size: 0.9rem; margin-bottom: 0.15rem; font-weight: 600; letter-spacing: -0.01em; }
.block-info p { font-size: 0.78rem; color: var(--text-muted); margin: 0; line-height: 1.4; }

.block-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-end);
  background: rgba(110, 231, 183, 0.07);
  border: 1px solid rgba(110, 231, 183, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* ─── Callouts ───────────────────────────────────────── */
.callout {
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-info { background: rgba(0, 212, 255, 0.04); border: 1px solid rgba(0, 212, 255, 0.14); }
.callout-warning { background: rgba(255, 160, 0, 0.04); border: 1px solid rgba(255, 160, 0, 0.18); }
.callout-success { background: rgba(0, 200, 100, 0.04); border: 1px solid rgba(0, 200, 100, 0.14); }
.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.05rem; }
.callout p { font-size: 0.9375rem; margin: 0; }
.callout p + p { margin-top: 0.5rem; color: var(--text-muted); }
.callout strong { color: var(--text-primary); }

/* ─── Feature Tags ───────────────────────────────────── */
.tag-cluster { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }

.tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.tag:hover { color: var(--gold-start); border-color: rgba(103, 232, 249, 0.28); opacity: 1; }
.tag-gold { background: rgba(103, 232, 249, 0.06); border-color: rgba(103, 232, 249, 0.18); color: var(--gold-mid); }

/* ─── Section Labels ─────────────────────────────────── */
.section-eyebrow {
  font-size: 0.7188rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-end);
  margin-bottom: 0.75rem;
  display: block;
}

/* ─── Comparison Table ───────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.compare-table th, .compare-table td { padding: 0.875rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.compare-table th { font-family: 'Geist', sans-serif; font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-elevated); }
.compare-table td { font-size: 0.9375rem; color: var(--text-secondary); }
.compare-table td:first-child { color: var(--text-primary); font-weight: 500; }
.compare-table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.check { color: #22c55e; font-size: 1.1rem; }
.cross { color: #ef4444; font-size: 1.1rem; }

/* ─── Related Cards ──────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r);
  text-decoration: none;
  transition: all 0.2s;
  color: inherit;
}

.related-link:hover {
  border-color: rgba(103, 232, 249, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.related-link-icon { font-size: 1.4rem; flex-shrink: 0; }

.related-link strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.related-link span { font-size: 0.78rem; color: var(--text-muted); }

/* ─── CTA Section ────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 70% at 50% 50%, rgba(110, 231, 183, 0.06), transparent);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-section > .container > p { max-width: 540px; margin: 0 auto 2.5rem; position: relative; z-index: 1; }
.cta-section .btn { position: relative; z-index: 1; }
.cta-pair { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.footer-brand .nav-logo { display: inline-block; margin-bottom: 0.75rem; font-size: 1.2rem; }
.footer-brand p { font-size: 0.875rem; max-width: 300px; }

.footer-col h5 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: 'Geist', sans-serif;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold-mid); opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 2rem auto 0;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .grid-auto > *,
  .grid-split > *,
  .grid-split-wide > * {
    min-width: 0;
  }

  .container,
  .container-narrow,
  .footer-grid,
  .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid-auto { grid-template-columns: minmax(0, 1fr); }

  .card,
  .callout,
  blockquote,
  pre {
    max-width: 100%;
  }

  .card { padding: 1.25rem; }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* ─── Scroll Reveal Animations ───────────────────────── */
/* Progressive enhancement: visible by default (SEO safe).
   JS adds .rd-animate to the body element, enabling transitions. */

.rd-animate [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.rd-animate [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rd-animate [data-reveal-delay="1"] { transition-delay: 0.08s; }
.rd-animate [data-reveal-delay="2"] { transition-delay: 0.16s; }
.rd-animate [data-reveal-delay="3"] { transition-delay: 0.24s; }
.rd-animate [data-reveal-delay="4"] { transition-delay: 0.32s; }
.rd-animate [data-reveal-delay="5"] { transition-delay: 0.4s; }
.rd-animate [data-reveal-delay="6"] { transition-delay: 0.48s; }

.rd-animate [data-reveal="scale"] { transform: scale(0.95); }
.rd-animate [data-reveal="scale"].is-visible { transform: scale(1); }
.rd-animate [data-reveal="left"] { transform: translateX(-24px); }
.rd-animate [data-reveal="left"].is-visible { transform: translateX(0); }
.rd-animate [data-reveal="right"] { transform: translateX(24px); }
.rd-animate [data-reveal="right"].is-visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .rd-animate [data-reveal] { transition: none !important; }
}

@media (max-width: 600px) {
  .rd-animate [data-reveal="left"],
  .rd-animate [data-reveal="right"] {
    transform: translateY(28px);
  }

  .rd-animate [data-reveal="left"].is-visible,
  .rd-animate [data-reveal="right"].is-visible {
    transform: translateY(0);
  }
}

/* ─── Utilities ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.pt-0 { padding-top: 0 !important; }

/* ─── Provider Badges ────────────────────────────────── */
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  border: 1px solid;
}

.provider-claude { color: #c47900; background: rgba(196, 121, 0, 0.08); border-color: rgba(196, 121, 0, 0.2); }
.provider-openai { color: #10a37f; background: rgba(16, 163, 127, 0.08); border-color: rgba(16, 163, 127, 0.2); }
.provider-salesforce { color: #00a1e0; background: rgba(0, 161, 224, 0.08); border-color: rgba(0, 161, 224, 0.2); }
.provider-ms { color: #0078d4; background: rgba(0, 120, 212, 0.08); border-color: rgba(0, 120, 212, 0.2); }

/* ─── Inline step list ───────────────────────────────── */
.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(steps);
  font-family: 'Geist', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-end);
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.16);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ─── Responsive helpers ─────────────────────────────── */
@media (max-width: 640px) {
  h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .cta-pair { flex-direction: column; align-items: center; }
}

/* ─── Inline SVG icon helpers ────────────────────────── */
.icon-box svg,
.block-dot svg,
.callout-icon svg,
.related-link-icon svg {
  display: block;
  flex-shrink: 0;
  color: var(--gold-end);
}

.eyebrow-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.eyebrow-icon svg {
  color: var(--gold-end);
}

/* Provider card SVG (replaces large emoji) */
.card .icon-box[style*="margin: 0 auto"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.card .icon-box[style*="margin: 0 auto"] svg {
  width: 24px;
  height: 24px;
}

/* ─── Hero Split Layout ──────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { max-width: 560px; }

.hero-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-demo { display: none; }
}

/* ─── Workflow Demo Blocks ───────────────────────────── */
.wf-demo {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual block */
.wf-demo-block {
  display: grid;
  grid-template-columns: 36px 1fr auto 20px;
  align-items: center;
  gap: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r);
  padding: 0.875rem 1rem;
  position: relative;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: border-color 0.3s;
  will-change: transform, opacity;
}

.wf-demo-block.wf-active {
  border-color: rgba(103, 232, 249, 0.25);
  box-shadow: 0 0 0 1px rgba(103, 232, 249,0.08), 0 8px 24px rgba(0,0,0,0.3);
}

.wf-demo-block.wf-done {
  border-color: rgba(34, 197, 94, 0.22);
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Block entrance bounce */
@keyframes wfBlockIn {
  0%   { opacity: 0; transform: translateY(-14px) scale(0.93); }
  55%  { opacity: 1; transform: translateY(5px) scale(1.025); }
  75%  { transform: translateY(-3px) scale(0.99); }
  90%  { transform: translateY(2px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.wf-demo-block.wf-entering {
  animation: wfBlockIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Icon */
.wf-demo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-icon-trigger {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #00D4FF;
}

.wf-icon-ai {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--gold-mid);
}

.wf-icon-vision {
  background: rgba(155, 95, 227, 0.1);
  border: 1px solid rgba(155, 95, 227, 0.2);
  color: #9B5FE3;
}

.wf-icon-action {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* Content */
.wf-demo-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.wf-demo-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Type badge */
.wf-demo-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid;
  flex-shrink: 0;
}

.wf-badge-trigger { color: #00D4FF; background: rgba(0,212,255,0.07); border-color: rgba(0,212,255,0.2); }
.wf-badge-ai      { color: var(--gold-mid); background: rgba(52, 211, 153,0.07); border-color: rgba(52, 211, 153,0.22); }
.wf-badge-vision  { color: #9B5FE3; background: rgba(155,95,227,0.07); border-color: rgba(155,95,227,0.22); }
.wf-badge-action  { color: #22c55e; background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.22); }

/* Completion checkmark */
.wf-demo-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  opacity: 0;
  transform: scale(0);
  flex-shrink: 0;
  transition: none;
}

@keyframes checkPop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

.wf-demo-check.wf-check-show {
  animation: checkPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ─── Connectors ─────────────────────────────────────── */
.wf-demo-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 36px;
  position: relative;
}

.wf-conn-line {
  width: 2px;
  flex: 1;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

/* Animated fill on the connector line */
.wf-conn-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(103, 232, 249,0.5), rgba(103, 232, 249,0.15));
  transition: height 0.6s ease;
}

.wf-demo-connector.wf-conn-active .wf-conn-line::after {
  height: 100%;
}

/* Processing spinner in connector */
.wf-conn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.wf-conn-spinner svg {
  color: var(--gold-mid);
}

@keyframes spinnerRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.wf-demo-connector.wf-conn-processing .wf-conn-spinner {
  opacity: 1;
}

.wf-demo-connector.wf-conn-processing .wf-conn-spinner svg {
  animation: spinnerRotate 0.7s linear infinite;
}

/* End dot on connector */
.wf-conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: background 0.3s;
  flex-shrink: 0;
}

.wf-demo-connector.wf-conn-active .wf-conn-dot {
  background: rgba(103, 232, 249, 0.6);
}

/* ─── Product Screenshot Frame ──────────────────────── */
/* Framed real-product captures. Faux browser chrome + deep shadow + */
/* gold-tinted border so light/dark screenshots sit on the dark site. */
.product-shot {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-deep), var(--shadow-gold);
  position: relative;
}

.product-shot-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.product-shot-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.product-shot-bar span:nth-child(1) { background: rgba(255, 95, 86, 0.55); }
.product-shot-bar span:nth-child(2) { background: rgba(255, 189, 46, 0.55); }
.product-shot-bar span:nth-child(3) { background: rgba(39, 201, 63, 0.5); }

.product-shot-bar .product-shot-url {
  margin-left: 0.6rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.product-shot-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.9rem;
}

/* ─── Legacy class aliases ──────────────────────────── */
/* Some pages (knowledgebases/*, ai-context/*, engine/proposal-blocks) */
/* were authored before the component names above settled. These map  */
/* the old class names onto the canonical components so every page     */
/* renders consistently — no per-page inline <style> needed.           */

/* .card-icon → .icon-box */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: rgba(103, 232, 249, 0.07);
  border: 1px solid rgba(103, 232, 249, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

/* .stat-number → .stat-value (gradient supplied by .gradient-text in markup) */
.stat-number {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

/* .btn-ghost → .btn-secondary */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-glass);
  border-color: rgba(103, 232, 249, 0.25);
  opacity: 1;
  transform: translateY(-1px);
}

/* numbered badges → .block-dot */
.step-number,
.step-badge,
.pillar-number {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(103, 232, 249, 0.07);
  border: 1px solid rgba(103, 232, 249, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-end);
  flex-shrink: 0;
}

/* section heading wrapper */
.section-header { margin-bottom: 2.5rem; }

/* inline "learn more →" links */
.card-link,
.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold-end);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.card-link:hover,
.link-arrow:hover { color: var(--gold-mid); }

/* feature / compliance check lists */
.feature-list { list-style: none; padding: 0; margin: 1.25rem 0; }

.feature-item,
.compliance-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-check,
.compliance-check { color: var(--gold-end); flex-shrink: 0; }
