/* ==========================================================================
   OVIQEN — MARKETING WEBSITE STYLESHEET
   Official App Theme: رمادي إنتاجي (Productivity Warm Gray / Notion-Style Pro Theme)
   Exact match from: lib/core/config/themes/pro_theme.dart
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Tokens / Exact Pro Theme Profile
   -------------------------------------------------------------------------- */
:root {
  /* Core Backgrounds (Warm Dark Gray / Notion Style) */
  --theme-background: #191919;
  --theme-background-gradient: linear-gradient(180deg, #191919 0%, #191919 100%);
  --theme-background-slight: #252525;
  --theme-canvas: #191919;

  /* Card Surfaces & Frosted Glass Layer */
  --theme-card: #202020;
  --theme-card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  --theme-card-glass: rgba(45, 47, 49, 0.75);

  /* Primary Accent & Text On Primary */
  --theme-primary: #BB86FC;
  --theme-primary-hover: #C99DFD;
  --theme-primary-subtle: rgba(187, 134, 252, 0.12);
  --theme-on-primary: #191919;

  /* Borders & Dividers */
  --theme-border: rgba(255, 255, 255, 0.08);
  --theme-border-hover: rgba(255, 255, 255, 0.16);
  --theme-border-active: #BB86FC;

  /* Text & Hierarchy */
  --theme-headings: rgba(255, 255, 255, 0.95);
  --theme-text: rgba(255, 255, 255, 0.87);
  --theme-text-disabled: #80868B;
  --theme-text-dim: #65696E;

  --theme-surface-inverted: #E8EAED;
  --theme-text-inverted: #202124;

  /* Priority Series */
  --theme-priority-high: #F28B82;
  --theme-priority-high-subtle: rgba(242, 139, 130, 0.15);
  --theme-priority-medium: #FDD663;
  --theme-priority-medium-subtle: rgba(253, 214, 99, 0.15);
  --theme-priority-low: #80868B;
  --theme-priority-low-subtle: rgba(128, 134, 139, 0.15);

  /* Diagram Theme Data */
  --diagram-bg-gradient: linear-gradient(180deg, #191919 0%, #151515 100%);
  --diagram-trunk: #9AA0A6;
  --diagram-connector-start: #BB86FC;
  --diagram-connector-end: #E040FB;
  --diagram-root-dot: #BB86FC;
  --diagram-subtask-dot: #E040FB;
  --diagram-grid: #3C4043;
  --diagram-card-bg: rgba(45, 47, 49, 0.85);

  /* Geometry from Theme */
  --card-radius: 12px;
  --button-radius: 8px;
  --pill-radius: 9999px;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --transition-smooth: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-morph: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--theme-background);
  font-family: var(--font-body);
  color: var(--theme-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--theme-background);
  min-height: 100vh;
}

:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-smooth);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Layout Containers & Section Headers
   -------------------------------------------------------------------------- */
.site-container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--theme-headings) 40%, var(--theme-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-intro {
  margin-block-end: 2.5rem;
  max-width: 720px;
  margin-inline: auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-primary);
  background: var(--theme-primary-subtle);
  border: 1px solid rgba(187, 134, 252, 0.25);
  padding-inline: 0.85rem;
  padding-block: 0.3rem;
  border-radius: var(--button-radius);
  margin-block-end: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-block-end: 0.75rem;
  color: var(--theme-headings);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--theme-text-disabled);
  line-height: 1.6;
  max-width: 65ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   4. Buttons (RoundedRectangleBorder: 8px, OnPrimary: #191919)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  border-radius: var(--button-radius);
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border: 1px solid var(--theme-primary);
  box-shadow: 0 4px 14px rgba(187, 134, 252, 0.25);
}

.btn-primary:hover {
  background: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--theme-background-slight);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
}

.btn-secondary:hover {
  background: #2e2e2e;
  border-color: var(--theme-border-hover);
  color: #ffffff;
}

.btn-lg {
  padding-inline: 1.6rem;
  padding-block: 0.85rem;
  font-size: 1rem;
}

.btn-xl {
  padding-inline: 2rem;
  padding-block: 1rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding-inline: 0.9rem;
  padding-block: 0.45rem;
  font-size: 0.85rem;
}

.icon-win {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Floating Navigation Bar (Soft Rounded Island)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline: 0;
  height: auto;
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.header-container {
  pointer-events: auto;
  width: min(calc(100% - 2.5rem), 1120px);
  height: 60px;
  background: rgba(30, 30, 30, 0.75);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding-inline: 1.25rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.15);
  transition: all var(--transition-smooth);
}

.site-header.scrolled .header-container {
  background: rgba(24, 24, 24, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(187, 134, 252, 0.25);
  transform: translateY(-2px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(187, 134, 252, 0.35));
}

.app-logo-small-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--theme-headings);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--theme-text-disabled);
}

.nav-link:hover {
  color: var(--theme-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.btn-nav-cta {
  padding-inline: 1.1rem;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border: 1px solid var(--theme-primary);
}

.btn-nav-cta:hover {
  background: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
}

/* --------------------------------------------------------------------------
   6. Hero Section (Cleaned & Streamlined)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-block-start: calc(var(--header-height) + 5rem);
  padding-block-end: 4rem;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--theme-card);
  border: 1px solid var(--theme-border);
  padding-inline: 0.95rem;
  padding-block: 0.4rem;
  border-radius: var(--pill-radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--theme-text-disabled);
  margin-block-end: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--theme-primary);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--theme-headings);
  margin-block-end: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--theme-text-disabled);
  line-height: 1.65;
  max-width: 68ch;
  margin-inline: auto;
  margin-block-end: 2.25rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.hero-cta-meta {
  font-size: 0.85rem;
  color: var(--theme-text-dim);
}

/* --------------------------------------------------------------------------
   6.5. DILEMMA / MANIFESTO SECTION (PROBLEM VS SOLUTION)
   -------------------------------------------------------------------------- */
.dilemma-section {
  padding-block: 6rem 4.5rem;
  position: relative;
  background: var(--theme-background);
  border-block-start: 1px solid var(--theme-border);
}

.dilemma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-block-start: 3.25rem;
}

.dilemma-card {
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(14px);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.dilemma-card:hover {
  transform: translateY(-2px);
}

/* Card 1: The Problem (Chaos) */
.dilemma-card.card-chaos {
  border-color: rgba(242, 139, 130, 0.22);
}

.dilemma-card.card-chaos:hover {
  border-color: rgba(242, 139, 130, 0.45);
  box-shadow: 0 12px 36px rgba(242, 139, 130, 0.08);
}

/* Card 2: The Solution (Oviqen) */
.dilemma-card.card-solution {
  border-color: rgba(187, 134, 252, 0.35);
  box-shadow: 0 0 32px rgba(187, 134, 252, 0.06);
}

.dilemma-card.card-solution:hover {
  border-color: rgba(187, 134, 252, 0.6);
  box-shadow: 0 12px 40px rgba(187, 134, 252, 0.12);
}

.dilemma-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1.75rem;
  padding-block-end: 1.25rem;
  border-block-end: 1px solid var(--theme-border);
}

.dilemma-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--button-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-chaos {
  background: rgba(242, 139, 130, 0.12);
  border: 1px solid rgba(242, 139, 130, 0.3);
  color: var(--theme-priority-high);
}

.badge-solution {
  background: var(--theme-primary-subtle);
  border: 1px solid rgba(187, 134, 252, 0.35);
  color: var(--theme-primary);
}

.dilemma-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.card-chaos .dilemma-card-title {
  color: #ff9b94;
}

.card-solution .dilemma-card-title {
  color: #d1abff;
}

.dilemma-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dilemma-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--theme-text);
}

.dilemma-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-block-start: 3px;
}

.item-chaos .dilemma-item-icon {
  background: rgba(242, 139, 130, 0.15);
  color: var(--theme-priority-high);
  border: 1px solid rgba(242, 139, 130, 0.3);
}

.item-solution .dilemma-item-icon {
  background: var(--theme-primary-subtle);
  color: var(--theme-primary);
  border: 1px solid rgba(187, 134, 252, 0.35);
}

.dilemma-item-text strong {
  color: var(--theme-headings);
  font-weight: 600;
}

@media (max-width: 900px) {
  .dilemma-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   7. ⭐ SIGNATURE SECTION — STICKY SCROLL PINNED LIVE TRANSFORM
   -------------------------------------------------------------------------- */
.transform-section {
  position: relative;
  height: 480vh; /* Sticky scroll track lengthened for smooth, gradual view transitions */
  margin-block-end: 2rem;
}

.transform-sticky-wrap {
  position: sticky;
  top: calc(var(--header-height) + 0.5rem);
  min-height: calc(100vh - var(--header-height) - 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 10;
  padding-block: 0.5rem;
}

.transform-inner-container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.transform-inner-container .section-intro {
  margin-block-end: 0.85rem;
}

.transform-inner-container .section-kicker {
  margin-block-end: 0.35rem;
  padding-inline: 0.75rem;
  padding-block: 0.2rem;
  font-size: 0.775rem;
}

.transform-inner-container .section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin-block-end: 0.35rem;
  line-height: 1.25;
}

.transform-inner-container .section-subtitle {
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 60ch;
}

.transform-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 860px;
  width: 100%;
  margin-inline: auto;
  margin-block-end: 0.85rem;
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  padding: 0.35rem;
}

.tab-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.95rem;
  border-radius: calc(var(--card-radius) - 4px);
  text-align: start;
  color: var(--theme-text-disabled);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.tab-control:hover {
  background: var(--theme-background-slight);
  color: var(--theme-text);
}

.tab-control.active {
  background: var(--theme-background-slight);
  border-color: var(--theme-primary);
  color: var(--theme-headings);
}

.tab-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-primary);
}

.tab-label-group {
  display: flex;
  flex-direction: column;
}

.tab-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: inherit;
}

.tab-desc {
  font-size: 0.75rem;
  color: var(--theme-text-disabled);
}

.tab-divider {
  width: 1px;
  height: 28px;
  background: var(--theme-border);
}

/* Simulated App Window */
.transform-demo-viewport {
  max-width: 960px;
  width: 100%;
  margin-inline: auto;
  position: relative;
}

.app-window {
  background: var(--theme-card);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.app-titlebar {
  height: 38px;
  background: var(--theme-background);
  border-block-end: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1rem;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.win-close { background: var(--theme-priority-high); }
.win-min { background: var(--theme-priority-medium); }
.win-max { background: #81C995; }

.window-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--theme-text-disabled);
}

.app-logo-small {
  display: flex;
  align-items: center;
}

.app-path-item {
  font-weight: 600;
  color: var(--theme-headings);
}

.window-mode-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding-inline: 0.65rem;
  padding-block: 0.25rem;
  background: var(--theme-primary-subtle);
  border: 1px solid rgba(187, 134, 252, 0.25);
  border-radius: var(--button-radius);
  color: var(--theme-primary);
}

.mode-indicator-dot {
  width: 6px;
  height: 6px;
  background: var(--theme-primary);
  border-radius: 50%;
}

/* Transform Canvas */
.app-canvas {
  position: relative;
  height: 440px;
  min-height: 440px;
  padding: 1.15rem;
  background: var(--theme-background);
  overflow: hidden;
  transition: background var(--transition-morph);
}

.canvas-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--diagram-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--diagram-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-morph);
}

/* SVG Bezier Connectors Layer */
.diagram-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition-morph);
}

.conn-path {
  stroke-dasharray: 5 3;
  animation: dashFlow 24s linear infinite;
}

@keyframes dashFlow {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* Morph Container */
.morph-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* Morph Card Generic */
.morph-card {
  position: absolute;
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: calc(var(--card-radius) - 2px);
  padding: 1.15rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-morph);
}

/* 1. ROOT ELEMENT */
.elem-root {
  inset-inline-start: 0;
  inset-inline-end: 0;
  inset-block-start: 0;
  height: auto;
  border-color: var(--theme-border);
}

.root-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 0.75rem;
}

.root-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.root-doc-hash {
  color: var(--theme-primary);
  font-weight: 700;
  font-size: 1.25rem;
  display: none;
}

.root-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--theme-headings);
}

.chip-category {
  font-size: 0.725rem;
  font-weight: 600;
  padding-inline: 0.5rem;
  padding-block: 0.15rem;
  background: var(--theme-primary-subtle);
  color: var(--theme-primary);
  border: 1px solid rgba(187, 134, 252, 0.2);
  border-radius: 4px;
}

.root-progress-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--theme-primary);
  display: flex;
  gap: 0.5rem;
}

.root-progress-track {
  height: 6px;
  background: var(--theme-background-slight);
  border-radius: 3px;
  overflow: hidden;
  margin-block-end: 0.85rem;
}

.root-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-primary), #E040FB);
  border-radius: 3px;
}

.root-metadata-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding-inline: 0.6rem;
  padding-block: 0.25rem;
  background: var(--theme-background-slight);
  border: 1px solid var(--theme-border);
  border-radius: var(--button-radius);
  color: var(--theme-text-disabled);
}

.chip-priority { color: var(--theme-priority-high); border-color: rgba(242, 139, 130, 0.3); }
.chip-time { color: var(--theme-primary); border-color: rgba(187, 134, 252, 0.3); }

.root-note-desc {
  font-size: 0.875rem;
  color: var(--theme-text-disabled);
  line-height: 1.5;
  display: none;
}

/* 2. SUB-ITEMS */
.elem-sub {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  inset-inline-start: 0;
  inset-inline-end: 0;
}

.sub-handle {
  display: flex;
  align-items: center;
  margin-block-start: 2px;
}

.sub-checkbox {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--theme-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition-smooth);
}

.sub-checkbox.checked {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: var(--theme-on-primary);
}

.sub-checkbox svg {
  width: 11px;
  height: 11px;
}

.sub-body {
  flex: 1;
}

.sub-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 0.25rem;
}

.sub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-headings);
}

.sub-pill {
  font-size: 0.725rem;
  font-weight: 600;
  padding-inline: 0.5rem;
  padding-block: 0.15rem;
  border-radius: 4px;
}

.pill-violet { background: rgba(224, 64, 251, 0.12); color: #E040FB; border: 1px solid rgba(224, 64, 251, 0.2); }
.pill-teal { background: var(--theme-primary-subtle); color: var(--theme-primary); border: 1px solid rgba(187, 134, 252, 0.2); }
.pill-amber { background: var(--theme-priority-medium-subtle); color: var(--theme-priority-medium); border: 1px solid rgba(253, 214, 99, 0.2); }

.sub-text {
  font-size: 0.825rem;
  color: var(--theme-text-disabled);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   STATE-SPECIFIC MORPH REFLOW
   -------------------------------------------------------------------------- */

/* === STATE A: TASK VIEW === */
.app-canvas.state-task .elem-root {
  inset-inline: 0;
  inset-block-start: 0;
  width: 100%;
  padding: 0.75rem 1.15rem;
}

.app-canvas.state-task .root-top-row {
  margin-block-end: 0.5rem;
}

.app-canvas.state-task .root-progress-track {
  margin-block-end: 0.6rem;
}

.app-canvas.state-task .elem-sub {
  inset-inline: 0;
  width: 100%;
  padding: 0.65rem 0.95rem;
}

/* Clean, ample gaps between root and subtasks */
.app-canvas.state-task .sub-1 { inset-block-start: 130px; }
.app-canvas.state-task .sub-2 { inset-block-start: 224px; }
.app-canvas.state-task .sub-3 { inset-block-start: 318px; }

/* === STATE B: DIAGRAM VIEW (All 3 Sub-nodes aligned in a single clean column) === */
.app-canvas.state-diagram {
  background: var(--diagram-bg-gradient);
}

.app-canvas.state-diagram .canvas-grid-bg {
  opacity: 0.65;
}

.app-canvas.state-diagram .diagram-connectors {
  opacity: 1;
}

/* Root node on inline-start */
.app-canvas.state-diagram .elem-root {
  inset-inline-start: 24px;
  inset-block-start: 135px;
  width: 270px;
  height: auto;
  min-height: 135px;
  background: var(--diagram-card-bg);
  border-color: var(--theme-primary);
  box-shadow: 0 0 24px rgba(187, 134, 252, 0.2);
  z-index: 10;
  text-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-canvas.state-diagram .root-top-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-block-end: 0.5rem;
}

.app-canvas.state-diagram .root-title-group {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.app-canvas.state-diagram .root-title {
  font-size: 1.05rem;
}

.app-canvas.state-diagram .root-progress-label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
}

.app-canvas.state-diagram .chip-date,
.app-canvas.state-diagram .chip-repeat {
  display: none;
}

/* All 3 Sub-nodes aligned in a single column on inline-end */
.app-canvas.state-diagram .elem-sub {
  inset-inline-start: 330px;
  width: calc(100% - 350px);
  max-width: 500px;
  height: auto;
  background: var(--diagram-card-bg);
  border-radius: var(--card-radius);
  padding: 0.75rem 1.1rem;
}

.app-canvas.state-diagram .sub-1 {
  inset-block-start: 15px;
  border-color: #E040FB;
}

.app-canvas.state-diagram .sub-2 {
  inset-block-start: 150px;
  border-color: var(--theme-primary);
}

.app-canvas.state-diagram .sub-3 {
  inset-block-start: 285px;
  border-color: var(--theme-priority-medium);
}

/* === STATE C: NOTE DOCUMENT VIEW === */
.app-canvas.state-note {
  background: var(--theme-background-slight);
}

.app-canvas.state-note .elem-root {
  inset-inline-start: 1.5rem;
  inset-inline-end: 1.5rem;
  inset-block-start: 0;
  width: calc(100% - 3rem);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
  border-block-end: 1px solid var(--theme-border);
  padding-block-end: 0.85rem;
}

.app-canvas.state-note .root-doc-hash {
  display: inline-block;
}

.app-canvas.state-note .root-title {
  font-size: 1.35rem;
}

.app-canvas.state-note .chip-category,
.app-canvas.state-note .root-progress-label,
.app-canvas.state-note .root-progress-track,
.app-canvas.state-note .root-metadata-bar {
  display: none;
}

.app-canvas.state-note .root-note-desc {
  display: block;
  margin-block-start: 0.4rem;
}

.app-canvas.state-note .elem-sub {
  inset-inline-start: 1.5rem;
  inset-inline-end: 1.5rem;
  width: calc(100% - 3rem);
  background: transparent;
  border-color: transparent;
  border-block-end: 1px dashed var(--theme-border);
  border-radius: 0;
  padding-inline: 0;
  padding-block: 0.75rem;
}

.app-canvas.state-note .sub-1 { inset-block-start: 95px; }
.app-canvas.state-note .sub-2 { inset-block-start: 178px; }
.app-canvas.state-note .sub-3 { inset-block-start: 260px; }

.app-canvas.state-note .sub-pill {
  opacity: 0.85;
}

/* App Statusbar */
.app-statusbar {
  height: 34px;
  background: var(--theme-background);
  border-block-start: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1rem;
  font-size: 0.75rem;
  color: var(--theme-text-dim);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--theme-primary);
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-primary);
}

.status-summary {
  color: var(--theme-text-disabled);
}

/* Reduced Motion */
.reduced-motion-fallback {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .transform-section {
    height: auto;
  }
  .transform-sticky-wrap {
    position: static;
    height: auto;
  }
  .app-window {
    display: none;
  }
  .reduced-motion-fallback {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-block-start: 2rem;
  }
  .fallback-col {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
  }
  .fallback-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-block-end: 1rem;
  }
  .fallback-card {
    font-size: 0.9rem;
    color: var(--theme-text-disabled);
  }
  .fallback-card strong {
    color: var(--theme-headings);
    display: block;
    margin-block-end: 0.5rem;
  }
  .fallback-card ul {
    list-style: none;
    margin-block-start: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* --------------------------------------------------------------------------
   8. CORE CAPABILITIES BENTO GRID
   -------------------------------------------------------------------------- */
.features-section {
  padding-block: 6rem;
  position: relative;
  z-index: 1;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--theme-border-hover);
  transform: translateY(-2px);
}

.bento-badge-group {
  display: flex;
  gap: 0.5rem;
  margin-block-end: 1rem;
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding-inline: 0.6rem;
  padding-block: 0.2rem;
  border-radius: var(--button-radius);
  background: var(--theme-background-slight);
  border: 1px solid var(--theme-border);
  color: var(--theme-text-disabled);
}

.badge-accent {
  font-size: 0.75rem;
  font-weight: 600;
  padding-inline: 0.6rem;
  padding-block: 0.2rem;
  border-radius: var(--button-radius);
  background: var(--theme-primary-subtle);
  border: 1px solid rgba(187, 134, 252, 0.25);
  color: var(--theme-primary);
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--theme-headings);
  margin-block-end: 0.75rem;
}

.bento-desc {
  font-size: 0.925rem;
  color: var(--theme-text-disabled);
  line-height: 1.6;
}

.bento-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--button-radius);
  background: var(--theme-primary-subtle);
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 1.25rem;
}

.bento-icon-box svg {
  width: 20px;
  height: 20px;
}

/* Card Specific Layouts */
.bento-focus-timer {
  grid-column: span 4;
}

.bento-analytics {
  grid-column: span 4;
}

.bento-ai {
  grid-column: span 4;
}

.screenshot-frame-wrapper {
  margin-block-start: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screenshot-frame {
  background: var(--theme-background);
  border: 1px solid var(--theme-border);
  border-radius: calc(var(--card-radius) - 2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.frame-bar {
  height: 30px;
  background: var(--theme-background-slight);
  border-block-end: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  padding-inline: 0.85rem;
  gap: 6px;
  flex-shrink: 0;
}

.frame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-border);
}

.frame-title {
  font-size: 0.75rem;
  color: var(--theme-text-disabled);
  margin-inline-start: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-screenshot {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.bento-notes { grid-column: span 4; }
.bento-tasks { grid-column: span 4; }
.bento-search { grid-column: span 4; }
.bento-i18n { grid-column: span 6; }
.bento-portability { grid-column: span 6; }

/* --------------------------------------------------------------------------
   9. HONESTY & ROADMAP SECTION
   -------------------------------------------------------------------------- */
.roadmap-section {
  padding-block: 6rem;
  position: relative;
  z-index: 1;
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-block-end: 3rem;
}

.roadmap-card {
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.roadmap-card.live {
  border-color: var(--theme-primary);
}

.roadmap-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding-inline: 0.6rem;
  padding-block: 0.2rem;
  border-radius: var(--button-radius);
  margin-block-end: 1rem;
  align-self: flex-start;
}

.roadmap-card.live .roadmap-status-badge {
  background: var(--theme-primary-subtle);
  color: var(--theme-primary);
  border: 1px solid rgba(187, 134, 252, 0.25);
}

.roadmap-card.in-dev .roadmap-status-badge {
  background: rgba(224, 64, 251, 0.12);
  color: #E040FB;
  border: 1px solid rgba(224, 64, 251, 0.25);
}

.roadmap-card.coming-soon .roadmap-status-badge {
  background: var(--theme-background-slight);
  color: var(--theme-text-disabled);
  border: 1px solid var(--theme-border);
}

.roadmap-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--theme-headings);
  margin-block-end: 0.6rem;
}

.roadmap-card-desc {
  font-size: 0.875rem;
  color: var(--theme-text-disabled);
  line-height: 1.55;
  margin-block-end: 1.25rem;
  flex: 1;
}

.roadmap-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.roadmap-tag-list span {
  font-size: 0.725rem;
  color: var(--theme-text-disabled);
  background: var(--theme-background-slight);
  border: 1px solid var(--theme-border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Privacy Boundary Box */
.privacy-boundary-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  max-width: 860px;
  margin-inline: auto;
}

.privacy-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--button-radius);
  background: var(--theme-primary-subtle);
  color: var(--theme-primary);
  border: 1px solid rgba(187, 134, 252, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-icon svg {
  width: 20px;
  height: 20px;
}

.privacy-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-headings);
  margin-block-end: 0.35rem;
}

.privacy-desc {
  font-size: 0.9rem;
  color: var(--theme-text-disabled);
  line-height: 1.6;
}

.privacy-desc strong {
  color: var(--theme-primary);
}

.privacy-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 1rem;
}

.privacy-badge-pill {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--theme-primary);
  background: var(--theme-primary-subtle);
  border: 1px solid rgba(187, 134, 252, 0.25);
  padding-inline: 0.65rem;
  padding-block: 0.25rem;
  border-radius: var(--button-radius);
}

/* --------------------------------------------------------------------------
   10. SAFETY / WINDOWS SMARTSCREEN ADVISORY
   -------------------------------------------------------------------------- */
.safety-section {
  padding-block-end: 4rem;
  position: relative;
  z-index: 1;
}

.safety-advisory-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--theme-card);
  border: 1px solid rgba(253, 214, 99, 0.25);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.safety-icon-col {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.safety-icon-col svg {
  width: 24px;
  height: 24px;
}

.safety-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-priority-medium);
  margin-block-end: 0.3rem;
}

.safety-body {
  font-size: 0.875rem;
  color: var(--theme-text-disabled);
  line-height: 1.55;
}

.safety-body strong {
  color: var(--theme-headings);
}

/* --------------------------------------------------------------------------
   11. DOWNLOAD SECTION
   -------------------------------------------------------------------------- */
.download-section {
  padding-block: 6rem;
  position: relative;
  z-index: 1;
}

.download-card {
  position: relative;
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  padding: 4.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.download-content {
  max-width: 680px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.download-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-primary);
  background: var(--theme-primary-subtle);
  border: 1px solid rgba(187, 134, 252, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--button-radius);
  margin-block-end: 1.25rem;
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--theme-headings);
  margin-block-end: 1rem;
}

.download-subtitle {
  font-size: 1.1rem;
  color: var(--theme-text-disabled);
  line-height: 1.6;
  margin-block-end: 2.5rem;
}

.download-actions {
  display: flex;
  justify-content: center;
  margin-block-end: 2rem;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}

.btn-main-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-sub-label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.download-meta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--theme-text-disabled);
  margin-block-end: 2.5rem;
}

.mobile-notify-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-block-start: 2rem;
  border-block-start: 1px solid var(--theme-border);
}

.notify-text {
  font-size: 0.9rem;
  color: var(--theme-text-disabled);
}

.notify-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 360px;
  width: 100%;
}

.notify-input {
  flex: 1;
  background: var(--theme-background-slight);
  border: 1px solid var(--theme-border);
  border-radius: var(--button-radius);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  color: var(--theme-headings);
  font-family: inherit;
}

.notify-input:focus {
  border-color: var(--theme-primary);
  outline: none;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--theme-background);
  border-block-start: 1px solid var(--theme-border);
  padding-block-start: 5rem;
  padding-block-end: 3rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-block-end: 4rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--theme-text-disabled);
  margin-block: 1rem;
  max-width: 32ch;
}

.footer-domain {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-primary);
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--theme-headings);
  margin-block-end: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--theme-text-disabled);
}

.footer-nav-list a:hover {
  color: var(--theme-text);
}


.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-start: 2rem;
  border-block-start: 1px solid var(--theme-border);
  font-size: 0.85rem;
  color: var(--theme-text-dim);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: var(--theme-text-disabled);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS & RTL
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento-focus-timer, .bento-analytics, .bento-ai {
    grid-column: span 6;
  }
  .bento-notes, .bento-tasks, .bento-search {
    grid-column: span 2;
  }
  .bento-i18n, .bento-portability {
    grid-column: span 3;
  }
  .roadmap-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .transform-section {
    height: auto;
    margin-block-end: 3rem;
  }
  .transform-sticky-wrap {
    position: static;
    height: auto;
    padding-block: 2rem;
  }
  .transform-tabs-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .tab-divider {
    display: none;
  }
  .bento-focus-timer, .bento-analytics, .bento-ai,
  .bento-notes, .bento-tasks, .bento-search, .bento-i18n, .bento-portability {
    grid-column: span 6;
  }
  .roadmap-timeline {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Mobile Transform Adaptation */
  .app-canvas {
    height: 520px;
    min-height: 520px;
  }
  .app-canvas.state-diagram .elem-root {
    inset-inline: 0;
    width: 100%;
    inset-block-start: 0;
    height: auto;
  }
  .app-canvas.state-diagram .elem-sub {
    inset-inline: 0;
    width: 100%;
  }
  .app-canvas.state-task .sub-1 { inset-block-start: 138px; }
  .app-canvas.state-task .sub-2 { inset-block-start: 248px; }
  .app-canvas.state-task .sub-3 { inset-block-start: 358px; }
  .app-canvas.state-diagram .sub-1 { inset-block-start: 135px; }
  .app-canvas.state-diagram .sub-2 { inset-block-start: 245px; }
  .app-canvas.state-diagram .sub-3 { inset-block-start: 355px; }
  .app-canvas.state-diagram .diagram-connectors { display: none; }
}

/* --------------------------------------------------------------------------
   14. SOCIAL PROOF STATS STRIP
   -------------------------------------------------------------------------- */
.social-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.75rem 2.5rem;
  margin-block-start: 1rem;
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  max-width: 780px;
  width: 100%;
  backdrop-filter: blur(16px);
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.proof-stat-icon {
  color: var(--theme-primary);
  margin-block-end: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.proof-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--theme-headings);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.proof-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--theme-text-disabled);
  line-height: 1.3;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--theme-border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .social-proof-strip {
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
  }
  .proof-divider {
    display: none;
  }
  .proof-stat {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

/* --------------------------------------------------------------------------
   15. FAQ SECTION
   -------------------------------------------------------------------------- */
.faq-section {
  padding-block: 6rem;
  position: relative;
  z-index: 1;
  border-block-start: 1px solid var(--theme-border);
}

.faq-grid {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--theme-card);
  background-image: var(--theme-card-gradient);
  border: 1px solid var(--theme-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--theme-border-hover);
}

.faq-item[open] {
  border-color: rgba(187, 134, 252, 0.3);
  box-shadow: 0 4px 20px rgba(187, 134, 252, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition-smooth);
}

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

.faq-question::marker {
  display: none;
  content: '';
}

.faq-question:hover {
  background: var(--theme-background-slight);
}

.faq-q-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--theme-headings);
  line-height: 1.4;
}

.faq-chevron {
  color: var(--theme-text-disabled);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--theme-primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.925rem;
  color: var(--theme-text-disabled);
  line-height: 1.7;
}

.faq-answer strong {
  color: var(--theme-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children for bento grid */
.reveal-on-scroll.is-visible .bento-card {
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-on-scroll.is-visible .bento-card:nth-child(1) { animation-delay: 0ms; }
.reveal-on-scroll.is-visible .bento-card:nth-child(2) { animation-delay: 80ms; }
.reveal-on-scroll.is-visible .bento-card:nth-child(3) { animation-delay: 160ms; }
.reveal-on-scroll.is-visible .bento-card:nth-child(4) { animation-delay: 220ms; }
.reveal-on-scroll.is-visible .bento-card:nth-child(5) { animation-delay: 280ms; }
.reveal-on-scroll.is-visible .bento-card:nth-child(6) { animation-delay: 340ms; }
.reveal-on-scroll.is-visible .bento-card:nth-child(7) { animation-delay: 400ms; }
.reveal-on-scroll.is-visible .bento-card:nth-child(8) { animation-delay: 460ms; }

/* Stagger FAQ items */
.reveal-on-scroll.is-visible .faq-item {
  animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-on-scroll.is-visible .faq-item:nth-child(1) { animation-delay: 0ms; }
.reveal-on-scroll.is-visible .faq-item:nth-child(2) { animation-delay: 60ms; }
.reveal-on-scroll.is-visible .faq-item:nth-child(3) { animation-delay: 120ms; }
.reveal-on-scroll.is-visible .faq-item:nth-child(4) { animation-delay: 180ms; }
.reveal-on-scroll.is-visible .faq-item:nth-child(5) { animation-delay: 240ms; }
.reveal-on-scroll.is-visible .faq-item:nth-child(6) { animation-delay: 300ms; }
.reveal-on-scroll.is-visible .faq-item:nth-child(7) { animation-delay: 360ms; }

/* Stagger roadmap cards */
.reveal-on-scroll.is-visible .roadmap-card {
  animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-on-scroll.is-visible .roadmap-card:nth-child(1) { animation-delay: 0ms; }
.reveal-on-scroll.is-visible .roadmap-card:nth-child(2) { animation-delay: 100ms; }
.reveal-on-scroll.is-visible .roadmap-card:nth-child(3) { animation-delay: 200ms; }
.reveal-on-scroll.is-visible .roadmap-card:nth-child(4) { animation-delay: 300ms; }

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal-on-scroll.is-visible .bento-card,
  .reveal-on-scroll.is-visible .faq-item,
  .reveal-on-scroll.is-visible .roadmap-card {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   17. HERO SUBTITLE STRONG HIGHLIGHT
   -------------------------------------------------------------------------- */
.hero-subtitle strong {
  color: var(--theme-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   18. WINDOWS INSTALLATION ADVISORY & INLINE VIDEO GUIDE
   -------------------------------------------------------------------------- */
.download-safety-wrap {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  margin-block: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.download-safety-wrap .safety-advisory-card {
  text-align: start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--theme-background-slight);
  border: 1px solid rgba(253, 214, 99, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.download-video-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.video-window-frame {
  width: 100%;
  max-width: 360px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
}

.video-window-bar {
  height: 34px;
  background: #222222;
  border-block-end: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.85rem;
}

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

.w-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  font-size: 0.72rem;
  color: var(--theme-text-disabled);
  font-weight: 500;
}

.window-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--theme-priority-medium);
  background: var(--theme-priority-medium-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.video-player-box {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.video-player-box video {
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 738;
  object-fit: contain;
  display: block;
  background: #000;
}

@media (max-width: 768px) {
  .download-safety-wrap {
    margin-block: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .video-window-frame {
    max-width: 290px;
  }
}

/* --------------------------------------------------------------------------
   Launch review (2026-10-24)
   -------------------------------------------------------------------------- */

/* Oviqen is a Windows app: window chrome reads like Windows — title on the
   start side, minimize / maximize / close on the end side — not three
   coloured macOS dots. */
.app-titlebar { justify-content: flex-start; gap: 0.75rem; }
.window-breadcrumbs { order: 1; min-width: 0; }
.window-mode-pill { order: 2; margin-inline-start: auto; }
.window-controls { order: 3; gap: 14px; }
.win-btn {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none !important;
  color: var(--theme-text-disabled);
  font-size: 0.8rem;
  line-height: 1;
}
.win-min { order: 1; }
.win-max { order: 2; }
.win-close { order: 3; }
.win-min::before { content: "\2014"; }
.win-max::before { content: "\25A2"; }
.win-close::before { content: "\2715"; }

.frame-dot,
.w-dot { display: none; }
.frame-bar::after,
.video-window-bar .window-dots::after {
  content: "\2014\2003\25A2\2003\2715";
  color: var(--theme-text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.frame-bar::after { margin-inline-start: auto; }
.frame-title { margin-inline-start: 0; }
.video-window-bar .window-dots { order: 3; }
.video-window-bar .window-title { order: 1; }
.video-window-bar .window-badge { order: 2; margin-inline-start: auto; margin-inline-end: 0.75rem; }

/* Screenshot frames hug their picture instead of stretching to the tallest
   card in the row, which left a black band under the image. */
.bento-card .screenshot-frame-wrapper { flex: 0 0 auto; }
.bento-card .screenshot-frame { height: auto; }

/* The AI card: an illustration of the assistant at work, drawn in HTML. */
.ai-chat-mock {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem 0.8rem;
  aspect-ratio: 16 / 11;
  background: radial-gradient(120% 90% at 100% 0%, rgba(187, 134, 252, 0.10) 0%, rgba(25, 25, 25, 0) 60%), var(--theme-background);
}
.ai-chat-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.ai-chat-user { justify-content: flex-end; }
.ai-chat-bubble {
  max-width: 88%;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--theme-text);
  background: var(--theme-background-slight);
  border: 1px solid var(--theme-border);
}
.ai-chat-user .ai-chat-bubble {
  background: var(--theme-primary-subtle);
  border-color: rgba(187, 134, 252, 0.28);
  border-end-end-radius: 4px;
}
.ai-chat-bot .ai-chat-bubble { border-end-start-radius: 4px; }
.ai-chat-bubble strong { color: var(--theme-headings); }
.ai-chat-avatar { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; margin-top: 2px; }
.ai-chat-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.ai-chat-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--pill-radius);
  color: #81C995;
  background: rgba(129, 201, 149, 0.12);
}
.ai-chat-composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border-hover);
  background: var(--theme-card);
}
.ai-chat-model {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  border-radius: var(--pill-radius);
  color: var(--theme-primary);
  background: var(--theme-primary-subtle);
}
.ai-chat-input { font-size: 0.76rem; color: var(--theme-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.privacy-desc a,
.faq-answer a,
.download-legal-note a {
  color: var(--theme-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.download-legal-note {
  margin-block-start: 0.9rem;
  font-size: 0.8rem;
  color: var(--theme-text-disabled);
  text-align: center;
}

/* Privacy Policy and Terms of Service pages. */
.legal-body { background: var(--theme-background); }
.legal-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--theme-text);
  line-height: 1.7;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--theme-headings);
  margin: 0 0 0.25rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--theme-headings);
  margin: 2.1rem 0 0.5rem;
}
.legal-page p,
.legal-page li { font-size: 0.98rem; }
.legal-page p { margin: 0 0 0.85rem; }
.legal-page ul { margin: 0 0 0.85rem; padding-inline-start: 1.25rem; }
.legal-page li { margin-bottom: 0.45rem; }
.legal-page a { color: var(--theme-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-page code {
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--theme-background-slight);
}
.legal-meta { color: var(--theme-text-disabled); font-size: 0.85rem !important; }
.legal-lead {
  font-size: 1.05rem !important;
  color: var(--theme-headings);
  padding: 1rem 1.15rem;
  border-radius: var(--card-radius);
  background: var(--theme-primary-subtle);
  border: 1px solid rgba(187, 134, 252, 0.25);
  margin-block: 1.25rem 0.5rem !important;
}
.legal-footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--theme-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--theme-text-disabled);
  font-size: 0.85rem;
}
.legal-footer nav { display: flex; gap: 1.25rem; }
.legal-footer a { color: var(--theme-text-disabled); }
.legal-footer a:hover { color: var(--theme-primary); }

/* On a phone the live demo's title bar keeps to one line. */
@media (max-width: 600px) {
  .window-breadcrumbs .app-path-segment,
  .window-breadcrumbs .app-path-sep { display: none; }
  .app-path-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .window-mode-pill { flex-shrink: 0; }
}

