@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Base Colors */
  --background: 240 20% 98%;
  --foreground: 220 50% 12%;
  --card: 0 0% 100%;
  --card-foreground: 220 50% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 50% 12%;
  --primary: 217 44% 20%;
  --primary-foreground: 0 0% 100%;
  --secondary: 240 10% 92%;
  --secondary-foreground: 220 50% 12%;
  --muted: 240 10% 92%;
  --muted-foreground: 220 20% 45%;
  --accent: 234 70% 65%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 240 10% 88%;
  --input: 240 10% 88%;
  --ring: 230 80% 60%;
  --radius: 1rem;

  /* Custom Habitto tokens */
  --habitto-navy: 220 50% 8%;
  --habitto-navy-light: 220 45% 12%;
  --habitto-navy-medium: 220 45% 18%;
  --habitto-cyan: 186 100% 50%;
  --habitto-cyan-soft: 186 80% 70%;
  --habitto-purple: 250 70% 60%;
  --habitto-orange: 25 95% 55%;
  --habitto-green: 150 70% 50%;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(240 20% 96%) 0%, hsl(240 15% 92%) 50%, hsl(250 20% 95%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(240 10% 98%) 100%);
  --gradient-glow: radial-gradient(ellipse at center, hsl(217 44% 20% / 0.15) 0%, transparent 70%);
  --gradient-button: linear-gradient(135deg, hsl(217 44% 20%) 0%, hsl(217 55% 13%) 100%);

  /* Shadows */
  --shadow-glow: 0 0 60px hsl(230 80% 60% / 0.2);
  --shadow-card: 0 8px 32px hsl(220 50% 5% / 0.1);
  --shadow-button: 0 4px 20px hsl(230 80% 60% / 0.3);
}

.dark {
  --background: 220 50% 8%;
  --foreground: 210 40% 98%;
  --card: 220 45% 12%;
  --card-foreground: 210 40% 98%;
  --popover: 220 45% 12%;
  --popover-foreground: 210 40% 98%;
  --primary: 230 80% 65%;
  --primary-foreground: 220 50% 8%;
  --secondary: 220 45% 18%;
  --secondary-foreground: 210 40% 98%;
  --muted: 220 40% 20%;
  --muted-foreground: 215 25% 65%;
  --accent: 234 70% 70%;
  --accent-foreground: 220 50% 8%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 220 40% 20%;
  --input: 220 40% 20%;
  --ring: 230 80% 65%;

  --gradient-hero: linear-gradient(135deg, hsl(220 50% 8%) 0%, hsl(220 45% 15%) 50%, hsl(240 50% 12%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(220 45% 14%) 0%, hsl(220 45% 10%) 100%);
  --gradient-glow: radial-gradient(ellipse at center, hsl(230 80% 65% / 0.15) 0%, transparent 70%);
  --gradient-button: linear-gradient(135deg, hsl(230 80% 72%) 0%, hsl(234 70% 65%) 100%);

  --shadow-glow: 0 0 60px hsl(230 80% 65% / 0.3);
  --shadow-card: 0 8px 32px hsl(220 50% 5% / 0.5);
  --shadow-button: 0 4px 20px hsl(230 80% 65% / 0.4);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Utility Classes */
.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-card {
  background: var(--gradient-card);
}

.gradient-glow {
  background: var(--gradient-glow);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  transition: all 0.3s;
}

.navbar.scrolled {
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.1);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--foreground));
}

.nav-links a.active {
  color: hsl(var(--primary));
  font-weight: 600;
}

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

.theme-toggle {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--gradient-button);
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 30px hsl(var(--primary) / 0.6);
}

.btn-primary:active {
  transform: scale(0.98);
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: hsl(var(--foreground));
  border-radius: 2px;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-top: 80px;
}

.stars-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: hsl(var(--foreground) / 0.3);
  animation: twinkle 3s ease-in-out infinite;
  display: none; /* Hidden by default (light mode) */
}

/* Show stars only in dark mode */
.dark .star {
  display: block;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-glow-1 {
  top: 25%;
  left: 25%;
  width: 384px;
  height: 384px;
  background: var(--gradient-glow);
}

.hero-glow-2 {
  bottom: 25%;
  right: 25%;
  width: 320px;
  height: 320px;
  background: var(--gradient-glow);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border));
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--habitto-green));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-badge-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.app-store-badge {
  height: 48px;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.8;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.hero-avatars {
  display: flex;
  gap: -0.5rem;
}

.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: hsl(var(--secondary));
  border: 2px solid hsl(var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-left: -0.5rem;
}

.hero-avatar:first-child {
  margin-left: 0;
}

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

.hero-stat-title {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.hero-stat-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mascot-container {
  position: relative;
}

.hero-mascot-glow {
  position: absolute;
  inset: 0;
  background: hsl(var(--primary) / 0.2);
  border-radius: 50%;
  filter: blur(80px);
  transform: scale(0.75);
}

.hero-mascot {
  position: relative;
  width: 192px;
  height: auto;
  filter: drop-shadow(0 25px 50px hsl(var(--foreground) / 0.25));
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-mascot {
    width: 256px;
  }
}

@media (min-width: 1024px) {
  .hero-mascot {
    width: 288px;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-badge-float {
  position: absolute;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
  animation: float-slow 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-badge-float-1 {
  top: -1rem;
  right: -1rem;
  animation-delay: 0.5s;
}

.hero-badge-float-2 {
  bottom: -1rem;
  left: -1rem;
  animation-delay: 1s;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-badge-float-emoji {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-float-text {
  font-weight: 600;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-float-text-green {
  color: hsl(var(--habitto-green));
  font-weight: 600;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 128px;
  background: linear-gradient(to top, hsl(var(--background)), transparent);
}

/* Features Section */
.features {
  position: relative;
  padding: 6rem 1.5rem;
}

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

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

.features-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .features-title {
    font-size: 2.25rem;
  }
}

.features-description {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

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

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--primary) / 0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: hsl(var(--primary) / 0.05);
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s;
}

.feature-card:hover .feature-icon {
  background: hsl(var(--primary) / 0.2);
}

.feature-icon-emoji {
  font-size: 1.5rem;
}

.feature-icon-svg {
  width: 24px;
  height: 24px;
  color: hsl(var(--primary));
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.feature-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Pricing Section */
.pricing {
  padding: 6rem 1.5rem;
}

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

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

.pricing-crown {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.pricing-crown svg {
  width: 48px;
  height: 48px;
  color: #fbbf24;
}

.pricing-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .pricing-title {
    font-size: 2.25rem;
  }
}

.pricing-description {
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.5);
}

.pricing-card.popular {
  border-color: hsl(var(--primary));
  background: hsl(var(--card));
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.1);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-card-price-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.pricing-card-price-period {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.pricing-comparison {
  background: hsl(var(--card));
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}

.pricing-comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.pricing-comparison-header-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.pricing-comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

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

.pricing-comparison-label {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.pricing-comparison-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pricing-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-check svg {
  width: 20px;
  height: 20px;
  color: hsl(var(--accent));
}

.pricing-cross {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-cross svg {
  width: 20px;
  height: 20px;
  color: hsl(var(--muted-foreground));
}

.pricing-text {
  color: hsl(var(--muted-foreground));
}

/* How It Works Section */
.how-it-works {
  position: relative;
  padding: 6rem 1.5rem;
}

.how-it-works-container {
  max-width: 1024px;
  margin: 0 auto;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-it-works-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .how-it-works-title {
    font-size: 2.25rem;
  }
}

.how-it-works-description {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.how-it-works-step {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
}

.how-it-works-step-icon {
  flex-shrink: 0;
}

.how-it-works-step-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-it-works-step-emoji {
  font-size: 1.875rem;
}

.how-it-works-step-content {
  flex: 1;
}

.how-it-works-step-number {
  color: hsl(var(--primary) / 0.5);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.how-it-works-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.how-it-works-step-description {
  color: hsl(var(--muted-foreground));
}

/* CTA Section */
.cta {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.cta-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--gradient-glow);
  filter: blur(80px);
}

.cta-content {
  position: relative;
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  border-radius: 22%;
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.1);
  animation: float 4s ease-in-out infinite;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Footer */
.footer {
  position: relative;
  padding: 3rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

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

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
}

.footer-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 640px) {
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: hsl(var(--foreground));
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: hsl(var(--secondary) / 0.3);
  transition: background 0.2s;
}

.footer-email:hover {
  background: hsl(var(--secondary) / 0.5);
}

.footer-email-icon {
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.footer-email-label {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-email-text {
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-email-copy {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-email-copy:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.footer-email-copy:active {
  transform: scale(0.95);
}

.footer-email-copy.copied {
  color: hsl(var(--habitto-green));
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Scroll FAB */
.scroll-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-button);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 40;
}

.scroll-fab.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-fab:hover {
  transform: scale(1.1);
}

.scroll-fab svg {
  width: 24px;
  height: 24px;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
.section {
  padding: 6rem 1.5rem;
}

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

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

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

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal.active {
  display: flex;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--foreground) / 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-modal-content {
  position: relative;
  background: hsl(var(--card));
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  z-index: 1;
}

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

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-close:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.contact-modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.contact-modal-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.contact-form-input,
.contact-form-textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.contact-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-submit {
  margin-top: 0.5rem;
  width: 100%;
}

@media (max-width: 640px) {
  .contact-modal-content {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  
  .contact-modal-title {
    font-size: 1.5rem;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
}
