/* ==========================================================================
   BERRY OS — PUBLIC MARKETING DESIGN SYSTEM (WORLD-CLASS SAAS STANDARD)
   ========================================================================== */

:root {
  --berry-bg: #07080B;
  --berry-surface: #0E1014;
  --berry-surface-2: #14171D;
  --berry-surface-3: #1A1E26;
  --berry-line: rgba(255, 255, 255, 0.08);
  --berry-line-strong: rgba(255, 255, 255, 0.16);
  --berry-text: #F8FAFC;
  --berry-muted: #94A3B8;
  --berry-dim: #64748B;
  --berry-brand: #FF7A1A;
  --berry-brand-strong: #F05A00;
  --berry-brand-soft: rgba(255,122,26, 0.14);
  --berry-orange: #FF6A00;
  --berry-orange-hover: #E55F00;
  --berry-success: #34D399;
  --berry-danger: #E5394F;
  --berry-info: #5AA9FF;
  --berry-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --berry-radius: 16px;
  --berry-radius-sm: 10px;
  --berry-radius-lg: 24px;
  --berry-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --berry-bg: #FBF7EF;
  --berry-surface: #FFFFFF;
  --berry-surface-2: #F1F3F5;
  --berry-surface-3: #E9ECEF;
  --berry-line: rgba(15, 23, 42, 0.08);
  --berry-line-strong: rgba(15, 23, 42, 0.15);
  --berry-text: #0F172A;
  --berry-muted: #475569;
  --berry-dim: #64748B;
  --berry-brand: #FF7A1A;
  --berry-brand-strong: #F05A00;
  --berry-brand-soft: rgba(255,122,26, 0.12);
  --berry-orange: #FF6A00;
  --berry-orange-hover: #E55F00;
  --berry-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--berry-bg) !important;
  color: var(--berry-text) !important;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Background Atmosphere */
.bh-page {
  position: relative;
  overflow: hidden;
}
.bh-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(900px 500px at 80% 0%, rgba(255,122,26, 0.08), transparent 70%),
    radial-gradient(700px 500px at 15% 20%, rgba(90, 169, 255, 0.04), transparent 70%);
}
html[data-theme="light"] .bh-page::before {
  background: 
    radial-gradient(900px 500px at 80% 0%, rgba(255,122,26, 0.05), transparent 70%),
    radial-gradient(700px 500px at 15% 20%, rgba(90, 169, 255, 0.03), transparent 70%);
}

.bh-wrap {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
}

/* ==========================================================================
   STICKY FLOATING NAVIGATION HEADER
   ========================================================================== */
.berry-nav-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: 100%;
  pointer-events: none;
  transition: all 0.25s var(--berry-ease);
}
.berry-nav-container {
  width: min(1340px, calc(100% - 32px));
  margin: 0 auto;
  pointer-events: auto;
}
.berry-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--berry-line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.25s var(--berry-ease);
}
html[data-theme="light"] .berry-nav-bar {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.berry-nav-header.is-scrolled .berry-nav-bar {
  padding: 8px 16px;
  background: rgba(14, 16, 20, 0.94);
  border-color: var(--berry-line-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
html[data-theme="light"] .berry-nav-header.is-scrolled .berry-nav-bar {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}

.berry-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--berry-text);
  font-weight: 900;
  letter-spacing: 0.5px;
}
.berry-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #FF7A1A, #FF6A00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255,122,26, 0.3);
}
.berry-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.berry-brand-text {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
}
.berry-brand-text span {
  color: var(--berry-brand);
}

.berry-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  text-decoration: none;
  color: var(--berry-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.18s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--berry-text);
}
.nav-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-caret {
  font-size: 10px;
  opacity: 0.7;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  padding: 10px;
  box-shadow: var(--berry-shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--berry-ease);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(6px);
  pointer-events: auto;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--berry-radius-sm);
  text-decoration: none;
  color: var(--berry-text);
  transition: background 0.15s ease;
}
.dropdown-item:hover {
  background: var(--berry-surface-2);
}
.dropdown-icon {
  font-size: 16px;
  color: var(--berry-brand);
}
.dropdown-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.dropdown-item small {
  display: block;
  font-size: 11px;
  color: var(--berry-muted);
}

.berry-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.berry-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--berry-line);
  background: var(--berry-surface-2);
  color: var(--berry-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}
.berry-theme-btn:hover {
  color: var(--berry-text);
  border-color: var(--berry-line-strong);
  transform: scale(1.05);
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s var(--berry-ease);
}
.nav-btn.ghost {
  color: var(--berry-text);
  background: transparent;
}
.nav-btn.ghost:hover {
  background: var(--berry-surface-2);
}
.nav-btn.primary {
  background: linear-gradient(135deg, #FF7A1A, #FF6A00);
  color: #171008;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255,122,26, 0.25);
}
.nav-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,122,26, 0.35);
}

/* Mobile Toggle */
.berry-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--berry-line);
  background: var(--berry-surface-2);
  color: var(--berry-text);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Mobile Drawer */
.berry-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--berry-bg);
  padding: 24px;
  overflow-y: auto;
}
.mobile-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--berry-line);
}
.mobile-close-btn {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  color: var(--berry-text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav-links a {
  font-size: 18px;
  font-weight: 700;
  color: var(--berry-text);
  text-decoration: none;
}
.mobile-subgroup {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid var(--berry-brand);
  padding-left: 14px;
}
.mobile-subgroup-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--berry-muted);
  letter-spacing: 1px;
}
.mobile-subgroup a {
  font-size: 15px;
  color: var(--berry-muted);
}
.mobile-drawer-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.bh-hero {
  padding: 100px 0 60px;
  position: relative;
}
.hero-content-wrap {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 50px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--berry-brand-soft);
  border: 1px solid rgba(255,122,26, 0.28);
  border-radius: 999px;
  color: var(--berry-brand);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--berry-text);
  margin-bottom: 22px;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, #FF7A1A, #FF6A00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subhead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--berry-muted);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s var(--berry-ease);
}
.hero-btn.primary {
  background: linear-gradient(135deg, #FF7A1A, #FF6A00);
  color: #171008;
  box-shadow: 0 8px 30px rgba(255,122,26, 0.3);
}
.hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,122,26, 0.4);
}
.hero-btn.secondary {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  color: var(--berry-text);
}
.hero-btn.secondary:hover {
  background: var(--berry-surface-2);
  border-color: var(--berry-line-strong);
  transform: translateY(-2px);
}

.hero-status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--berry-dim);
  letter-spacing: 0.8px;
  font-family: "Space Mono", monospace;
  flex-wrap: wrap;
  justify-content: center;
}
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--berry-success);
  box-shadow: 0 0 10px var(--berry-success);
  animation: liveBlink 1.8s infinite ease-in-out;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   HERO COMMAND CENTER SAAS PRODUCT VISUAL
   ========================================================================== */
.hero-product-viewport {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}
.command-center-window {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line-strong);
  border-radius: var(--berry-radius-lg);
  box-shadow: var(--berry-shadow), 0 0 80px rgba(255,122,26, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}
.window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--berry-surface-2);
  border-bottom: 1px solid var(--berry-line);
}
.window-dots {
  display: flex;
  gap: 7px;
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background: #FF5F56; }
.window-dot.yellow { background: #FFBD2E; }
.window-dot.green { background: #27C93F; }

.window-title {
  font-size: 12px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: var(--berry-muted);
}
.window-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--berry-success);
  background: rgba(52, 211, 153, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
}

/* Telemetry Strip */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--berry-line);
  border-bottom: 1px solid var(--berry-line);
}
.telemetry-item {
  background: var(--berry-surface);
  padding: 14px 20px;
}
.telemetry-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--berry-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.telemetry-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--berry-text);
  margin-top: 4px;
}

/* Command Center Signal Grid */
.command-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
}
.signal-card {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  padding: 18px;
  transition: all 0.25s var(--berry-ease);
  position: relative;
}
.signal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,122,26, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.signal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.signal-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}
.signal-badge strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--berry-text);
}
.signal-metric {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  font-family: "Space Mono", monospace;
}
.signal-metric.amber { color: var(--berry-brand); }
.signal-metric.mint { color: var(--berry-success); background: rgba(52, 211, 153, 0.12); }
.signal-metric.sky { color: var(--berry-info); background: rgba(90, 169, 255, 0.12); }

.signal-desc {
  font-size: 12px;
  color: var(--berry-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.signal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--berry-dim);
  font-family: "Space Mono", monospace;
  padding-top: 10px;
  border-top: 1px solid var(--berry-line);
}

/* Command Center Workflow Pipeline Bar */
.workflow-pipeline-bar {
  background: var(--berry-surface-2);
  border-top: 1px solid var(--berry-line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--berry-muted);
  font-family: "Space Mono", monospace;
}
.pipeline-step.active {
  color: var(--berry-brand);
}
.pipeline-arrow {
  color: var(--berry-dim);
  font-size: 12px;
}

/* ==========================================================================
   TRUST STATEMENT & INTEGRATIONS STRIP
   ========================================================================== */
.trust-strip-section {
  padding: 40px 0;
  border-top: 1px solid var(--berry-line);
  border-bottom: 1px solid var(--berry-line);
  background: var(--berry-surface);
}
.trust-statement {
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--berry-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.integrations-logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.int-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--berry-text);
  transition: all 0.2s ease;
}
.int-tile:hover {
  border-color: rgba(255,122,26, 0.35);
  transform: translateY(-2px);
}
.int-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  border-radius: 6px;
}
.int-status {
  font-size: 9px;
  font-family: "Space Mono", monospace;
  color: var(--berry-success);
  margin-left: 4px;
}

/* ==========================================================================
   PROBLEM STATEMENT: FRAGMENTED TOOLS VS. BERRY OS
   ========================================================================== */
.problem-section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}
.section-label {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--berry-brand);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--berry-text);
  margin-bottom: 18px;
}
.section-desc {
  font-size: 16px;
  color: var(--berry-muted);
  line-height: 1.7;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.comparison-card {
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-lg);
  padding: 36px;
  background: var(--berry-surface);
  position: relative;
}
.comparison-card.berry-os {
  border-color: rgba(255,122,26, 0.35);
  background: linear-gradient(145deg, var(--berry-surface), var(--berry-surface-2));
  box-shadow: 0 20px 50px rgba(255,122,26, 0.06);
}
.comp-card-badge {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.comp-card-badge.bad {
  background: rgba(229, 57, 79, 0.12);
  color: var(--berry-danger);
}
.comp-card-badge.good {
  background: rgba(52, 211, 153, 0.12);
  color: var(--berry-success);
}
.comp-card-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--berry-text);
}
.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.comp-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--berry-muted);
  line-height: 1.5;
}
.comp-icon {
  font-size: 14px;
  font-weight: 900;
  margin-top: 2px;
}
.comp-icon.cross { color: var(--berry-danger); }
.comp-icon.check { color: var(--berry-success); }

/* ==========================================================================
   LIVE AUTOMATION THEATER SIMULATOR
   ========================================================================== */
.simulation-section {
  padding: 100px 0;
  background: var(--berry-surface);
  border-top: 1px solid var(--berry-line);
  border-bottom: 1px solid var(--berry-line);
}
.sim-container {
  border: 1px solid var(--berry-line-strong);
  border-radius: var(--berry-radius-lg);
  background: var(--berry-bg);
  box-shadow: var(--berry-shadow);
  overflow: hidden;
}
.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--berry-surface-2);
  border-bottom: 1px solid var(--berry-line);
  flex-wrap: wrap;
  gap: 14px;
}
.sim-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sim-tab-btn {
  border: 1px solid var(--berry-line);
  background: transparent;
  color: var(--berry-muted);
  padding: 8px 14px;
  border-radius: var(--berry-radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sim-tab-btn:hover {
  color: var(--berry-text);
  border-color: var(--berry-line-strong);
}
.sim-tab-btn.active {
  background: var(--berry-brand-soft);
  color: var(--berry-brand);
  border-color: rgba(255,122,26, 0.4);
}
.sim-live-badge {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--berry-success);
}

.sim-body {
  padding: 32px 24px;
}
.sim-steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
  margin-bottom: 24px;
}
.sim-step-node {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-sm);
  padding: 14px;
  transition: all 0.3s var(--berry-ease);
  position: relative;
}
.sim-step-node.active {
  border-color: var(--berry-brand);
  background: var(--berry-surface-2);
  box-shadow: 0 0 24px rgba(255,122,26, 0.15);
  transform: translateY(-2px);
}
.sim-node-num {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--berry-dim);
  margin-bottom: 6px;
}
.sim-step-node.active .sim-node-num {
  color: var(--berry-brand);
}
.sim-node-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--berry-text);
  margin-bottom: 4px;
}
.sim-node-sub {
  font-size: 10.5px;
  color: var(--berry-muted);
  line-height: 1.4;
}

/* Simulation Detail Box */
.sim-detail-box {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.sim-detail-left {
  max-width: 720px;
}
.sim-detail-stage {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--berry-brand);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sim-detail-headline {
  font-size: 18px;
  font-weight: 800;
  color: var(--berry-text);
  margin-bottom: 8px;
}
.sim-detail-text {
  font-size: 13.5px;
  color: var(--berry-muted);
  line-height: 1.6;
}
.sim-action-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--berry-radius-sm);
  background: linear-gradient(135deg, #FF7A1A, #FF6A00);
  color: #171008;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,122,26, 0.25);
  transition: all 0.2s ease;
}
.sim-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,122,26, 0.35);
}

/* ==========================================================================
   BERRY AI SECTION & REALISTIC INTERFACE
   ========================================================================== */
.ai-section {
  padding: 100px 0;
}
.ai-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}
.ai-dialogue-window {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line-strong);
  border-radius: var(--berry-radius-lg);
  padding: 28px;
  box-shadow: var(--berry-shadow);
}
.ai-chat-bubble {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.ai-chat-bubble.user {
  justify-content: flex-end;
}
.bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF7A1A, #FF6A00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: #171008;
  flex-shrink: 0;
}
.bubble-body {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--berry-text);
  max-width: 540px;
}
.ai-chat-bubble.user .bubble-body {
  background: var(--berry-brand-soft);
  border-color: rgba(255,122,26, 0.3);
  color: var(--berry-text);
}
.ai-alert-card {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-alert-card strong {
  font-size: 12.5px;
  display: block;
}
.ai-alert-card span {
  font-size: 11px;
  color: var(--berry-muted);
}
.ai-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ai-chip-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  color: var(--berry-muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ai-chip-btn:hover {
  color: var(--berry-text);
  border-color: var(--berry-brand);
}

/* Public AI Demo Box */
.public-ai-box {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-lg);
  padding: 28px;
}
.public-ai-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.public-ai-box p {
  font-size: 13px;
  color: var(--berry-muted);
  margin-bottom: 18px;
}
.ai-input-wrap {
  display: flex;
  gap: 10px;
}
.ai-text-input {
  flex: 1;
  height: 46px;
  border-radius: var(--berry-radius-sm);
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  color: var(--berry-text);
  padding: 0 16px;
  font-size: 13.5px;
  outline: none;
}
.ai-text-input:focus {
  border-color: var(--berry-brand);
}
.ai-response-stream {
  margin-top: 16px;
  padding: 14px;
  background: var(--berry-surface-2);
  border-radius: var(--berry-radius-sm);
  font-size: 13px;
  color: var(--berry-text);
  line-height: 1.6;
  min-height: 70px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   PLATFORM MODULE CARDS (3x3 GRID)
   ========================================================================== */
.modules-section {
  padding: 100px 0;
  background: var(--berry-surface);
  border-top: 1px solid var(--berry-line);
  border-bottom: 1px solid var(--berry-line);
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module-card {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  padding: 26px;
  text-decoration: none;
  color: var(--berry-text);
  transition: all 0.25s var(--berry-ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,122,26, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
.module-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--berry-brand);
  margin-bottom: 18px;
}
.module-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.module-desc {
  font-size: 13px;
  color: var(--berry-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.module-explore {
  font-size: 12px;
  font-weight: 800;
  color: var(--berry-brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   VISUAL META ADS OS DEEP DIVE
   ========================================================================== */
.meta-deepdive-section {
  padding: 100px 0;
}
.meta-showcase-box {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line-strong);
  border-radius: var(--berry-radius-lg);
  padding: 36px;
  box-shadow: var(--berry-shadow);
}
.meta-metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.meta-metric-card {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-sm);
  padding: 14px;
}
.meta-metric-card small {
  font-size: 10.5px;
  color: var(--berry-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.meta-metric-card strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  margin-top: 4px;
}

.meta-action-console {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.console-panel {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  padding: 20px;
}
.console-panel h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* ==========================================================================
   SOLUTIONS BY AUDIENCE TABS
   ========================================================================== */
.solutions-section {
  padding: 100px 0;
  background: var(--berry-surface);
  border-top: 1px solid var(--berry-line);
  border-bottom: 1px solid var(--berry-line);
}
.solutions-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.sol-tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--berry-line);
  background: var(--berry-surface-2);
  color: var(--berry-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sol-tab-btn.active {
  background: var(--berry-brand-soft);
  color: var(--berry-brand);
  border-color: rgba(255,122,26, 0.4);
}
.sol-content-panel {
  background: var(--berry-bg);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-lg);
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.sol-heading {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}
.sol-copy {
  font-size: 15px;
  color: var(--berry-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.sol-bullet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sol-bullet-box {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-sm);
  padding: 16px;
  font-size: 13px;
  color: var(--berry-text);
  font-weight: 600;
}

/* ==========================================================================
   HOW IT WORKS (4 STEPS)
   ========================================================================== */
.how-section {
  padding: 100px 0;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.how-card {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  padding: 28px;
  position: relative;
}
.how-num {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--berry-brand);
  margin-bottom: 18px;
}
.how-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}
.how-card p {
  font-size: 13px;
  color: var(--berry-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECURITY & GOVERNANCE
   ========================================================================== */
.security-section {
  padding: 100px 0;
  background: var(--berry-surface);
  border-top: 1px solid var(--berry-line);
  border-bottom: 1px solid var(--berry-line);
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.sec-card {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  padding: 24px;
}
.sec-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}
.sec-card p {
  font-size: 12.5px;
  color: var(--berry-muted);
  line-height: 1.6;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
}
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.billing-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--berry-muted);
  cursor: pointer;
}
.billing-label.active {
  color: var(--berry-text);
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--berry-surface-3);
  border: 1px solid var(--berry-line);
  border-radius: 999px;
  transition: 0.3s ease;
}
.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s ease;
}
input:checked + .toggle-slider {
  background: var(--berry-brand);
}
input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #171008;
}
.save-badge {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--berry-success);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pricing-card {
  background: var(--berry-surface);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s var(--berry-ease);
}
.pricing-card.featured {
  border-color: var(--berry-brand);
  background: linear-gradient(145deg, var(--berry-surface), var(--berry-surface-2));
  box-shadow: 0 20px 60px rgba(255,122,26, 0.12);
  transform: translateY(-4px);
}
.featured-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--berry-brand);
  color: #171008;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.plan-tier-name {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--berry-brand);
  text-transform: uppercase;
}
.plan-price-row {
  margin: 16px 0 8px;
  display: flex;
  align-items: baseline;
}
.plan-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--berry-text);
}
.plan-cycle {
  font-size: 14px;
  color: var(--berry-muted);
  margin-left: 6px;
}
.plan-summary {
  font-size: 13px;
  color: var(--berry-muted);
  min-height: 40px;
  margin-bottom: 24px;
}
.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
}
.plan-feature-list li {
  font-size: 12.5px;
  color: var(--berry-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-feature-list li::before {
  content: "✓";
  color: var(--berry-success);
  font-weight: 900;
}
.plan-cta-btn {
  height: 48px;
  border-radius: var(--berry-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}
.plan-cta-btn.primary {
  background: linear-gradient(135deg, #FF7A1A, #FF6A00);
  color: #171008;
  box-shadow: 0 4px 16px rgba(255,122,26, 0.25);
}
.plan-cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,122,26, 0.35);
}
.plan-cta-btn.ghost {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  color: var(--berry-text);
}
.plan-cta-btn.ghost:hover {
  background: var(--berry-surface-3);
  border-color: var(--berry-line-strong);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  background: var(--berry-surface);
  border-top: 1px solid var(--berry-line);
  border-bottom: 1px solid var(--berry-line);
}
.faq-accordion-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  border-radius: var(--berry-radius);
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(255,122,26, 0.3);
}
.faq-summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--berry-text);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: var(--berry-brand);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-summary::after {
  content: "−";
}
.faq-content {
  padding: 0 22px 20px;
  font-size: 13.5px;
  color: var(--berry-muted);
  line-height: 1.7;
}

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.closing-cta-section {
  padding: 110px 0 80px;
  text-align: center;
  position: relative;
}
.cta-box {
  background: radial-gradient(circle at 50% 0%, rgba(255,122,26, 0.12), transparent 60%), var(--berry-surface);
  border: 1px solid rgba(255,122,26, 0.28);
  border-radius: var(--berry-radius-lg);
  padding: 70px 40px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  max-width: 1100px;
  margin: 0 auto;
}
.cta-headline {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.cta-subhead {
  font-size: 16px;
  color: var(--berry-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   PREMIUM SAAS FOOTER
   ========================================================================== */
.berry-marketing-footer {
  background: var(--berry-bg);
  border-top: 1px solid var(--berry-line);
  padding: 80px 0 40px;
}
.footer-wrap {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
}
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 60px;
}
.brand-col .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--berry-text);
  margin-bottom: 16px;
}
.brand-col .brand-tagline {
  font-size: 13px;
  color: var(--berry-muted);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 18px;
}
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--berry-surface-2);
  border: 1px solid var(--berry-line);
  font-size: 11px;
  font-family: "Space Mono", monospace;
  color: var(--berry-success);
  margin-bottom: 14px;
}
.status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--berry-success);
  box-shadow: 0 0 8px var(--berry-success);
}
.footer-social-link {
  font-size: 12px;
  color: var(--berry-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-social-link:hover {
  color: var(--berry-brand);
}

.footer-heading {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--berry-text);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 12.5px;
  color: var(--berry-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--berry-text);
}

.footer-wordmark {
  font-size: clamp(64px, 14vw, 180px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  margin: 50px 0 35px;
  user-select: none;
  pointer-events: none;
  transition: all 0.2s ease;
}

html[data-theme="light"] .footer-wordmark {
  color: rgba(15, 23, 42, 0.12);
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .footer-wordmark span {
  color: rgba(255,122,26, 0.35);
}

html[data-theme="dark"] .footer-wordmark {
  color: rgba(255, 255, 255, 0.14);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .footer-wordmark span {
  color: rgba(255,122,26, 0.38);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--berry-line);
  font-size: 12px;
  color: var(--berry-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* Floating Ask Berry AI button */
.floating-berry-ai-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  background: var(--berry-surface);
  border: 1px solid rgba(255,122,26, 0.4);
  border-radius: 999px;
  color: var(--berry-text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.25s var(--berry-ease);
}
.floating-berry-ai-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--berry-brand);
  box-shadow: 0 14px 40px rgba(255,122,26, 0.25);
}
.ai-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--berry-brand);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1100px) {
  .command-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-main-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-col { grid-column: span 2; }
}

@media (max-width: 900px) {
  .berry-nav-links { display: none; }
  .berry-mobile-toggle { display: flex; }
  .comparison-grid { grid-template-columns: 1fr; }
  .ai-showcase-grid { grid-template-columns: 1fr; }
  .meta-metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .meta-action-console { grid-template-columns: 1fr; }
  .sim-steps-grid { grid-template-columns: repeat(3, 1fr); }
  .telemetry-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .bh-wrap { width: calc(100% - 32px); }
  .command-grid { grid-template-columns: 1fr; padding: 16px; }
  .modules-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-main-grid { grid-template-columns: 1fr; }
  .brand-col { grid-column: auto; }
  .sim-steps-grid { grid-template-columns: 1fr; }
  .sol-bullet-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-btn { width: 100%; }
  .meta-metrics-strip { grid-template-columns: 1fr; }
  .telemetry-strip { grid-template-columns: 1fr; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   CASE STUDIES & PLATFORM PAGE UTILITIES (.bh-* ALIASES)
   ========================================================================== */
.bh-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  padding: 0 22px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s var(--berry-ease) !important;
  cursor: pointer !important;
}
.bh-btn.primary {
  background: linear-gradient(135deg, #FF7A1A, #FF6A00) !important;
  color: #171008 !important;
  box-shadow: 0 4px 16px rgba(255,122,26, 0.3) !important;
  border: none !important;
}
.bh-btn.primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(255,122,26, 0.45) !important;
}
.bh-btn.ghost, .bh-btn.secondary {
  background: var(--berry-surface-2) !important;
  color: var(--berry-text) !important;
  border: 1px solid var(--berry-line-strong) !important;
}
.bh-btn.ghost:hover, .bh-btn.secondary:hover {
  background: var(--berry-surface-3) !important;
  border-color: var(--berry-brand) !important;
}

.bh-kicker {
  font: 700 11px var(--mono) !important;
  color: var(--berry-brand) !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
  display: inline-block !important;
}

.bh-lead {
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: var(--berry-muted) !important;
  max-width: 760px !important;
}

.bh-copy {
  color: var(--berry-muted) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.bh-section {
  padding: 70px 0 !important;
}

/* Public mobile header hardening */
@media (max-width:900px){
  .berry-nav-header{top:8px!important}
  .berry-nav-container{width:calc(100% - 20px)!important}
  .berry-nav-bar{padding:8px 10px!important;gap:8px!important;min-width:0!important}
  .berry-nav-brand{min-width:0!important;flex:1 1 auto!important}
  .berry-brand-text{font-size:14px!important;white-space:nowrap!important}
  .berry-nav-actions{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important}
  .berry-nav-actions .berry-theme-btn{width:38px!important;height:38px!important;flex:0 0 38px!important}
  .berry-nav-actions .nav-btn.ghost{display:none!important}
  .berry-nav-actions .nav-btn.primary{display:inline-flex!important;min-height:38px!important;padding:8px 12px!important;font-size:10px!important;white-space:nowrap!important;border-radius:999px!important}
  .berry-mobile-toggle{display:flex!important;flex:0 0 38px!important;width:38px!important;height:38px!important}
}
@media(max-width:520px){
  .berry-nav-container{width:calc(100% - 14px)!important}
  .berry-nav-bar{padding:7px 8px!important}
  .berry-brand-mark{width:32px!important;height:32px!important}
  .berry-brand-text{font-size:13px!important;letter-spacing:.3px!important}
  .berry-nav-actions .nav-btn.primary{font-size:9px!important;padding:7px 10px!important}
  .berry-nav-actions .berry-theme-btn{display:none!important}
  .berry-mobile-toggle{width:36px!important;height:36px!important;flex-basis:36px!important}
}

/* ==========================================================================
   APP SHELL — tablet widths (901–1199px): keep a full but narrower sidebar
   instead of the squeezed rail whose labels wrapped mid-word ("Ber / AI").
   ≤900px uses the mobile topbar + bottom nav + drawer (berry-system.css).
   ========================================================================== */
.sidebar .nav-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:901px) and (max-width:1199px){
  .app-shell{grid-template-columns:212px minmax(0,1fr)!important}
  .sidebar{width:212px!important;min-width:212px!important;padding:16px 10px!important}
  .sidebar .brand{justify-content:flex-start!important}
  .sidebar .brand-text{display:block!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sidebar .brand-tagline{display:none!important}
  .sidebar .nav-item{justify-content:flex-start!important;font-size:12.5px!important;padding-left:10px!important;padding-right:10px!important}
  .sidebar .nav-item .nav-icon{margin-right:2px}
  .sidebar .nav-badge{display:inline-flex!important;margin-left:auto}
  .sidebar .nav-section-label{display:block!important}
  .sidebar .sidebar-theme-switch .theme-badge{display:none!important}
}
/* Stacked page heads on narrow screens: children must not keep a desktop flex-basis as height. */
@media (max-width:900px){.dash-head>*{flex:0 0 auto!important;min-height:0!important}}

/* ==========================================================================
   SHARED PUBLIC NAV — active state, mobile drawer tools (one nav on every page)
   ========================================================================== */
.nav-link.active{color:var(--berry-text);font-weight:700}
.nav-link.active::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;border-radius:2px;background:var(--berry-brand)}
.dropdown-item[aria-current="page"]{background:var(--berry-brand-soft)}
.mobile-drawer-tools{display:flex;gap:8px;align-items:center}
.mobile-drawer-tools .berry-theme-btn{display:flex!important;width:36px;height:36px;border-radius:10px}
.mobile-nav-links a.active{color:var(--berry-brand)}
.mobile-drawer-footer .nav-btn{width:100%;justify-content:center;text-align:center;height:46px;font-size:15px}
.mobile-drawer-footer{position:sticky;bottom:-24px;margin-top:24px;padding:14px 0 24px;background:var(--berry-bg);border-top:1px solid var(--berry-line)}
@media (max-height:760px){.mobile-nav-links{gap:10px}.mobile-nav-links a{font-size:16px}.mobile-subgroup a{font-size:14px}}
