/* Design System V4 — Bundle */
/* Generated: 2026-04-16T16:27:05Z */
/* Do not edit directly — run build.sh to regenerate */

/* ===== TOKENS ===== */
:root {
  /* Background */
  --ds-bg: #050505;
  --ds-bg-alt: #000000;

  /* Surfaces (cards, blocks) */
  --ds-surface: #0F0F11;
  --ds-surface-2: #16161A;
  --ds-surface-3: #1E1E24;

  /* Borders */
  --ds-border: rgba(255,255,255,.08);
  --ds-border-strong: rgba(255,255,255,.14);
  --ds-border-focus: rgba(255,255,255,.25);

  /* Text hierarchy */
  --ds-text: #F5F5F7;
  --ds-text-dim: #9A9AA1;
  --ds-text-muted: #6B6B73;
  --ds-text-inverse: #050505;

  /* Brand (default, overridden by theme) */
  --ds-brand: #FF0037;
  --ds-brand-deep: #C8002B;
  --ds-brand-glow: rgba(255,0,55,.35);
  --ds-brand-subtle: rgba(255,0,55,.08);
  --ds-brand-muted: rgba(255,0,55,.04);

  /* Semantic */
  --ds-success: #4ADE80;
  --ds-success-subtle: rgba(74,222,128,.1);
  --ds-warning: #FBBF24;
  --ds-warning-subtle: rgba(251,191,36,.1);
  --ds-error: #FF6B6B;
  --ds-error-subtle: rgba(255,107,107,.1);
  --ds-info: #60A5FA;
  --ds-info-subtle: rgba(96,165,250,.1);

  /* Accent slots (for multi-entity coloring like agents) */
  --ds-accent-1: #A855F7;
  --ds-accent-1-subtle: rgba(168,85,247,.15);
  --ds-accent-1-border: rgba(168,85,247,.30);
  --ds-accent-2: #3B82F6;
  --ds-accent-2-subtle: rgba(59,130,246,.15);
  --ds-accent-2-border: rgba(59,130,246,.30);
  --ds-accent-3: #F59E0B;
  --ds-accent-3-subtle: rgba(245,158,11,.15);
  --ds-accent-3-border: rgba(245,158,11,.30);

  /* Overlays */
  --ds-overlay: rgba(0,0,0,.6);
  --ds-overlay-light: rgba(0,0,0,.3);

  /* Gradients */
  --ds-gradient-text: linear-gradient(135deg, #fff 0%, #999 100%);
  --ds-gradient-brand: linear-gradient(135deg, #fff, var(--ds-brand));
  --ds-gradient-surface: linear-gradient(135deg, var(--ds-surface) 0%, var(--ds-surface-2) 100%);
}

:root {
  /* Font families */
  --ds-font-display: 'Space Grotesk', system-ui, sans-serif;
  --ds-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ds-font-mono: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;

  /* Font sizes — fluid with clamp */
  --ds-text-xs: 11px;
  --ds-text-sm: 13px;
  --ds-text-base: 15px;
  --ds-text-md: 16px;
  --ds-text-lg: 18px;
  --ds-text-xl: 20px;
  --ds-text-2xl: 24px;
  --ds-text-3xl: 28px;
  --ds-text-4xl: clamp(32px, 4.5vw, 52px);
  --ds-text-5xl: clamp(40px, 6.5vw, 76px);
  --ds-text-6xl: clamp(48px, 8vw, 96px);
  --ds-text-price: clamp(48px, 6vw, 72px);

  /* Font weights */
  --ds-weight-light: 300;
  --ds-weight-regular: 400;
  --ds-weight-medium: 500;
  --ds-weight-semibold: 600;
  --ds-weight-bold: 700;
  --ds-weight-extrabold: 800;
  --ds-weight-black: 900;

  /* Line heights */
  --ds-leading-none: 1;
  --ds-leading-tight: 1.02;
  --ds-leading-heading: 1.05;
  --ds-leading-snug: 1.3;
  --ds-leading-normal: 1.5;
  --ds-leading-relaxed: 1.6;
  --ds-leading-loose: 1.65;

  /* Letter spacing */
  --ds-tracking-tightest: -.035em;
  --ds-tracking-tighter: -.025em;
  --ds-tracking-tight: -.02em;
  --ds-tracking-snug: -.015em;
  --ds-tracking-normal: 0;
  --ds-tracking-wide: .08em;
  --ds-tracking-wider: .1em;
  --ds-tracking-widest: .15em;
  --ds-tracking-caps: .12em;
  --ds-tracking-label: .2em;
}

:root {
  /* Base scale (4px increments) */
  --ds-space-0: 0;
  --ds-space-px: 1px;
  --ds-space-0\.5: 2px;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 28px;
  --ds-space-8: 32px;
  --ds-space-9: 36px;
  --ds-space-10: 40px;
  --ds-space-11: 44px;
  --ds-space-12: 48px;
  --ds-space-14: 56px;
  --ds-space-16: 64px;
  --ds-space-18: 72px;
  --ds-space-20: 80px;
  --ds-space-24: 96px;
  --ds-space-28: 112px;
  --ds-space-32: 128px;

  /* Semantic aliases */
  --ds-gap-xs: var(--ds-space-2);     /* 8px */
  --ds-gap-sm: var(--ds-space-4);     /* 16px */
  --ds-gap-md: var(--ds-space-6);     /* 24px */
  --ds-gap-lg: var(--ds-space-8);     /* 32px */
  --ds-gap-xl: var(--ds-space-12);    /* 48px */
  --ds-gap-2xl: var(--ds-space-16);   /* 64px */
  --ds-gap-3xl: var(--ds-space-20);   /* 80px */
  --ds-gap-section: 120px;
  --ds-gap-hero: 180px;

  /* Container */
  --ds-container-sm: 640px;
  --ds-container-md: 768px;
  --ds-container-lg: 1024px;
  --ds-container-xl: 1100px;
  --ds-container-2xl: 1200px;
  --ds-container-pad: var(--ds-space-8); /* 32px */

  /* Border radius */
  --ds-radius-none: 0;
  --ds-radius-sm: 4px;
  --ds-radius-md: 6px;
  --ds-radius-lg: 8px;
  --ds-radius-xl: 14px;
  --ds-radius-full: 100px;
}

:root {
  /* Shadows */
  --ds-shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --ds-shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --ds-shadow-lg: 0 8px 32px rgba(0,0,0,.5);
  --ds-shadow-glow: 0 0 24px var(--ds-brand-glow);
  --ds-shadow-glow-lg: 0 0 40px var(--ds-brand-glow);

  /* Backdrop filters */
  --ds-blur: blur(20px) saturate(180%);
  --ds-blur-sm: blur(8px) saturate(120%);
  --ds-blur-lg: blur(40px);

  /* Transitions */
  --ds-duration-fast: .15s;
  --ds-duration-base: .2s;
  --ds-duration-slow: .3s;
  --ds-duration-slower: .4s;
  --ds-ease-default: ease;
  --ds-ease-smooth: cubic-bezier(.2,.8,.2,1);
  --ds-transition-color: color var(--ds-duration-base) var(--ds-ease-default);
  --ds-transition-bg: background var(--ds-duration-slow) var(--ds-ease-default);
  --ds-transition-border: border-color var(--ds-duration-slow) var(--ds-ease-default);
  --ds-transition-transform: transform var(--ds-duration-slower) var(--ds-ease-smooth);
  --ds-transition-all: all var(--ds-duration-base) var(--ds-ease-default);

  /* Hover transforms */
  --ds-hover-lift: translateY(-4px);
  --ds-hover-lift-sm: translateY(-2px);

  /* Z-index scale */
  --ds-z-base: 0;
  --ds-z-above: 1;
  --ds-z-dropdown: 10;
  --ds-z-sticky: 50;
  --ds-z-nav: 100;
  --ds-z-modal-backdrop: 200;
  --ds-z-modal: 210;
  --ds-z-toast: 300;
  --ds-z-tooltip: 400;

  /* Opacity */
  --ds-opacity-dim: .7;
  --ds-opacity-muted: .5;
  --ds-opacity-ghost: .3;
  --ds-opacity-faint: .15;
  --ds-opacity-subtle: .08;
}

/*
  Fluid-first approach: most responsive behavior uses clamp(), auto-fit, min().
  These breakpoints exist ONLY for structural layout changes.
  Import this file for reference — the actual media queries live in components.
*/

:root {
  --ds-bp-sm: 640px;
  --ds-bp-md: 768px;
  --ds-bp-lg: 1024px;
  --ds-bp-xl: 1280px;
}

/*
  Usage in components:
  @media (max-width: 768px) { ... }  — nav collapse, grid single-column
  @media (max-width: 900px) { ... }  — agent cards single-column
  @media (min-width: 1024px) { ... } — sidebar visible in apps
*/

/* ===== BASE ===== */
/* Reset */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
body { min-height: 100vh; text-rendering: optimizeLegibility }
img, picture, video, canvas, svg { display: block; max-width: 100% }
input, button, textarea, select { font: inherit; color: inherit }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word }
a { color: inherit; text-decoration: none }
ul, ol { list-style: none }
table { border-collapse: collapse; border-spacing: 0 }
button { cursor: pointer; background: none; border: none }
[hidden] { display: none !important }

/* Global defaults */
body {
  font-family: var(--ds-font-body);
  background: var(--ds-bg);
  color: var(--ds-text);
  line-height: var(--ds-leading-relaxed);
  font-weight: var(--ds-weight-regular);
  font-size: var(--ds-text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--ds-brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ds-brand);
  outline-offset: 2px;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 8px; height: 8px }
::-webkit-scrollbar-track { background: var(--ds-bg) }
::-webkit-scrollbar-thumb { background: var(--ds-border-strong); border-radius: 4px }
::-webkit-scrollbar-thumb:hover { background: var(--ds-text-muted) }

/* Firefox scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--ds-border-strong) var(--ds-bg) }

/* Headings default to display font */
h1, h2, h3 { font-family: var(--ds-font-display) }

/* Code elements default to mono */
code, pre, kbd, samp { font-family: var(--ds-font-mono) }

/* Smooth image rendering */
img { height: auto }

/* Container utility */
.container {
  max-width: var(--ds-container-xl);
  margin: 0 auto;
  padding: 0 var(--ds-container-pad);
  position: relative;
  z-index: var(--ds-z-above);
}

.container-lg { max-width: var(--ds-container-2xl) }
.container-sm { max-width: var(--ds-container-md) }

/* ===== UTILITIES ===== */
/* ===== TEXT ===== */
.text-display { font-family: var(--ds-font-display) }
.text-body { font-family: var(--ds-font-body) }
.text-mono { font-family: var(--ds-font-mono) }

.text-xs { font-size: var(--ds-text-xs) }
.text-sm { font-size: var(--ds-text-sm) }
.text-base { font-size: var(--ds-text-base) }
.text-md { font-size: var(--ds-text-md) }
.text-lg { font-size: var(--ds-text-lg) }
.text-xl { font-size: var(--ds-text-xl) }
.text-2xl { font-size: var(--ds-text-2xl) }
.text-3xl { font-size: var(--ds-text-3xl) }
.text-4xl { font-size: var(--ds-text-4xl) }
.text-5xl { font-size: var(--ds-text-5xl) }
.text-6xl { font-size: var(--ds-text-6xl) }

.text-dim { color: var(--ds-text-dim) }
.text-muted { color: var(--ds-text-muted) }
.text-brand { color: var(--ds-brand) }
.text-success { color: var(--ds-success) }
.text-warning { color: var(--ds-warning) }
.text-error { color: var(--ds-error) }
.text-info { color: var(--ds-info) }
.text-accent-1 { color: var(--ds-accent-1) }
.text-accent-2 { color: var(--ds-accent-2) }
.text-accent-3 { color: var(--ds-accent-3) }

.font-light { font-weight: var(--ds-weight-light) }
.font-regular { font-weight: var(--ds-weight-regular) }
.font-medium { font-weight: var(--ds-weight-medium) }
.font-semibold { font-weight: var(--ds-weight-semibold) }
.font-bold { font-weight: var(--ds-weight-bold) }
.font-extrabold { font-weight: var(--ds-weight-extrabold) }

.leading-none { line-height: var(--ds-leading-none) }
.leading-tight { line-height: var(--ds-leading-tight) }
.leading-heading { line-height: var(--ds-leading-heading) }
.leading-normal { line-height: var(--ds-leading-normal) }
.leading-relaxed { line-height: var(--ds-leading-relaxed) }

.tracking-tightest { letter-spacing: var(--ds-tracking-tightest) }
.tracking-tighter { letter-spacing: var(--ds-tracking-tighter) }
.tracking-tight { letter-spacing: var(--ds-tracking-tight) }
.tracking-normal { letter-spacing: var(--ds-tracking-normal) }
.tracking-wide { letter-spacing: var(--ds-tracking-wide) }
.tracking-wider { letter-spacing: var(--ds-tracking-wider) }
.tracking-widest { letter-spacing: var(--ds-tracking-widest) }
.tracking-caps { letter-spacing: var(--ds-tracking-caps); text-transform: uppercase }
.tracking-label { letter-spacing: var(--ds-tracking-label); text-transform: uppercase }

.uppercase { text-transform: uppercase }
.capitalize { text-transform: capitalize }
.text-left { text-align: left }
.text-center { text-align: center }
.text-right { text-align: right }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }

/* Text gradient utility */
.text-gradient {
  background: var(--ds-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-brand {
  background: var(--ds-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== SURFACES ===== */
.bg-base { background: var(--ds-bg) }
.bg-surface { background: var(--ds-surface) }
.bg-surface-2 { background: var(--ds-surface-2) }
.bg-surface-3 { background: var(--ds-surface-3) }
.bg-brand { background: var(--ds-brand) }
.bg-brand-subtle { background: var(--ds-brand-subtle) }
.bg-brand-muted { background: var(--ds-brand-muted) }
.bg-overlay { background: var(--ds-overlay) }

/* ===== BORDERS ===== */
.border { border: 1px solid var(--ds-border) }
.border-strong { border: 1px solid var(--ds-border-strong) }
.border-brand { border: 1px solid var(--ds-brand) }
.border-top { border-top: 1px solid var(--ds-border) }
.border-bottom { border-bottom: 1px solid var(--ds-border) }
.border-left { border-left: 1px solid var(--ds-border) }
.border-left-brand { border-left: 3px solid var(--ds-brand) }
.border-left-accent-1 { border-left: 2px solid var(--ds-accent-1) }
.border-left-accent-2 { border-left: 2px solid var(--ds-accent-2) }
.border-none { border: none }

/* ===== BORDER RADIUS ===== */
.rounded-none { border-radius: var(--ds-radius-none) }
.rounded-sm { border-radius: var(--ds-radius-sm) }
.rounded-md { border-radius: var(--ds-radius-md) }
.rounded-lg { border-radius: var(--ds-radius-lg) }
.rounded-xl { border-radius: var(--ds-radius-xl) }
.rounded-full { border-radius: var(--ds-radius-full) }

/* ===== SPACING ===== */
.p-0 { padding: 0 }
.p-sm { padding: var(--ds-gap-sm) }
.p-md { padding: var(--ds-gap-md) }
.p-lg { padding: var(--ds-gap-lg) }
.p-xl { padding: var(--ds-gap-xl) }

.px-sm { padding-left: var(--ds-gap-sm); padding-right: var(--ds-gap-sm) }
.px-md { padding-left: var(--ds-gap-md); padding-right: var(--ds-gap-md) }
.px-lg { padding-left: var(--ds-gap-lg); padding-right: var(--ds-gap-lg) }

.py-sm { padding-top: var(--ds-gap-sm); padding-bottom: var(--ds-gap-sm) }
.py-md { padding-top: var(--ds-gap-md); padding-bottom: var(--ds-gap-md) }
.py-lg { padding-top: var(--ds-gap-lg); padding-bottom: var(--ds-gap-lg) }

.m-0 { margin: 0 }
.mt-sm { margin-top: var(--ds-gap-sm) }
.mt-md { margin-top: var(--ds-gap-md) }
.mt-lg { margin-top: var(--ds-gap-lg) }
.mt-xl { margin-top: var(--ds-gap-xl) }
.mt-2xl { margin-top: var(--ds-gap-2xl) }
.mt-3xl { margin-top: var(--ds-gap-3xl) }
.mt-section { margin-top: var(--ds-gap-section) }
.mb-sm { margin-bottom: var(--ds-gap-sm) }
.mb-md { margin-bottom: var(--ds-gap-md) }
.mb-lg { margin-bottom: var(--ds-gap-lg) }

/* ===== LAYOUT ===== */
.flex { display: flex }
.flex-col { flex-direction: column }
.flex-wrap { flex-wrap: wrap }
.items-center { align-items: center }
.items-start { align-items: start }
.justify-between { justify-content: space-between }
.justify-center { justify-content: center }
.grid { display: grid }
.gap-xs { gap: var(--ds-gap-xs) }
.gap-sm { gap: var(--ds-gap-sm) }
.gap-md { gap: var(--ds-gap-md) }
.gap-lg { gap: var(--ds-gap-lg) }
.gap-xl { gap: var(--ds-gap-xl) }
.gap-1px { gap: 1px }

/* ===== DISPLAY ===== */
.block { display: block }
.inline-block { display: inline-block }
.inline-flex { display: inline-flex }
.hidden { display: none }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 }

/* ===== POSITION ===== */
.relative { position: relative }
.absolute { position: absolute }
.fixed { position: fixed }
.sticky { position: sticky; top: 0 }
.inset-0 { inset: 0 }

/* ===== SIZING ===== */
.w-full { width: 100% }
.h-full { height: 100% }
.max-w-prose { max-width: 780px }

/* ===== EFFECTS ===== */
.shadow-sm { box-shadow: var(--ds-shadow-sm) }
.shadow-md { box-shadow: var(--ds-shadow-md) }
.shadow-lg { box-shadow: var(--ds-shadow-lg) }
.shadow-glow { box-shadow: var(--ds-shadow-glow) }
.backdrop-blur { backdrop-filter: var(--ds-blur) }

.transition { transition: var(--ds-transition-all) }
.transition-color { transition: var(--ds-transition-color) }
.transition-transform { transition: var(--ds-transition-transform) }
.hover-lift { transition: var(--ds-transition-transform) }
.hover-lift:hover { transform: var(--ds-hover-lift) }

.opacity-dim { opacity: var(--ds-opacity-dim) }
.opacity-muted { opacity: var(--ds-opacity-muted) }
.opacity-ghost { opacity: var(--ds-opacity-ghost) }

.overflow-hidden { overflow: hidden }
.overflow-x-auto { overflow-x: auto }
.pointer-events-none { pointer-events: none }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ds-border), transparent);
  margin: 0;
}

/* ===== ANIMATION ===== */
@keyframes ds-fade-up {
  from { opacity: 0; transform: translateY(20px) }
  to { opacity: 1; transform: none }
}
@keyframes ds-fade-in {
  from { opacity: 0 }
  to { opacity: 1 }
}
@keyframes ds-slide-down {
  from { opacity: 0; transform: translateY(-10px) }
  to { opacity: 1; transform: none }
}
@keyframes ds-pulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .5 }
}
.animate-fade-up { animation: ds-fade-up .8s var(--ds-ease-smooth) both }
.animate-fade-in { animation: ds-fade-in .5s var(--ds-ease-default) both }
.animate-slide-down { animation: ds-slide-down .3s var(--ds-ease-smooth) both }
.animate-pulse { animation: ds-pulse 2s var(--ds-ease-default) infinite }

/* ===== COMPONENTS ===== */
/* Decorative backgrounds */

/* Grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Brand glow */
.bg-glow {
  position: fixed;
  top: -300px;
  right: -300px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--ds-brand-glow) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  filter: var(--ds-blur-lg);
}

/* Glow — bottom left variant */
.bg-glow-bl {
  position: fixed;
  bottom: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ds-brand-glow) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  filter: var(--ds-blur-lg);
}

/* Glow — center */
.bg-glow-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--ds-brand-glow) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: var(--ds-blur-lg);
}

/* Dots pattern */
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

/* Noise texture overlay */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Navigation — fixed header with blur */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--ds-z-nav);
  backdrop-filter: var(--ds-blur);
  background: rgba(5,5,5,.7);
  border-bottom: 1px solid var(--ds-border);
}
.nav-inner {
  max-width: var(--ds-container-2xl);
  margin: 0 auto;
  padding: 18px var(--ds-container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--ds-weight-extrabold);
  letter-spacing: var(--ds-tracking-tight);
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--ds-radius-md);
  overflow: hidden;
  box-shadow: var(--ds-shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-brand);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block }
.logo-text { font-size: var(--ds-text-base) }
.logo-text span { color: var(--ds-brand) }
.nav-links {
  display: flex;
  gap: var(--ds-gap-lg);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  font-weight: var(--ds-weight-medium);
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: var(--ds-transition-color);
}
.nav-links a:hover { color: var(--ds-text) }
@media (max-width: 768px) { .nav-links { display: none } }

/* Hero section */
.hero {
  padding: var(--ds-gap-hero) 0 140px;
  text-align: left;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--ds-space-2) var(--ds-space-4);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-full);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-widest);
  text-transform: uppercase;
  color: var(--ds-text-dim);
  margin-bottom: var(--ds-gap-lg);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ds-brand);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--ds-brand);
}
h1 {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-5xl);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-tight);
  letter-spacing: var(--ds-tracking-tightest);
  margin-bottom: var(--ds-gap-lg);
}
h1 .accent { color: var(--ds-brand) }
h1 .gradient {
  background: var(--ds-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: var(--ds-text-xl);
  color: var(--ds-text-dim);
  max-width: 720px;
  font-weight: var(--ds-weight-regular);
  line-height: var(--ds-leading-normal);
}
.hero-meta {
  display: flex;
  gap: var(--ds-gap-xl);
  margin-top: var(--ds-gap-2xl);
  padding-top: var(--ds-gap-lg);
  border-top: 1px solid var(--ds-border);
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; gap: var(--ds-space-1) }
.hero-meta .label {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-caps);
  font-weight: var(--ds-weight-semibold);
}
.hero-meta .value {
  font-size: var(--ds-text-base);
  color: var(--ds-text);
  font-weight: var(--ds-weight-medium);
}

/* Sections */
section {
  padding: var(--ds-gap-section) 0;
  position: relative;
  z-index: var(--ds-z-above);
}
.section-num {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-brand);
  letter-spacing: var(--ds-tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--ds-gap-sm);
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
}
.section-num::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ds-brand);
}
h2 {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-4xl);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-heading);
  letter-spacing: var(--ds-tracking-tighter);
  margin-bottom: var(--ds-gap-md);
}
h3 {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-3xl);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-snug);
  margin-bottom: var(--ds-gap-sm);
}
h4 {
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-semibold);
  margin-bottom: var(--ds-space-3);
  letter-spacing: -0.01em;
}
.lead {
  font-size: var(--ds-text-lg);
  color: var(--ds-text-dim);
  max-width: 780px;
  line-height: var(--ds-leading-loose);
}

/* Card base */
.card {
  padding: var(--ds-gap-xl);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  position: relative;
  overflow: hidden;
  transition: var(--ds-transition-transform), var(--ds-transition-border);
}
.card:hover {
  transform: var(--ds-hover-lift);
  border-color: var(--ds-border-strong);
}

/* Card — accent top bar */
.card[data-accent]::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--ds-brand));
}
.card[data-accent="1"] { --card-accent: var(--ds-accent-1) }
.card[data-accent="2"] { --card-accent: var(--ds-accent-2) }
.card[data-accent="3"] { --card-accent: var(--ds-accent-3) }
.card[data-accent="brand"] { --card-accent: var(--ds-brand) }

/* Card — gain variant (compact, in 1px-gap grids) */
.gain {
  padding: 36px var(--ds-gap-lg);
  background: var(--ds-surface);
  transition: var(--ds-transition-bg);
  position: relative;
}
.gain:hover { background: var(--ds-surface-2) }
.gain-num {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-sm);
  color: var(--ds-brand);
  font-weight: var(--ds-weight-bold);
  margin-bottom: var(--ds-gap-sm);
}
.gain h4 { margin-bottom: 10px }
.gain p {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  line-height: var(--ds-leading-relaxed);
}

/* Card — agent variant (large, with icon/stats) */
.agent {
  padding: var(--ds-gap-xl);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--ds-duration-slower) var(--ds-ease-smooth), border-color var(--ds-duration-slow);
}
.agent:hover { transform: var(--ds-hover-lift); border-color: var(--ds-border-strong) }
.agent::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--agent-color, var(--ds-brand));
}
.agent.accent-1 { --agent-color: var(--ds-accent-1) }
.agent.accent-2 { --agent-color: var(--ds-accent-2) }
.agent.accent-3 { --agent-color: var(--ds-accent-3) }

.agent-head { display: flex; align-items: center; gap: var(--ds-gap-sm); margin-bottom: var(--ds-gap-md) }
.agent-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--ds-radius-xl);
  background: color-mix(in srgb, var(--agent-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--agent-color) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.agent-name {
  font-family: var(--ds-font-display);
  font-size: 32px;
  font-weight: var(--ds-weight-bold);
  letter-spacing: var(--ds-tracking-tight);
}
.agent-role {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
  font-weight: var(--ds-weight-semibold);
  margin-top: var(--ds-space-1);
}
.agent-stats {
  display: flex;
  gap: var(--ds-gap-md);
  margin: var(--ds-gap-md) 0;
  padding: var(--ds-gap-sm);
  background: var(--ds-bg);
  border-radius: var(--ds-radius-lg);
}
.agent-stat strong {
  display: block;
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-2xl);
  color: var(--agent-color);
  font-weight: var(--ds-weight-bold);
}
.agent-stat span {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wide);
  font-weight: var(--ds-weight-semibold);
}
.agent p { color: var(--ds-text-dim); font-size: var(--ds-text-base); margin-bottom: var(--ds-gap-sm) }
.agent ul { list-style: none; padding: 0 }
.agent ul li {
  padding: var(--ds-space-3) 0 var(--ds-space-3) var(--ds-gap-md);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  border-bottom: 1px solid var(--ds-border);
  position: relative;
  line-height: var(--ds-leading-normal);
}
.agent ul li:last-child { border: none }
.agent ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 1px;
  background: var(--agent-color);
}
.agent .note {
  margin-top: var(--ds-gap-sm);
  padding: var(--ds-gap-sm);
  background: color-mix(in srgb, var(--agent-color) 8%, transparent);
  border-left: 2px solid var(--agent-color);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  line-height: 1.55;
}

/* Card — talk variant (compact info block) */
.talk {
  padding: 28px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
.talk strong {
  display: block;
  font-size: var(--ds-text-xs);
  color: var(--ds-brand);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-caps);
  margin-bottom: 10px;
  font-weight: var(--ds-weight-bold);
}
.talk p { font-size: var(--ds-text-sm); color: var(--ds-text-dim); line-height: 1.55 }

/* Card — long-term variant (hover reveals brand border) */
.lt-card {
  padding: var(--ds-gap-lg);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  transition: var(--ds-transition-border);
}
.lt-card:hover { border-color: var(--ds-brand) }
.lt-card h4 {
  color: var(--ds-brand);
  font-size: var(--ds-text-sm);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
  margin-bottom: var(--ds-space-3);
}
.lt-card p { font-size: var(--ds-text-sm); color: var(--ds-text-dim); line-height: var(--ds-leading-relaxed) }

/* Grid layouts */

/* 1px-gap grid (gains, participation) */
.grid-gap-1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--ds-border);
  border: 1px solid var(--ds-border);
}
.grid-gap-1 > * { background: var(--ds-surface) }

/* 2-column grid (agents, longterm) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ds-gap-lg);
}
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr } }

/* 3-column grid (talks, participation) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ds-gap-md);
}
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr } }

/* 4-column grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ds-gap-md);
}
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr } }

/* Auto-fit grid (responsive cards) */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--ds-gap-md);
}

/* Participation grid (numbered items in 1px gap) */
.partic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ds-border);
  border: 1px solid var(--ds-border);
}
@media (max-width: 768px) { .partic { grid-template-columns: 1fr } }
.partic-item { padding: 36px var(--ds-gap-lg); background: var(--ds-surface) }
.partic-num {
  font-family: var(--ds-font-display);
  font-size: 48px;
  font-weight: var(--ds-weight-bold);
  color: var(--ds-brand);
  line-height: var(--ds-leading-none);
  margin-bottom: var(--ds-gap-sm);
  letter-spacing: -.03em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  padding: 12px 24px;
  font-family: var(--ds-font-body);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  line-height: 1;
  border-radius: var(--ds-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--ds-transition-all);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--ds-brand); outline-offset: 2px }

/* Primary */
.btn-primary {
  background: var(--ds-brand);
  color: #fff;
  border-color: var(--ds-brand);
}
.btn-primary:hover { background: var(--ds-brand-deep); border-color: var(--ds-brand-deep) }

/* Secondary */
.btn-secondary {
  background: var(--ds-surface);
  color: var(--ds-text);
  border-color: var(--ds-border-strong);
}
.btn-secondary:hover { background: var(--ds-surface-2); border-color: var(--ds-text-muted) }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--ds-text-dim);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--ds-surface); color: var(--ds-text) }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--ds-brand);
  border-color: var(--ds-brand);
}
.btn-outline:hover { background: var(--ds-brand-subtle) }

/* Sizes */
.btn-sm { padding: 8px 16px; font-size: var(--ds-text-xs) }
.btn-lg { padding: 16px 32px; font-size: var(--ds-text-base) }
.btn-xl { padding: 20px 40px; font-size: var(--ds-text-lg) }

/* Full width */
.btn-block { width: 100% }

/* Icon only */
.btn-icon { padding: 12px; aspect-ratio: 1 }
.btn-icon.btn-sm { padding: 8px }
.btn-icon.btn-lg { padding: 16px }

/* Disabled */
.btn:disabled, .btn[disabled] {
  opacity: var(--ds-opacity-muted);
  pointer-events: none;
}

/* Loading */
.btn.loading { position: relative; color: transparent; pointer-events: none }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ds-spin .6s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg) } }

/* Badges / Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-1);
  padding: 4px 12px;
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  border-radius: var(--ds-radius-full);
  line-height: 1.4;
}
.badge-brand {
  background: var(--ds-brand-subtle);
  color: var(--ds-brand);
  border: 1px solid rgba(255,0,55,.2);
}
.badge-success {
  background: var(--ds-success-subtle);
  color: var(--ds-success);
}
.badge-warning {
  background: var(--ds-warning-subtle);
  color: var(--ds-warning);
}
.badge-error {
  background: var(--ds-error-subtle);
  color: var(--ds-error);
}
.badge-info {
  background: var(--ds-info-subtle);
  color: var(--ds-info);
}
.badge-neutral {
  background: var(--ds-surface-2);
  color: var(--ds-text-dim);
}
.badge-accent-1 {
  background: var(--ds-accent-1-subtle);
  color: var(--ds-accent-1);
}
.badge-accent-2 {
  background: var(--ds-accent-2-subtle);
  color: var(--ds-accent-2);
}

/* Dot indicator */
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Tag variant (less rounded) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-medium);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface);
  color: var(--ds-text-dim);
  border: 1px solid var(--ds-border);
}

/* Dev tag (like the "Dev N1" tag in original) */
.tag-brand {
  background: var(--ds-brand);
  color: #fff;
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-bold);
  letter-spacing: var(--ds-tracking-widest);
  text-transform: uppercase;
  border: none;
}

/* Tables */

/* Compare table (feature comparison) */
.compare {
  border: 1px solid var(--ds-border);
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse }
.compare th, .compare td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--ds-border);
  font-size: var(--ds-text-sm);
}
.compare th {
  background: var(--ds-surface-2);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
}
.compare th.highlight { color: var(--ds-brand) }
.compare td { color: var(--ds-text-dim) }
.compare td:first-child { color: var(--ds-text); font-weight: var(--ds-weight-medium) }
.compare tr:last-child td { border: none }
.compare .yes { color: var(--ds-success); font-weight: var(--ds-weight-semibold) }
.compare .no { color: var(--ds-error); font-weight: var(--ds-weight-semibold) }

/* Data table (generic) */
.data-table { width: 100%; border-collapse: collapse; border: 1px solid var(--ds-border) }
.data-table th, .data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ds-border);
  font-size: var(--ds-text-sm);
}
.data-table th {
  background: var(--ds-surface);
  color: var(--ds-text-dim);
  font-weight: var(--ds-weight-semibold);
  font-size: var(--ds-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
  position: sticky;
  top: 0;
  z-index: var(--ds-z-above);
}
.data-table td { color: var(--ds-text-dim) }
.data-table tbody tr { transition: var(--ds-transition-bg) }
.data-table tbody tr:hover { background: var(--ds-surface) }
.data-table tr:last-child td { border-bottom: none }

/* Sortable header */
.data-table th[data-sort] { cursor: pointer; user-select: none }
.data-table th[data-sort]:hover { color: var(--ds-text) }
.data-table th[data-sort]::after { content: ' ↕'; opacity: .4 }
.data-table th[data-sort="asc"]::after { content: ' ↑'; opacity: 1; color: var(--ds-brand) }
.data-table th[data-sort="desc"]::after { content: ' ↓'; opacity: 1; color: var(--ds-brand) }

/* Timeline */
.timeline { margin-top: var(--ds-gap-xl) }
.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--ds-gap-lg);
  padding: 28px 0;
  border-bottom: 1px solid var(--ds-border);
  align-items: start;
}
.tl-item:last-child { border: none }
.tl-period {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-brand);
  font-size: var(--ds-text-sm);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wide);
}
.tl-content {
  font-size: var(--ds-text-base);
  color: var(--ds-text-dim);
  line-height: var(--ds-leading-relaxed);
}
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 1fr; gap: var(--ds-space-2) }
}

/* Loop / Process flow */
.loop {
  padding: var(--ds-gap-xl);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
.loop-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ds-gap-sm);
  font-family: var(--ds-font-display);
}
.loop-step {
  padding: var(--ds-gap-sm) var(--ds-gap-sm);
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  font-size: var(--ds-text-sm);
  color: var(--ds-text);
  font-weight: var(--ds-weight-medium);
  flex: 1;
  min-width: 160px;
  text-align: center;
}
.loop-arrow {
  color: var(--ds-brand);
  font-size: 20px;
  font-weight: var(--ds-weight-bold);
}
@media (max-width: 768px) {
  .loop-arrow { transform: rotate(90deg) }
  .loop-step { width: 100%; flex: none }
}

/* Invest box / Callout */
.invest {
  padding: var(--ds-gap-xl);
  background: var(--ds-gradient-surface);
  border: 1px solid var(--ds-border-strong);
  position: relative;
  overflow: hidden;
}
.invest::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--ds-brand);
  box-shadow: 0 0 20px var(--ds-brand-glow);
}
.invest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-gap-xl);
  align-items: center;
}
@media (max-width: 768px) { .invest-grid { grid-template-columns: 1fr } }

/* Price display */
.price {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-price);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-leading-none);
  background: var(--ds-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
}
.price-label {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-muted);
  margin-top: var(--ds-space-3);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
  font-weight: var(--ds-weight-semibold);
}

/* Callout (simpler invest variant) */
.callout {
  padding: var(--ds-gap-md);
  background: var(--ds-surface);
  border-left: 3px solid var(--ds-brand);
  font-size: var(--ds-text-base);
  color: var(--ds-text-dim);
  line-height: var(--ds-leading-relaxed);
}
.callout.accent-1 { border-left-color: var(--ds-accent-1) }
.callout.accent-2 { border-left-color: var(--ds-accent-2) }

/* Blockquote / Pull quote */
.quote {
  padding: var(--ds-gap-xl);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--ds-font-display);
  font-size: 80px;
  color: var(--ds-brand);
  opacity: .15;
  line-height: 1;
}
.quote p {
  font-size: var(--ds-text-xl);
  color: var(--ds-text);
  line-height: 1.55;
  font-weight: var(--ds-weight-light);
  font-style: italic;
  padding-left: var(--ds-gap-xl);
}
.quote cite {
  display: block;
  margin-top: var(--ds-gap-sm);
  padding-left: var(--ds-gap-xl);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-muted);
  font-style: normal;
}

/* Alert blocks */
.alert {
  padding: 36px;
  position: relative;
}

/* Risk variant */
.alert.risk {
  background: var(--ds-brand-muted);
  border-left: 3px solid var(--ds-brand);
}
.alert.risk h4 { margin-bottom: var(--ds-gap-sm); color: var(--ds-text) }
.alert.risk ul { list-style: none }
.alert.risk li {
  padding: 10px 0 10px 24px;
  color: var(--ds-text-dim);
  font-size: var(--ds-text-sm);
  position: relative;
  line-height: var(--ds-leading-normal);
}
.alert.risk li::before {
  content: '!';
  position: absolute;
  left: 0; top: 10px;
  color: var(--ds-brand);
  font-weight: var(--ds-weight-bold);
}

/* Does-not / Exclusion variant */
.alert.does-not {
  background: var(--ds-brand-muted);
  border: 1px solid rgba(255,0,55,.2);
}
.alert.does-not h4 {
  color: var(--ds-brand);
  margin-bottom: var(--ds-gap-sm);
  font-size: var(--ds-text-sm);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
}
.alert.does-not ul { list-style: none }
.alert.does-not li {
  padding: 10px 0 10px 28px;
  color: var(--ds-text-dim);
  font-size: var(--ds-text-sm);
  position: relative;
  line-height: var(--ds-leading-normal);
}
.alert.does-not li::before {
  content: '\00d7';
  position: absolute;
  left: 0; top: 8px;
  color: var(--ds-brand);
  font-weight: var(--ds-weight-bold);
  font-size: 18px;
}

/* Success */
.alert.success {
  background: var(--ds-success-subtle);
  border-left: 3px solid var(--ds-success);
}
.alert.success h4 { color: var(--ds-success) }

/* Warning */
.alert.warning {
  background: var(--ds-warning-subtle);
  border-left: 3px solid var(--ds-warning);
}
.alert.warning h4 { color: var(--ds-warning) }

/* Info */
.alert.info {
  background: var(--ds-info-subtle);
  border-left: 3px solid var(--ds-info);
}
.alert.info h4 { color: var(--ds-info) }

/* Generic alert text */
.alert p, .alert li {
  color: var(--ds-text-dim);
  font-size: var(--ds-text-sm);
  line-height: var(--ds-leading-normal);
}

/* Report / Code block */
.report {
  padding: var(--ds-gap-lg);
  background: var(--ds-bg-alt);
  border: 1px solid var(--ds-border);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
  line-height: 1.7;
  color: var(--ds-text-muted);
  border-left: 3px solid var(--ds-brand);
  overflow-x: auto;
}
.report .key { color: var(--ds-brand); font-weight: var(--ds-weight-semibold) }
.report .val { color: var(--ds-text) }
.report .dim { color: var(--ds-text-muted) }

/* Code block (generic pre/code) */
.code-block {
  padding: var(--ds-gap-md);
  background: var(--ds-bg-alt);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
  line-height: 1.7;
  color: var(--ds-text-dim);
  overflow-x: auto;
  position: relative;
}
.code-block .lang {
  position: absolute;
  top: var(--ds-space-2);
  right: var(--ds-space-3);
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wide);
}

/* Inline code */
code:not([class]) {
  background: var(--ds-surface);
  padding: 2px 8px;
  border-radius: var(--ds-radius-sm);
  font-size: .9em;
  color: var(--ds-brand);
}

/* Form elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}
.form-label {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text);
}
.form-hint {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
}

/* Input */
.input {
  padding: 12px 16px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  color: var(--ds-text);
  font-size: var(--ds-text-base);
  font-family: var(--ds-font-body);
  transition: var(--ds-transition-border);
  width: 100%;
}
.input::placeholder { color: var(--ds-text-muted) }
.input:hover { border-color: var(--ds-border-strong) }
.input:focus { border-color: var(--ds-brand); outline: none; box-shadow: 0 0 0 3px var(--ds-brand-subtle) }
.input.error { border-color: var(--ds-error) }
.input.error:focus { box-shadow: 0 0 0 3px var(--ds-error-subtle) }
.input-sm { padding: 8px 12px; font-size: var(--ds-text-sm) }
.input-lg { padding: 16px 20px; font-size: var(--ds-text-lg) }

/* Textarea */
textarea.input { min-height: 120px; resize: vertical }

/* Select */
.select {
  appearance: none;
  padding: 12px 40px 12px 16px;
  background: var(--ds-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%239A9AA1'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  color: var(--ds-text);
  font-size: var(--ds-text-base);
  font-family: var(--ds-font-body);
  transition: var(--ds-transition-border);
  width: 100%;
  cursor: pointer;
}
.select:hover { border-color: var(--ds-border-strong) }
.select:focus { border-color: var(--ds-brand); outline: none; box-shadow: 0 0 0 3px var(--ds-brand-subtle) }

/* Toggle */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--ds-surface-2);
  border-radius: var(--ds-radius-full);
  border: 1px solid var(--ds-border);
  cursor: pointer;
  transition: var(--ds-transition-bg);
  appearance: none;
  -webkit-appearance: none;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--ds-text-dim);
  border-radius: 50%;
  transition: var(--ds-transition-all);
}
.toggle:checked {
  background: var(--ds-brand);
  border-color: var(--ds-brand);
}
.toggle:checked::after {
  transform: translateX(20px);
  background: #fff;
}
.toggle:focus-visible { box-shadow: 0 0 0 3px var(--ds-brand-subtle) }

/* Checkbox */
.checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  transition: var(--ds-transition-all);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checkbox:checked {
  background: var(--ds-brand);
  border-color: var(--ds-brand);
}
.checkbox:checked::after {
  content: '';
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.checkbox:focus-visible { box-shadow: 0 0 0 3px var(--ds-brand-subtle) }

/* Radio */
.radio {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--ds-transition-all);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.radio:checked { border-color: var(--ds-brand) }
.radio:checked::after {
  content: '';
  width: 10px; height: 10px;
  background: var(--ds-brand);
  border-radius: 50%;
}
.radio:focus-visible { box-shadow: 0 0 0 3px var(--ds-brand-subtle) }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--ds-overlay);
  backdrop-filter: var(--ds-blur-sm);
  z-index: var(--ds-z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ds-gap-lg);
  animation: ds-fade-in var(--ds-duration-fast) var(--ds-ease-default);
}
.modal {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  z-index: var(--ds-z-modal);
  animation: ds-slide-down var(--ds-duration-slow) var(--ds-ease-smooth);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ds-gap-md) var(--ds-gap-lg);
  border-bottom: 1px solid var(--ds-border);
}
.modal-header h3 { margin-bottom: 0 }
.modal-close {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-md);
  color: var(--ds-text-muted);
  transition: var(--ds-transition-all);
  font-size: 18px;
}
.modal-close:hover { background: var(--ds-surface-2); color: var(--ds-text) }
.modal-body { padding: var(--ds-gap-lg) }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--ds-space-3);
  padding: var(--ds-gap-md) var(--ds-gap-lg);
  border-top: 1px solid var(--ds-border);
}

/* Sizes */
.modal-sm { max-width: 400px }
.modal-lg { max-width: 720px }
.modal-full { max-width: 95vw }

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ds-border);
}
.tab {
  padding: 12px 20px;
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--ds-transition-color);
  cursor: pointer;
  background: none;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ds-text-dim) }
.tab.active {
  color: var(--ds-text);
  border-bottom-color: var(--ds-brand);
}

/* Pill tabs */
.tabs-pill {
  display: flex;
  gap: var(--ds-space-1);
  padding: var(--ds-space-1);
  background: var(--ds-surface);
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-border);
}
.tab-pill {
  padding: 8px 16px;
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text-dim);
  border-radius: var(--ds-radius-md);
  transition: var(--ds-transition-all);
  cursor: pointer;
  background: none;
  border: none;
}
.tab-pill:hover { color: var(--ds-text) }
.tab-pill.active {
  background: var(--ds-surface-2);
  color: var(--ds-text);
  box-shadow: var(--ds-shadow-sm);
}

/* Tab content */
.tab-content { display: none; padding: var(--ds-gap-md) 0 }
.tab-content.active { display: block; animation: ds-fade-in var(--ds-duration-fast) }

/* Sidebar (for apps/dashboards) */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background: var(--ds-surface);
  border-right: 1px solid var(--ds-border);
  padding: var(--ds-gap-md) 0;
  z-index: var(--ds-z-sticky);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-header {
  padding: 0 var(--ds-gap-md) var(--ds-gap-md);
  border-bottom: 1px solid var(--ds-border);
}
.sidebar-section {
  padding: var(--ds-gap-sm) var(--ds-gap-sm);
}
.sidebar-label {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
  padding: var(--ds-space-2) var(--ds-space-3);
  margin-bottom: var(--ds-space-1);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: 10px var(--ds-space-3);
  border-radius: var(--ds-radius-md);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  transition: var(--ds-transition-all);
  cursor: pointer;
}
.sidebar-item:hover { background: var(--ds-surface-2); color: var(--ds-text) }
.sidebar-item.active {
  background: var(--ds-brand-subtle);
  color: var(--ds-brand);
}
.sidebar-item .icon { width: 18px; height: 18px; opacity: .7 }
.sidebar-item.active .icon { opacity: 1 }

.sidebar-footer {
  margin-top: auto;
  padding: var(--ds-gap-sm) var(--ds-gap-md);
  border-top: 1px solid var(--ds-border);
}

/* Content area offset */
.with-sidebar { margin-left: 260px }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--ds-duration-slow) var(--ds-ease-smooth) }
  .sidebar.open { transform: translateX(0) }
  .with-sidebar { margin-left: 0 }
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: var(--ds-gap-md);
  right: var(--ds-gap-md);
  z-index: var(--ds-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  max-width: 400px;
}
.toast {
  display: flex;
  align-items: start;
  gap: var(--ds-space-3);
  padding: var(--ds-gap-sm);
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-lg);
  animation: ds-slide-down var(--ds-duration-slow) var(--ds-ease-smooth);
}
.toast-icon { flex-shrink: 0; width: 20px; height: 20px }
.toast-body { flex: 1 }
.toast-title { font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); color: var(--ds-text) }
.toast-message { font-size: var(--ds-text-sm); color: var(--ds-text-dim); margin-top: 2px }
.toast-dismiss {
  flex-shrink: 0;
  color: var(--ds-text-muted);
  padding: 4px;
  border-radius: var(--ds-radius-sm);
  transition: var(--ds-transition-color);
}
.toast-dismiss:hover { color: var(--ds-text) }

.toast.success { border-left: 3px solid var(--ds-success) }
.toast.error { border-left: 3px solid var(--ds-error) }
.toast.warning { border-left: 3px solid var(--ds-warning) }
.toast.info { border-left: 3px solid var(--ds-info) }

/* Progress bar */
.progress {
  height: 8px;
  background: var(--ds-surface-2);
  border-radius: var(--ds-radius-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--ds-brand);
  border-radius: var(--ds-radius-full);
  transition: width var(--ds-duration-slow) var(--ds-ease-smooth);
}
.progress-bar.success { background: var(--ds-success) }
.progress-bar.warning { background: var(--ds-warning) }
.progress-bar.error { background: var(--ds-error) }

/* Sizes */
.progress-sm { height: 4px }
.progress-lg { height: 12px }

/* Striped */
.progress-bar.striped {
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,.1) 25%, transparent 25%,
    transparent 50%, rgba(255,255,255,.1) 50%,
    rgba(255,255,255,.1) 75%, transparent 75%
  );
  background-size: 16px 16px;
}
.progress-bar.striped.animated {
  animation: ds-progress-stripe .6s linear infinite;
}
@keyframes ds-progress-stripe { from { background-position: 16px 0 } to { background-position: 0 0 } }

/* Skeleton / Loading placeholder */
.skeleton {
  background: var(--ds-surface-2);
  border-radius: var(--ds-radius-md);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  animation: ds-shimmer 1.5s infinite;
}
@keyframes ds-shimmer {
  from { transform: translateX(-100%) }
  to { transform: translateX(100%) }
}
.skeleton-text { height: 14px; margin-bottom: 8px }
.skeleton-text:last-child { width: 60% }
.skeleton-heading { height: 28px; width: 40%; margin-bottom: 16px }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50% }

/* Dropdown */
.dropdown { position: relative; display: inline-block }
.dropdown-trigger { cursor: pointer }
.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--ds-space-1));
  left: 0;
  min-width: 200px;
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-lg);
  z-index: var(--ds-z-dropdown);
  padding: var(--ds-space-1) 0;
  animation: ds-slide-down var(--ds-duration-fast) var(--ds-ease-smooth);
  display: none;
}
.dropdown.open .dropdown-menu { display: block }
.dropdown-menu.right { left: auto; right: 0 }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: 10px var(--ds-gap-sm);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  transition: var(--ds-transition-all);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--ds-surface-3); color: var(--ds-text) }
.dropdown-item.active { color: var(--ds-brand) }
.dropdown-item.danger { color: var(--ds-error) }
.dropdown-item.danger:hover { background: var(--ds-error-subtle) }

.dropdown-divider {
  height: 1px;
  background: var(--ds-border);
  margin: var(--ds-space-1) 0;
}
.dropdown-label {
  padding: var(--ds-space-2) var(--ds-gap-sm);
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
  font-weight: var(--ds-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--ds-gap-md);
  align-items: start;
}
.pricing-card {
  padding: var(--ds-gap-xl);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  position: relative;
  transition: var(--ds-transition-border);
}
.pricing-card:hover { border-color: var(--ds-border-strong) }
.pricing-card.featured {
  border-color: var(--ds-brand);
  box-shadow: 0 0 40px var(--ds-brand-glow);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ds-brand);
}

.pricing-label {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-widest);
  color: var(--ds-text-muted);
  margin-bottom: var(--ds-space-3);
}
.pricing-card.featured .pricing-label { color: var(--ds-brand) }

.pricing-price {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-price);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-text);
  line-height: var(--ds-leading-none);
  letter-spacing: -.03em;
}
.pricing-price .currency { font-size: .5em; vertical-align: super; color: var(--ds-text-dim) }
.pricing-price .period { font-size: var(--ds-text-sm); font-weight: var(--ds-weight-regular); color: var(--ds-text-muted) }

.pricing-desc {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  margin: var(--ds-gap-sm) 0 var(--ds-gap-md);
  line-height: var(--ds-leading-relaxed);
}

.pricing-features { padding: 0; margin-bottom: var(--ds-gap-md) }
.pricing-features li {
  padding: 10px 0 10px 24px;
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  position: relative;
  border-bottom: 1px solid var(--ds-border);
  line-height: var(--ds-leading-normal);
}
.pricing-features li:last-child { border: none }
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ds-success);
  font-weight: var(--ds-weight-bold);
}
.pricing-features li.excluded {
  color: var(--ds-text-muted);
  text-decoration: line-through;
  opacity: .6;
}
.pricing-features li.excluded::before { content: '—'; color: var(--ds-text-muted) }

/* Testimonials */
.testimonial {
  padding: var(--ds-gap-xl);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--ds-font-display);
  font-size: 64px;
  color: var(--ds-brand);
  opacity: .2;
  line-height: 1;
  position: absolute;
  top: 20px; left: 24px;
}
.testimonial-text {
  font-size: var(--ds-text-lg);
  color: var(--ds-text);
  line-height: var(--ds-leading-relaxed);
  font-weight: var(--ds-weight-light);
  font-style: italic;
  padding-left: var(--ds-gap-lg);
  margin-bottom: var(--ds-gap-md);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding-left: var(--ds-gap-lg);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover }
.testimonial-name {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text);
}
.testimonial-role {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
}

/* Testimonial grid */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--ds-gap-md);
}

/* Simple inline quote (no card) */
.quote-inline {
  font-size: var(--ds-text-xl);
  color: var(--ds-text);
  font-weight: var(--ds-weight-light);
  font-style: italic;
  padding-left: var(--ds-gap-md);
  border-left: 3px solid var(--ds-brand);
  line-height: var(--ds-leading-relaxed);
}

/* FAQ Accordion */
.faq { border: 1px solid var(--ds-border); overflow: hidden }
.faq-item { border-bottom: 1px solid var(--ds-border) }
.faq-item:last-child { border: none }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ds-gap-md) var(--ds-gap-lg);
  font-size: var(--ds-text-base);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text);
  background: var(--ds-surface);
  cursor: pointer;
  transition: var(--ds-transition-bg);
  text-align: left;
  border: none;
  font-family: var(--ds-font-body);
}
.faq-question:hover { background: var(--ds-surface-2) }
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--ds-brand);
  font-weight: var(--ds-weight-bold);
  transition: transform var(--ds-duration-slow) var(--ds-ease-smooth);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-item.open .faq-question {
  color: var(--ds-brand);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ds-duration-slow) var(--ds-ease-smooth);
  background: var(--ds-surface);
}
.faq-item.open .faq-answer { max-height: 500px }
.faq-answer-inner {
  padding: 0 var(--ds-gap-lg) var(--ds-gap-md);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  line-height: var(--ds-leading-loose);
}

/* CTA section */
.cta {
  padding: var(--ds-gap-3xl) 0;
  text-align: center;
  position: relative;
}
.cta h2 { margin-left: auto; margin-right: auto }
.cta .lead { margin-left: auto; margin-right: auto }
.cta-actions {
  display: flex;
  gap: var(--ds-gap-sm);
  justify-content: center;
  margin-top: var(--ds-gap-lg);
  flex-wrap: wrap;
}

/* CTA banner (full-width with gradient bg) */
.cta-banner {
  padding: var(--ds-gap-3xl) var(--ds-gap-lg);
  background: var(--ds-gradient-surface);
  border: 1px solid var(--ds-border-strong);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ds-brand);
}

/* Next steps (from original) */
.next-steps { margin-top: var(--ds-gap-2xl) }
.next-item {
  padding: 40px 0;
  border-top: 1px solid var(--ds-border);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--ds-gap-lg);
  align-items: start;
}
.next-item:last-child { border-bottom: 1px solid var(--ds-border) }
.next-num {
  font-family: var(--ds-font-display);
  font-size: 48px;
  font-weight: var(--ds-weight-bold);
  color: var(--ds-brand);
  line-height: var(--ds-leading-none);
  letter-spacing: -.03em;
}
.next-item h4 {
  font-size: 22px;
  font-family: var(--ds-font-display);
  letter-spacing: var(--ds-tracking-snug);
  margin-bottom: 10px;
}
.next-item p {
  color: var(--ds-text-dim);
  font-size: var(--ds-text-base);
  line-height: var(--ds-leading-relaxed);
}
@media (max-width: 640px) {
  .next-item { grid-template-columns: 1fr; gap: var(--ds-space-3) }
  .next-num { font-size: 32px }
}

/* Banners */

/* Announcement bar (top of page) */
.banner-announce {
  padding: 12px var(--ds-gap-lg);
  background: var(--ds-brand);
  color: #fff;
  text-align: center;
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  position: relative;
  z-index: calc(var(--ds-z-nav) + 1);
}
.banner-announce a { color: #fff; text-decoration: underline; font-weight: var(--ds-weight-semibold) }
.banner-announce .dismiss {
  position: absolute;
  right: var(--ds-gap-sm);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.7);
  font-size: 18px;
}
.banner-announce .dismiss:hover { color: #fff }

/* Promo banner (inline) */
.banner-promo {
  padding: var(--ds-gap-xl);
  background: var(--ds-gradient-surface);
  border: 1px solid var(--ds-border-strong);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-gap-lg);
  flex-wrap: wrap;
}
.banner-promo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ds-brand);
}

/* Feature tag on banner */
.banner-tag {
  position: absolute;
  top: 0; right: 0;
  padding: 8px 16px;
  background: var(--ds-brand);
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-bold);
  letter-spacing: var(--ds-tracking-widest);
  text-transform: uppercase;
  color: #fff;
}

/* Ad banner (fixed dimensions for common ad sizes) */
.banner-ad {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--ds-gap-md);
}
.banner-ad.leaderboard { width: 728px; height: 90px; flex-direction: row; gap: var(--ds-gap-sm) }
.banner-ad.rectangle { width: 300px; height: 250px }
.banner-ad.skyscraper { width: 160px; height: 600px }
.banner-ad.square { width: 250px; height: 250px }
.banner-ad.story { width: 1080px; height: 1920px; max-width: 100%; aspect-ratio: 9/16 }

/* Social media post sizes */
.banner-social { background: var(--ds-surface); overflow: hidden; position: relative }
.banner-social.instagram { width: 1080px; height: 1080px; max-width: 100%; aspect-ratio: 1 }
.banner-social.instagram-story { width: 1080px; height: 1920px; max-width: 100%; aspect-ratio: 9/16 }
.banner-social.facebook { width: 1200px; height: 630px; max-width: 100%; aspect-ratio: 1200/630 }
.banner-social.linkedin { width: 1200px; height: 627px; max-width: 100%; aspect-ratio: 1200/627 }
.banner-social.twitter { width: 1600px; height: 900px; max-width: 100%; aspect-ratio: 16/9 }

/* Content / Prose styling */
.content {
  font-size: var(--ds-text-base);
  color: var(--ds-text-dim);
  line-height: var(--ds-leading-loose);
  max-width: 780px;
}
.content h1 { font-size: var(--ds-text-5xl); color: var(--ds-text); margin: var(--ds-gap-2xl) 0 var(--ds-gap-md) }
.content h2 { font-size: var(--ds-text-4xl); color: var(--ds-text); margin: var(--ds-gap-xl) 0 var(--ds-gap-sm) }
.content h3 { font-size: var(--ds-text-3xl); color: var(--ds-text); margin: var(--ds-gap-lg) 0 var(--ds-gap-sm) }
.content h4 { font-size: var(--ds-text-xl); color: var(--ds-text); margin: var(--ds-gap-md) 0 var(--ds-gap-xs) }

.content p { margin-bottom: var(--ds-gap-sm) }
.content p:last-child { margin-bottom: 0 }

.content strong { color: var(--ds-text); font-weight: var(--ds-weight-semibold) }
.content a { color: var(--ds-brand); text-decoration: underline; text-underline-offset: 3px }
.content a:hover { opacity: .8 }

.content ul, .content ol { padding-left: var(--ds-gap-md); margin-bottom: var(--ds-gap-sm) }
.content ul { list-style: disc }
.content ol { list-style: decimal }
.content li { margin-bottom: var(--ds-space-2); line-height: var(--ds-leading-relaxed) }
.content li::marker { color: var(--ds-brand) }

.content blockquote {
  padding: var(--ds-gap-sm) var(--ds-gap-md);
  border-left: 3px solid var(--ds-brand);
  margin: var(--ds-gap-md) 0;
  font-style: italic;
  color: var(--ds-text);
}

.content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ds-border), transparent);
  margin: var(--ds-gap-xl) 0;
}

.content img {
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-border);
  margin: var(--ds-gap-md) 0;
}

.content pre {
  padding: var(--ds-gap-md);
  background: var(--ds-bg-alt);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  overflow-x: auto;
  margin: var(--ds-gap-md) 0;
  font-size: var(--ds-text-sm);
  line-height: 1.7;
}

.content table {
  width: 100%;
  border: 1px solid var(--ds-border);
  margin: var(--ds-gap-md) 0;
}
.content th, .content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ds-border);
  text-align: left;
  font-size: var(--ds-text-sm);
}
.content th {
  background: var(--ds-surface);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text);
}

/* Figure with caption */
.content figure { margin: var(--ds-gap-lg) 0 }
.content figcaption {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-muted);
  text-align: center;
  margin-top: var(--ds-space-2);
}

/* Footer */
footer {
  margin-top: var(--ds-gap-3xl);
  padding: var(--ds-gap-2xl) 0 var(--ds-gap-xl);
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ds-gap-md);
}
.sig strong {
  display: block;
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-bold);
  letter-spacing: -0.01em;
}
.sig span {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  display: block;
  margin-top: var(--ds-space-1);
}
.foot-meta {
  font-size: 12px;
  color: var(--ds-text-muted);
  text-align: right;
}

/* Multi-column footer (for larger sites) */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--ds-gap-xl);
  padding-bottom: var(--ds-gap-xl);
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: var(--ds-gap-lg);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--ds-gap-lg) }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr }
}
.footer-col h4 {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ds-tracking-wider);
  color: var(--ds-text);
  margin-bottom: var(--ds-gap-sm);
}
.footer-col a {
  display: block;
  font-size: var(--ds-text-sm);
  color: var(--ds-text-dim);
  padding: 6px 0;
  transition: var(--ds-transition-color);
}
.footer-col a:hover { color: var(--ds-text) }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ds-gap-sm);
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
}
.footer-social {
  display: flex;
  gap: var(--ds-gap-sm);
}
.footer-social a {
  color: var(--ds-text-muted);
  transition: var(--ds-transition-color);
}
.footer-social a:hover { color: var(--ds-text) }

/* ===== THEME: V4 ===== */
/*
  V4 Company Theme
  Brand: #FF0037 (vermelho V4)
  Dark, premium, tech-forward aesthetic
  Typography: Space Grotesk (display) + Inter (body)

  Usage: <link rel="stylesheet" href="themes/v4.css">
  Or: @import 'themes/v4.css';
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Brand */
  --ds-brand: #FF0037;
  --ds-brand-deep: #C8002B;
  --ds-brand-glow: rgba(255,0,55,.35);
  --ds-brand-subtle: rgba(255,0,55,.08);
  --ds-brand-muted: rgba(255,0,55,.04);

  /* Surfaces */
  --ds-bg: #050505;
  --ds-bg-alt: #000000;
  --ds-surface: #0F0F11;
  --ds-surface-2: #16161A;
  --ds-surface-3: #1E1E24;

  /* Borders */
  --ds-border: rgba(255,255,255,.08);
  --ds-border-strong: rgba(255,255,255,.14);
  --ds-border-focus: rgba(255,255,255,.25);

  /* Text */
  --ds-text: #F5F5F7;
  --ds-text-dim: #9A9AA1;
  --ds-text-muted: #6B6B73;
  --ds-text-inverse: #050505;

  /* Semantic */
  --ds-success: #4ADE80;
  --ds-success-subtle: rgba(74,222,128,.1);
  --ds-warning: #FBBF24;
  --ds-warning-subtle: rgba(251,191,36,.1);
  --ds-error: #FF6B6B;
  --ds-error-subtle: rgba(255,107,107,.1);
  --ds-info: #60A5FA;
  --ds-info-subtle: rgba(96,165,250,.1);

  /* Accents (Pulse = roxo, Dexter = azul) */
  --ds-accent-1: #A855F7;
  --ds-accent-1-subtle: rgba(168,85,247,.15);
  --ds-accent-1-border: rgba(168,85,247,.30);
  --ds-accent-2: #3B82F6;
  --ds-accent-2-subtle: rgba(59,130,246,.15);
  --ds-accent-2-border: rgba(59,130,246,.30);
  --ds-accent-3: #F59E0B;
  --ds-accent-3-subtle: rgba(245,158,11,.15);
  --ds-accent-3-border: rgba(245,158,11,.30);

  /* Typography */
  --ds-font-display: 'Space Grotesk', system-ui, sans-serif;
  --ds-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ds-font-mono: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;

  /* Gradients */
  --ds-gradient-text: linear-gradient(135deg, #fff 0%, #999 100%);
  --ds-gradient-brand: linear-gradient(135deg, #fff, var(--ds-brand));
  --ds-gradient-surface: linear-gradient(135deg, var(--ds-surface) 0%, var(--ds-surface-2) 100%);
}

/* ===== TEXT ===== */
.text-display { font-family: var(--ds-font-display) }
.text-body { font-family: var(--ds-font-body) }
.text-mono { font-family: var(--ds-font-mono) }

.text-xs { font-size: var(--ds-text-xs) }
.text-sm { font-size: var(--ds-text-sm) }
.text-base { font-size: var(--ds-text-base) }
.text-md { font-size: var(--ds-text-md) }
.text-lg { font-size: var(--ds-text-lg) }
.text-xl { font-size: var(--ds-text-xl) }
.text-2xl { font-size: var(--ds-text-2xl) }
.text-3xl { font-size: var(--ds-text-3xl) }
.text-4xl { font-size: var(--ds-text-4xl) }
.text-5xl { font-size: var(--ds-text-5xl) }
.text-6xl { font-size: var(--ds-text-6xl) }

.text-dim { color: var(--ds-text-dim) }
.text-muted { color: var(--ds-text-muted) }
.text-brand { color: var(--ds-brand) }
.text-success { color: var(--ds-success) }
.text-warning { color: var(--ds-warning) }
.text-error { color: var(--ds-error) }
.text-info { color: var(--ds-info) }
.text-accent-1 { color: var(--ds-accent-1) }
.text-accent-2 { color: var(--ds-accent-2) }
.text-accent-3 { color: var(--ds-accent-3) }

.font-light { font-weight: var(--ds-weight-light) }
.font-regular { font-weight: var(--ds-weight-regular) }
.font-medium { font-weight: var(--ds-weight-medium) }
.font-semibold { font-weight: var(--ds-weight-semibold) }
.font-bold { font-weight: var(--ds-weight-bold) }
.font-extrabold { font-weight: var(--ds-weight-extrabold) }

.leading-none { line-height: var(--ds-leading-none) }
.leading-tight { line-height: var(--ds-leading-tight) }
.leading-heading { line-height: var(--ds-leading-heading) }
.leading-normal { line-height: var(--ds-leading-normal) }
.leading-relaxed { line-height: var(--ds-leading-relaxed) }

.tracking-tightest { letter-spacing: var(--ds-tracking-tightest) }
.tracking-tighter { letter-spacing: var(--ds-tracking-tighter) }
.tracking-tight { letter-spacing: var(--ds-tracking-tight) }
.tracking-normal { letter-spacing: var(--ds-tracking-normal) }
.tracking-wide { letter-spacing: var(--ds-tracking-wide) }
.tracking-wider { letter-spacing: var(--ds-tracking-wider) }
.tracking-widest { letter-spacing: var(--ds-tracking-widest) }
.tracking-caps { letter-spacing: var(--ds-tracking-caps); text-transform: uppercase }
.tracking-label { letter-spacing: var(--ds-tracking-label); text-transform: uppercase }

.uppercase { text-transform: uppercase }
.capitalize { text-transform: capitalize }
.text-left { text-align: left }
.text-center { text-align: center }
.text-right { text-align: right }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }

/* Text gradient utility */
.text-gradient {
  background: var(--ds-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-brand {
  background: var(--ds-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== SURFACES ===== */
.bg-base { background: var(--ds-bg) }
.bg-surface { background: var(--ds-surface) }
.bg-surface-2 { background: var(--ds-surface-2) }
.bg-surface-3 { background: var(--ds-surface-3) }
.bg-brand { background: var(--ds-brand) }
.bg-brand-subtle { background: var(--ds-brand-subtle) }
.bg-brand-muted { background: var(--ds-brand-muted) }
.bg-overlay { background: var(--ds-overlay) }

/* ===== BORDERS ===== */
.border { border: 1px solid var(--ds-border) }
.border-strong { border: 1px solid var(--ds-border-strong) }
.border-brand { border: 1px solid var(--ds-brand) }
.border-top { border-top: 1px solid var(--ds-border) }
.border-bottom { border-bottom: 1px solid var(--ds-border) }
.border-left { border-left: 1px solid var(--ds-border) }
.border-left-brand { border-left: 3px solid var(--ds-brand) }
.border-left-accent-1 { border-left: 2px solid var(--ds-accent-1) }
.border-left-accent-2 { border-left: 2px solid var(--ds-accent-2) }
.border-none { border: none }

/* ===== BORDER RADIUS ===== */
.rounded-none { border-radius: var(--ds-radius-none) }
.rounded-sm { border-radius: var(--ds-radius-sm) }
.rounded-md { border-radius: var(--ds-radius-md) }
.rounded-lg { border-radius: var(--ds-radius-lg) }
.rounded-xl { border-radius: var(--ds-radius-xl) }
.rounded-full { border-radius: var(--ds-radius-full) }

/* ===== SPACING ===== */
.p-0 { padding: 0 }
.p-sm { padding: var(--ds-gap-sm) }
.p-md { padding: var(--ds-gap-md) }
.p-lg { padding: var(--ds-gap-lg) }
.p-xl { padding: var(--ds-gap-xl) }

.px-sm { padding-left: var(--ds-gap-sm); padding-right: var(--ds-gap-sm) }
.px-md { padding-left: var(--ds-gap-md); padding-right: var(--ds-gap-md) }
.px-lg { padding-left: var(--ds-gap-lg); padding-right: var(--ds-gap-lg) }

.py-sm { padding-top: var(--ds-gap-sm); padding-bottom: var(--ds-gap-sm) }
.py-md { padding-top: var(--ds-gap-md); padding-bottom: var(--ds-gap-md) }
.py-lg { padding-top: var(--ds-gap-lg); padding-bottom: var(--ds-gap-lg) }

.m-0 { margin: 0 }
.mt-sm { margin-top: var(--ds-gap-sm) }
.mt-md { margin-top: var(--ds-gap-md) }
.mt-lg { margin-top: var(--ds-gap-lg) }
.mt-xl { margin-top: var(--ds-gap-xl) }
.mt-2xl { margin-top: var(--ds-gap-2xl) }
.mt-3xl { margin-top: var(--ds-gap-3xl) }
.mt-section { margin-top: var(--ds-gap-section) }
.mb-sm { margin-bottom: var(--ds-gap-sm) }
.mb-md { margin-bottom: var(--ds-gap-md) }
.mb-lg { margin-bottom: var(--ds-gap-lg) }

/* ===== LAYOUT ===== */
.flex { display: flex }
.flex-col { flex-direction: column }
.flex-wrap { flex-wrap: wrap }
.items-center { align-items: center }
.items-start { align-items: start }
.justify-between { justify-content: space-between }
.justify-center { justify-content: center }
.grid { display: grid }
.gap-xs { gap: var(--ds-gap-xs) }
.gap-sm { gap: var(--ds-gap-sm) }
.gap-md { gap: var(--ds-gap-md) }
.gap-lg { gap: var(--ds-gap-lg) }
.gap-xl { gap: var(--ds-gap-xl) }
.gap-1px { gap: 1px }

/* ===== DISPLAY ===== */
.block { display: block }
.inline-block { display: inline-block }
.inline-flex { display: inline-flex }
.hidden { display: none }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 }

/* ===== POSITION ===== */
.relative { position: relative }
.absolute { position: absolute }
.fixed { position: fixed }
.sticky { position: sticky; top: 0 }
.inset-0 { inset: 0 }

/* ===== SIZING ===== */
.w-full { width: 100% }
.h-full { height: 100% }
.max-w-prose { max-width: 780px }

/* ===== EFFECTS ===== */
.shadow-sm { box-shadow: var(--ds-shadow-sm) }
.shadow-md { box-shadow: var(--ds-shadow-md) }
.shadow-lg { box-shadow: var(--ds-shadow-lg) }
.shadow-glow { box-shadow: var(--ds-shadow-glow) }
.backdrop-blur { backdrop-filter: var(--ds-blur) }

.transition { transition: var(--ds-transition-all) }
.transition-color { transition: var(--ds-transition-color) }
.transition-transform { transition: var(--ds-transition-transform) }
.hover-lift { transition: var(--ds-transition-transform) }
.hover-lift:hover { transform: var(--ds-hover-lift) }

.opacity-dim { opacity: var(--ds-opacity-dim) }
.opacity-muted { opacity: var(--ds-opacity-muted) }
.opacity-ghost { opacity: var(--ds-opacity-ghost) }

.overflow-hidden { overflow: hidden }
.overflow-x-auto { overflow-x: auto }
.pointer-events-none { pointer-events: none }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ds-border), transparent);
  margin: 0;
}

/* ===== ANIMATION ===== */
@keyframes ds-fade-up {
  from { opacity: 0; transform: translateY(20px) }
  to { opacity: 1; transform: none }
}
@keyframes ds-fade-in {
  from { opacity: 0 }
  to { opacity: 1 }
}
@keyframes ds-slide-down {
  from { opacity: 0; transform: translateY(-10px) }
  to { opacity: 1; transform: none }
}
@keyframes ds-pulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .5 }
}
.animate-fade-up { animation: ds-fade-up .8s var(--ds-ease-smooth) both }
.animate-fade-in { animation: ds-fade-in .5s var(--ds-ease-default) both }
.animate-slide-down { animation: ds-slide-down .3s var(--ds-ease-smooth) both }
.animate-pulse { animation: ds-pulse 2s var(--ds-ease-default) infinite }
