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

:root {
  --primary-blue: #4A6FA5; /* Less vibrant, slate blue */
  --secondary-green: #4CAF50; /* Softer green */
  --accent-purple: #7E57C2; /* Softer purple */
  --accent-orange: #FF9800;
  --accent-pink: #F06292; /* Softer pink */
  --accent-teal: #4DB6AC; /* Softer teal */
  --accent-yellow: #FFC107; /* Added yellow */
  --light-bg: #F5F7FA; /* Slightly cooler grey */
  --dark-text: #2C3E50; /* Dark blue-grey instead of black */
  --white: #FFFFFF;
  --border-radius: 32px;
  --button-radius: 50px;
}

body {
  font-family: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark-text);
  line-height: 1.5;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  border-radius: 100px;
  max-width: 1000px;
  width: 90%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo img {
  height: 40px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--dark-text);
  font-size: 17px;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary-blue);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 102;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--dark-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Dropdown Menu */
.mobile-menu-dropdown {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-dropdown.active {
  max-height: 500px;
  padding: 20px 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
}

.mobile-menu-item {
  padding: 16px 24px;
  color: var(--dark-text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-item:hover {
  background-color: var(--light-bg);
}

.mobile-menu-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 8px 24px;
}

.mobile-menu-download {
  padding: 12px 24px;
}

.mobile-menu-download img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%);
}

.mobile-menu-download div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mobile-menu-download-small {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 400;
}

.mobile-menu-download-large {
  font-size: 14px;
  font-weight: 600;
}

/* Hero Section */
.hero {
  background-color: var(--white);
  padding: 160px 60px 100px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Prevent overflow from oversized text */
}

.hero-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}

.hero-title {
  font-size: 140px; /* Slightly larger */
  font-weight: 900;
  color: var(--dark-text);
  line-height: 0.9;
  letter-spacing: -6px;
  position: relative;
  z-index: 2; /* Overlays image */
  white-space: nowrap;
  text-shadow: 0 20px 40px rgba(0,0,0,0.05); /* Added shadow for depth */
  background: linear-gradient(to right, #2C3E50, #4A6FA5, #7E57C2, #4A6FA5, #2C3E50);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero-title.left {
  text-align: right;
  margin-right: -100px; /* More overlap */
}

.hero-title.right {
  text-align: left;
  margin-left: -100px; /* More overlap */
}

.hero-image-container {
  position: relative;
  z-index: 1;
  width: 360px; /* Adjust based on image size */
  flex-shrink: 0;
}

.hero-footer {
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .subheadline {
  font-size: 24px;
  color: #666;
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.hero .tagline {
  font-size: 16px;
  color: var(--accent-purple);
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 0;
}

.btn {
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--dark-text);
  color: var(--white);
}

.btn-primary:hover {
  transform: scale(1.05);
  background-color: #333;
}

.btn-secondary {
  background-color: var(--light-bg);
  color: var(--dark-text);
}

.btn-secondary:hover {
  background-color: #E5E5EA;
  transform: scale(1.05);
}

.hero-mockup {
  width: 320px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Section Container */
.section {
  padding: 100px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 64px;
  font-weight: 900;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: -2px;
}

/* Why Caban Section */
.why-caban {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background-color: var(--light-bg);
  padding: 80px 60px;
  border-radius: 48px;
}

.why-card {
  background-color: var(--white);
  padding: 60px;
  border-radius: var(--border-radius);
}

.why-card h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.why-card p {
  font-size: 20px;
  color: #666;
  line-height: 1.6;
}

/* Why Caban Pills */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pill {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
}

.pill-old {
  background-color: #F5F7FA;
  color: #718096;
  border: 1px solid #E2E8F0;
}

.pill-new {
  background-color: #F0FFF4;
  color: #2F855A;
  border: 1px solid #C6F6D5;
  box-shadow: 0 2px 8px rgba(47, 133, 90, 0.08);
}

.why-card.caban-way {
  border: 2px solid #C6F6D5;
  background-color: #FAFFFF;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0;
}

.social-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.social-grid .feature-card {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-grid .feature-icon {
  margin-bottom: 16px;
}

.social-grid .feature-icon img {
  width: 40px !important;
  height: auto;
}

.social-grid .feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.social-grid .feature-card p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

.social-grid .btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
  margin-top: auto;
}

.feature-card {
  background-color: var(--light-bg);
  padding: 50px 40px;
  border-radius: var(--border-radius);
  text-align: left;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: scale(1.02);
}

.feature-icon {
  font-size: 80px;
  margin-bottom: 30px;
  display: inline-block;
  font-weight: 900;
  color: var(--primary-blue);
  opacity: 0.2;
}

.feature-card:nth-child(1) .feature-icon { color: var(--primary-blue); }
.feature-card:nth-child(2) .feature-icon { color: var(--secondary-green); }
.feature-card:nth-child(3) .feature-icon { color: var(--accent-purple); }
.feature-card:nth-child(4) .feature-icon { color: var(--accent-orange); }
.feature-card:nth-child(5) .feature-icon { color: var(--accent-pink); }
.feature-card:nth-child(6) .feature-icon { color: var(--accent-teal); }

.feature-card h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.feature-card p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.feature-card ul {
  font-size: 16px;
  color: #666;
  margin-top: 20px;
  padding-left: 20px;
}

.feature-card li {
  margin: 10px 0;
}

/* Security Section */
.security {
  background-color: var(--dark-text);
  color: var(--white);
  border-radius: 48px;
  padding: 100px 60px;
  text-align: center;
  margin: 40px 0;
}

.security h2 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 32px;
  border: none;
  text-align: left;
}

.security-item h4 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}

.security-item p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

/* Blogs Section */
.blog-container {
  background-color: var(--white);
  padding: 100px 60px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: transparent;
  padding: 0;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: scale(1.02);
}

.blog-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 32px;
  margin-bottom: 24px;
}

.blog-content {
  padding: 10px;
}

.blog-date {
  font-size: 14px;
  color: var(--accent-purple);
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-content h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.blog-content p {
  font-size: 18px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.read-more {
  color: var(--dark-text);
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  border-bottom: 2px solid var(--dark-text);
  padding-bottom: 4px;
}

/* Blog Post Page */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 160px 40px 100px;
}

.blog-post-header {
  margin-bottom: 60px;
  text-align: center;
}

.blog-post h1 {
  font-size: 56px;
  font-weight: 900;
  color: var(--dark-text);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.blog-post-meta {
  font-size: 18px;
  color: #999;
  font-weight: 500;
}

.blog-post-content {
  font-size: 20px;
  line-height: 1.8;
  color: #444;
}

.blog-post-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-text);
  margin-top: 60px;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.blog-post-content p {
  margin-bottom: 24px;
}

.blog-post-content ul {
  margin-bottom: 30px;
  margin-left: 20px;
  list-style-type: disc;
}

.blog-post-content li {
  margin-bottom: 12px;
  padding-left: 10px;
}

.blog-post-content strong {
  color: var(--dark-text);
  font-weight: 700;
}

/* Privacy/Legal Pages */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.legal-container h1 {
  font-size: 48px;
  font-weight: 900;
  color: var(--dark-text);
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.legal-container h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-text);
  margin-top: 60px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 10px;
}

.legal-container h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-text);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-container p, .legal-container li {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
}

.legal-container ul {
  margin-left: 20px;
  margin-bottom: 30px;
  list-style-type: disc;
}

.legal-container li {
  padding-left: 10px;
}

.legal-container strong {
  color: var(--dark-text);
  font-weight: 700;
}

/* Footer */
footer {
  background-color: var(--light-bg);
  color: var(--dark-text);
  padding: 100px 60px 60px;
  border-radius: 48px 48px 0 0;
}

footer .container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 60px;
  margin-bottom: 80px;
}

footer h4 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--dark-text);
}

footer a {
  display: block;
  color: #666;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 500;
}

footer a:hover {
  color: var(--primary-blue);
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--white);
  border-radius: 50%;
  color: var(--dark-text);
  font-weight: 900;
  margin-bottom: 0;
}

.social-icons a:hover {
  background-color: var(--dark-text);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 40px;
  font-size: 16px;
  color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 60px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content { gap: 40px; }
}

@media (max-width: 768px) {
  /* Navigation */
  nav {
    width: 92%;
    padding: 12px 20px;
    top: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    border-radius: 24px;
    justify-content: space-between;
  }

  .logo {
    font-size: 24px;
  }
  
  .logo img {
    height: 32px;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Show mobile dropdown menu */
  .mobile-menu-dropdown {
    display: block;
  }

  /* Hide desktop navigation */
  nav ul {
    display: none;
  }
  
  nav a.btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }

  /* Hero */
  .hero { 
    padding: 120px 20px 60px; /* Reduced top padding */
    min-height: auto;
    text-align: left; /* Left align for better readability */
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: start; /* Align grid items to start */
  }

  .hero h1 {
    font-size: 42px;
    text-align: left; /* Left align */
    margin-bottom: 16px;
  }

  .hero .subheadline { 
    font-size: 18px;
    text-align: left; /* Left align */
    margin-bottom: 30px;
  }
  
  .hero .tagline { 
    text-align: left; /* Left align */
    font-size: 14px;
  }

  .cta-buttons {
    justify-content: flex-start; /* Left align */
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }

  .hero-mockup {
    max-width: 100%;
    height: 350px;
    margin-top: 20px;
  }

  /* Sections */
  .section {
    padding: 60px 20px;
  }

  .section-title { 
    font-size: 36px; 
    margin-bottom: 40px;
  }

  /* Why Caban */
  .why-caban {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    border-radius: 32px;
    gap: 40px;
  }
  
  .why-card {
    padding: 30px;
  }
  
  .why-card h3 { font-size: 24px; }
  .why-card p { font-size: 16px; }

  /* Features */
  .features-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  
  .feature-card {
    padding: 30px 24px;
  }

  /* Security */
  .security {
    padding: 60px 20px;
    margin: 20px 0;
    border-radius: 32px;
  }
  
  .security h2 { font-size: 32px; }
  
  .security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Blog & Legal Pages */
  .blog-post, .legal-container {
    padding: 180px 20px 60px;
  }
  
  .blog-post h1, .legal-container h1 {
    font-size: 32px;
  }
  
  .blog-post-content, .legal-container p, .legal-container li {
    font-size: 17px;
  }
  
  .blog-post-content h2, .legal-container h2 {
    font-size: 24px;
    margin-top: 40px;
  }

  /* Footer */
  footer {
    padding: 60px 20px 40px;
    border-radius: 32px 32px 0 0;
  }
  
  footer .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Beta Signup Form */
  #beta-signup form div {
    flex-direction: column;
  }
  
  #beta-signup input, #beta-signup select, #beta-signup button {
    width: 100%;
    min-width: 0;
  }
  
  #beta-signup h2 { font-size: 36px !important; }
  #beta-signup p { font-size: 18px !important; }
}
/* Custom Select */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  min-width: 180px;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark-text);
  background-color: var(--white);
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.2s;
  height: 100%;
}

.custom-select-trigger:hover {
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.custom-options {
  position: absolute;
  display: block;
  top: 110%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  transform: translateY(-10px);
  transition: all 0.2s;
  overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  padding: 15px 30px;
  font-size: 18px;
  color: var(--dark-text);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-option:hover {
  background-color: var(--light-bg);
}

.custom-option.selected {
  background-color: #F0F7FF;
  color: var(--primary-blue);
  font-weight: 600;
}

.device-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.arrow {
  font-size: 12px;
  margin-left: 10px;
  color: #999;
}

/* Store Buttons in Header */
.nav-store-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--dark-text);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  border: 1px solid transparent;
}

.store-btn:hover {
  transform: translateY(-2px);
  background-color: #000;
  color: var(--white);
}

.store-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Make icons white */
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-btn-small {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 400;
}

.store-btn-large {
  font-size: 14px;
  font-weight: 600;
}

/* Footer Form */
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.footer-input, .footer-textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  background-color: var(--white);
}

.footer-textarea {
  resize: vertical;
  min-height: 80px;
}

.footer-btn {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.footer-btn:hover {
  background-color: #3a5a8a;
}

.contact-info {
  margin-bottom: 16px;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Hero Gallery */
.hero-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  /* Hide scrollbar for cleaner look */
  scrollbar-width: none; /* Firefox */
}

.hero-gallery::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.hero-gallery img {
  height: 500px; /* Adjust based on design preference */
  width: auto;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-gallery img:hover {
  transform: translateY(-10px);
}

/* Adjust hero layout to accommodate gallery */
@media (max-width: 1024px) {
  .hero-gallery img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-gallery img {
    height: 300px;
  }
}

/* Comparison Section Redesign */
.comparison-wrapper {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  align-items: center;
}

@media (min-width: 1024px) {
  .comparison-wrapper {
    gap: 0;
  }
  
  .comparison-card.card-competitor {
    margin-right: -50px;
    padding-right: 120px; /* Increased padding to prevent overlap */
    max-width: 600px; /* Expanded width */
    transform: scale(0.95);
    z-index: 1;
    position: relative;
  }
  
  .card-caban {
    margin-left: -50px;
    z-index: 2;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
}

.comparison-card {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 32px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-competitor {
  background-color: #F3F4F6; /* Light Grey */
  color: #1F2937;
}

.card-caban {
  background-color: #E0F2FE; /* Light Blue */
  color: #1F2937;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.comparison-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.card-competitor .comparison-logo-placeholder {
  background-color: #F43F5E;
  color: white;
}

.card-caban .comparison-logo-placeholder {
  background-color: #FBBF24; /* Amber/Gold */
  color: #0F172A;
}

.comparison-title {
  font-size: 24px;
  font-weight: 800;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-caban .metric-row {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.8;
}

.metric-score {
  font-size: 24px;
  font-weight: 800;
}

.card-competitor .metric-score {
  color: #0F172A;
}

.card-caban .metric-score {
  color: #1F2937;
}

.source-note {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #999;
}

/* Hero Image Showcase */
.gallery-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 40px;
  perspective: 1000px; /* Enable 3D space */
}

.main-image-wrapper {
  position: relative;
  border-radius: 40px;
  box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  transform: translateY(0); /* Removed rotation */
  z-index: 1;
  border: 8px solid #fff; /* Thinner border */
  background-color: white;
  transition: transform 0.5s ease;
  width: fit-content; /* Ensure wrapper hugs the image */
  margin: 0 auto; /* Center it */
}

.main-image-wrapper:hover {
  transform: translateY(-10px); /* Simple lift on hover */
}

.main-image {
  height: 600px;
  width: auto;
  display: block;
  border-radius: 28px;
}
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
  .main-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .main-image {
    height: 300px;
  }
  .thumbnail {
    height: 100px;
  }
}

/* Comparison Text Items */
.comparison-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: left;
}

.comparison-item:last-child {
  border-bottom: none;
}

.comparison-item h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
  color: inherit;
}

.comparison-item p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* Community Showcase - Floating Layout */
.community-scatter {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per line */
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding: 20px;
}

.floating-story {
  position: relative;
  width: 100%;
  background: white;
  padding: 16px 16px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-story:hover {
  z-index: 10;
  transform: translateY(-10px) rotate(0deg) !important;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.story-image-wrapper {
  width: 100%;
  height: 200px; /* Slightly reduced height for 4-col layout */
  position: relative;
  margin-bottom: 15px;
  background-color: #eee;
  border-radius: 16px;
  overflow: visible;
}

.story-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.floating-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  position: absolute;
  bottom: -20px;
  right: -10px;
  left: auto;
  border: 4px solid white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 10;
}

.story-content {
  text-align: center;
  width: 100%;
  padding-top: 10px;
}

.story-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--dark-text);
}

.story-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .community-scatter {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .community-scatter {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .community-scatter {
    grid-template-columns: 1fr;
  }
}

/* Story Form */
.story-form {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}
/* Custom Select */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  min-width: 180px;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark-text);
  background-color: var(--white);
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.2s;
  height: 100%;
}

.custom-select-trigger:hover {
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.custom-options {
  position: absolute;
  display: block;
  top: 110%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  transform: translateY(-10px);
  transition: all 0.2s;
  overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  padding: 15px 30px;
  font-size: 18px;
  color: var(--dark-text);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-option:hover {
  background-color: var(--light-bg);
}

.custom-option.selected {
  background-color: #F0F7FF;
  color: var(--primary-blue);
  font-weight: 600;
}

.device-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.arrow {
  font-size: 12px;
  margin-left: 10px;
  color: #999;
}

.pill-btn-small {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary-blue);
  color: white !important;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  margin-left: 8px;
  transition: background-color 0.2s;
}

.pill-btn-small:hover {
  background-color: #3a5a8a;
}


.pill-btn-small {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary-blue);
  color: white !important;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  margin-left: 8px;
  transition: background-color 0.2s;
}

.pill-btn-small:hover {
  background-color: #3a5a8a;
}
