/* ══════════════════════════════════════════════════════════════
   AgentOS Docs — Premium Design System v3
   CINEMATIC · DARK-MODE-FIRST · VISUAL-HEAVY · Glassmorphism
   ══════════════════════════════════════════════════════════════ */

/* ── Brand Tokens ── */
:root {
  --md-primary-fg-color: #7c3aed;
  --md-primary-fg-color--light: #a78bfa;
  --md-primary-fg-color--dark: #5b21b6;
  --md-accent-fg-color: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 40%, #06b6d4 100%);
  --brand-gradient-warm: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
  --brand-gradient-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-radius: 20px;
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-md-color-scheme="slate"] {
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 24px 64px rgba(124, 58, 237, 0.25);
}

/* ── Light Mode Overrides ── */
[data-md-color-scheme="default"] {
  --glass-bg: rgba(124, 58, 237, 0.03);
  --glass-border: rgba(124, 58, 237, 0.12);
  --card-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  --card-hover-shadow: 0 20px 60px rgba(124, 58, 237, 0.18);
}

[data-md-color-scheme="default"] .hero h1 {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 40%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-md-color-scheme="default"] .hero .subtitle {
  color: #4b5563;
}

[data-md-color-scheme="default"] .flagship-hero-card {
  border-color: rgba(124, 58, 237, 0.15);
  background: rgba(124, 58, 237, 0.02);
}

[data-md-color-scheme="default"] .pillar-card {
  border-color: rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="default"] .feature-card {
  border-color: rgba(124, 58, 237, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

[data-md-color-scheme="default"] .roi-card {
  border-color: rgba(124, 58, 237, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

[data-md-color-scheme="default"] .roi-bar {
  color: #dc2626;
}

[data-md-color-scheme="default"] .roi-bar--after {
  color: #059669;
}

[data-md-color-scheme="default"] .metric-value {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 40%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Global Typography ── */
.md-typeset {
  font-size: 0.82rem;
  line-height: 1.7;
}

.md-typeset h1 {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.md-typeset h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid transparent;
  border-image: var(--brand-gradient) 1;
}

.md-typeset h3 {
  font-weight: 700;
}

/* ── Smooth Page Entrance ── */
.md-content {
  animation: pageIn 0.5s ease-out;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll-Triggered Fade In ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.15); }
  50%      { box-shadow: 0 0 40px rgba(124, 58, 237, 0.35); }
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION — Cinematic Landing v3
   ══════════════════════════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 40%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: pulseAmbient 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--md-default-bg-color), transparent);
  pointer-events: none;
  z-index: 1;
}

@keyframes pulseAmbient {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  33%      { transform: translateX(-50%) scale(1.05) rotate(1deg); opacity: 0.9; }
  66%      { transform: translateX(-50%) scale(1.08) rotate(-1deg); opacity: 1; }
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
  animation: titleIn 0.8s ease-out;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--md-default-fg-color--light);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  animation: subtitleIn 0.8s ease-out 0.15s both;
}

@keyframes subtitleIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Image Showcase ── */
.hero-image-showcase {
  max-width: 860px;
  margin: 2.5rem auto 1rem;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 16px 64px rgba(124, 58, 237, 0.2),
    0 4px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.2);
  animation: heroImageIn 1s ease-out 0.5s both;
  transition: var(--transition);
}

.hero-image-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.hero-image-showcase:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 80px rgba(124, 58, 237, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-image-showcase img {
  width: 100%;
  display: block;
  filter: none !important;
  transform: none !important;
}

@keyframes heroImageIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Badges ── */
.hero-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: badgesIn 0.8s ease-out 0.3s both;
}

@keyframes badgesIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badges img {
  filter: none !important;
  transition: transform 0.2s;
}

.hero-badges img:hover {
  transform: scale(1.08) !important;
}

/* ── CTA Buttons ── */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: ctaIn 0.8s ease-out 0.45s both;
}

@keyframes ctaIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cta .md-button {
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-cta .md-button::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.hero-cta .md-button:hover::after {
  left: 100%;
}

.hero-cta .md-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
}

.hero-cta .md-button--primary {
  background: var(--brand-gradient);
  border: none;
  color: white !important;
}

/* Hero image — suppress default behavior */
.hero img {
  filter: drop-shadow(0 16px 48px rgba(124, 58, 237, 0.2));
  transition: var(--transition);
}

.hero img:hover {
  filter: drop-shadow(0 20px 60px rgba(124, 58, 237, 0.35));
  transform: scale(1.02);
}

/* ══════════════════════════════════════════════════════════════
   FEATURE GRID — Glass Morphism Cards
   ══════════════════════════════════════════════════════════════ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-grid .feature-card:last-child {
  grid-column: 1 / -1;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Gradient top accent — hidden by default, animates on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(124, 58, 237, 0.25);
}

.feature-card h3 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   SHOWCASE SECTION — Inline Screenshot Carousel (v5)
   ══════════════════════════════════════════════════════════════ */

.showcase-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 3rem 0;
}

/* ── Each showcase: 2-column grid, carousel left, text right ── */
.showcase-item {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.showcase-item:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 12px 48px rgba(124, 58, 237, 0.08);
}

/* ── Left: Screenshot Carousel ── */
.showcase-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a2e;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.12);
}

[data-md-color-scheme="default"] .showcase-visual {
  background: #f0f0f5;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Carousel track inside the visual */
.showcase-visual .carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-visual .carousel-track::-webkit-scrollbar {
  display: none;
}

.showcase-visual .carousel-slide {
  min-width: 100%;
  scroll-snap-align: start;
  flex-shrink: 0;
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.showcase-visual .carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  transition: transform 0.3s ease;
}

.showcase-visual .carousel-slide:hover img {
  transform: scale(1.015);
}

/* Caption overlay */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  background: inherit;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(124, 58, 237, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover,
.carousel-dot.active {
  background: rgba(124, 58, 237, 0.9);
  transform: scale(1.3);
}

/* Navigation arrows — small, on edges */
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  pointer-events: none;
  z-index: 3;
}

.carousel-btn {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
}

.showcase-visual:hover .carousel-btn {
  opacity: 0.8;
}

.carousel-btn:hover {
  background: rgba(124, 58, 237, 0.9);
  opacity: 1;
  transform: scale(1.15);
}

/* Agent name badge */
.showcase-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-gradient);
  color: white;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.25rem 0.8rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
  letter-spacing: 0.03em;
  white-space: nowrap;
  z-index: 4;
}

/* ── Right: Content ── */
.showcase-content {
  min-width: 0;
  padding-top: 0.25rem;
}

.showcase-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.4rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-tagline {
  color: var(--md-default-fg-color--light);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* Outcome items */
.outcome-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--md-default-fg-color--light);
}

.outcome-item strong {
  color: var(--md-default-fg-color);
}

.outcome-icon {
  flex-shrink: 0;
  font-size: 0.78rem;
  margin-top: 2px;
}

.outcome-result {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0.75rem 0 0;
}

/* ── Showcase Button ── */
.showcase-content .md-button,
.showcase-content a.md-button {
  margin-top: 0.75rem;
  display: inline-flex;
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
}
/* ══════════════════════════════════════════════════════════════
   ROI VISUAL — Animated Bar Chart (NEW v3)
   ══════════════════════════════════════════════════════════════ */

.roi-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.roi-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
}

.roi-before,
.roi-after {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.roi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #f87171;
}

.roi-label--after {
  color: #34d399;
}

.roi-bar {
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.3));
  border: 1px solid rgba(248, 113, 113, 0.2);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fca5a5;
  width: var(--bar-width, 80%);
  transition: width 1s ease-out;
}

.roi-bar--after {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.3));
  border-color: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
  min-width: 80px;
}

.roi-desc {
  font-size: 0.78rem;
  color: var(--md-default-fg-color--light);
}

.roi-total {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 2px solid rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.04));
  margin: 2rem 0;
  animation: glowPulse 4s ease-in-out infinite;
}

.roi-total-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.roi-total-money {
  font-size: 1.25rem;
  font-weight: 700;
  color: #34d399;
  margin-top: 0.5rem;
}

.roi-total-sub {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   SCREENSHOT — Floating Frame
   ══════════════════════════════════════════════════════════════ */

.screenshot {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  margin: 2.5rem auto;
  max-width: 900px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
}

.screenshot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.screenshot:hover::before {
  opacity: 0.5;
}

.screenshot:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 64px rgba(124, 58, 237, 0.15);
}

.screenshot img {
  width: 100%;
  display: block;
}

[data-md-color-scheme="slate"] .screenshot {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   PRIVACY SECTION — Split Layout (NEW v3)
   ══════════════════════════════════════════════════════════════ */

.privacy-section {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.privacy-visual img {
  width: 100%;
  border-radius: 20px;
  animation: floatY 7s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(16, 185, 129, 0.15));
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-weight: 700;
  font-size: 0.9rem;
  animation: privacyPulse 4s ease-in-out infinite;
  margin-bottom: 1.25rem;
}

@keyframes privacyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.1); }
  50%      { box-shadow: 0 0 24px 8px rgba(16, 185, 129, 0.08); }
}

.privacy-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.privacy-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}

.privacy-item:hover {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.04);
}

.privacy-status {
  font-weight: 800;
  font-size: 0.82rem;
  color: #f87171;
  white-space: nowrap;
  min-width: 65px;
}

.privacy-data {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
}

/* ══════════════════════════════════════════════════════════════
   DIFFERENTIATOR SECTION — Visual Grid (NEW v3)
   ══════════════════════════════════════════════════════════════ */

.differentiator-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2rem 0;
}

.differentiator-visual img {
  width: 100%;
  border-radius: 20px;
  animation: floatY 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(124, 58, 237, 0.15));
}

.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.diff-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.diff-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.diff-card:hover::before {
  transform: scaleX(1);
}

.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(124, 58, 237, 0.2);
}

.diff-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.diff-card h4 {
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.diff-card p {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   PERSONA STRIP — Horizontal Cards (NEW v3)
   ══════════════════════════════════════════════════════════════ */

.persona-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.persona-card {
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.persona-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.persona-card:hover::after {
  opacity: 1;
}

.persona-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(124, 58, 237, 0.2);
}

.persona-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.persona-card h4 {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

.persona-card p {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   TRUST STRIP — Tech Stack Bar (NEW v3)
   ══════════════════════════════════════════════════════════════ */

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  margin: 2rem 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  min-width: 80px;
}

.trust-item strong {
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-item span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-default-fg-color--light);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION — Premium Box (NEW v3)
   ══════════════════════════════════════════════════════════════ */

.cta-section {
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 2px solid rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(6, 182, 212, 0.04) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.cta-headline {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1rem;
  color: var(--md-default-fg-color--light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.cta-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  text-align: left;
}

.cta-check {
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
  padding: 0.4rem 0;
}

.cta-check strong {
  color: var(--md-default-fg-color);
}

/* ══════════════════════════════════════════════════════════════
   FLAVOR CARDS — Showcase Grid
   ══════════════════════════════════════════════════════════════ */

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.flavor-card {
  padding: 2.5rem 2rem;
  border-radius: var(--card-radius);
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.flavor-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.flavor-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-6px);
}

.flavor-card:hover::after {
  transform: scaleX(1);
}

.flavor-card .flavor-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.flavor-card h3 {
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.flavor-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  text-decoration: none;
  transition: var(--transition);
}

.flavor-card a::after {
  content: ' →';
  transition: transform 0.2s;
  display: inline-block;
}

.flavor-card a:hover {
  color: var(--md-accent-fg-color);
}

.flavor-card a:hover::after {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════════════
   STEP CARDS — How It Works
   ══════════════════════════════════════════════════════════════ */

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
  counter-reset: step-counter;
}

.step-card {
  padding: 2rem 1.5rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: var(--card-shadow);
  transform: translateY(-4px);
}

.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
  position: relative;
}

/* Connecting line between steps */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -10px;
  width: 20px;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0.4;
}

.step-card h3 {
  font-weight: 800;
  margin-top: 0;
  font-size: 1.1rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   TABLES — Branded Headers
   ══════════════════════════════════════════════════════════════ */

.md-typeset table:not([class]) {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: white;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.md-typeset table:not([class]) td {
  padding: 0.75rem 1.25rem;
}

.md-typeset table:not([class]) tr:hover td {
  background: rgba(124, 58, 237, 0.04);
}

/* ══════════════════════════════════════════════════════════════
   ADMONITIONS — Polished
   ══════════════════════════════════════════════════════════════ */

.md-typeset .admonition,
.md-typeset details {
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border-left-width: 4px;
}

.md-typeset .admonition-title,
.md-typeset details summary {
  font-weight: 700;
  border-radius: 16px 16px 0 0;
}

/* ══════════════════════════════════════════════════════════════
   CODE BLOCKS — Premium Feel
   ══════════════════════════════════════════════════════════════ */

.md-typeset code {
  border-radius: 8px;
  font-size: 0.82em;
  padding: 0.15em 0.4em;
}

.md-typeset pre {
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

.md-typeset pre code {
  font-size: 0.82em;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION — Enhanced
   ══════════════════════════════════════════════════════════════ */

.md-header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.md-tabs__link--active {
  font-weight: 700;
}

.md-nav__link:hover {
  color: var(--md-primary-fg-color) !important;
}

.md-nav__link--active {
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER — Branded
   ══════════════════════════════════════════════════════════════ */

.md-footer {
  border-top: 3px solid transparent;
  border-image: var(--brand-gradient) 1;
}

.md-footer-meta {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), transparent);
}

/* ══════════════════════════════════════════════════════════════
   HORIZONTAL RULES — Gradient Dividers
   ══════════════════════════════════════════════════════════════ */

.md-typeset hr {
  border: none;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0.2;
  margin: 3rem 0;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   CONTENT TABS — Polished
   ══════════════════════════════════════════════════════════════ */

.md-typeset .tabbed-labels > label {
  font-weight: 700;
  border-radius: 12px 12px 0 0;
}

/* ══════════════════════════════════════════════════════════════
   SEARCH — Glass Effect
   ══════════════════════════════════════════════════════════════ */

.md-search__form {
  border-radius: 12px !important;
}

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR — Branded (Webkit)
   ══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* ══════════════════════════════════════════════════════════════
   METRICS BAR — Horizontal Stat Counter
   ══════════════════════════════════════════════════════════════ */

.metrics-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;
  margin: 0 auto;
  max-width: 800px;
}

.metric-item {
  text-align: center;
  min-width: 100px;
  transition: var(--transition);
}

.metric-item:hover {
  transform: scale(1.05);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--md-default-fg-color--light);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIAL CARD
   ══════════════════════════════════════════════════════════════ */

.testimonial-card {
  padding: 2.5rem 2rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
  margin: 2rem auto;
  max-width: 700px;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: 1.5rem;
  font-size: 5rem;
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  line-height: 1;
}

.testimonial-card blockquote {
  border: none;
  margin: 0;
  padding: 0;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--md-default-fg-color);
}

.testimonial-card .testimonial-author {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--md-default-fg-color--light);
  font-style: normal;
}

/* ══════════════════════════════════════════════════════════════
   FLAGSHIP SHOWCASE — Dual Hero Cards (Legacy compat)
   ══════════════════════════════════════════════════════════════ */

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.flagship-card {
  padding: 2.5rem 2rem;
  border-radius: var(--card-radius);
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.flagship-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-gradient);
  opacity: 0.6;
}

.flagship-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-8px);
}

.flagship-card:hover::before {
  opacity: 1;
}

.flagship-card .flagship-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
  margin-bottom: 1rem;
}

.flagship-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.flagship-card .flagship-tagline {
  font-size: 0.95rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.flagship-card .flagship-screenshot {
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
}

.flagship-card .flagship-screenshot img {
  width: 100%;
  display: block;
}

.flagship-card ul {
  text-align: left;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.8;
}

.flagship-card ul li strong {
  color: var(--md-default-fg-color);
}

.flagship-card .md-button {
  margin-top: 1rem;
}

/* Screenshot gallery for feature pages */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.screenshot-gallery .screenshot {
  margin: 0;
}

/* Secondary flavour cards (smaller) */
.secondary-flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.secondary-flavor-card {
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  text-align: center;
  transition: var(--transition);
  font-size: 0.88rem;
}

.secondary-flavor-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: var(--card-shadow);
  transform: translateY(-4px);
}

.secondary-flavor-card .flavor-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.secondary-flavor-card h4 {
  font-weight: 700;
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════════════════
   SECTION INTRO — Centered lead paragraph
   ══════════════════════════════════════════════════════════════ */

.section-intro {
  font-size: 1.05rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   COMPARISON TABLE — "Why Not Just Claude?"
   ══════════════════════════════════════════════════════════════ */

.comparison-section {
  margin: 2rem 0;
}

.comparison-table-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparison-table thead th {
  padding: 1rem 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: left;
}

.comparison-table thead th:first-child {
  background: var(--md-primary-fg-color);
  color: white;
  width: 22%;
}

.comparison-table thead th:nth-child(2) {
  background: #64748b;
  color: white;
  width: 39%;
}

.comparison-table thead th:nth-child(3) {
  background: var(--brand-gradient);
  color: white;
  width: 39%;
}

.comparison-table tbody td {
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
  line-height: 1.5;
}

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

.comparison-table tbody tr:hover td {
  background: rgba(124, 58, 237, 0.03);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.cmp-yes {
  color: #10b981;
}

.cmp-no {
  color: #f87171;
  opacity: 0.85;
}

.cmp-part {
  color: #f59e0b;
  opacity: 0.9;
}

/* Last column highlight */
.comparison-table tbody td:nth-child(3) {
  background: rgba(124, 58, 237, 0.03);
}

[data-md-color-scheme="slate"] .comparison-table tbody td:nth-child(3) {
  background: rgba(124, 58, 237, 0.06);
}

/* ══════════════════════════════════════════════════════════════
   ANTI-HALLUCINATION SECTION — Pipeline Visual
   ══════════════════════════════════════════════════════════════ */

.hallucination-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2rem 0;
}

.hallucination-visual img {
  width: 100%;
  border-radius: 20px;
  animation: floatY 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(124, 58, 237, 0.12));
}

.hallucination-content {
  min-width: 0;
}

.hallucination-content .section-intro {
  text-align: left;
  margin: 0 0 1.5rem;
}

/* Pipeline 4-step strip */
.pipeline-visual {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.5rem 0;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  flex-wrap: nowrap;
  justify-content: center;
}

.pipeline-step-card {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.pipeline-step-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  display: block;
}

.pipeline-step-name {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--md-default-fg-color);
  letter-spacing: 0.02em;
}

.pipeline-step-desc {
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.15rem;
}

.pipeline-arrow-icon {
  color: var(--md-primary-fg-color);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 0 0.5rem;
  opacity: 0.5;
  flex-shrink: 0;
}

/* Layer grid — 3-column */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.layer-item {
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--md-default-fg-color--light);
  transition: var(--transition-fast);
}

.layer-item:hover {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.03);
}

.layer-item strong {
  color: var(--md-default-fg-color);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   SHARED BRAIN SECTION — Knowledge Governance
   ══════════════════════════════════════════════════════════════ */

.brain-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  margin: 2rem 0;
}

.brain-content {
  min-width: 0;
}

.brain-content .section-intro {
  text-align: left;
  margin: 0 0 1.5rem;
}

.brain-visual img {
  width: 100%;
  border-radius: 20px;
  animation: floatY 7s ease-in-out infinite 1s;
  filter: drop-shadow(0 12px 32px rgba(16, 185, 129, 0.15));
}

.brain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.brain-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.brain-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient-emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.brain-card:hover::before {
  transform: scaleX(1);
}

.brain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
}

.brain-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: block;
}

.brain-card h4 {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

.brain-card p {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   FLAGSHIP DUO — Side-by-side product hero cards
   ══════════════════════════════════════════════════════════════ */

.flagship-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.flagship-hero-card {
  padding: 2.25rem 2rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.flagship-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.flagship-hero-card--michelle::before {
  background: var(--brand-gradient-emerald);
}

.flagship-hero-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-6px);
}

.flagship-hero-card:hover::before {
  opacity: 1;
}

.flagship-hero-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.flagship-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.2);
  flex-shrink: 0;
}

.flagship-hero-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.15rem;
  line-height: 1.2;
}

.flagship-role {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flagship-pitch {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--md-default-fg-color--light);
  margin-bottom: 1.25rem;
}

.flagship-outcomes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.flagship-outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

.flagship-outcome span {
  flex-shrink: 0;
  font-size: 0.72rem;
}

.flagship-result {
  font-weight: 800;
  font-size: 1rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.flagship-hero-card--michelle .flagship-result {
  background: var(--brand-gradient-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flagship-hero-card .md-button {
  font-size: 0.8rem;
  padding: 0.5rem 1.5rem;
}

/* ══════════════════════════════════════════════════════════════
   HERO IMAGE SHOWCASE — Floating dashboard preview
   ══════════════════════════════════════════════════════════════ */

.hero-image-showcase {
  margin: 2.5rem auto 0;
  max-width: 85%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(124, 58, 237, 0.18),
    0 0 0 1px rgba(124, 58, 237, 0.1);
  transition: var(--transition);
  animation: floatY 8s ease-in-out infinite;
}

.hero-image-showcase:hover {
  transform: translateY(-8px);
  box-shadow:
    0 32px 100px rgba(124, 58, 237, 0.22),
    0 0 0 1px rgba(124, 58, 237, 0.15);
}

.hero-image-showcase img {
  width: 100%;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   THREE PILLARS — Differentiator Cards (Evolves, Validates, Private)
   ══════════════════════════════════════════════════════════════ */

.pillars-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.pillar-card {
  padding: 2rem 1.75rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card--validates::after {
  background: var(--brand-gradient-warm);
}

.pillar-card--private::after {
  background: var(--brand-gradient-emerald);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(124, 58, 237, 0.25);
}

.pillar-card:hover::after {
  transform: scaleX(1);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.08);
  flex-shrink: 0;
}

.pillar-card--validates .pillar-icon {
  background: rgba(249, 115, 22, 0.08);
}

.pillar-card--private .pillar-icon {
  background: rgba(16, 185, 129, 0.08);
}

.pillar-header h3 {
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
}

.pillar-lead {
  font-size: 0.88rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.pillar-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-detail {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
  padding-left: 1rem;
  border-left: 2px solid rgba(124, 58, 237, 0.15);
}

.pillar-card--validates .pillar-detail {
  border-left-color: rgba(249, 115, 22, 0.15);
}

.pillar-card--private .pillar-detail {
  border-left-color: rgba(16, 185, 129, 0.15);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */


@media (max-width: 960px) {
  .showcase-item {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  .showcase-visual {
    max-width: 100%;
    margin: 0 auto;
  }
  .privacy-section {
    grid-template-columns: 1fr;
  }
  .privacy-visual {
    max-width: 300px;
    margin: 0 auto;
  }
  .differentiator-section {
    grid-template-columns: 1fr;
  }
  .differentiator-visual {
    max-width: 280px;
    margin: 0 auto;
  }
  .differentiator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hallucination-section {
    grid-template-columns: 1fr;
  }
  .hallucination-visual {
    max-width: 280px;
    margin: 0 auto;
  }
  .brain-section {
    grid-template-columns: 1fr;
  }
  .brain-visual {
    max-width: 300px;
    margin: 0 auto;
    order: -1;
  }
  .layer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flagship-duo {
    grid-template-columns: 1fr;
  }
  .pillars-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .subtitle {
    font-size: 1.05rem;
  }
  .feature-grid,
  .flavor-grid,
  .flagship-grid,
  .screenshot-gallery,
  .step-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .md-button {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  .metrics-bar {
    gap: 1.5rem;
  }
  .metric-value {
    font-size: 1.8rem;
  }
  .persona-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .differentiator-grid {
    grid-template-columns: 1fr;
  }
  .roi-visual {
    grid-template-columns: 1fr;
  }
  .roi-card {
    grid-template-columns: 1fr;
  }
  .feature-grid .feature-card:last-child {
    grid-column: auto;
  }
  .step-card:not(:last-child)::after {
    display: none;
  }
  .layer-grid {
    grid-template-columns: 1fr;
  }
  .brain-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table {
    font-size: 0.78rem;
  }
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.6rem 0.8rem;
  }
  .pipeline-visual {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .pipeline-arrow-icon {
    display: none;
  }
  .pipeline-step-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .persona-strip {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    gap: 1.5rem;
  }
}
