/* ========================================
   LITYX AI — LANDING PAGE
   Dark Theme, Professional Aesthetic
   ======================================== */

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

:root {
  /* Colors - Refined Monochrome / Silver Metallic */
  --primary: #ffffff;
  --primary-glow: #e5e5e5;
  --primary-dark: #a3a3a3;

  /* Silver Metallic Tones */
  --silver-light: #f5f5f5;
  --silver: #d4d4d4;
  --silver-dark: #a3a3a3;
  --silver-glow: rgba(255, 255, 255, 0.18);

  /* Deep Space Backgrounds - Enhanced */
  --surface-0: #020202;
  --surface-1: #0a0a0c;
  --surface-2: #131316;
  --surface-3: #1c1c21;
  --surface-4: #222225;
  --surface-elevated: #1a1a1d;
  --surface-glass: rgba(255, 255, 255, 0.02);

  /* Text - Enhanced Contrast */
  --text-primary: #ffffff;
  --text-secondary: #bababa;
  --text-muted: #8a8f98;
  --text-highlight: #f5f5f5;

  /* Borders - Refined */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(255, 255, 255, 0.22);
  --border-metallic: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));

  /* Gradients - Metallic */
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #c0c0c0 50%, #808080 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #d4d4d4 40%, #a3a3a3 100%);
  --gradient-metallic: linear-gradient(135deg, #ffffff 0%, #a3a3a3 50%, #737373 100%);
  --gradient-chrome: linear-gradient(180deg, #e5e5e5, #a3a3a3, #737373);
  --gradient-glow: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  --gradient-3d-highlight: linear-gradient(135deg, #ffffff 0%, #d4d4d4 100%);
  --gradient-3d-shadow: linear-gradient(315deg, #525252 0%, #262626 100%);
  --gradient-hero-glow: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255,255,255,0.06) 0%, transparent 60%);

  /* Semantic */
  --success: #10b981;
  --success-light: #34d399;
  --error: #ef4444;
  --error-light: #f87171;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --gold: #d4af37;

  /* Shadows - Enhanced Depth */
  --glow-primary: 0 0 60px -15px rgba(255, 255, 255, 0.35);
  --glow-soft: 0 0 40px -10px rgba(255, 255, 255, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Radius - Refined */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
}

body {
  font-family: "Plus Jakarta Sans", "Google Sans", system-ui, -apple-system, sans-serif;
  background: var(--surface-0);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.875rem 0;
  transition: background 0.3s ease, border-bottom-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(2, 2, 2, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand-logo {
  height: 32px;
  width: auto;
  display: block;
  fill: var(--text-primary);
  overflow: visible;
  transform: translateY(1px);
}

.navbar-links {
  display: none;
  gap: 2.5rem;
}

.navbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Selector for Public Pages */
.language-selector-public {
  position: relative;
  margin-right: 0.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lang-btn:hover svg {
  opacity: 1;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.375rem;
  min-width: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.language-selector-public.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.4rem 0.6rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--text-primary);
  font-weight: 600;
}

.navbar-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.navbar-mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
}

/* Mobile Menu */
@media (max-width: 767px) {
  .navbar-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--surface-1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 25vh;
    gap: 2rem;
    z-index: 200;
    display: none;
  }

  .navbar-links.mobile-open {
    display: flex !important;
  }

  .navbar-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .navbar-mobile-toggle {
    z-index: 201;
    position: relative;
  }

  .navbar-actions {
    display: none !important;
  }

  /* When mobile menu is open, show actions at bottom of overlay via JS portal */
  .navbar-actions.mobile-visible {
    display: flex !important;
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 202;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  /* Language selector moved to body - top left corner, aligned with hamburger */
  .language-selector-public.mobile-menu-lang {
    position: fixed;
    top: 0.875rem;
    left: 2rem;
    z-index: 203;
    margin-right: 0;
  }

  .language-selector-public.mobile-menu-lang .lang-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
  }

  /* Language dropdown opens downward when at top */
  .language-selector-public.mobile-menu-lang .lang-dropdown {
    top: 100%;
    bottom: auto;
    margin-top: 0.5rem;
    margin-bottom: 0;
    left: 0;
    right: auto;
    transform: translateY(-8px);
  }

  .language-selector-public.mobile-menu-lang.open .lang-dropdown {
    transform: translateY(0);
  }

  /* Log In button matches primary button style */
  .navbar-actions.mobile-visible .btn-primary {
    background: var(--gradient-primary);
    color: #000000;
    box-shadow: var(--glow-primary);
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;  /* Smaller on mobile */
  font-size: 0.75rem;  /* Smaller on mobile */
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #000000;
  box-shadow: var(--glow-primary);
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}



.btn-primary svg {
  stroke: #000000;
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--border-highlight);
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  padding: 0.5rem 1rem;  /* Smaller on mobile */
  font-size: 0.8rem;  /* Smaller on mobile */
}

.btn-block {
  width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 1rem 2rem;  /* Mobile: more top spacing for navbar */
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9)),
    url("../img/landing_bg.webp");
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9)),
    image-set(url("../img/landing_bg.webp") type("image/webp"), url("../img/landing_bg.png") type("image/png"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;  /* Reduced on mobile */
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 100%;  /* Prevent overflow */
  min-width: 0;  /* Allow shrinking in grid */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5.5rem);  /* Responsive: smaller on mobile */
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1rem;  /* Reduced on mobile */
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-highlight {
  display: block;
  font-size: 0.70em;
  line-height: 1.3;
  padding-bottom: 0.1em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 5s ease-in-out infinite;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-title-accent {
  position: relative;
  display: inline-block;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.08em;
  background: var(--gradient-metallic);
  border-radius: 1em;
  opacity: 0.5;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 0.95rem;  /* Smaller on mobile */
  color: var(--text-secondary);
  max-width: 100%;  /* Full width on mobile */
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;  /* Prevent text from touching edges */
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.1s forwards;
}

.hero-cta {
  display: flex;
  flex-direction: column;  /* Stack buttons vertically on mobile */
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;  /* Reduced on mobile */
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-trust {
  display: none;  /* Hidden on mobile */
  flex-wrap: nowrap;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-dark);
}

.hero-visual {
  display: flex;  /* Visible on mobile */
  justify-content: center;  /* Center horizontally */
}

.hero-mockup {
  position: relative;
  perspective: 1000px;
}

.mockup-browser {
  background: var(--surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  /* Mobile: 3D perspective rotation to fit in viewport */
  transform: rotateY(22deg) rotateX(5deg) scale(0.68);
  transform-origin: center center;
  animation: none;
}

@keyframes float {
  0%, 100% { transform: rotateY(-5deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-5deg) rotateX(2deg) translateY(-10px); }
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border-subtle);
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-4);
}

.browser-dots span:first-child { background: var(--error); }
.browser-dots span:nth-child(2) { background: var(--warning); }
.browser-dots span:nth-child(3) { background: var(--success); }

.browser-url {
  flex: 1;
  background: var(--surface-1);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.browser-content {
  padding: 1rem;
}

.dashboard-preview {
  display: flex;
  gap: 1rem;
  min-height: 200px;
}

.preview-sidebar {
  width: 56px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Logo item na sidebar do mockup */
.sidebar-item.sidebar-logo-item {
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding-left: 8px;
  padding-bottom: 2px;
  padding-top: 2px;
}

.sidebar-logo-item svg {
  width: 14px;
  height: 14px;
  fill: var(--text-primary);
}

.sidebar-logo-text {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sidebar-item {
  height: 8px;
  background: var(--surface-4);
  border-radius: 4px;
}

.sidebar-item.active {
  background: var(--primary-dark);
}

.preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-kpis {
  display: flex;
  gap: 0.75rem;
}

.kpi-card {
  flex: 1;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.kpi-label {
  height: 6px;
  width: 50%;
  background: var(--surface-4);
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.kpi-value {
  height: 12px;
  width: 70%;
  background: var(--primary-dark);
  border-radius: 3px;
}

.kpi-value.green { background: var(--success); }
.kpi-value.red { background: var(--error); }

.preview-chart {
  flex: 1;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary-dark), var(--primary-glow));
  border-radius: 3px 3px 0 0;
  animation: barGrow 1s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

.bar:nth-child(1) { --i: 1; }
.bar:nth-child(2) { --i: 2; }
.bar:nth-child(3) { --i: 3; }
.bar:nth-child(4) { --i: 4; }
.bar:nth-child(5) { --i: 5; }
.bar:nth-child(6) { --i: 6; }
.bar:nth-child(7) { --i: 7; }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.hero-glow-effect {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse 70% 50% at center, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

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

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  justify-items: center;
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
  min-width: 80px;
  display: inline-block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-label .label-desktop {
  display: none;
}

.stat-label .label-mobile {
  display: inline;
}

@media (min-width: 768px) {
  .stat-label .label-desktop {
    display: inline;
  }

  .stat-label .label-mobile {
    display: none;
  }
}

.stat-divider {
  display: none;
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
  padding: 6rem 0;
  background: var(--surface-0);
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--silver-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-inset), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Showcase */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-showcase:last-child {
  border-bottom: none;
}

.feature-content {
  order: 1;
}

.feature-visual {
  order: 2;
}

.feature-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-inset);
}

.feature-content .feature-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.feature-content .feature-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  stroke: var(--success);
  flex-shrink: 0;
}

/* Feature Visuals */
.feature-visual > div {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-subtle);
  border-top: 2px solid;
  border-image: var(--gradient-metallic) 1;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card), var(--shadow-inset);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dashboard Visual */
.visual-dashboard {
  padding: 1.25rem !important;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.dash-kpi {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  position: relative;
  overflow: hidden;
}

.dash-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.dash-kpi.success::before { background: var(--success); }
.dash-kpi.danger::before { background: var(--error); }
.dash-kpi.primary::before { background: var(--gradient-primary); }
.dash-kpi.info::before { background: var(--info); }

.dash-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.dash-kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-kpi-icon svg {
  width: 14px;
  height: 14px;
}

.dash-kpi-icon.success { background: rgba(16, 185, 129, 0.15); }
.dash-kpi-icon.success svg { stroke: var(--success); }
.dash-kpi-icon.danger { background: rgba(239, 68, 68, 0.15); }
.dash-kpi-icon.danger svg { stroke: var(--error); }
.dash-kpi-icon.primary { background: rgba(255, 255, 255, 0.1); }
.dash-kpi-icon.primary svg { stroke: var(--primary); }
.dash-kpi-icon.info { background: rgba(59, 130, 246, 0.15); }
.dash-kpi-icon.info svg { stroke: var(--info); }

.dash-kpi-badge {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.dash-kpi-badge.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.dash-kpi-badge.down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.dash-kpi-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.dash-kpi-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.dash-chart-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  overflow: hidden;
}

.dash-chart-header {
  margin-bottom: 0.4rem;
}

.dash-chart-title {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-mini-chart {
  width: 100%;
  height: 50px;
  display: block;
}

/* Chat Visual */
.visual-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 350px;
  overflow: hidden;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg.ai {
  align-self: flex-start;
}

.chat-msg.user .chat-msg-text {
  background: var(--surface-2);
  padding: 0.5rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.chat-msg.ai .chat-msg-text {
  padding: 0.2rem 0;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.chat-msg.ai .chat-msg-text strong {
  color: var(--success);
  font-weight: 700;
}

.chat-msg-text.typing {
  display: flex;
  gap: 4px;
  padding: 0.4rem 0;
}

.chat-msg-text.typing span {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: chatTyping 1.4s infinite;
}

.chat-msg-text.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg-text.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.chat-input-mock {
  display: flex;
  align-items: center;
  background: var(--surface-1);
  border: 2px solid var(--surface-2);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.4rem 0.4rem 0.75rem;
  margin-top: 0.25rem;
}

.chat-input-placeholder {
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-send-mock {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-send-mock svg {
  width: 12px;
  height: 12px;
  stroke: var(--surface-0);
}

/* Forecast Visual */
.visual-forecast {
  padding: 1.5rem !important;
}

.forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.forecast-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.forecast-badge {
  padding: 0.25rem 0.6rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.forecast-chart {
  margin-bottom: 1.5rem;
}

.forecast-chart svg {
  width: 100%;
  height: 120px;
}

.forecast-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.solid-line {
  width: 20px;
  height: 2px;
  background: var(--primary-glow);
}

.dashed-line {
  width: 20px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--text-muted),
    var(--text-muted) 4px,
    transparent 4px,
    transparent 8px
  );
}

.forecast-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.value-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.value-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
}

/* Portfolio Visual */
.visual-portfolio {
  padding: 1.5rem !important;
}

.portfolio-header {
  margin-bottom: 1.5rem;
}

.portfolio-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.portfolio-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.portfolio-change {
  font-size: 0.85rem;
  font-weight: 600;
}

.portfolio-change.positive { color: var(--success); }
.portfolio-change.negative { color: var(--error); }

.portfolio-assets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.asset-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.asset-icon.btc { background: linear-gradient(135deg, #f7931a, #c77b16); }
.asset-icon.eth { background: linear-gradient(135deg, #627eea, #4c5bc0); }
.asset-icon.stock { background: linear-gradient(135deg, #737373, #525252); }

.asset-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.asset-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.asset-value {
  text-align: right;
}

.asset-price {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.asset-change {
  font-size: 0.75rem;
  font-weight: 600;
}

.asset-change.positive { color: var(--success); }
.asset-change.negative { color: var(--error); }

/* Goals Visual */
.visual-goals {
  padding: 1rem !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-card {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

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

.goal-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.goal-icon.blue {
  background: linear-gradient(135deg, var(--info), #1d4ed8);
}

.goal-icon.green {
  background: linear-gradient(135deg, var(--success), #059669);
}

.goal-info {
  display: flex;
  flex-direction: column;
}

.goal-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.goal-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar {
  height: 8px;
  background: var(--surface-4);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--info), #60a5fa);
  border-radius: 4px;
  transition: width 1s ease;
}

.progress-fill.green {
  background: linear-gradient(90deg, var(--success), var(--success-light));
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-stats span:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* Subscriptions Visual */
.visual-subscriptions {
  padding: 1rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sub-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.sub-card.inactive {
  opacity: 0.5;
}

.sub-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.sub-icon.netflix { background: #e50914; }
.sub-icon.spotify { background: #1db954; }
.sub-icon.gym { background: #6366f1; }
.sub-icon.cloud { background: #0ea5e9; }

.sub-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sub-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.sub-amount {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.sub-toggle {
  width: 36px;
  height: 20px;
  background: var(--surface-4);
  border-radius: 10px;
  position: relative;
}

.sub-toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.2s;
}

.sub-toggle.active {
  background: var(--success);
}

.sub-toggle.active::after {
  background: white;
  left: 18px;
}

/* Settings Visual */
.visual-settings {
  padding: 1.5rem !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.theme-option {
  flex: 1;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-option.active {
  background: var(--surface-4);
  color: var(--text-primary);
}

.notification-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notif-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.notif-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-medium);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-check.checked {
  background: var(--success);
  border-color: var(--success);
}

.notif-check.checked::after {
  content: "";
  width: 4px;
  height: 8px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.sidebar-order {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.drag-handle {
  width: 12px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drag-handle::before,
.drag-handle::after {
  content: "";
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
}

.drag-handle::before {
  margin-bottom: 2px;
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
  padding: 6rem 2rem;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 800px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.timeline-number {
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary-dark);
  line-height: 1;
  width: 60px;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.timeline-connector {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, var(--border-subtle), var(--primary-dark), var(--border-subtle));
  margin-left: 29px;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
  padding: 6rem 2rem;
  background: var(--surface-0);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.testimonial-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-elevated);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-glow);
  border: 1px solid var(--border-subtle);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================
   PRICING
   ======================================== */

.pricing {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, var(--surface-0), var(--surface-1));
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.plan-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
  border-color: var(--border-medium);
}

.plan-card.featured {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--glow-primary);
}

.plan-card.featured:hover {
  border-color: var(--primary);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #000000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-header {
  text-align: center;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.plan-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.plan-features {
  list-style: none;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-item.feature-label {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.feature-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.plan-cta {
  margin-top: 2.5rem;
}

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

.faq {
  padding: 6rem 2rem;
  background: var(--surface-0);
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item details {
  cursor: pointer;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s;
}

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

.faq-item summary:hover {
  color: var(--primary-glow);
}

.faq-item summary svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item details[open] summary svg {
  transform: rotate(180deg);
}

.faq-content {
  padding-bottom: 1.5rem;
}

.faq-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface-1);
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  background: var(--surface-0);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.brand-col {
  max-width: 300px;
  grid-column: span 2;
}

/* Mobile 2-column: Features left, others stacked right */
.footer-col:nth-child(2) {
  grid-column: 1;
  grid-row: 2 / 5;
}

.footer-col:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.footer-col:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
}

.footer-col:nth-child(5) {
  grid-column: 2;
  grid-row: 4;
}

.footer-logo {
  display: block;
  margin-bottom: 1rem;
}

.footer-brand-logo {
  height: 22px;
  width: auto;
  display: block;
  overflow: visible;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.75rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 640px) {
  .stats-container {
    gap: 0;
  }

  .stat-divider {
    display: block;
  }

  /* Restore footer font sizes for tablet+ */
  .footer-desc {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .footer-col h4 {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
  }

  .footer-nav {
    gap: 0.75rem;
  }

  .footer-nav a {
    font-size: 0.8rem;
  }

  .footer-copy {
    font-size: 0.85rem;
  }

  .footer-grid {
    gap: 2.5rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .btn {
    padding: 0.625rem 1.25rem;  /* Restore on tablet+ */
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .btn-lg {
    padding: 0.875rem 1.75rem;  /* Restore on tablet+ */
    font-size: 1rem;
  }

  .navbar-links {
    display: flex;
  }

  .navbar-mobile-toggle {
    display: none;
  }

  /* Hero stays mobile-like on tablet - desktop layout at 1024px+ */

  /* Tablet: slightly larger 3D visual */
  .mockup-browser {
    transform: rotateY(18deg) rotateX(4deg) scale(0.82);
  }

  /* Sidebar logo - tablet */
  .sidebar-logo-item svg {
    width: 16px;
    height: 16px;
  }

  .stats-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .stat-item {
    padding: 0 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-divider {
    display: block;
  }

  .feature-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .feature-showcase.reverse .feature-content {
    order: 2;
  }

  .feature-showcase.reverse .feature-visual {
    order: 1;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 5fr 1.5fr 1fr 1fr 1fr;
    gap: 3.5rem;
  }

  .brand-col {
    grid-column: span 1;
  }

  /* Reset grid positions for 5-column layout */
  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4),
  .footer-col:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (min-width: 1024px) {
  .navbar-container {
    padding: 0 6rem;
  }

  /* Hero desktop layout - 2 columns */
  .hero {
    padding: 10rem 0 8rem;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 6rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-title {
    font-size: 4.5rem;
    margin-bottom: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    max-width: 480px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    padding: 0;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 3rem;
  }

  .hero-trust {
    display: flex;
    justify-content: flex-start;
  }

  .hero-visual {
    display: block;
    max-width: 500px;
  }

  .mockup-browser {
    transform: rotateY(-5deg) rotateX(2deg);
    animation: float 6s ease-in-out infinite;
  }

  /* Sidebar logo - desktop */
  .sidebar-logo-item svg {
    width: 18px;
    height: 18px;
  }

  .stats-container {
    padding: 0 6rem;
  }

  .features-container {
    padding: 0 6rem;
  }

  .footer-container {
    padding: 0 6rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .navbar-container {
    padding: 0 8rem;
  }

  .hero {
    padding: 10rem 0 8rem;
  }

  .hero-container {
    padding: 0 8rem;
  }

  .stats-container {
    padding: 0 8rem;
  }

  .features-container {
    padding: 0 8rem;
  }

  .footer-container {
    padding: 0 8rem;
  }
}

/* ========================================
   TRANSFORMATION SECTION (Before/After)
   Dramatic Tension Design
   ======================================== */

.transformation-section {
  padding: 6rem 2rem 2rem;
  background: var(--surface-0);
  position: relative;
  overflow: hidden;
}

.transformation-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

/* ---- Card Base Styles ---- */
.transform-side {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

/* BEFORE Card: Sharp, Aggressive, Chaotic */
.transform-side.before {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.06), rgba(0, 0, 0, 0.4));
  border: 2px solid rgba(239, 68, 68, 0.25);
  border-radius: 2px; /* Sharp corners = tension */
  animation: pulse-danger 3s ease-in-out infinite;
}

/* AFTER Card: Soft, Premium, Ordered */
.transform-side.after {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(0, 0, 0, 0.3));
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px; /* Soft corners = comfort */
  animation: glow-success 4s ease-in-out infinite;
}

@keyframes pulse-danger {
  0%, 100% {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 0 rgba(239, 68, 68, 0);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 30px -10px rgba(239, 68, 68, 0.3);
  }
}

@keyframes glow-success {
  0%, 100% {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 40px -15px rgba(16, 185, 129, 0.2);
  }
  50% {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 60px -10px rgba(16, 185, 129, 0.35);
  }
}

/* ---- Labels ---- */
.transform-label {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.before .transform-label {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error-light);
  border-radius: 2px;
  border-left: 3px solid var(--error);
}

.after .transform-label {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-light);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ---- Visual Container ---- */
.transform-visual {
  height: 200px;
  position: relative;
  margin-bottom: 1.5rem;
}

/* ========== CHAOS ELEMENTS (Before) ========== */

/* Receipts scattered */
.chaos-receipt {
  position: absolute;
  width: 70px;
  height: 85px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Courier New', monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: chaos-float 4s ease-in-out infinite;
}

.chaos-receipt .receipt-text {
  font-size: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.chaos-receipt .receipt-value {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.chaos-receipt.r1 {
  top: 5%;
  left: 5%;
  --r: -18deg;
  transform: rotate(var(--r));
  animation-delay: 0s;
  z-index: 3;
}

.chaos-receipt.r2 {
  top: 25%;
  left: 35%;
  --r: 14deg;
  transform: rotate(var(--r));
  animation-delay: 0.5s;
  z-index: 2;
}

.chaos-receipt.r3 {
  top: 45%;
  left: 15%;
  --r: -6deg;
  transform: rotate(var(--r));
  animation-delay: 1s;
  z-index: 1;
  opacity: 0.6;
}

@keyframes chaos-float {
  0%, 100% {
    transform: rotate(var(--r)) translate(0, 0);
  }
  25% {
    transform: rotate(calc(var(--r) - 2deg)) translate(-3px, 2px);
  }
  75% {
    transform: rotate(calc(var(--r) + 2deg)) translate(3px, -2px);
  }
}

/* Error alerts stacked */
.chaos-alert {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--error-light);
  animation: alert-shake 0.5s ease-in-out infinite;
}

.chaos-alert svg {
  width: 12px;
  height: 12px;
  stroke: var(--error);
  flex-shrink: 0;
}

.chaos-alert.a1 {
  top: 8%;
  right: 5%;
  animation-delay: 0s;
}

.chaos-alert.a2 {
  top: 25%;
  right: 12%;
  opacity: 0.7;
  animation-delay: 0.15s;
}

@keyframes alert-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Negative balance */
.chaos-balance {
  position: absolute;
  bottom: 18%;
  right: 8%;
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  color: var(--error);
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  animation: balance-pulse 1.5s ease-in-out infinite;
}

@keyframes balance-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

/* Floating question marks */
.chaos-question {
  position: absolute;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(239, 68, 68, 0.15);
  animation: question-float 3s ease-in-out infinite;
  user-select: none;
}

.chaos-question.q1 {
  bottom: 5%;
  left: 55%;
  animation-delay: 0s;
}

.chaos-question.q2 {
  bottom: 35%;
  left: 70%;
  font-size: 1.8rem;
  animation-delay: 0.7s;
}

.chaos-question.q3 {
  bottom: 50%;
  left: 58%;
  font-size: 1.2rem;
  opacity: 0.5;
  animation-delay: 1.4s;
}

@keyframes question-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-8px) rotate(5deg); opacity: 0.3; }
}

/* ========== ORDER ELEMENTS (After) ========== */

/* Dashboard KPIs */
.order-dashboard {
  position: absolute;
  top: 8%;
  left: 0;
  display: flex;
  gap: 0.75rem;
}

.order-kpi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface-2);
  border-radius: 10px;
  border-left: 3px solid;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.order-kpi.green {
  border-color: var(--success);
}

.order-kpi.blue {
  border-color: var(--info);
}


.order-kpi .kpi-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.order-kpi.green .kpi-icon {
  color: var(--success);
}

.order-kpi.green .kpi-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--success);
}

.order-kpi.blue .kpi-icon {
  color: var(--info);
}

.order-kpi .kpi-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  width: auto;
  height: auto;
}

/* Success notification */
.order-success {
  position: absolute;
  top: 25%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success-light);
  animation: success-glow 2s ease-in-out infinite;
}

.order-success svg {
  width: 16px;
  height: 16px;
  stroke: var(--success);
}

@keyframes success-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 20px -5px rgba(16, 185, 129, 0.4); }
}

/* Chart with draw animation */
.order-chart {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  height: 70px;
}

.order-chart svg {
  width: 100%;
  height: 100%;
}

.order-chart .chart-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-chart 2s ease-out forwards;
  animation-delay: 0.5s;
}

.order-chart .chart-area {
  opacity: 0;
  animation: fade-in 1s ease-out forwards;
  animation-delay: 1.5s;
}

@keyframes draw-chart {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* Positive balance */
.order-balance {
  position: absolute;
  bottom: 5%;
  right: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
  opacity: 0;
  animation: balance-appear 0.5s ease-out forwards;
  animation-delay: 2s;
}

@keyframes balance-appear {
  to { opacity: 1; }
}

/* ========== TRANSFORM DIVIDER ========== */

.transform-divider {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.divider-line {
  height: 2px;
  flex: 1;
  max-width: 120px;
}

.divider-line.top {
  background: linear-gradient(to right, transparent, rgba(239, 68, 68, 0.5), rgba(255, 255, 255, 0.6));
}

.divider-line.bottom {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.6), rgba(16, 185, 129, 0.5), transparent);
}

.transform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transform-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
  animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.7)); }
}

/* ========== COPY STYLES ========== */

.transform-copy {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: auto;
}

.before .transform-copy {
  font-family: 'Courier New', monospace;
  color: rgba(248, 113, 113, 0.9);
  font-weight: 500;
}

.after .transform-copy {
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--success-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
  .chaos-receipt,
  .chaos-alert,
  .chaos-balance,
  .chaos-question,
  .transform-side.before,
  .transform-side.after,
  .order-success,
  .transform-icon {
    animation: none;
  }

  .order-chart .chart-line {
    stroke-dashoffset: 0;
    animation: none;
  }

  .order-chart .chart-area,
  .order-balance {
    opacity: 1;
    animation: none;
  }
}

/* ========================================
   CTA STYLES
   ======================================== */

.section-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface-0);
}

.section-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.stats-cta {
  text-align: center;
  margin-top: 2rem;
}

.inline-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.timeline-cta {
  text-align: center;
  margin-top: 3rem;
}

.testimonials-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ========================================
   REALISTIC KPI MOCKUPS
   ======================================== */

.sb-icon {
  width: 16px;
  height: 16px;
  background: var(--surface-4);
  border-radius: 4px;
}

.sidebar-item.active .sb-icon {
  background: var(--primary-dark);
}

.sb-label {
  display: none;
}

.kpi-card-real {
  flex: 1;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem;
  position: relative;
  overflow: hidden;
}

.kpi-card-real::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.kpi-card-real.green-stripe::before { background: var(--success); }
.kpi-card-real.red-stripe::before { background: var(--error); }
.kpi-card-real.blue-stripe::before { background: var(--info); }

.kpi-card-real {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kpi-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.kpi-icon-box.green { background: rgba(16, 185, 129, 0.15); }
.kpi-icon-box.red { background: rgba(239, 68, 68, 0.15); }
.kpi-icon-box.blue { background: rgba(59, 130, 246, 0.15); }

.kpi-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-label-text {
  font-size: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.preview-charts {
  flex: 1;
}

.chart-card-real {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.6rem;
  height: 100%;
}

.chart-header-real {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chart-title-real {
  height: 8px;
  width: 60px;
  background: var(--surface-4);
  border-radius: 4px;
}

.period-selector {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border-radius: 4px;
  padding: 2px;
}

.period-btn {
  padding: 2px 6px;
  font-size: 0.5rem;
  color: var(--text-muted);
  border-radius: 3px;
}

.period-btn.active {
  background: var(--surface-1);
  color: var(--text-primary);
}

.chart-area {
  height: 50px;
}

.chart-area svg {
  width: 100%;
  height: 100%;
}

/* ========================================
   RESPONSIVE FOR NEW ELEMENTS
   ======================================== */

/* Mobile: hide KPIs and stack copy lines */
.order-dashboard {
  display: none;
}

.copy-line {
  display: block;
}

@media (min-width: 768px) {
  .order-dashboard {
    display: flex;
  }

  .copy-line {
    display: inline;
  }
}

@media (min-width: 768px) {
  .transformation-container {
    max-width: 600px;
  }

  .transform-side {
    min-height: 380px;
    padding: 2.5rem;
  }

  .transform-visual {
    height: 200px;
  }

  .chaos-receipt {
    width: 80px;
    height: 95px;
  }

  .chaos-balance {
    font-size: 2rem;
  }

  .transform-divider {
    padding: 2rem 0;
  }

  .divider-line {
    max-width: 150px;
  }

  .sb-label {
    display: block;
    width: 40px;
    height: 6px;
    background: var(--surface-4);
    border-radius: 3px;
  }

  .preview-sidebar {
    width: 80px;
  }
}

@media (min-width: 1024px) {
  .transformation-container {
    max-width: 650px;
  }

  .transform-side {
    min-height: 400px;
  }

  .divider-line {
    max-width: 180px;
  }

  .preview-sidebar {
    width: 100px;
  }

  .kpi-value-text {
    font-size: 0.8rem;
  }

  .kpi-label-text {
    font-size: 0.55rem;
  }
}
