/* Custom CSS Variables - PetNestr Style Contract */
:root {
  --color-primary: #2563ff;
  --color-primary-hover: #1a4ce6;
  --color-primary-light: #f0f5ff;
  
  --color-bg-canvas: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;

  --color-text-title: #0a2540;
  --color-text-body: #475569;
  --color-text-muted: #64748b;
  
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-stripe: 0 50px 100px -20px rgba(50, 50, 93, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.08), inset 0 -2px 6px rgba(10, 37, 64, 0.03);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-canvas);
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-title);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-weight: 300; /* Signature Stripe editorial light weight */
  letter-spacing: -0.03em;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text-title);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-body);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-smooth);
}

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

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

/* Dropdown Menu (Dual Login) */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow-down {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--color-text-body);
  border-bottom: 2px solid var(--color-text-body);
  transform: rotate(45deg);
  margin-left: 2px;
  transition: var(--transition-smooth);
}

.dropdown.active .arrow-down {
  transform: rotate(-135deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background-color: var(--color-primary-light);
}

.dropdown-item strong {
  color: var(--color-text-title);
  font-size: 14px;
  font-weight: 600;
}

.dropdown-item span {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 9999px; /* Rounded pill style */
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 255, 0.2);
}

.btn-secondary {
  background-color: var(--color-bg-subtle);
  color: var(--color-text-title);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

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

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(-45deg, #f0f5ff 0%, #e0ebff 50%, #ffffff 100%);
  transform: skewY(-6deg);
  transform-origin: top left;
  height: 105%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

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

.badge-row {
  margin-bottom: -8px;
}

.badge {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-body);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  width: 100%;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.stars {
  color: #ffb800;
  letter-spacing: 2px;
  font-size: 16px;
}

.trust-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Floating Card Graphics (Stripe Mockup Vibe) */
.hero-graphic {
  position: relative;
  height: 480px;
  width: 100%;
}

.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-stripe);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: scale(1.02) !important;
}

.card-passport {
  width: 280px;
  top: 40px;
  left: 20px;
  z-index: 3;
}

.card-habit {
  width: 260px;
  bottom: 60px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-provider {
  width: 250px;
  top: 140px;
  right: 80px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Inside Graphic Card Elements */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
}

.card-sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

.passport-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 13px;
}

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

.status {
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.status-success {
  background-color: #ecfdf5;
  color: #10b981;
}

.progress-bar-container {
  width: 140px;
  height: 6px;
  background-color: var(--color-border);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 3px;
}

.provider-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--color-border-subtle);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.star-rating {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
}

.reviews-count {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Animations */
.float-anim {
  animation: float 6s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 1.5s;
}

.delay-2 {
  animation-delay: 3s;
}

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

/* Features Grid Section */
.features-section {
  padding: 100px 24px;
  background-color: var(--color-bg-subtle);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-body);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card-text {
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* Showcase Section */
.showcase-section {
  padding: 100px 24px;
}

.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase-image {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  height: 520px;
  background-color: var(--color-text-title);
  border: 10px solid var(--color-text-title);
  border-radius: 36px;
  box-shadow: var(--shadow-stripe);
  overflow: hidden;
}

.phone-screen {
  background-color: #ffffff;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 24px 16px 12px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-logo {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
}

.app-status {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
}

.app-content-mock {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-health-score {
  background-color: var(--color-bg-subtle);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--color-border-subtle);
}

.score-label {
  font-size: 12px;
  color: var(--color-text-muted);
  display: block;
}

.score-value {
  font-size: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

.mock-list-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  font-weight: 500;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullets-list li {
  font-size: 15px;
  position: relative;
  padding-left: 24px;
}

.bullets-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Partners Dark Banner Section */
.partners-section {
  background-color: var(--color-text-title);
  padding: 100px 24px;
  position: relative;
}

.partners-container {
  max-width: 900px;
  margin: 0 auto;
}

.partners-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.text-white {
  color: #ffffff;
}

.text-white-muted {
  color: #94a3b8;
}

.partners-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.perk-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.perk-item strong {
  color: #ffffff;
  font-size: 16px;
}

/* Combined CTA Section */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.cta-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-column h3 {
  font-size: 20px;
  font-weight: 600;
}

.cta-column p {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 280px;
}

.divider-left {
  border-left: 1px solid var(--color-border);
  padding-left: 48px;
}

/* Footer styling */
.footer {
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  padding: 64px 24px 24px 24px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-title);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-weight: normal;
}

.footer-links {
  display: flex;
  gap: 64px;
}

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

.links-column h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.links-column a {
  text-decoration: none;
  color: var(--color-text-body);
  transition: var(--transition-smooth);
}

.links-column a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

/* Mobile Media Queries */
@media (max-width: 900px) {
  .nav-menu {
    display: none; /* Collapsed under mobile menu trigger */
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-graphic {
    display: none; /* Hide complex cards on small viewports for neat layout */
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .showcase-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .showcase-image {
    order: 2;
  }
  
  .showcase-content {
    order: 1;
    align-items: center;
    text-align: center;
  }
  
  .partners-perks {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .cta-buttons {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .divider-left {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 32px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }
}
