/* ============================================
   HABITAT FINANCIAL - AWARD-WINNING REDESIGN
   Design System: "The Score"
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES - DESIGN TOKENS
   ============================================ */
:root {
  /* Core Palette - Refined Purple/Orange */
  --violet-deep: #5B3E96;
  --violet-light: #8B7EC8;
  --coral-vivid: #FF5E3A;
  --coral-soft: #FFB5A0;
  
  /* Neutrals */
  --ink: #1A1625;
  --paper: #FAF8FF;
  --mist: #E8E4F0;
  
  /* Functional */
  --success: #2DD4A7;
  --glow: rgba(255, 94, 58, 0.15);
  
  /* Typography */
  --font-display: 'Clash Display', -apple-system, sans-serif;
  --font-body: 'Satoshi', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.125vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-smooth);
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2vw + 0.25rem, 1.75rem);
  font-weight: 500;
}

p {
  margin-bottom: var(--space-md);
  font-size: clamp(16px, 1.125vw, 18px);
}

.font-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.header-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  transition: all 0.4s var(--ease-smooth);
}

.header-container {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: var(--space-sm) var(--space-lg);
  transition: all 0.4s var(--ease-smooth);
}

.header-container.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.nav-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.brand-logo img {
  height: 36px;
  width: auto;
}

.nav-menu-items {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s var(--ease-smooth);
  text-decoration: none;
}

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

/* Mobile Menu */
.menu-button {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px 4px;
  z-index: 1001;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.menu-button-line {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
  display: block;
}

.menu-button[aria-expanded="true"] .menu-button-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-button[aria-expanded="true"] .menu-button-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-button[aria-expanded="true"] .menu-button-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-smooth);
  z-index: 1000;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.-overlay.is-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
  border-radius: 8px;
  transition: all 0.2s var(--ease-smooth);
  text-decoration: none;
}

.mobile-menu-link:hover {
  background: var(--mist);
  color: var(--violet-deep);
}

/* Style mobile menu buttons - Book A Call */
.mobile-menu-link[href^="tel:"] {
  background: var(--coral-vivid);
  color: white;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-sm);
  font-weight: 600;
}

.mobile-menu-link[href^="tel:"]:hover {
  background: #ff4d2a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
}

/* Login button in mobile menu */
.mobile-menu-link[href*="app.habitat"] {
  background: var(--violet-deep);
  color: white;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
}

.mobile-menu-link[href*="app.habitat"]:hover {
  background: var(--violet-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 62, 150, 0.3);
}

.navbar-button-wrapper {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: var(--coral-vivid);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s var(--ease-smooth);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.button-primary .text-block {
  position: relative;
  z-index: 1;
}

.button-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button-primary:hover::before {
  width: 300px;
  height: 300px;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -5px var(--glow);
}

.button-primary.is-purple {
  background-color: var(--violet-deep);
}

.button-primary.is-purple:hover {
  background-color: var(--violet-light);
}

/* Magnetic button effect */
.button-magnetic {
  transition: transform 0.2s var(--ease-smooth);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper) 0%, #F5F1FF 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-headline {
  font-size: clamp(3rem, 6vw + 1rem, 6rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-headline-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: revealWord 0.8s var(--ease-smooth) forwards;
}

.hero-headline-word:nth-child(1) { animation-delay: 0.1s; }
.hero-headline-word:nth-child(2) { animation-delay: 0.2s; }
.hero-headline-word:nth-child(3) { animation-delay: 0.3s; }
.hero-headline-word:nth-child(4) { animation-delay: 0.4s; }

@keyframes revealWord {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--ink);
  opacity: 0.8;
  line-height: 1.6;
  max-width: 600px;
}

.hero-cta {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   ROTATING WORD ANIMATION
   ============================================ */
.flip-word-container {
  display: inline;
  position: relative;
}

.flip-word {
  display: inline;
  position: relative;
}

/* Styled rotating word - matches body text with underline */
.flip-word-text {
  display: inline-block;
  position: relative;
  color: var(--violet-deep);
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  border-bottom: 3px solid var(--coral-vivid);
  padding-bottom: 2px;
}

/* Character flip animation */
.flip-char {
  display: inline-block;
  position: relative;
  perspective: 300px;
  transform-style: preserve-3d;
}

.flip-char-inner {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.flip-char.flipping .flip-char-inner {
  animation: charFlip 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes charFlip {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  45% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  55% {
    transform: rotateX(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

.hero-visual {
  position: relative;
  height: 500px;
}

.waveform-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.waveform-svg {
  width: 100%;
  height: 100%;
}

.waveform-bar {
  fill: var(--coral-vivid);
  opacity: 0.6;
  animation: waveformPulse 2s ease-in-out infinite;
}

.waveform-bar:nth-child(2n) {
  animation-delay: 0.2s;
  fill: var(--violet-light);
}

.waveform-bar:nth-child(3n) {
  animation-delay: 0.4s;
}

@keyframes waveformPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 0.8; }
}

.royalty-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: 12px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}

.royalty-counter-value {
  font-weight: 600;
  color: var(--coral-vivid);
  font-size: 18px;
}

/* Hero background shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--violet-light);
  top: -200px;
  right: -200px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--coral-soft);
  bottom: -150px;
  left: -150px;
}

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */
.social-proof-section {
  padding: var(--space-xl) 0;
  background: white;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}

.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 14px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--violet-deep);
}

.stat-label {
  color: var(--ink);
  opacity: 0.6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logos-marquee {
  overflow: hidden;
  padding: var(--space-lg) 0;
  position: relative;
  width: 100%;
}

.logos-track {
  display: flex;
  width: max-content;
  gap: var(--space-2xl);
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.logos-marquee:hover .logos-track {
  animation-play-state: paused;
}

.logos-inner {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-item {
  flex-shrink: 0;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

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

/* ============================================
   EDITORIAL SECTION (Problem/Solution)
   ============================================ */
.editorial-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--paper) 0%, #F5F1FF 100%);
  position: relative;
  overflow: hidden;
}

.editorial-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80%;
  background: linear-gradient(180deg, transparent 0%, var(--violet-light) 50%, transparent 100%);
  opacity: 0.3;
}

.editorial-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
  z-index: 1;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.editorial-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.editorial-column-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--mist);
}

.editorial-column-header h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.editorial-column-header .material-symbols-rounded {
  font-size: 28px;
  color: var(--ink);
  opacity: 0.6;
}

.editorial-column-header.new-header {
  border-bottom-color: var(--violet-light);
}

.editorial-column-header.new-header h3 {
  color: var(--violet-deep);
}

.editorial-column-header.new-header .material-symbols-rounded {
  color: var(--violet-deep);
  opacity: 1;
}

.editorial-item {
  padding: var(--space-xl);
  border-radius: 20px;
  transition: all 0.4s var(--ease-smooth);
  display: flex;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.editorial-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  pointer-events: none;
}

.editorial-item.old-way {
  background: white;
  border: 2px solid var(--mist);
  position: relative;
}

.editorial-item.old-way::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.editorial-item.old-way:hover::before {
  opacity: 1;
}

.editorial-item.old-way:hover {
  transform: translateX(-4px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.1);
}

.editorial-item.new-way {
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet-light) 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px -4px rgba(91, 62, 150, 0.3);
}

.editorial-item.new-way::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.editorial-item.new-way:hover::after {
  opacity: 1;
}

.editorial-item.new-way:hover {
  transform: translateX(4px) translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(91, 62, 150, 0.4);
}

.editorial-item-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  z-index: 1;
}

.editorial-item.old-way .editorial-item-icon {
  background: var(--mist);
  color: var(--ink);
  opacity: 0.7;
}

.editorial-item.new-way .editorial-item-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.editorial-item-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.editorial-item-title {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.editorial-item.old-way .editorial-item-title {
  color: var(--ink);
  opacity: 0.8;
}

.editorial-item.new-way .editorial-item-title {
  color: white;
}

.editorial-item-text {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
}

.editorial-item.old-way .editorial-item-text {
  color: var(--ink);
  opacity: 0.7;
}

.editorial-item.new-way .editorial-item-text {
  color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   THREE WAYS SECTION
   ============================================ */
.three-ways-section {
  padding: var(--space-3xl) 0;
  background: white;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  text-align: center;
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--ink);
  opacity: 0.8;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
}

.three-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.way-card {
  background: var(--paper);
  border: 2px solid var(--mist);
  border-radius: 24px;
  padding: var(--space-xl);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.way-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, var(--glow) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

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

.way-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px -10px rgba(91, 62, 150, 0.2);
  border-color: var(--violet-light);
}

.way-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.way-card-badge {
  background: var(--violet-deep);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.way-card-icon {
  width: 56px;
  height: 56px;
  background: var(--coral-vivid);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  position: relative;
  z-index: 1;
}

.way-card-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.way-card-description {
  color: var(--ink);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.way-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.way-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 15px;
  color: var(--ink);
  opacity: 0.9;
}

.way-card-features .material-symbols-rounded {
  font-size: 18px;
  color: var(--coral-vivid);
  font-variation-settings: 'FILL' 1;
}

/* ============================================
   API/DEVELOPER SECTION
   ============================================ */
.api-section {
  padding: var(--space-3xl) 0;
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}

.api-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.api-content h2 {
  color: white;
  margin-bottom: var(--space-lg);
}

.api-content h3 {
  color: white;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  margin-top: 0;
}

.api-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-bottom: var(--space-xl);
}

.code-block {
  background: #0d0a14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
  position: relative;
}

.code-line {
  color: #a78bfa;
}

.code-keyword {
  color: #f472b6;
}

.code-string {
  color: #34d399;
}

.code-comment {
  color: #6b7280;
  font-style: italic;
}

.api-cta {
  margin-top: var(--space-lg);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
  padding: var(--space-3xl) 0;
  background: var(--paper);
}

.pricing-heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 2px solid var(--mist);
  border-radius: 24px;
  padding: var(--space-xl);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
}

.pricing-card.featured {
  border: 3px solid var(--violet-deep);
  background: rgba(91, 62, 150, 0.05);
  transform: scale(1.05);
  box-shadow: 0 20px 60px -10px rgba(91, 62, 150, 0.25);
  position: relative;
}

/* Alternative option 2: Light coral background - uncomment to use instead
.pricing-card.featured {
  border: 3px solid var(--coral-vivid);
  background: rgba(255, 94, 58, 0.05);
  transform: scale(1.05);
  box-shadow: 0 20px 60px -10px rgba(255, 94, 58, 0.25);
  position: relative;
}
*/

/* Alternative option 3: White with top border accent - uncomment to use instead
.pricing-card.featured {
  border: 2px solid var(--mist);
  border-top: 4px solid var(--violet-deep);
  background: white;
  transform: scale(1.05);
  box-shadow: 0 20px 60px -10px rgba(91, 62, 150, 0.25);
  position: relative;
}
*/

/* Non-featured cards have no hover effects - flat design */

.pricing-card.featured:hover {
  transform: scale(1.08);
  box-shadow: 0 25px 70px -10px rgba(91, 62, 150, 0.35);
}

.pricing-header {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.pricing-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.pricing-card.featured .pricing-name {
  color: var(--violet-deep);
  font-weight: 700;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.pricing-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--violet-deep);
}

.pricing-card.featured .pricing-amount {
  background: linear-gradient(135deg, var(--violet-deep), var(--coral-vivid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-period {
  color: var(--ink);
  opacity: 0.6;
  font-size: 16px;
}

.pricing-features {
  list-style: none;
  margin: var(--space-lg) 0;
  position: relative;
  z-index: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 16px;
}

.pricing-feature-icon {
  width: 20px;
  height: 20px;
  background: var(--coral-vivid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.pricing-card.featured .pricing-cta {
  background: linear-gradient(135deg, var(--violet-deep), var(--coral-vivid));
  box-shadow: 0 8px 24px -4px rgba(91, 62, 150, 0.4);
}

.pricing-card.featured .pricing-cta:hover {
  box-shadow: 0 12px 32px -4px rgba(91, 62, 150, 0.5);
  transform: translateY(-2px);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonial-section {
  padding: var(--space-3xl) 0;
  background: white;
}

.testimonial-heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--paper);
  border-radius: 24px;
  padding: var(--space-xl);
  position: relative;
  transition: all 0.4s var(--ease-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  font-size: 48px;
  line-height: 1;
  color: var(--violet-light);
  opacity: 0.3;
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-display);
}

.testimonial-text {
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  margin: var(--space-lg) 0;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--violet-light);
  object-fit: cover;
  position: relative;
}

.testimonial-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--coral-soft);
  opacity: 0.5;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 16px;
}

.testimonial-role {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.6;
}

/* ============================================
   CTA FINALE SECTION
   ============================================ */
.cta-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--coral-vivid) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
  color: white;
}

.cta-text {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.cta-button {
  background: white;
  color: var(--violet-deep);
  font-size: 18px;
  padding: 18px 36px;
}

.cta-button:hover {
  background: var(--paper);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
}

/* Floating particles */
.cta-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
  padding: var(--space-3xl) 0 var(--space-lg);
  background: var(--ink);
  color: white;
  width: 100%;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.footer-widget-wrapper {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  align-items: start;
}

.footer-logo-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo-wrapper p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.social-icon-wrapper {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.social-icon-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-smooth);
  color: rgba(255, 255, 255, 0.7);
}

.social-icon-link:hover {
  background: var(--coral-vivid);
  color: white;
  transform: translateY(-4px);
}

.social-icon {
  width: 20px;
  height: 20px;
}

.footer-menu-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  width: 100%;
}

.footer-menu-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-menu-title {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 16px;
  color: white;
}

.footer-menu-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  list-style: none;
}

.footer-menu-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.3s var(--ease-smooth);
  line-height: 1.6;
}

.footer-menu-text:hover {
  color: white;
}

.location-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.copyright-wrapper {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.copyright-text-box {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .hero-visual {
    height: 400px;
  }
  
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  
  .three-ways-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .api-container {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-widget-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .header-section {
    padding: var(--space-xs) var(--space-sm);
  }
  
  .header-container {
    padding: var(--space-xs) var(--space-md);
  }
  
  .nav-bar-wrapper {
    gap: var(--space-sm);
  }
  
  .nav-menu-items {
    display: none;
  }
  
  .navbar-button-wrapper {
    gap: var(--space-xs);
  }
  
  .header-button {
    display: none;
  }
  
  .menu-button {
    display: flex;
  }
  
  .brand-logo img {
    height: 28px;
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }
  
  .three-ways-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .logos-track {
    gap: var(--space-lg);
  }
  
  .footer-widget-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-menu-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-bar {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: var(--space-xs) var(--space-sm);
  }
  
  .nav-bar-wrapper {
    gap: var(--space-xs);
  }
  
  .brand-logo img {
    height: 24px;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .button-primary {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .mobile-menu {
    width: 280px;
    padding: var(--space-xl) var(--space-md);
  }
  
  .mobile-menu-link {
    font-size: 16px;
    padding: var(--space-sm) var(--space-md);
  }
  
  .mobile-menu-link[href^="tel:"],
  .mobile-menu-link[href*="app.habitat"] {
    padding: var(--space-sm) var(--space-md);
    font-size: 15px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral-vivid);
  outline-offset: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--violet-deep);
  color: white;
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}
