:root {
  /* Core Colors */
  --bg-main: #ffffff;
  --bg-secondary: #fbfbfd;
  --text-main: #1d1d1f;
  --text-muted: #86868b;
  --border-light: #e5e5ea;
  
  /* Brand Theme Color */
  --theme-blue: #0071e3;
  --theme-blue-hover: #005ce6;
  
  /* Vibrant Accent (Amber-Red) */
  --accent-amber: #FF3B30;
  
  /* Font Stacks */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-stack: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .price-title, .price-amount {
  font-family: var(--font-display);
}

code, pre, .step-number, .save-badge, .pricing-section .badge {
  font-family: var(--font-mono);
}

a { text-decoration: none; color: inherit; }

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

nav.scrolled { border-bottom: 1px solid var(--border-light); }
.logo { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--theme-blue); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.nav-links .login-link { color: var(--text-main); }
.nav-links .nav-btn { background: var(--text-main); color: #fff; padding: 10px 18px; border-radius: 24px; transition: all 0.2s ease;}
.nav-links .nav-btn:hover { background: var(--theme-blue); color: #fff; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--theme-blue); }

#navbar .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#navbar .nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

/* Hero Section */
.hero { text-align: center; padding: 120px 20px 80px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 1;}
.hero h1 { font-size: 5.5rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.03; margin: 0 0 24px 0; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; }

.btn-primary, .btn-secondary, .btn-outline { padding: 14px 28px; border-radius: 30px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-align: center; display: inline-block; font-family: var(--font-stack); }
.btn-primary { background: var(--theme-blue); color: #fff; border: 1px solid var(--theme-blue); }
.btn-primary:hover { background: var(--text-main); border-color: var(--text-main); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

.btn-secondary { background: transparent; color: var(--theme-blue); }
.btn-secondary:hover { color: var(--text-main); }

.btn-outline { border: 1px solid var(--border-light); color: var(--text-main); }
.btn-outline:hover { border-color: var(--theme-blue); color: var(--theme-blue); }

/* AMBER-RED SPARKLES */
.hero-sparkle { position: absolute; font-size: 4rem; color: var(--accent-amber); opacity: 0.85; user-select: none; z-index: -1; text-shadow: 0 0 24px rgba(255, 59, 48, 0.4); }
.hero-sparkle.top-left { top: 30px; left: 20px; transform: rotate(-15deg); }
.hero-sparkle.bottom-right { bottom: 10px; right: 40px; transform: rotate(15deg); }

/* --- Interactive Showcase Layout --- */
.interactive-showcase { padding: 60px 20px 120px; max-width: 1100px; margin: 0 auto; }
.showcase-container { display: flex; gap: 48px; align-items: center; }

/* Sidebar Steps */
.showcase-sidebar { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 16px; padding: 24px; border-radius: 20px; cursor: pointer; border: 1px solid transparent; transition: all 0.3s ease; opacity: 0.5; }
.step-item:hover { opacity: 0.8; background: var(--bg-secondary); }
.step-item.active { opacity: 1; background: #ffffff; border: 1px solid var(--border-light); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.step-number { width: 32px; height: 32px; border-radius: 50%; background: var(--border-light); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; flex-shrink: 0; transition: all 0.3s ease; }
.step-item.active .step-number { background: var(--theme-blue); color: #ffffff; }

.step-text h4 { margin: 0 0 8px 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-main); }
.step-text p { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* Display Window & Images */
.showcase-display { flex: 1.5; position: relative; }
.mockup-window { background: #ffffff; border: 1px solid var(--border-light); border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,0.08); overflow: hidden; aspect-ratio: 16 / 10; display: flex; flex-direction: column; }
.mockup-header { padding: 12px 16px; border-bottom: 1px solid var(--border-light); background: #fbfbfb; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.mockup-body-wrapper { position: relative; flex: 1; background: #ffffff; }

.mockup-ui { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease; transform: translateY(10px); background: #ffffff; }
.mockup-ui.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.showcase-img { width: 100%; height: 100%; object-fit: contain; object-position: top left; display: block; }

/* Bento Grid Features */
.features-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; max-width: 800px; margin: 0 auto; }
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.bento-card { background: var(--bg-secondary); padding: 40px; border-radius: 24px; }
.bento-card.highlight { background: var(--theme-blue); color: #fff; grid-column: span 2; box-shadow: 0 10px 30px rgba(0, 113, 227, 0.15); }
.bento-card h3 { font-size: 1.55rem; margin: 0 0 16px 0; font-weight: 600; letter-spacing: -0.02em; }
.bento-card.highlight h3 { color: #ffffff; }
.bento-card p { font-size: 1.05rem; line-height: 1.6; margin: 0; opacity: 0.8; }
@media (max-width: 768px) { .bento-card.highlight { grid-column: span 1; } }

/* =========================================================
   PRICING SECTION (Exact Match with pricing.html)
========================================================= */
.pricing-section {
  padding: 80px 20px 120px;
  background: var(--bg-secondary);
}

.pricing-header-text {
  text-align: center;
  margin: 0 auto 44px;
  max-width: 800px;
}

.pricing-header-text h2 {
  font-size: 3rem;
  margin: 0 0 16px 0;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.pricing-header-text p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0;
  font-weight: 400;
}

.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.toggle-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.toggle-label.active {
  color: var(--text-main);
}

.save-badge {
  background: var(--accent-amber);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#leonardo-custom-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.4s ease;
  cursor: pointer;
  margin: 0 10px;
  -webkit-tap-highlight-color: transparent;
}

#leonardo-custom-toggle.annual-active {
  background-color: var(--theme-blue);
}

#leonardo-toggle-circle {
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#leonardo-custom-toggle.annual-active #leonardo-toggle-circle {
  transform: translateX(22px);
}

.pricing-wrapper {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 16px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  flex-wrap: wrap;
}

.pricing-section .card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pricing-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-section .card.popular {
  border: 2px solid var(--theme-blue);
  box-shadow: 0 16px 40px rgba(0, 113, 227, 0.12);
}

.pricing-section .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-amber);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.35);
}

.price-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-main);
}

.price-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 24px 0;
  line-height: 1.5;
  min-height: 46px;
}

.price-amount {
  font-size: 3.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.price-amount span {
  font-family: var(--font-stack);
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: normal;
}

.old-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
  letter-spacing: normal;
  opacity: 0.7;
}

.price-subtext {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 20px;
  margin: 0 0 24px 0;
}

.pricing-btn-outline,
.pricing-btn-primary,
.pricing-btn-dark {
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin-bottom: 28px;
  transition: all 0.2s ease;
}

.pricing-btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.pricing-btn-outline:hover {
  border-color: var(--text-main);
  background: var(--bg-secondary);
}

.pricing-btn-primary {
  background: var(--theme-blue);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.25);
}
.pricing-btn-primary:hover {
  background: var(--theme-blue-hover);
  transform: translateY(-1px);
}

.pricing-btn-dark {
  background: var(--text-main);
  color: #ffffff;
  border: none;
}
.pricing-btn-dark:hover {
  background: #000000;
  transform: translateY(-1px);
}

.pricing-section .feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-section .feature-list li {
  position: relative;
  padding: 0 0 0 26px;
  border-bottom: none;
  margin-bottom: 14px;
  color: var(--text-main);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

.pricing-section .feature-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--theme-blue);
  font-size: 13px;
  font-weight: 800;
}

/* Footer */
.footer { text-align: center; padding: 60px 20px; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 0.9rem; }
.footer-links { margin-top: 16px; display: flex; justify-content: center; gap: 24px; }
.footer-links a:hover { color: var(--theme-blue); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   MOBILE RESPONSIVENESS OVERHAUL
========================================================= */
@media (max-width: 850px) {
  .pricing-header-text h2 { font-size: 2.2rem; }
  .pricing-wrapper { gap: 36px; flex-direction: column; align-items: center; }
  .pricing-section .card { max-width: 400px; }
}

@media (max-width: 768px) {
  /* Nav */
  nav { padding: 16px 20px; }
  .mobile-menu-btn { display: block; }
  .nav-links { display: none; }
  
  /* Hero */
  .hero { padding: 100px 16px 60px; }
  .hero h1 { font-size: 2.8rem; letter-spacing: -0.03em; }
  .hero p { font-size: 1.05rem; margin-bottom: 32px; padding: 0 8px; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; gap: 12px; }
  .hero-ctas a { width: 100%; margin: 0; }
  .hero-sparkle { font-size: 2rem; }
  
  /* Interactive Showcase */
  .interactive-showcase { padding: 40px 16px 80px; overflow: hidden; }
  .showcase-container { flex-direction: column; gap: 24px; width: 100%; }
  
  .showcase-sidebar { 
    display: flex;
    flex-direction: row; 
    overflow-x: auto; 
    padding-bottom: 16px; 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    width: 100%;
  }
  .showcase-sidebar::-webkit-scrollbar { display: none; } 
  
  .step-item { 
    flex: 0 0 85%; 
    scroll-snap-align: start; 
    padding: 16px; 
    gap: 12px; 
  }
  .step-text h4 { font-size: 1.1rem; }
  .mockup-window { aspect-ratio: 4/3; height: auto; min-height: 250px; }
  
  /* Features / Bento Grid */
  .features-section { padding: 60px 16px; }
  .section-title h2 { font-size: 2.2rem; }
  .bento-grid { gap: 16px; }
  .bento-card { padding: 24px; }
  
  /* Pricing */
  .pricing-section { padding: 60px 16px 80px; }
  .billing-toggle-container { transform: scale(0.95); margin-bottom: 40px; }
  .price-amount { font-size: 3rem; }
  
  /* Footer */
  .footer { padding: 40px 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; justify-content: center; }
}

/* =========================================
   COOKIE BANNER (Sleek Bottom-Right Layout)
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  transform: none;
  width: calc(100% - 48px);
  max-width: 380px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 113, 227, 0.12); 
  border: 1px solid var(--border-color, #e5e5ea);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
  animation: slideUpRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-content h4 { 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: var(--text-main, #111827); 
  margin-bottom: 6px; 
  letter-spacing: -0.02em; 
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-content h4::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--leonardo-blue, #0071e3);
}

.cookie-content p { 
  font-size: 0.85rem; 
  color: var(--text-muted, #6b7280); 
  line-height: 1.5; 
}

.cookie-actions { 
  display: flex; 
  gap: 10px; 
  width: 100%; 
}

.cookie-actions button { 
  flex: 1; 
  padding: 10px; 
  font-size: 0.85rem; 
  border-radius: 10px; 
  cursor: pointer; 
  font-weight: 600; 
  font-family: var(--font-stack);
  transition: all 0.2s ease; 
}

.cookie-actions .btn-outline { 
  background: #f9fafb; 
  border: 1px solid var(--border-color, #e5e5ea); 
  color: var(--text-main, #111827); 
}
.cookie-actions .btn-outline:hover { 
  background: #f3f4f6; 
  border-color: #d1d5db; 
}

.cookie-actions .btn-submit { 
  background: var(--leonardo-blue, #0071e3); 
  border: none; 
  color: #ffffff; 
}
.cookie-actions .btn-submit:hover { 
  background: var(--leonardo-blue-hover, #005ce6); 
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: 100%;
    padding: 20px;
  }
}