/* ==========================================================================
   Salesforce Specialist Tool · Commercial Product Showcase Design System
   Dark & Light Modes · Apple / Tesla Minimalist Aesthetic
   ========================================================================== */

:root,
html[data-theme="dark"] {
  --bg-page: #04060b;
  --bg-surface: #090e19;
  --bg-elevated: rgba(14, 21, 36, 0.72);
  --bg-header: rgba(4, 6, 11, 0.78);
  --bg-footer: rgba(3, 5, 9, 0.94);
  --bg-input: rgba(15, 23, 42, 0.9);
  --bg-subtle-pill: rgba(255, 255, 255, 0.045);
  --border-subtle: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-highlight: rgba(56, 189, 248, 0.42);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-blue: #00a1e0;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --gradient-headline: linear-gradient(135deg, #ffffff 0%, #7dd3fc 50%, #38bdf8 100%);
  --shadow-deep: 0 32px 90px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-card: 0 18px 45px -15px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 50px -10px rgba(56, 189, 248, 0.38);
  --orb-opacity: 0.24;
  --grid-line: rgba(255, 255, 255, 0.02);
  --logo-drop-shadow: drop-shadow(0 0 9px rgba(56, 189, 248, 0.58));
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

html[data-theme="light"] {
  --bg-page: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-header: rgba(245, 247, 251, 0.82);
  --bg-footer: #eef2f8;
  --bg-input: #ffffff;
  --bg-subtle-pill: rgba(15, 23, 42, 0.045);
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --border-highlight: rgba(2, 132, 199, 0.45);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-cyan: #0284c7;
  --accent-blue: #0070d2;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --gradient-headline: linear-gradient(135deg, #0f172a 0%, #0284c7 55%, #00a1e0 100%);
  --shadow-deep: 0 28px 75px -18px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 14px 36px -12px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 12px 32px -6px rgba(2, 132, 199, 0.35);
  --orb-opacity: 0.13;
  --grid-line: rgba(15, 23, 42, 0.035);
  --logo-drop-shadow: drop-shadow(0 3px 8px rgba(2, 132, 199, 0.38));
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Ambient Lighting Stage */
.ambient-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(125px);
  opacity: var(--orb-opacity);
  will-change: transform;
  transition: transform 0.6s ease-out, opacity 0.35s ease;
}

.orb-cyan {
  width: 680px;
  height: 680px;
  top: -220px;
  left: -140px;
  background: radial-gradient(circle, #00a1e0 0%, transparent 70%);
}

.orb-blue {
  width: 620px;
  height: 620px;
  top: 30%;
  right: -200px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
}

.orb-emerald {
  width: 560px;
  height: 560px;
  bottom: -200px;
  left: 25%;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 25%, #000 35%, transparent 85%);
}

/* ==========================================================================
   Clean Commercial Top Header (No Square Logo Box, No Scrollbars)
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

/* Halo wrapper provides margin around the symbol so drop-shadow never clips or forms a box */
.brand-logo-halo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: visible;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: var(--logo-drop-shadow);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-lockup:hover .brand-symbol {
  transform: scale(1.05);
}

.brand-title {
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle-pill);
}

.nav-link.is-active {
  color: var(--text-primary);
  background: var(--bg-subtle-pill);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle-pill);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--border-highlight);
}

html[data-theme="dark"] .icon-moon {
  display: none;
}

html[data-theme="light"] .icon-sun {
  display: none;
}

.btn-header-cta {
  text-decoration: none;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.45);
}

.scroll-progress {
  height: 2px;
  background: rgba(128, 128, 128, 0.08);
  width: 100%;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-emerald));
  transition: width 0.1s linear;
}

/* ==========================================================================
   Scroll Reveal Animations & Section Layout
   ========================================================================== */

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-section {
  padding-top: 136px;
  padding-bottom: 96px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero & Section Headers
   ========================================================================== */

.hero-header,
.section-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 56px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 161, 224, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-cyan);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-headline {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}

.gradient-text {
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead,
.section-description {
  font-size: 1.15rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0 auto 34px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.btn-primary-glow {
  text-decoration: none;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 42px -5px rgba(2, 132, 199, 0.55);
}

.btn-secondary-glass {
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle-pill);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-secondary-glass:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
}

.btn-lock {
  font-size: 0.74rem;
  background: rgba(56, 189, 248, 0.14);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   Hero Product Stage & Window Chrome
   ========================================================================== */

.hero-stage {
  margin-bottom: 64px;
}

.appearance-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.appearance-tab {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle-pill);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.22s ease;
}

.appearance-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.appearance-tab.is-active {
  background: linear-gradient(135deg, rgba(0, 161, 224, 0.22), rgba(56, 189, 248, 0.12));
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.18);
}

.product-window {
  background: #060a12;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #0d1424;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 7px;
  width: 54px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.window-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
}

.window-spacer {
  width: 54px;
}

.window-viewport {
  background: #030509;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.window-img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  display: block;
  transition: opacity 0.28s ease;
}

.window-caption {
  padding: 14px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: center;
}

.window-caption p {
  margin: 0;
}

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.metric-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.metric-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.metric-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.metric-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   About Cards & Spotlights
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.glass-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.custom-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 161, 224, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.glass-card h3 {
  font-size: 1.28rem;
  margin: 0 0 12px;
}

.glass-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.96rem;
}

/* Deep Details Spotlights */
.spotlight-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 84px;
}

.spotlight-row:last-child {
  margin-bottom: 0;
}

.spotlight-row.is-reversed {
  grid-template-columns: 1.35fr 1fr;
}

.spotlight-row.is-reversed .spotlight-copy {
  order: 2;
}

.spotlight-row.is-reversed .spotlight-visual {
  order: 1;
}

.spotlight-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.spotlight-copy h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.18;
  margin: 0 0 16px;
}

.spotlight-copy p {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.spotlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.spotlight-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ==========================================================================
   Interactive Features Explorer
   ========================================================================== */

.features-explorer {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.features-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-selector-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-card);
  transition: all 0.22s ease;
}

.feature-selector-btn:hover {
  border-color: var(--border-strong);
}

.feature-selector-btn.is-active {
  background: linear-gradient(135deg, rgba(0, 161, 224, 0.18), rgba(56, 189, 248, 0.08));
  border-color: var(--accent-cyan);
}

.feature-selector-btn strong {
  font-size: 0.98rem;
}

.feature-selector-btn span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   AI Ecosystem Brand Cards
   ========================================================================== */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.brand-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.brand-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
}

.logo-claude {
  background: rgba(217, 119, 87, 0.14);
  color: #f97316;
}

.logo-gemini {
  background: rgba(96, 165, 250, 0.14);
  color: #3b82f6;
}

.logo-openai {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.logo-agy {
  background: rgba(56, 189, 248, 0.14);
  color: #0284c7;
}

.logo-sf {
  background: rgba(0, 161, 224, 0.16);
  color: #00a1e0;
}

.logo-git {
  background: rgba(244, 63, 94, 0.14);
  color: #f43f5e;
}

.brand-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.brand-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.94rem;
}

/* ==========================================================================
   Security & Governance Cards
   ========================================================================== */

.governance-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}

.gov-step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.gov-step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 161, 224, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.gov-step-card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.gov-step-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ==========================================================================
   Downloads Section (Blocked & Platforms in Development)
   ========================================================================== */

.vault-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(18px);
}

.vault-status-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.vault-lock-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vault-lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 161, 224, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vault-lock-indicator strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.vault-lock-indicator small {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tag-cyan {
  color: var(--accent-cyan);
  background: rgba(0, 161, 224, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.vault-auth-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 28px;
}

.vault-input-label {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.vault-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vault-key-input {
  flex: 1 1 320px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  outline: none;
}

.vault-key-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.vault-action-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle-pill);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.vault-action-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-unlock-vault {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-unlock-vault:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.4);
}

.vault-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(0, 161, 224, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text-primary);
}

/* 4 Platforms in Development Grid */
.platforms-dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}

.platform-dev-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.platform-dev-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.platform-dev-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.platform-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 161, 224, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: var(--accent-amber);
}

.platform-dev-card h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.platform-dev-card p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.platform-locked-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-subtle-pill);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   Commercial Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  background: var(--bg-footer);
  transition: background-color 0.35s ease;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* =========================================================================
   MAIN PAGE DOCUMENTATION SHOWCASE (#documentacao) WITH CAPPY MASCOT
   ========================================================================= */
.docs-hero-banner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.docs-cappy-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.docs-cappy-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, rgba(59, 130, 246, 0.08) 55%, transparent 75%);
  filter: blur(18px);
  pointer-events: none;
}

.docs-cappy-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 245px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.32));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.docs-hero-banner:hover .docs-cappy-img {
  transform: translateY(-4px) scale(1.02);
}

.docs-cappy-badge {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.docs-hero-copy h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.docs-hero-copy p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin: 0 0 22px;
}

.docs-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.docs-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
}

.docs-highlight-pill svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.docs-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.docs-chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.docs-chapter-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.docs-chapter-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card);
}

.docs-chapter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.docs-chapter-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.1);
}

.docs-chapter-link-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle-pill);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.docs-chapter-card:hover .docs-chapter-link-icon {
  background: var(--accent-cyan);
  color: #030711;
}

.docs-chapter-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.docs-chapter-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* =========================================================================
   DEDICATED DOCUMENTATION PORTAL (docs.html)
   ========================================================================= */
.cappy-bg-watermark {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 340px;
  max-width: 38vw;
  opacity: 0.11;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

html[data-theme="light"] .cappy-bg-watermark {
  opacity: 0.18;
}

.docs-main {
  position: relative;
  z-index: 1;
}

.docs-portal-hero {
  padding: calc(var(--topbar-h) + 38px) 0 36px;
}

.docs-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.85rem;
}

.docs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--accent-cyan);
  font-weight: 600;
}

.docs-back-link:hover {
  text-decoration: underline;
}

.docs-breadcrumb-sep {
  color: var(--text-muted);
}

.docs-breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

.docs-welcome-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
}

.docs-welcome-mascot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-welcome-cappy-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.docs-byline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.docs-byline-row .eyebrow-badge {
  margin-bottom: 0;
}

.docs-reading-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.docs-portal-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.docs-portal-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin: 0 0 20px;
}

.cappy-speech-banner {
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.cappy-speech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cappy-speech-header strong {
  font-size: 0.86rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cappy-role-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle-pill);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.cappy-speech-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.docs-role-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-role-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle-pill);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.docs-role-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.docs-role-btn.is-active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #030711;
  border-color: transparent;
  font-weight: 700;
}

/* Armchair Cappy TOC Box (inspired by ThePromptForce EditionPage) */
.docs-toc-armchair-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  box-shadow: var(--shadow-card);
}

.docs-toc-cappy-img {
  width: 135px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.docs-toc-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.docs-toc-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.docs-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px 18px;
}

.docs-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.docs-toc-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle-pill);
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* 3-Column Workspace Layout */
.docs-workspace-section {
  padding: 20px 0 90px;
}

.docs-layout-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;
}

.docs-sidebar-sticky {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.docs-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 9px 12px;
}

.docs-search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.docs-search-box input {
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.docs-search-kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-subtle-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 10px 6px;
}

.docs-side-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.docs-side-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle-pill);
}

.docs-side-link.is-active {
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border-left-color: var(--accent-cyan);
  font-weight: 700;
}

.docs-side-link.is-filtered-out {
  opacity: 0.35;
}

/* Center Content Column & Chapter Cards */
.docs-content-column {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.docs-chapter {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

.docs-chapter-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-chapter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.docs-chapter-badge {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.docs-role-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.docs-chapter h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.docs-chapter-intro {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.docs-chapter h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--text-primary);
}

.docs-chapter p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin: 0 0 16px;
}

.docs-chapter code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-subtle-pill);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
}

.docs-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.docs-step-card {
  background: var(--bg-subtle-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.docs-step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.docs-step-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.docs-step-card p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.6;
}

.docs-feature-list {
  margin: 14px 0 24px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.docs-feature-list strong {
  color: var(--text-primary);
}

/* Tables */
.docs-table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.docs-table th {
  background: var(--bg-subtle-pill);
  color: var(--text-primary);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

/* Figures & Screenshots */
.docs-figure {
  margin: 22px 0;
}

.docs-figure-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #050a14;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.docs-figure-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.docs-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.docs-dual-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.docs-dual-figures .docs-figure {
  margin: 0;
}

/* Dica do Cappy Callout */
.cappy-callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.cappy-callout-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  flex-shrink: 0;
}

.cappy-callout-title {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.cappy-callout-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.62;
}

/* Right Sidebar: Cappy Profile & Quick Ref */
.cappy-mascot-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.cappy-profile-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.cappy-profile-img {
  width: 130px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.cappy-profile-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.cappy-profile-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.cappy-profile-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cappy-profile-info a {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: none;
}

.cappy-profile-info a:hover {
  text-decoration: underline;
}

.docs-quickref-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.docs-quickref-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.docs-quickref-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.docs-quickref-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.docs-quickref-list kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--bg-subtle-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  white-space: nowrap;
}

.docs-back-top-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.docs-back-top-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* =========================================================================
   PRODUCT REDESIGN EDITORIAL COMPONENTS
   ========================================================================= */
.btn-header-secondary {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle-pill);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-header-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Verifiable Engineering Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.metric-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Problem Comparison Grid */
.problem-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-card);
}

.problem-card.is-coordinated {
  border-color: var(--border-highlight);
}

.problem-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle-pill);
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.problem-card.is-coordinated .problem-card-tag {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.problem-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--text-primary);
}

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.problem-card.is-coordinated .problem-list li::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.problem-list strong {
  color: var(--text-primary);
}

.pillar-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

/* 4-Layer Architecture Grid */
.arch-layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.arch-layer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.arch-layer-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.arch-layer-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.arch-layer-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Technical Spec Box inside Spotlights */
.tech-spec-box {
  background: var(--bg-subtle-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-spec-line {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-spec-line strong {
  color: var(--text-primary);
}

.tech-spec-line code,
.spotlight-copy code,
.bento-card code,
.product-spec-list code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-subtle-pill);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
}

.spotlight-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

.text-arrow-link {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: opacity 0.2s ease;
}

.text-arrow-link:hover {
  text-decoration: underline;
}

.transparency-footnote {
  margin: 26px auto 0;
  max-width: 880px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle-card);
  border: 1px solid var(--border-subtle);
}

/* End-to-End Journey Timeline */
.journey-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.journey-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journey-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.journey-step-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.journey-module-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.journey-step-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.journey-step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* OS Distinction Banner */
.os-distinction-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
}

.os-distinction-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.os-distinction-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Product Info & FAQ Grid */
.product-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.product-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-card);
}

.product-info-panel h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 8px 0 18px;
  color: var(--text-primary);
}

.product-spec-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.product-spec-list strong {
  color: var(--text-primary);
}

.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-subtle-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Spec Page Hero & State Pills */
.spec-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-card);
}

.state-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.state-implemented {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

html[data-theme="light"] .state-implemented {
  color: #059669;
}

.state-dev {
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.32);
}

.state-planned {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

html[data-theme="light"] .state-planned {
  color: #d97706;
}

/* Responsive */
@media (max-width: 1180px) {
  .docs-layout-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .docs-sidebar-right {
    grid-column: 1 / -1;
  }
  .docs-sidebar-right .docs-sidebar-sticky {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 980px) {
  .spotlight-row,
  .spotlight-row.is-reversed,
  .features-explorer,
  .docs-hero-banner,
  .docs-welcome-card,
  .docs-toc-armchair-card,
  .docs-layout-grid,
  .problem-comparison-grid,
  .product-info-grid {
    grid-template-columns: 1fr;
  }
  .spotlight-row.is-reversed .spotlight-copy,
  .spotlight-row.is-reversed .spotlight-visual {
    order: unset;
  }
  .main-nav {
    display: none;
  }
  .docs-sidebar-left .docs-sidebar-sticky {
    position: static;
  }
}

/* ======================================================================
   SST · CORREÇÃO DE INTEGRAÇÃO HTML/CSS · Product Experience v1.1
   Reintroduz os componentes ausentes do stylesheet e
   estabiliza a composição editorial de textos ao lado de capturas.
   ====================================================================== */
:root, html[data-theme="dark"] {
  --bg-card: #0c1321;
  --bg-subtle-card: rgba(148, 163, 184, .065);
  --radius-sm: 8px;
  --topbar-h: 68px;
}
html[data-theme="light"] {
  --bg-card: #ffffff;
  --bg-subtle-card: #f0f4fa;
}

/* Unify page rhythm and prevent grid content from enlarging its track. */
.section { padding-block: clamp(66px, 7vw, 108px); }
.section-intro { max-width: 840px; }
.section-description { max-width: 780px; }
.hero-header { max-width: 1020px; }
.hero-lead { max-width: 870px; }
.container, .spotlight-row, .features-explorer, .feature-stage-panel,
.spotlight-copy, .spotlight-visual, .window-frame, .feature-tab-text { min-width: 0; }
img, svg { max-width: 100%; }
p, h1, h2, h3, li { overflow-wrap: break-word; }

/* Recovered screenshot system: HTML used window-frame but stylesheet only
   contained styling for the obsolete product-window class. */
.window-frame {
  background: #090e18;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  min-width: 0;
}
.window-frame .window-chrome {
  gap: 12px;
  min-height: 48px;
  padding: 11px 16px;
  justify-content: initial;
}
.window-title {
  flex: 1;
  min-width: 0;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.4;
  color: #bdcadd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.window-badge {
  flex: 0 0 auto;
  font: 600 .7rem var(--font-mono);
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,.3);
  padding: 4px 10px;
  color: #93e9ff;
  background: rgba(2,132,199,.12);
}
.window-screenshot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1009;
  object-fit: contain;
  background: #050a12;
  transition: opacity .2s ease;
}
.window-frame > .window-screenshot { display:block; }
.window-caption-bar {
  padding: 14px 20px;
  border-top: 1px solid rgba(148,163,184,.18);
  background: #0d1523;
}
.window-caption-bar p { margin:0; color:#b1bed2; line-height:1.5; font-size:.85rem; }
.hero-window { max-width: 1180px; margin-inline: auto; }

/* New editorial layout: summary beside screenshot; complete specification
   below it in a reader-controlled disclosure. */
.spotlight-stack { display:grid; gap: clamp(48px, 6vw, 84px); }
.spotlight-row, .spotlight-row.is-reversed {
  display:grid;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  gap: clamp(24px, 4vw, 56px);
  align-items:center;
  margin:0;
}
.spotlight-row.is-reversed {
  grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
}
.spotlight-row.is-reversed .spotlight-copy { order:2; }
.spotlight-row.is-reversed .spotlight-visual { order:1; }
.spotlight-copy { width:100%; max-width:510px; }
.spotlight-row.is-reversed .spotlight-copy { justify-self:end; }
.spotlight-badge {
  display:inline-block;
  max-width:100%;
  font: 700 .71rem/1.5 var(--font-mono);
  color:var(--accent-cyan);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.spotlight-copy h3 {
  font-size:clamp(1.6rem,2.65vw,2.62rem);
  letter-spacing:-.026em;
  line-height:1.13;
  text-wrap:balance;
  margin:0 0 18px;
}
.spotlight-copy p.spotlight-lead {
  font-size:clamp(1rem,1.15vw,1.12rem);
  line-height:1.65;
  margin:0 0 23px;
  color:var(--text-secondary);
}
.spotlight-highlights { list-style:none; display:grid; gap:11px; margin:0; padding:0; }
.spotlight-highlights li {
  position:relative;
  padding-left:25px;
  font-size:.91rem;
  line-height:1.5;
  color:var(--text-primary);
}
.spotlight-highlights li::before {
  content:'✓';
  position:absolute; left:0; top:0;
  font-weight:700;
  color:var(--accent-cyan);
}
.spotlight-action {
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--accent-cyan);
  font-size:.83rem;
  margin-top:25px;
  font-weight:600;
}
.spotlight-visual { width:100%; }
.spotlight-visual .window-frame { width:100%; }
.spotlight-deep-dive {
  grid-column:1 / -1;
  order:3;
  min-width:0;
  background:var(--bg-subtle-card);
  border:1px solid var(--border-subtle);
  border-radius:16px;
  overflow:hidden;
  margin-top:clamp(-18px,-1vw,-8px);
}
.spotlight-deep-dive summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  cursor:pointer;
  list-style:none;
  padding:17px 22px;
  font-size:.9rem;
  font-weight:650;
  color:var(--text-primary);
}
.spotlight-deep-dive summary::-webkit-details-marker {display:none;}
.spotlight-deep-dive summary:hover {background:var(--bg-subtle-pill);}
.details-chevron {font-size:1.2rem; transform-origin:center; transition:transform .2s ease; color:var(--accent-cyan);}
.spotlight-deep-dive[open] .details-chevron {transform:rotate(180deg);}
.spotlight-deep-dive-content {
  padding:4px clamp(18px,3.8vw,38px) 28px;
  border-top:1px solid var(--border-subtle);
  color:var(--text-secondary);
  font-size:.95rem;
  line-height:1.75;
}
.spotlight-deep-dive-content > p {max-width:930px; margin:18px 0;}
.spotlight-deep-dive-content strong { color:var(--text-primary); }
.spotlight-deep-dive .tech-spec-box { max-width:100%; }
.spotlight-deep-dive .spotlight-links-row { gap:16px 28px; }

/* Recovered feature navigator and stage styles. */
.features-explorer {
  grid-template-columns:minmax(260px,350px) minmax(0,1fr);
  align-items:start;
  gap:24px;
}
.features-nav { display:grid; gap:12px; }
.feature-tab {
  display:flex;
  align-items:flex-start;
  gap:15px;
  border:1px solid var(--border-subtle);
  background:var(--bg-card);
  color:var(--text-primary);
  border-radius:14px;
  padding:21px;
  cursor:pointer;
  text-align:left;
  font:inherit;
  min-width:0;
  width:100%;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.feature-tab:hover {border-color:var(--border-strong); transform:translateX(2px);}
.feature-tab.is-active {background:var(--bg-subtle-card);border-color:var(--accent-cyan);}
.feature-tab-num {font:700 .78rem var(--font-mono);color:var(--accent-cyan);padding-top:3px;flex:0 0 auto;}
.feature-tab-text {display:grid;gap:8px;}
.feature-tab-text strong {font-size:.95rem;line-height:1.35;}
.feature-tab-text > span {font-size:.82rem;line-height:1.48;color:var(--text-secondary);}
.feature-stage-panel {display:grid;gap:20px;align-content:start;}
.feature-stage-panel .window-screenshot {aspect-ratio:1920/1009;}
.feature-stage-details {
  border:1px solid var(--border-subtle);
  border-radius:16px;
  padding:clamp(20px,3vw,30px);
  background:var(--bg-card);
  min-width:0;
}
.feature-stage-details h3 {margin:0 0 12px;font-size:clamp(1.2rem,1.65vw,1.6rem);line-height:1.3;}
.feature-stage-details p {margin:0 0 18px;color:var(--text-secondary);font-size:.92rem;line-height:1.7;}
.feature-tag-row {display:flex;flex-wrap:wrap;gap:8px;}

/* The bento and logo wall were added to HTML without dedicated CSS. */
.bento-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.bento-grid > * {min-width:0;}
.bento-icon-wrap {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:50px;height:50px;
  padding:10px;border-radius:14px;
  background:rgba(2,132,199,.1);
  border:1px solid rgba(56,189,248,.22);
  margin-bottom:12px;
  color:var(--accent-cyan);
}
.logo-wall {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:42px;}
.logo-card {border:1px solid var(--border-subtle);border-radius:16px;padding:26px;background:var(--bg-card);min-width:0;}
.logo-svg-wrap {width:58px;height:58px;display:flex;align-items:center;justify-content:center;background:var(--bg-subtle-pill);border-radius:14px;margin-bottom:15px;color:var(--accent-cyan);}
.logo-card h3 {font-size:1.08rem;margin:0 0 9px;}
.logo-card p {font-size:.9rem;line-height:1.6;margin:0;color:var(--text-secondary);}
.vault-meta-badges {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}

/* Header and navigation: never let a fixed navbar silently disappear. */
.nav-toggle {
  display:none;
  width:42px;height:40px;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
  padding:8px;border:1px solid var(--border-strong);border-radius:10px;
  background:var(--bg-subtle-pill);cursor:pointer;color:var(--text-primary);
}
.nav-toggle span {display:block;width:18px;height:2px;background:currentColor;border-radius:2px;}
.nav-link:focus-visible, .nav-toggle:focus-visible, .feature-tab:focus-visible,
.appearance-tab:focus-visible, .spotlight-deep-dive summary:focus-visible {
  outline:2px solid var(--accent-cyan);outline-offset:3px;
}

/* A single breakpoint system covers home, docs and technical specs. */
@media (max-width: 1200px) {
  .topbar-inner {padding-inline:18px;gap:10px;}
  .main-nav {gap:0;}
  .nav-link {padding-inline:7px;font-size:.79rem;}
  .brand-title {font-size:.9rem;}
}
@media (max-width: 1100px) {
  .nav-toggle {display:inline-flex;}
  .topbar {position:sticky;top:0;}
  .topbar-inner {height:68px;}
  .topbar .main-nav {
    display:none;
    position:absolute;
    top:68px;left:0;right:0;
    z-index:101;
    padding:12px 18px 18px;
    background:var(--bg-page);
    border-bottom:1px solid var(--border-strong);
    box-shadow:0 20px 40px rgba(0,0,0,.2);
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    max-height:calc(100dvh - 70px);
    overflow:auto;
  }
  .topbar.nav-open .main-nav {display:flex;}
  .topbar .main-nav .nav-link {font-size:.95rem;padding:12px 14px;}
  .spotlight-row,.spotlight-row.is-reversed {grid-template-columns:1fr;gap:28px;}
  .spotlight-row .spotlight-copy,.spotlight-row.is-reversed .spotlight-copy {order:0;justify-self:start;max-width:750px;}
  .spotlight-row .spotlight-visual,.spotlight-row.is-reversed .spotlight-visual {order:1;}
  .spotlight-deep-dive {order:2;grid-column:auto;margin-top:0;}
  .features-explorer {grid-template-columns:1fr;}
  .features-nav {grid-template-columns:repeat(2,minmax(0,1fr));}
  .bento-grid,.logo-wall {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 700px) {
  .topbar-inner {padding-inline:12px;gap:6px;}
  .brand-title {font-size:.8rem;max-width:170px;line-height:1.2;}
  .brand-symbol {width:28px;height:28px;}
  .topbar-actions {gap:6px;}
  .topbar-actions .btn-header-secondary {display:none;}
  .theme-toggle-btn {padding:9px;}
  #theme-toggle-label {display:none;}
  .btn-header-cta {padding:9px 11px;font-size:.79rem;}
  .section {padding-block:64px;}
  .hero-section {padding-top:66px;}
  .container {padding-inline:18px;}
  .hero-title {font-size:clamp(2rem,9vw,3rem);}
  .section-headline {font-size:clamp(1.78rem,7vw,2.5rem);}
  .hero-lead,.section-description {font-size:1rem;line-height:1.6;}
  .hero-cta-row {align-items:stretch;}
  .hero-cta-row a {justify-content:center;}
  .features-nav,.bento-grid,.logo-wall,.product-info-grid,.problem-comparison-grid,.journey-timeline {grid-template-columns:1fr;}
  .spotlight-copy h3 {font-size:clamp(1.62rem,7.5vw,2rem);}
  .window-title {font-size:.69rem;}
  .window-badge {display:none;}
  .window-chrome .window-dots {width:46px;gap:4px;}
  .window-chrome .window-dots span {height:9px;width:9px;}
  .window-caption-bar {padding:12px 14px;}
  .window-screenshot {aspect-ratio:1920/1009;}
  .feature-tab {padding:16px;}
  .vault-shell,.vault-auth-panel {padding:18px;}
  .docs-layout-grid,.docs-welcome-card,.docs-hero-banner {min-width:0;}
  .docs-portal-hero,.docs-workspace-section {min-width:0;}
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important;}
  .reveal-on-scroll {opacity:1;transform:none;}
}

/* Short role description, full workflow on demand. */
.feature-case-detail {
  margin: 8px 0 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-subtle-card);
}
.feature-case-detail summary {
  cursor: pointer;
  padding: 12px 16px;
  color: var(--accent-cyan);
  font-size: .85rem;
  font-weight: 650;
}
.feature-case-detail > p { margin: 0; padding: 0 16px 16px; line-height: 1.7; }

/* ======================================================================
   PORTAL DE DOCUMENTAÇÃO DEDICADO (doc.sst) · ZERO SCROLL GIGANTE
   ====================================================================== */
.docs-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.docs-subdomain-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.docs-topbar-search {
  flex: 1;
  max-width: 460px;
  margin-inline: 16px;
}

.docs-topbar-search .docs-search-box {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}

.docs-subbar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 85;
  padding: 10px 0;
  margin-top: var(--topbar-h);
  background: var(--bg-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.docs-subbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-subbar .docs-role-btn {
  padding: 6px 13px;
  font-size: 0.78rem;
}

.docs-view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-chapter-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.docs-mode-toggle-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle-pill);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.docs-mode-toggle-btn:hover,
.docs-mode-toggle-btn.is-active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.docs-page-body .docs-workspace-section {
  padding: 24px 0 64px;
}

.docs-page-body .docs-sidebar-sticky {
  top: calc(var(--topbar-h) + 64px);
  max-height: calc(100dvh - var(--topbar-h) - 84px);
  overflow-y: auto;
  padding-right: 4px;
}

/* Single-chapter paginated mode: eliminates the 12,000px giant scroll */
#docs-articles-container[data-view-mode="paged"] .docs-chapter {
  display: none;
}

#docs-articles-container[data-view-mode="paged"] .docs-chapter.is-active-chapter {
  display: block;
  animation: docsChapterReveal 0.22s ease;
}

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

.cappy-compact-guide {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
}

.cappy-compact-avatar {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.cappy-compact-copy {
  flex: 1;
  min-width: 0;
}

.cappy-compact-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.docs-page-body .docs-content-column {
  gap: 20px;
}

.docs-page-body .docs-chapter {
  padding: 28px 32px;
}

/* Keep screenshots inside docs compact so chapters fit comfortably */
.docs-figure-frame img {
  max-height: 360px;
  width: 100%;
  object-fit: contain;
  background: #050a12;
}

.docs-chapter-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.docs-page-nav-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.docs-page-nav-btn.is-next {
  text-align: right;
  align-items: flex-end;
}

.docs-page-nav-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.docs-page-nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.docs-page-nav-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.docs-page-nav-btn strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.docs-subtoc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-subtoc-link {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: 6px;
  border-left: 2px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.docs-subtoc-link:hover {
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  background: var(--bg-subtle-pill);
}

@media (max-width: 980px) {
  .docs-topbar-search {
    max-width: 240px;
    margin-inline: 6px;
  }
  .docs-chapter-pagination {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .docs-topbar-search {
    display: none;
  }
  .docs-page-body .docs-chapter {
    padding: 20px 18px;
  }
}
