/* ============================================================
   N-GRAM VENTURES — Design System
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
  --bg-body: #f8fafc;
  --bg-dark: #0f172a;
  --bg-dark-subtle: #1e293b;
  --bg-dark-card: #162032;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;

  --brand: #10b981;
  --brand-dark: #059669;
  --brand-glow: rgba(16, 185, 129, 0.15);
  --brand-glow-strong: rgba(16, 185, 129, 0.25);

  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.1);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #f1f5f9;
  --text-inverse-muted: #94a3b8;

  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-dark: rgba(255, 255, 255, 0.08);

  --status-active: #10b981;
  --status-active-bg: #ecfdf5;
  --status-learning: #6366f1;
  --status-learning-bg: #eef2ff;
  --status-paused: #94a3b8;
  --status-paused-bg: #f1f5f9;
  --status-ready: #f59e0b;
  --status-ready-bg: #fffbeb;
  --status-danger: #ef4444;
  --status-danger-bg: #fef2f2;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Inter', -apple-system, sans-serif;

  --header-height: 64px;
  --sidebar-width: 260px;

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}


/* ----- Layout ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-inverse);
}

.section-dark p {
  color: var(--text-inverse-muted);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}


/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: #cbd5e1;
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-inverse);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}


/* ----- Badges & Chips ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-success {
  background: var(--status-active-bg);
  color: var(--status-active);
}

.badge-info {
  background: var(--status-learning-bg);
  color: var(--status-learning);
}

.badge-warning {
  background: var(--status-ready-bg);
  color: var(--status-ready);
}

.badge-muted {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
}

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


/* ----- Site Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 18px !important;
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--brand-dark) !important;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ----- Hero Section ----- */
.hero {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 560px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--text-inverse);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--brand), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-inverse-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-inverse-muted);
}

.hero-meta-icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

/* Hero Dashboard Preview */
.hero-visual {
  position: relative;
}

.dashboard-preview {
  position: relative;
  background: var(--bg-dark-subtle);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 80px rgba(16, 185, 129, 0.06);
  overflow: hidden;
}

.dashboard-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.dp-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-dark);
}

.dp-dots {
  display: flex;
  gap: 6px;
}

.dp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.dp-dot:first-child { background: #ef4444; }
.dp-dot:nth-child(2) { background: #f59e0b; }
.dp-dot:nth-child(3) { background: #10b981; }

.dp-tab {
  font-size: 12px;
  color: var(--text-inverse-muted);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.dp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dp-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.dp-kpi-label {
  font-size: 10px;
  color: var(--text-inverse-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dp-kpi-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-inverse);
}

.dp-kpi-value.is-good { color: var(--brand); }

.dp-chart-area {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.dp-chart {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.dp-chart-title {
  font-size: 11px;
  color: var(--text-inverse-muted);
  margin-bottom: 10px;
}

.dp-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dp-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), #34d399);
  opacity: 0.8;
}

.dp-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 6px;
}

.dp-th {
  font-size: 10px;
  color: var(--text-inverse-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dp-table-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 5px 0;
}

.dp-td {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.dp-td-name {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.dp-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}


/* ----- Logos/Trust Strip ----- */
.trust-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.trust-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.trust-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.trust-logo-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.trust-logo-card img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.trust-logo-card .logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.trust-logo-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}


/* ----- Feature Cards ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-icon-green { background: var(--status-active-bg); color: var(--brand); }
.feature-icon-blue { background: var(--status-learning-bg); color: var(--accent); }
.feature-icon-amber { background: var(--status-ready-bg); color: var(--status-ready); }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}


/* ----- Product Preview Section ----- */
.product-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.product-preview-copy {
  max-width: 480px;
}

.product-preview-copy .eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 16px;
}

.product-preview-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 16px;
}

.product-preview-copy p {
  margin-bottom: 24px;
}

.product-preview-visual {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xl);
}


/* ----- Integration Section ----- */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.integration-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.integration-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.integration-card img {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.integration-card .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.integration-card-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.integration-card-content p {
  font-size: 0.88rem;
  margin: 0;
}


/* ----- Module Table ----- */
.module-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.module-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.module-table th,
.module-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.module-table th {
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.module-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.module-table tbody tr:last-child td {
  border-bottom: none;
}


/* ----- Process Steps ----- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  max-width: 240px;
  margin: 0 auto;
}


/* ----- CTA Section ----- */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: var(--bg-dark);
  border-radius: var(--radius-2xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-inverse);
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  color: var(--text-inverse-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-card .hero-actions {
  justify-content: center;
  position: relative;
}


/* ----- About Section ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.about-card .eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
}

.about-card h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.about-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-card li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.about-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-card li strong {
  color: var(--text-primary);
}

.about-card p {
  margin-bottom: 16px;
}

.about-card p:last-of-type {
  margin-bottom: 24px;
}


/* ----- Stack Pills ----- */
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.stack-pills span {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}


/* ===========================================================
   WORKSPACE — App Shell
   =========================================================== */

body.workspace-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
  background: var(--bg-elevated);
}

/* Sidebar */
.ws-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.ws-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  text-decoration: none;
  color: var(--text-inverse);
}

.ws-sidebar-brand .brand-icon {
  background: var(--brand);
  color: #fff;
}

.ws-sidebar-brand .brand-name {
  color: var(--text-inverse);
  font-size: 1rem;
}

.ws-sidebar-brand .brand-sub {
  color: var(--text-inverse-muted);
}

.ws-sidebar-section {
  padding: 0 12px;
  margin-bottom: 8px;
}

.ws-sidebar-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-inverse-muted);
  padding: 12px 8px 8px;
}

.ws-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-inverse-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.ws-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-inverse);
}

.ws-sidebar-link.is-active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand);
}

.ws-sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.ws-sidebar-link.is-active svg {
  opacity: 1;
}

.ws-sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border-dark);
}

.ws-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-inverse-muted);
  text-decoration: none;
}

.ws-sidebar-footer a:hover {
  color: var(--text-inverse);
}

.ws-sidebar-footer a svg {
  width: 16px;
  height: 16px;
}

/* Workspace Main Area */
.ws-main {
  grid-column: 2;
  padding: 24px 28px 40px;
  min-width: 0;
  overflow-x: hidden;
}

.ws-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ws-topbar h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.ws-topbar p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin: 0;
}

.ws-topbar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile sidebar toggle */
.ws-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.ws-mobile-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

/* Workspace Filters */
.ws-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ws-filter-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ws-filter-field select {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition-fast);
}

.ws-filter-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.ws-status-msg {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  min-height: 18px;
}

/* Workspace KPI Grid */
.ws-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ws-kpi-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.ws-kpi-card:hover {
  box-shadow: var(--shadow-sm);
}

.ws-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.ws-kpi-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ws-kpi-card.is-good {
  border-left: 3px solid var(--brand);
}

.ws-kpi-card.is-good .ws-kpi-value {
  color: var(--brand-dark);
}

.ws-kpi-card.is-warn {
  border-left: 3px solid var(--status-ready);
}

.ws-kpi-card.is-warn .ws-kpi-value {
  color: #b45309;
}

/* Workspace Panels (generic) */
.ws-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 20px;
  min-width: 0;
}

.ws-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ws-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ws-panel-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Workspace Charts Row */
.ws-charts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* Bar Charts */
.ws-bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-bar-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.ws-bar-row-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ws-bar-row-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.ws-bar-track {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.ws-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  transition: width var(--transition-slow);
}

/* Status pills */
.ws-status-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-status-pill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ws-status-pill-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.ws-status-pill-count {
  font-size: 13px;
  font-weight: 600;
}

.ws-status-pill-track {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.ws-status-pill-fill {
  height: 100%;
  border-radius: 4px;
  transition: width var(--transition-slow);
}

.ws-status-pill-fill-active { background: var(--status-active); }
.ws-status-pill-fill-learning { background: var(--status-learning); }
.ws-status-pill-fill-paused { background: var(--status-paused); }
.ws-status-pill-fill-ready { background: var(--status-ready); }

/* Workspace Table + Detail layout */
.ws-body-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Campaign Table */
.ws-table-wrap {
  overflow-x: auto;
}

.ws-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.ws-table th,
.ws-table td {
  padding: 11px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}

.ws-table th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
}

.ws-table tbody tr {
  transition: background var(--transition-fast);
  cursor: pointer;
}

.ws-table tbody tr:hover {
  background: rgba(16, 185, 129, 0.03);
}

.ws-table tbody tr.is-selected {
  background: rgba(16, 185, 129, 0.06);
}

.ws-table-campaign-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  width: 100%;
  color: inherit;
}

.ws-table-campaign-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.ws-table-campaign-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.ws-table-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: capitalize;
}

.ws-table-status-active {
  background: var(--status-active-bg);
  color: #047857;
}

.ws-table-status-learning {
  background: var(--status-learning-bg);
  color: #4338ca;
}

.ws-table-status-paused {
  background: var(--status-paused-bg);
  color: #64748b;
}

.ws-table-status-ready {
  background: var(--status-ready-bg);
  color: #b45309;
}

/* Campaign Detail Panel */
.ws-detail-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ws-detail-header > div {
  flex: 1;
  min-width: 0;
}

.ws-detail-header h4 {
  font-size: 1rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
}

.ws-detail-channel {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ws-detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.ws-detail-metric {
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.ws-detail-metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.ws-detail-metric-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.ws-detail-copy h5 {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.ws-detail-copy p {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.ws-detail-copy p:last-child {
  margin-bottom: 0;
}

/* Workspace Bottom Row */
.ws-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Insight Cards (keywords, creative, alerts) */
.ws-insight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-insight-card {
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.ws-insight-card:hover {
  background: #e8ecf2;
}

.ws-insight-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.ws-insight-head strong {
  font-size: 0.88rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ws-insight-head .ws-insight-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  white-space: nowrap;
}

.ws-insight-card p {
  font-size: 0.83rem;
  margin-bottom: 2px;
}

.ws-insight-card small {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* Empty states */
.ws-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}


/* ===========================================================
   CONTACT PAGE
   =========================================================== */

.contact-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.contact-hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
}

.contact-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}

.contact-hero p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  padding-bottom: 60px;
}

.contact-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.contact-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.contact-checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.contact-email-link:hover {
  background: var(--bg-card);
  border-color: var(--brand);
  color: var(--text-primary);
}

.contact-email-link svg {
  width: 16px;
  height: 16px;
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: var(--bg-card);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-tertiary);
}

.form-status {
  font-size: 13px;
  color: var(--text-tertiary);
  min-height: 18px;
}


/* ===========================================================
   LEGAL PAGES
   =========================================================== */

.legal-page {
  padding: 40px 0 60px;
}

.legal-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.legal-page .legal-date {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.1rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 12px;
  font-size: 0.93rem;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  list-style: disc;
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}


/* ===========================================================
   FOOTER
   =========================================================== */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-inverse-muted);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  font-size: 1rem;
  color: var(--text-inverse);
}

.footer-brand .brand-sub {
  color: var(--text-inverse-muted);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-inverse-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-inverse);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-inverse-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ===========================================================
   ANIMATIONS
   =========================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }


/* ===========================================================
   WORKSPACE PREVIEW BANNER
   =========================================================== */

.ws-preview-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 24px 20px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #92400e;
}
.ws-preview-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #f59e0b;
}

/* ===========================================================
   WORKSPACE VIEW SWITCHING
   =========================================================== */

.ws-view { display: none; }
.ws-view.is-active { display: block; }

.ws-view-header {
  margin-bottom: 28px;
}
.ws-view-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.ws-view-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
}

/* View-specific panels */
.ws-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .ws-view-grid { grid-template-columns: 1fr; }
}

.ws-view-table-wrap {
  overflow-x: auto;
}

.ws-view-table-wrap .ws-table {
  width: 100%;
}

/* Integration cards */
.ws-integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ws-integration-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.ws-integration-card:hover { border-color: var(--primary); }
.ws-integration-card .ws-integration-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.ws-integration-card h4 {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--text);
}
.ws-integration-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 12px;
}
.ws-integration-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
}
.ws-integration-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Account cards */
.ws-account-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.ws-account-card h4 {
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}
.ws-account-card .ws-account-id {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-family: monospace;
}
.ws-account-card .ws-account-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.ws-account-stat {
  text-align: center;
}
.ws-account-stat .ws-account-stat-value {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.ws-account-stat .ws-account-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: auto;
  }

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-preview-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Workspace responsive */
  body.workspace-layout {
    grid-template-columns: 1fr;
  }

  .ws-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
  }

  .ws-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .ws-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
  }

  .ws-sidebar-overlay.is-open {
    display: block;
  }

  .ws-main {
    grid-column: 1;
    padding: 20px 16px 40px;
  }

  .ws-mobile-toggle {
    display: flex;
  }

  .ws-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ws-charts-row {
    grid-template-columns: 1fr;
  }

  .ws-body-row {
    grid-template-columns: 1fr;
  }

  .ws-bottom-row {
    grid-template-columns: 1fr;
  }

  .ws-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid var(--border);
    z-index: 99;
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 15px;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    margin-top: 8px;
  }

  .hero .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dp-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dp-chart-area {
    grid-template-columns: 1fr;
  }

  /* Workspace mobile */
  .ws-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ws-filters {
    grid-template-columns: 1fr;
  }

  .ws-topbar {
    flex-direction: column;
    gap: 12px;
  }

  .ws-topbar-actions {
    width: 100%;
  }

  .ws-topbar-actions .btn {
    flex: 1;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .legal-content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .ws-kpi-grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================================================
   API DISCLOSURE PAGE
   =========================================================== */

/* API Hero */
.api-hero {
  background: var(--bg-dark);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.api-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.api-hero-content {
  max-width: 720px;
}

.api-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-inverse);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.api-hero-description {
  font-size: 1.1rem;
  color: var(--text-inverse-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* API Overview Grid */
.api-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.api-overview-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.api-overview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.api-overview-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--status-active-bg);
  color: var(--brand);
  margin-bottom: 16px;
}

.api-overview-icon-blue {
  background: var(--status-learning-bg);
  color: var(--accent);
}

.api-overview-icon-amber {
  background: var(--status-ready-bg);
  color: var(--status-ready);
}

.api-overview-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.api-overview-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* Campaign Types */
.campaign-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.campaign-type-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.campaign-type-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--status-active-bg);
  color: var(--brand);
}

.campaign-type-icon-blue {
  background: var(--status-learning-bg);
  color: var(--accent);
}

.campaign-type-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.campaign-type-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Architecture Flow */
.arch-flow {
  max-width: 700px;
  margin: 0 auto 48px;
}

.arch-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.arch-step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
}

.arch-step-content h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.arch-step-content p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.arch-connector {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-left: 19px;
  margin: 8px 0 8px 19px;
}

.arch-stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.arch-stack h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.arch-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.arch-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

/* Data Security Grid */
.data-security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.data-security-card {
  padding: 24px;
  background: var(--bg-dark-subtle);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
}

.data-security-card h3 {
  color: var(--text-inverse);
  font-size: 1rem;
  margin-bottom: 14px;
}

.data-security-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-security-card li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-inverse-muted);
  padding-left: 16px;
  position: relative;
}

.data-security-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* API Access Grid */
.api-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.api-access-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.api-access-card .eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
}

.api-access-card h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.api-access-card p {
  margin-bottom: 16px;
  font-size: 0.93rem;
  line-height: 1.65;
}

.api-access-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.api-access-detail {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
}

.api-access-detail strong {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.api-access-detail span {
  color: var(--text-secondary);
}


/* ===========================================================
   HOMEPAGE — Google Ads API Section
   =========================================================== */

.api-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.api-home-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.api-home-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.api-home-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.api-home-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.api-home-list li svg {
  color: var(--brand);
  flex-shrink: 0;
}

.api-home-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.api-home-stack-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.api-home-stack-row:last-child {
  border-bottom: none;
}

.api-home-stack-label {
  font-weight: 600;
  color: var(--text-primary);
}

.api-home-stack-row span:last-child {
  color: var(--text-secondary);
}


/* ===========================================================
   RESPONSIVE — API & Architecture
   =========================================================== */

@media (max-width: 1024px) {
  .api-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .api-overview-grid {
    grid-template-columns: 1fr;
  }

  .campaign-types-grid {
    grid-template-columns: 1fr;
  }

  .data-security-grid {
    grid-template-columns: 1fr;
  }

  .api-access-grid {
    grid-template-columns: 1fr;
  }

  .api-home-grid {
    grid-template-columns: 1fr;
  }

  .campaign-type-card {
    flex-direction: column;
    gap: 12px;
  }
}
