/* ==========================================================================
   Design System & Modern Resets
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-cream: #F2F3F4;
  --text-slate: #1C1C1C;
  --text-muted: #6B6B6B;
  --terracotta: #FFBF00;
  --terracotta-soft: rgba(255, 191, 0, 0.08);
  --terracotta-glow: rgba(255, 191, 0, 0.35);
  --sage: #A8A8A8;
  --sage-soft: rgba(168, 168, 168, 0.08);
  --gold: #FFBF00;
  --gold-soft: rgba(255, 191, 0, 0.08);
  --purple: #3D3D3D;
  --purple-soft: rgba(61, 61, 61, 0.08);
  --white: #FFFFFF;
  
  /* Glassmorphism & Borders */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --border-light: rgba(28, 28, 28, 0.08);
  
  /* Typography */
  --font-title: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(28, 28, 28, 0.03);
  --shadow-md: 0 12px 32px rgba(28, 28, 28, 0.05);
  --shadow-lg: 0 24px 60px rgba(28, 28, 28, 0.08);
  --shadow-glow: 0 10px 30px rgba(255, 191, 0, 0.25);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

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

html {
  scroll-behavior: initial; /* Lenis handles smooth scrolling */
  overflow-x: hidden;
  background-color: var(--bg-cream);
  color: var(--text-slate);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  background-color: var(--bg-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-slate);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Custom Glow Cursor (Desktop only)
   ========================================================================== */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--terracotta);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s;
}

.custom-cursor-glow {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.08s ease-out, width 0.2s, height 0.2s, background-color 0.2s;
}

body.hover-interactive .custom-cursor {
  width: 12px;
  height: 12px;
  background-color: var(--sage);
}

body.hover-interactive .custom-cursor-glow {
  width: 48px;
  height: 48px;
  border-color: var(--sage);
  background-color: rgba(168, 168, 168, 0.05);
}

/* ==========================================================================
   Buttons & Tags
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.pill-btn {
  border-radius: var(--radius-full);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

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

.btn-primary:hover {
  background-color: #FFBF00;
  transform: translateY(-2px);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-slate);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: rgba(28, 28, 28, 0.03);
  border-color: var(--text-slate);
  transform: translateY(-2px);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--terracotta);
  box-shadow: var(--shadow-sm);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--terracotta);
  display: inline-block;
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-slate);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.text-accent {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover {
  color: var(--text-slate);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--terracotta);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-slate);
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 120px;
  overflow: hidden;
  z-index: 1;
  background-color: var(--bg-cream);
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 0, 0.10) 0%, rgba(242, 243, 244, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.hero-stats-mini {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatars {
  display: flex;
  align-items: center;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-cream);
  background-size: cover;
  background-position: center;
  margin-left: -12px;
  box-shadow: var(--shadow-sm);
  background-color: #D0D0D0;
}

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

.avatar-img.img-1 { background-image: radial-gradient(circle at center, #ffaaaa, #FFBF00); }
.avatar-img.img-2 { background-image: radial-gradient(circle at center, #ffe88a, #FFBF00); }
.avatar-img.img-3 { background-image: radial-gradient(circle at center, #f0f0f0, #A8A8A8); }

.hero-stats-text {
  font-size: 0.95rem;
}

/* 3D Smartphone Scene */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 600px;
  perspective: 1200px;
}

.device-scene {
  position: relative;
  width: 320px;
  height: 640px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Smartphone Mockup CSS Frame */
.smartphone-frame {
  width: 300px;
  height: 600px;
  background-color: #1C1C1C;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 
    0px 25px 50px -12px rgba(28, 28, 28, 0.25),
    0px 0px 0px 4px #3D3D3D,
    inset 0 0 3px 2px rgba(255,255,255,0.2);
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.smartphone-notch {
  width: 120px;
  height: 25px;
  background-color: #1C1C1C;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 100;
}

.smartphone-screen {
  width: 100%;
  height: 100%;
  background-color: #F2F3F4;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 2px solid #000;
}

/* App Interface Mock Styling */
.app-interface {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 70px 16px;
  background-color: #F2F3F4;
  font-size: 14px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 10px;
}

.app-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1.5px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.profile-buster {
  background-image: url('assets/pet-profile.jpg');
  position: relative;
}

.profile-buster::after {
  content: '🐾';
  font-size: 10px;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.app-welcome {
  display: flex;
  flex-direction: column;
}

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

.app-pet-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-slate);
}

.app-notification-btn {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-card-summary {
  background-color: var(--white);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.summary-score-circle {
  position: relative;
  width: 50px;
  height: 50px;
}

.circular-chart {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.5;
}

.circle {
  fill: none;
  stroke: var(--sage);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-slate);
}

.summary-info h4 {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.summary-info p {
  font-size: 0.75rem;
  line-height: 1.3;
}

.app-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.app-grid-item {
  background-color: var(--white);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.app-grid-item.item-active {
  border: 1px solid var(--sage-soft);
  background-color: rgba(168, 168, 168, 0.03);
}

.app-item-icon {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.app-item-label {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.app-item-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.app-card-upcoming {
  background: linear-gradient(135deg, var(--text-slate) 0%, #3D3D3D 100%);
  border-radius: 20px;
  padding: 16px;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-top: auto;
}

.app-card-upcoming h5 {
  color: var(--white);
  font-size: 0.8rem;
}

.card-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 8px;
}

.visit-detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visit-vet-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.doc-sarah {
  background-image: url('assets/doctor-avatar.jpg');
  position: relative;
}

.doc-sarah::after {
  content: '🩺';
  font-size: 8px;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.visit-vet-info {
  flex-grow: 1;
}

.visit-vet-info p {
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
}

.visit-badge {
  background-color: rgba(255,255,255,0.15);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.app-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 10px;
  z-index: 10;
}

.app-nav-item {
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: var(--transition-fast);
}

.app-nav-item.active {
  color: var(--terracotta);
}

/* Floating Ambient Badges style with custom keyframe floats */
.floating-badge {
  position: absolute;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 5;
  transform-style: preserve-3d;
  will-change: transform;
  animation: float-ambient 5s ease-in-out infinite alternate;
}

@keyframes float-ambient {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-terracotta { background-color: var(--terracotta-soft); color: var(--terracotta); }
.icon-sage { background-color: var(--sage-soft); color: var(--sage); }
.icon-gold { background-color: var(--gold-soft); color: var(--gold); }
.icon-purple { background-color: var(--purple-soft); color: var(--purple); }

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

.badge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-slate);
  white-space: nowrap;
}

/* Badge placements & custom animations for varied speeds */
.badge-top-right {
  top: 80px;
  right: -50px;
  animation-duration: 4s;
  animation-delay: 0.2s;
}

.badge-middle-left {
  top: 220px;
  left: -70px;
  animation-duration: 5s;
  animation-delay: 0.8s;
}

.badge-bottom-right {
  bottom: 120px;
  right: -60px;
  animation-duration: 4.5s;
  animation-delay: 0.5s;
}

.badge-bottom-left {
  bottom: 60px;
  left: -50px;
  animation-duration: 5.5s;
  animation-delay: 1.2s;
}

/* Wave separator */
.wave-separator {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

.wave-separator svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-separator .shape-fill {
  fill: var(--white);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  position: relative;
  background-color: #F2F3F4; /* soft sage panel */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
  overflow: hidden;
  z-index: 2;
}

.section-glow-left {
  position: absolute;
  top: 20%;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 168, 168, 0.08) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 70px auto;
}

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

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-top: 16px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.tilt-card-wrapper {
  perspective: 1000px;
}

.tilt-card {
  height: 100%;
  background-color: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.1s ease, box-shadow var(--transition-fast);
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: var(--shadow-lg);
  background-color: var(--white);
}

.border-terracotta:hover { border-color: rgba(255, 191, 0, 0.3); }
.border-sage:hover { border-color: rgba(168, 168, 168, 0.3); }
.border-gold:hover { border-color: rgba(255, 191, 0, 0.3); }
.border-purple:hover { border-color: rgba(61, 61, 61, 0.3); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transform: translateZ(30px);
}

.bg-terracotta-soft { background-color: var(--terracotta-soft); }
.text-terracotta { color: var(--terracotta); }
.bg-sage-soft { background-color: var(--sage-soft); }
.text-sage { color: var(--sage); }
.bg-gold-soft { background-color: var(--gold-soft); }
.text-gold { color: var(--gold); }
.bg-purple-soft { background-color: var(--purple-soft); }
.text-purple { color: var(--purple); }

.card-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  transform: translateZ(25px);
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  transform: translateZ(15px);
}

.card-graphic {
  width: 100%;
  margin-top: auto;
  border-radius: var(--radius-md);
  padding: 12px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  transform: translateZ(20px);
}

.tilt-card:hover .card-graphic {
  background-color: var(--bg-cream);
}

/* Micro Graphics inside Cards */
.activity-graph-mini {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 50px;
  width: 100%;
  padding-top: 5px;
}

.activity-graph-mini .bar {
  width: 12%;
  background-color: var(--terracotta);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
  transition: height 0.3s;
}

.activity-graph-mini .bar:hover {
  opacity: 1;
}

.vet-badge-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage);
}

.vet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sage);
  display: inline-block;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 168, 168, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(168, 168, 168, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 168, 168, 0); }
}

.map-tracker-mini {
  height: 40px;
  width: 100%;
  background-color: rgba(255, 191, 0, 0.05);
  border: 1px dashed rgba(255, 191, 0, 0.4);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.map-route {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--gold);
  opacity: 0.5;
}

.map-dog-marker {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  font-size: 14px;
}

.diet-scale-mini {
  background-color: var(--border-light);
  height: 8px;
  border-radius: 4px;
  position: relative;
  margin-top: 15px;
  margin-bottom: 25px;
}

.scale-fill {
  background-color: var(--purple);
  height: 100%;
  border-radius: 4px;
}

.scale-label {
  position: absolute;
  top: 14px;
  left: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Scroll Walkthrough (How it Works)
   ========================================================================== */
.how-it-works-section {
  position: relative;
  background-color: rgba(255, 191, 0, 0.08); /* soft brand-red panel */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
  z-index: 3;
}

.section-glow-right {
  position: absolute;
  top: 10%;
  right: -200px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 191, 0, 0.06) 0%, rgba(242, 243, 244, 0) 70%);
  pointer-events: none;
}

.walkthrough-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  position: relative;
  align-items: start;
}

.walkthrough-sticky-visual {
  position: sticky;
  top: 120px;
  height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10;
}

.phone-mockup-container {
  width: 290px;
  height: 580px;
  position: relative;
}

#walkthrough-screen {
  background-color: var(--white);
}

/* Screen Contents */
.walkthrough-screen-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px 20px 70px 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #F2F3F4;
}

.walkthrough-screen-content.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.walkthrough-screen-content.prev {
  opacity: 0;
  transform: translateX(-100%);
}

.screen-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.screen-header h4 {
  font-size: 0.95rem;
  color: var(--text-slate);
}

/* Walkthrough Step 1 Screen */
.pet-onboarding-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  margin-bottom: 16px;
}

.pet-photo-frame {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.pet-onboarding-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.pet-breed {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pet-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.pet-tag {
  background-color: var(--bg-cream);
  color: var(--terracotta);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.screen-footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--white);
  padding: 12px;
  border-radius: 16px;
}

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

.checkbox-item.checked {
  color: var(--sage);
}

/* Walkthrough Step 2 Screen */
.map-container-mock {
  height: 180px;
  background-color: #EBEBEB;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.map-graphic-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.map-path-line {
  position: absolute;
  top: 40%;
  left: 20%;
  width: 60%;
  height: 40%;
  border: 3px dashed var(--sage);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.home-base-marker {
  position: absolute;
  top: 35%;
  left: 20%;
  background-color: var(--text-slate);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pet-live-marker {
  position: absolute;
  top: 60%;
  left: 65%;
  background-color: var(--terracotta);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transform-origin: center;
  animation: marker-bounce 2s infinite ease-in-out;
}

@keyframes marker-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.map-distance {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.activity-metric-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-bold {
  font-weight: 700;
  color: var(--text-slate);
}

.progress-bar-container {
  height: 6px;
  background-color: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
}

/* Walkthrough Step 3 Screen */
.video-call-interface {
  position: relative;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #1C1C1C;
  margin-bottom: 16px;
}

.vet-video {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.vet-name-tag {
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.pet-video-thumbnail {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 50px;
  height: 65px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1.5px solid var(--white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.chat-bubble-mock {
  background-color: var(--white);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  position: relative;
}

.chat-bubble-mock::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  border-width: 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent var(--white);
}

.chat-text {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-slate);
  font-style: italic;
}

/* Walkthrough Step 4 Screen */
.sitter-list-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sitter-card-mock {
  background-color: var(--white);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.sitter-avatar-mock {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.sitter-jessica {
  background-image: radial-gradient(circle at center, #f0f0f0, #A8A8A8); /* vector/CSS profile color */
  position: relative;
}

.sitter-jessica::after {
  content: '🙋‍♀️';
  font-size: 8px;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.sitter-details-mock h5 {
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.sitter-rating {
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
}

.sitter-price {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--sage);
}

.booking-calendar-mock {
  background-color: var(--white);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  margin-bottom: 16px;
}

.calendar-header-mock {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-slate);
}

.calendar-days-mock {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
}

.calendar-days-mock span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.calendar-days-mock span.selected {
  background-color: var(--terracotta);
  color: var(--white);
  font-weight: 700;
}

/* Narrative list */
.walkthrough-steps-container {
  height: 580px; /* matches phone mockup height */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 0;
}

.walkthrough-steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  will-change: transform;
}

.walkthrough-step-card {
  padding: 30px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth), border-color 0.5s;
  opacity: 0.25;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.walkthrough-step-card.active {
  opacity: 1;
  border-color: rgba(255, 191, 0, 0.3);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 16px;
}

.step-heading {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.step-body {
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   Social Proof & Review Section
   ========================================================================== */
.stats-reviews-section {
  padding: 120px 0;
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.stats-counters-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 120px;
}

.stat-counter-card {
  background-color: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast);
}

.stat-counter-card:hover {
  transform: translateY(-5px);
}

.counter-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--terracotta);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.counter-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-slate);
}

/* Testimonial Carousel styles */
.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-carousel-wrapper {
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testimonial-card {
  min-width: 100%;
  padding: 50px;
  background-color: var(--bg-cream);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
}

.quote-icon {
  font-family: var(--font-title);
  font-size: 6rem;
  color: var(--terracotta);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 30px;
  line-height: 1;
}

.testimonial-text {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--text-slate);
  font-weight: 500;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.avatar-user-1 { background-image: radial-gradient(circle at center, #ffaaaa, #FFBF00); }
.avatar-user-2 { background-image: radial-gradient(circle at center, #ffe88a, #FFBF00); }
.avatar-user-3 { background-image: radial-gradient(circle at center, #f0f0f0, #A8A8A8); }

.author-meta h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

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

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.carousel-btn {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-slate);
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--text-slate);
  color: var(--white);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--terracotta);
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.cta-banner-section {
  position: relative;
  background-color: var(--bg-cream);
  padding: 80px 0 120px 0;
  overflow: hidden;
  z-index: 6;
}

.cta-glow-right {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 28, 28, 0.04) 0%, rgba(242, 243, 244, 0) 70%);
  pointer-events: none;
}

.cta-glow-left {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 0, 0.08) 0%, rgba(242, 243, 244, 0) 70%);
  pointer-events: none;
}

.cta-box-wrapper {
  background: linear-gradient(135deg, var(--text-slate) 0%, #1C1C1C 100%);
  border-radius: var(--radius-xl);
  padding: 60px 80px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 60px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-box-wrapper::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 191, 0, 0.10);
  border-radius: 50%;
  top: -150px;
  left: -50px;
  filter: blur(50px);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-button {
  background-color: var(--white);
  color: var(--text-slate);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
}

.store-button:hover {
  transform: translateY(-2px);
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.store-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Keep Google Play multicolour SVG paths from inheriting hover color */
.store-button:hover .store-icon path[fill] {
  fill: inherit;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}

.store-main {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
}

.cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.qr-code-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  color: var(--text-slate);
  text-align: center;
  width: 200px;
}

.qr-code-graphic {
  width: 152px;
  height: 152px;
  background-color: #F2F3F4;
  border-radius: var(--radius-md);
  margin: 0 auto 16px auto;
  position: relative;
  padding: 10px;
}

/* Vector QR blocks */
.qr-corner {
  width: 32px;
  height: 32px;
  border: 6px solid var(--text-slate);
  border-radius: 4px;
  position: absolute;
}

.qr-top-left { top: 12px; left: 12px; }
.qr-top-right { top: 12px; right: 12px; }
.qr-bottom-left { bottom: 12px; left: 12px; }

.qr-center-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-image: 
    radial-gradient(circle, var(--text-slate) 40%, transparent 40%),
    radial-gradient(circle, var(--text-slate) 40%, transparent 40%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  opacity: 0.85;
}

.qr-label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: #1C1C1C;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background-color: var(--terracotta);
  transform: translateY(-2px);
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-column h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-links-column a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-newsletter-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-newsletter-column h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-newsletter-column p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}

.newsletter-form {
  display: flex;
  width: 100%;
  gap: 8px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px;
  border-radius: var(--radius-full);
}

.newsletter-form input {
  background: none;
  border: none;
  outline: none;
  padding: 8px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  flex-grow: 1;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 80px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-visual {
    height: 520px;
  }
  
  .device-scene {
    transform: rotateX(0) rotateY(0) !important; /* Flat on tablet/mobile */
  }
  
  .walkthrough-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .walkthrough-sticky-visual {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 20px;
  }
  
  .walkthrough-steps-container {
    height: auto;
    overflow: visible;
  }
  
  .walkthrough-steps-list {
    padding: 0;
    transform: none !important;
  }
  
  .walkthrough-step-card {
    padding: 24px;
    opacity: 1 !important;
  }
  
  .cta-box-wrapper {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
    text-align: center;
  }
  
  .cta-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mob menu collapse logic */
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .stats-counters-container {
    grid-template-columns: 1fr;
  }
  
  .custom-cursor,
  .custom-cursor-glow {
    display: none; /* Disable cursor on mobile */
  }
}

@media (max-width: 480px) {
  .hero-visual {
    display: none; /* Hide device in hero for super small viewports */
  }
  
  .hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-card {
    padding: 24px;
  }
}

/* ==========================================================================
   Dog & Cat Dynamic switcher and Floating SVGs
   ========================================================================== */
.app-profile-switcher {
  display: flex;
  gap: 4px;
  background-color: rgba(28, 28, 28, 0.05);
  padding: 3px;
  border-radius: var(--radius-full);
}

.switch-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.switch-btn:hover {
  transform: scale(1.1);
}

.switch-btn.active {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.profile-whiskers {
  background-image: url('assets/cat-profile.jpg') !important;
  position: relative;
}

.profile-whiskers::after {
  content: '🐱';
  font-size: 10px;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.floating-svg {
  position: absolute;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
  animation: float-ambient 6s ease-in-out infinite alternate;
}

.svg-bone {
  width: 70px;
  height: 70px;
  top: 15%;
  left: 5%;
  color: var(--terracotta);
  transform: rotate(20deg);
  animation-duration: 5s;
}

.svg-fish {
  width: 60px;
  height: 60px;
  top: 25%;
  right: 6%;
  color: var(--sage);
  transform: rotate(-15deg);
  animation-duration: 6s;
  animation-delay: 0.5s;
}

.svg-paw {
  width: 50px;
  height: 50px;
  top: 70%;
  right: 12%;
  color: var(--gold);
  transform: rotate(10deg);
  animation-duration: 5.5s;
  animation-delay: 0.8s;
}

/* ==========================================================================
   Ecosystem Section (Community, Shop, Lost & Found)
   ========================================================================== */
.ecosystem-section {
  padding: 120px 0;
  background-color: var(--bg-cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 60px;
  width: 100%;
}

.ecosystem-left-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ecosystem-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s;
}

.ecosystem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-header-mini {
  margin-bottom: 20px;
}

.widget-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Feed Post */
.feed-post {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

.post-caption {
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-visual-frame {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-actions {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
}

.post-action-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-slate);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.post-action-btn i {
  width: 16px;
  height: 16px;
}

.post-action-btn:hover {
  color: var(--terracotta);
}

.post-action-btn.active-heart i {
  fill: var(--terracotta);
  color: var(--terracotta);
}

/* Shop Layout */
.shop-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.shop-product-item {
  background-color: var(--bg-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.product-img-wrapper {
  height: 120px;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 5px;
}

.product-rating {
  font-size: 0.75rem;
  color: var(--text-slate);
}

.product-rating span {
  color: var(--text-muted);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.product-price {
  font-weight: 700;
  color: var(--text-slate);
  font-size: 1rem;
}

.btn-add-cart {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--text-slate);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-cart:hover {
  background-color: var(--terracotta);
  transform: scale(1.1);
}

/* Radar Alert Column */
.radar-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Map Widget – Lost & Found */
.map-widget-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Animated lost-pin bounce */
.map-pin-lost {
  animation: pin-bounce 2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes pin-bounce {
  0%, 100% { transform: translate(110px, 95px) translateY(0); }
  50%       { transform: translate(110px, 95px) translateY(-6px); }
}

/* Sighting pin gentle pulse */
.map-pin-sighting {
  animation: pin-pulse-scale 2.5s ease-in-out infinite alternate;
}

@keyframes pin-pulse-scale {
  0%   { opacity: 0.75; }
  100% { opacity: 1; }
}

/* Pulse ring on lost pin */
.pin-pulse-ring {
  animation: pin-ring-expand 2s ease-out infinite;
}

@keyframes pin-ring-expand {
  0%   { r: 14; opacity: 0.5; }
  100% { r: 26; opacity: 0; }
}

/* Map Legend */
.map-legend {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-slate);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background-color: #FFBF00; }
.dot-green  { background-color: #A8A8A8; }
.dot-orange { background-color: #FFBF00; }

/* Lost Broadcast Card */
.lost-broadcast-alert {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alert-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #FFBF00;
  border-radius: 50%;
  animation: alert-pulse-glow 1.5s infinite alternate;
}

.alert-type {
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFBF00;
  letter-spacing: 0.05em;
}

@keyframes alert-pulse-glow {
  0% { opacity: 0.3; box-shadow: 0 0 0 0 rgba(255, 191, 0, 0.4); }
  100% { opacity: 1; box-shadow: 0 0 0 6px rgba(255, 191, 0, 0.1); }
}

.alert-pet-card {
  display: flex;
  gap: 15px;
  background-color: var(--bg-cream);
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.alert-pet-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.alert-pet-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.alert-seen {
  font-size: 0.75rem;
  color: var(--text-slate);
  line-height: 1.4;
  margin-bottom: 4px;
}

.alert-reward {
  font-size: 0.75rem;
  color: var(--terracotta);
  font-weight: 700;
}

.alert-coverage-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coverage-bar-wrapper {
  width: 100%;
  height: 6px;
  background-color: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.coverage-fill {
  height: 100%;
  background-color: var(--terracotta);
  border-radius: var(--radius-full);
}

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

/* Tablet & Mobile Media Queries for Ecosystem */
@media (max-width: 1024px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
