/* ==========================================================================
   TidyDesk Landing Page Design System & Stylesheet (Dark & Light Mode)
   ========================================================================== */

:root {
  /* Color Palette - Default Dark */
  --bg-dark: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #151c2c;
  --bg-glass: rgba(18, 24, 38, 0.8);
  --bg-glass-card: rgba(20, 27, 44, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.35);

  /* Brand Emerald Accents */
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-emerald-dark: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-cyan: #06b6d4;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --heading-color: #ffffff;

  /* Layout Constants */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-window: 0 24px 60px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.92);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.5);

  --accent-emerald: #059669;
  --accent-emerald-light: #10b981;
  --accent-emerald-dark: #047857;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --heading-color: #0f172a;

  --shadow-card: 0 12px 36px rgba(15, 23, 42, 0.08);
  --shadow-window: 0 20px 48px rgba(15, 23, 42, 0.12);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4, h5, .brand-name, .section-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
}

code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-emerald-light);
}

[data-theme="light"] code {
  color: var(--accent-emerald-dark);
  background: rgba(5, 150, 105, 0.1);
}

a {
  color: var(--accent-emerald-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-emerald-dark);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Background Ambient Glow & Grid */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.bg-glow-1 {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.1) 60%, transparent 80%);
}

.bg-glow-2 {
  top: 1400px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.bg-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1200px;
  background-image: 
    linear-gradient(to right, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Navigation Bar & Theme Switcher
   ========================================================================== */

.navbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 8px var(--accent-emerald-glow));
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--heading-color);
}

.brand-version-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.mobile-nav-actions {
  display: none;
}

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

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

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

.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-emerald-dark) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 18px var(--accent-emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  color: #ffffff !important;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  color: var(--heading-color);
  border-color: rgba(128, 128, 128, 0.3);
  background: rgba(128, 128, 128, 0.05);
}

.btn-glass {
  background: var(--bg-glass);
  color: var(--text-main);
  border-color: var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(128, 128, 128, 0.08);
  border-color: var(--border-highlight);
  color: var(--heading-color);
  transform: translateY(-2px);
}

.pricing-btn {
  padding: 15px 24px !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  border-radius: var(--radius-md) !important;
  letter-spacing: -0.2px;
}

.btn-solid-dark {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--heading-color) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-solid-dark:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
  color: var(--heading-color) !important;
}

.btn-supporter {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-supporter:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.5);
  color: #ffffff !important;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.btn-danger-ghost {
  background: transparent;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

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

.btn-sub-txt {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.85;
}

.animate-glow {
  position: relative;
}

.animate-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-emerald-light), var(--accent-cyan));
  filter: blur(8px);
  z-index: -1;
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.animate-glow:hover::after {
  opacity: 0.8;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-emerald-light);
  margin-bottom: 28px;
}

[data-theme="light"] .hero-badge {
  color: var(--accent-emerald-dark);
  background: rgba(5, 150, 105, 0.08);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
  max-width: 900px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--heading-color) 30%, var(--accent-emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, var(--accent-emerald-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-subtitle strong {
  color: var(--heading-color);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Hero App Showcase Mock Window
   ========================================================================== */

.hero-showcase {
  width: 100%;
  max-width: 980px;
  perspective: 1200px;
}

.app-window-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  text-align: left;
  transform: translateY(0);
  transition: transform var(--transition-smooth);
}

.app-window-frame:hover {
  transform: translateY(-4px);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .window-header {
  background: rgba(0, 0, 0, 0.03);
}

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

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

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

.window-title {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-live-txt {
  font-size: 0.75rem;
  color: var(--accent-emerald-light);
  font-weight: 600;
}

.window-body-mock {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 440px;
}

.mock-sidebar {
  background: var(--bg-surface-elevated);
  border-right: 1px solid var(--border-color);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.mock-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.mock-brand-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.mock-brand-sub {
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.mock-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.mock-nav-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: default;
}

.mock-nav-item.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  font-weight: 600;
}

.mock-sidebar-footer {
  margin-top: auto;
}

.mock-license-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.mock-license-tag.pro {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--border-highlight);
  color: var(--accent-emerald-light);
}

.mock-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
}

.mock-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mock-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mock-card.highlight-card {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent);
}

.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.card-hero-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
}

.status-heading {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading-color);
}

.status-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-emerald-light);
}

.stat-meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.mock-rules-preview {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.preview-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.rules-table-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
}

.rule-folder {
  font-weight: 600;
  color: var(--heading-color);
}

.rule-exts {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-family: 'JetBrains Mono', monospace;
}

.mock-log-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.log-time {
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.log-badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald-light);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.log-txt {
  color: var(--text-muted);
}

.log-txt strong {
  color: var(--heading-color);
}

/* ==========================================================================
   Interactive Live Simulator Section
   ========================================================================== */

.simulator-section {
  padding-top: 60px;
  padding-bottom: 100px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent-emerald-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}

[data-theme="light"] .section-tag {
  color: var(--accent-emerald-dark);
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.simulator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  overflow: hidden;
}

.simulator-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.simulator-stage {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 320px;
}

.sim-desktop {
  background: var(--bg-surface-elevated);
  border: 1px dashed rgba(128, 128, 128, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.sim-desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.sim-status-chip {
  font-size: 0.72rem;
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sim-files-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  flex-grow: 1;
  align-content: start;
}

.sim-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
  padding-top: 80px;
}

.sim-file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 0.72rem;
  text-align: center;
  animation: file-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  transition: all 0.5s ease;
}

@keyframes file-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sim-file-icon {
  font-size: 1.5rem;
}

.sim-file-name {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pipeline-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 0 20px var(--accent-emerald-glow);
  padding: 16px 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.engine-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  animation: pulse-spin 6s infinite linear;
}

@keyframes pulse-spin {
  0% { filter: drop-shadow(0 0 6px var(--accent-emerald)); }
  50% { filter: drop-shadow(0 0 16px var(--accent-emerald-light)); }
  100% { filter: drop-shadow(0 0 6px var(--accent-emerald)); }
}

.engine-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--heading-color);
}

.engine-speed {
  font-size: 0.65rem;
  color: var(--accent-emerald-light);
  font-family: 'JetBrains Mono', monospace;
}

.sim-destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sim-folder-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all var(--transition-fast);
}

.sim-folder-card.active-destination {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 18px var(--accent-emerald-glow);
  transform: scale(1.03);
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.folder-icon {
  font-size: 1.4rem;
}

.folder-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--heading-color);
}

.folder-exts {
  font-size: 0.68rem;
  color: var(--text-subtle);
  font-family: 'JetBrains Mono', monospace;
}

.folder-count {
  font-size: 0.78rem;
  color: var(--accent-emerald-light);
  font-weight: 600;
}

.simulator-log-footer {
  margin-top: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  align-items: center;
}

.log-title {
  font-weight: 700;
  color: var(--text-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.log-msg {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-section {
  padding-top: 60px;
  padding-bottom: 100px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-card);
}

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

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: rgba(128, 128, 128, 0.1);
}

.step-icon-wrap {
  font-size: 2rem;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Features Grid Section
   ========================================================================== */

.features-section {
  padding-top: 60px;
  padding-bottom: 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-section {
  padding-top: 60px;
  padding-bottom: 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-surface) 60%);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pricing-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.tier-name {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 6px;
  color: var(--heading-color);
}

.tier-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
}

.amount {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--heading-color);
  line-height: 1;
}

.period {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-left: 6px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}

.pricing-features li strong {
  color: var(--heading-color);
}

.pricing-features .check {
  color: var(--accent-emerald-light);
  font-weight: 800;
}

.pricing-features .cross {
  color: var(--text-subtle);
  font-weight: 800;
}

.pricing-features .muted-feature {
  opacity: 0.45;
}

.instant-delivery-hint {
  font-size: 0.75rem;
  color: var(--accent-emerald-light);
  text-align: center;
  margin-top: 10px;
}

[data-theme="light"] .instant-delivery-hint {
  color: var(--accent-emerald-dark);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  padding-top: 60px;
  padding-bottom: 100px;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  color: var(--heading-color);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--text-subtle);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-emerald-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */

.cta-banner-section {
  padding-top: 40px;
  padding-bottom: 100px;
}

.cta-banner-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%), var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cta-heading {
  font-size: 2.4rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 32px auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer & Direct Channels
   ========================================================================== */

.footer-wrapper {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
  padding-bottom: 60px;
}

.footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.footer-tagline {
  color: var(--text-subtle);
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--accent-emerald-light);
}

.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25D366 !important;
  font-weight: 600;
}

/* ==========================================================================
   Modals & Standalone Pages
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.15rem;
  color: var(--heading-color);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--heading-color);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-body h4 {
  color: var(--heading-color);
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.modal-body li {
  margin-bottom: 6px;
}

/* Standalone Document Container */
.policy-doc-container {
  max-width: 800px;
  margin: 60px auto 100px auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.policy-doc-container h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.policy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .steps-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .window-body-mock {
    grid-template-columns: 1fr;
  }
  .mock-sidebar {
    display: none;
  }
  .simulator-stage {
    grid-template-columns: 1fr;
  }
  .sim-pipeline {
    margin: 12px 0;
  }
}

@media (max-width: 860px) {
  .brand-version-badge {
    display: none !important;
  }
  .nav-action-ghost {
    display: none !important;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    z-index: 99;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-action-primary {
    padding: 8px 12px;
    font-size: 0.84rem;
  }
  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 64px;
  }
  .nav-brand {
    gap: 8px;
  }
  .nav-logo {
    width: 30px;
    height: 30px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .btn-theme-toggle,
  .mobile-toggle {
    width: 34px;
    height: 34px;
    padding: 6px;
  }
  .nav-action-primary {
    padding: 7px 10px;
    font-size: 0.8rem;
    gap: 5px;
  }
  .nav-actions {
    gap: 6px;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}
