:root {
  /* Pastel Aqua, Glacier Blue & Alabaster Neutral Palette matched to vprevail logo.svg */
  --bg-canvas: #F5F9FB;
  --bg-card: #FFFFFF;
  --bg-pastel-aqua: #E6F6FA;
  --bg-pastel-glacier: #EBF3FE;
  --bg-pastel-mint: #E8F8F3;
  --bg-subtle: #EEF4F8;

  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --accent-royal: #2563EB;
  --accent-aqua: #0284C7;
  --accent-cyan: #0891B2;
  --accent-mint: #059669;

  --border-soft: #DCE7F0;
  --border-pastel: #C7E6F2;
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-elevated: 0 16px 40px -12px rgba(37, 99, 235, 0.09);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* App Shell: Single-Screen Flex Column */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(230, 246, 250, 0.9) 0%, transparent 46%),
    radial-gradient(circle at 86% 84%, rgba(232, 248, 243, 0.85) 0%, transparent 46%),
    var(--bg-canvas);
}

/* 1. Compact Ecosystem Bar */
.eco-bar {
  height: 36px;
  flex-shrink: 0;
  background: #EBF2F7;
  border-bottom: 1px solid var(--border-soft);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.eco-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.eco-brand:hover {
  color: var(--accent-royal);
}

.eco-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent-royal);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
}

.eco-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.eco-link {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.eco-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.7);
}

.eco-link.active {
  background: var(--bg-card);
  color: var(--accent-royal);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* 2. Primary Header & View Switcher Menu */
.main-header {
  height: 68px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: block;
  flex-shrink: 0;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* View Switcher Menu Tabs */
.view-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
}

.view-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.view-tab:hover {
  color: var(--text-primary);
}

.view-tab .tab-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.16);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-tab.active {
  background: var(--bg-card);
  color: var(--accent-royal);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.view-tab.active .tab-num {
  background: var(--bg-pastel-aqua);
  color: var(--accent-aqua);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  appearance: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-royal);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.btn-pastel {
  background: var(--bg-pastel-aqua);
  color: var(--accent-aqua);
  border: 1px solid var(--border-pastel);
}

.btn-pastel:hover {
  background: #D5EFF7;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
  border-color: #CBD5E1;
  color: var(--text-primary);
}

/* 3. Single-Viewport Stage */
.viewport-stage {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
}

.screen-view {
  display: none;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  animation: fadeSlideIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-view.active {
  display: flex;
}

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

/* Section Headers */
.view-header {
  text-align: center;
  margin-bottom: 24px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-pastel-aqua);
  color: var(--accent-aqua);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.eyebrow-pill.mint {
  background: var(--bg-pastel-mint);
  color: var(--accent-mint);
}

.eyebrow-pill.glacier {
  background: var(--bg-pastel-glacier);
  color: var(--accent-royal);
}

.view-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

.view-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 6px auto 0;
}

/* View 1: Overview Layout */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}

.overview-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  width: 100%;
}

.hero-headline {
  font-size: clamp(1.78rem, 2.75vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-headline .highlight {
  color: var(--accent-royal);
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.pillar-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.pillar-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}

.pillar-mini strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.pillar-mini span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Brand Showcase Card on Overview */
.brand-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-pastel);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.logo-light-frame {
  background: linear-gradient(135deg, #E6F6FA 0%, #EBF3FE 100%);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-pastel);
}

.logo-light-frame img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.showcase-summary {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.showcase-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-pastel-aqua);
}

.showcase-row.glacier {
  background: var(--bg-pastel-glacier);
}

.showcase-row.mint {
  background: var(--bg-pastel-mint);
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-aqua);
  margin-top: 5px;
  flex-shrink: 0;
}

.showcase-row.glacier .showcase-dot {
  background: var(--accent-royal);
}

.showcase-row.mint .showcase-dot {
  background: var(--accent-mint);
}

.showcase-row-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.showcase-row-text p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* View 2: Why It's Needed & Use Cases (2x2 Calm Cards) */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.usecase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.usecase-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-pastel-aqua);
  color: var(--accent-aqua);
}

.usecase-card:nth-child(2) .usecase-tag {
  background: var(--bg-pastel-glacier);
  color: var(--accent-royal);
}

.usecase-card:nth-child(3) .usecase-tag {
  background: var(--bg-pastel-mint);
  color: var(--accent-mint);
}

.usecase-card:nth-child(4) .usecase-tag {
  background: var(--bg-pastel-aqua);
  color: var(--accent-cyan);
}

.usecase-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.usecase-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.52;
}

.usecase-benefit {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--bg-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* View 3: Market Differentiators Table */
.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.comparison-table thead th {
  background: var(--bg-subtle);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.comparison-table thead th.col-highlight {
  background: var(--bg-pastel-aqua);
  color: var(--accent-royal);
  font-size: 14px;
}

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

.comparison-table td.feature-col {
  font-weight: 700;
  color: var(--text-primary);
  width: 24%;
}

.comparison-table td.col-highlight {
  background: rgba(230, 246, 250, 0.35);
  font-weight: 600;
  color: var(--text-primary);
  width: 29%;
}

.badge-yes {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-pastel-mint);
  color: var(--accent-mint);
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.diff-summary-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.diff-pill {
  background: var(--bg-pastel-aqua);
  border: 1px solid var(--border-pastel);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.diff-pill strong {
  color: var(--accent-royal);
}

/* View 4: Tech Specs */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-aqua);
  background: var(--bg-pastel-aqua);
  padding: 3px 9px;
  border-radius: 6px;
  align-self: flex-start;
}

.spec-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.spec-code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

/* View 5: Release Updates & Email Capture */
.updates-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.release-notes-card,
.signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signup-card {
  border-color: var(--border-pastel);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FCFE 100%);
}

.release-milestone {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-pastel-aqua);
  margin-bottom: 12px;
}

.release-milestone.glacier {
  background: var(--bg-pastel-glacier);
}

.release-milestone.mint {
  background: var(--bg-pastel-mint);
  margin-bottom: 0;
}

.milestone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.milestone-head strong {
  font-size: 14px;
  color: var(--text-primary);
}

.milestone-head span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-royal);
}

.release-milestone p {
  font-size: 13px;
  color: var(--text-secondary);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--accent-royal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.topic-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.topic-label input {
  accent-color: var(--accent-royal);
}

.signup-confirmation {
  display: none;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-pastel-mint);
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 10px;
}

.signup-confirmation.visible {
  display: block;
}

/* 4. Bottom View Footer / Pager Bar */
.stage-footer {
  height: 50px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--border-soft);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-status {
  color: var(--text-muted);
  font-weight: 500;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pager-btn {
  appearance: none;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--accent-royal);
  color: var(--accent-royal);
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pager-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px;
}

.pager-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pager-dot.active {
  width: 22px;
  border-radius: 99px;
  background: var(--accent-royal);
}

/* Responsive Fallback for Smaller Screens */
@media (max-width: 1024px) {
  html, body, .app-shell {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  .main-header {
    height: auto;
    padding: 14px 20px;
    flex-wrap: wrap;
  }
  .view-menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .viewport-stage {
    padding: 28px 20px;
    overflow: visible;
  }
  .screen-view {
    max-height: none;
  }
  .overview-grid,
  .usecase-grid,
  .specs-grid,
  .updates-layout {
    grid-template-columns: 1fr;
  }
}


/* Unified Top Notify Me CTA Button (Glacier Royal & Aqua Palette) */
.cta-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 52%, #0891b2 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15), 0 6px 16px rgba(2, 132, 199, 0.24);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.cta-top:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
  box-shadow: 0 0 0 4.5px rgba(8, 145, 178, 0.22), 0 10px 22px rgba(37, 99, 235, 0.32);
}

.cta-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.75);
  animation: ctaPulse 2s infinite;
}

.cta-bell {
  flex-shrink: 0;
}

@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.75); }
  70% { box-shadow: 0 0 0 6px rgba(253, 224, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0); }
}
