/* ============================================
   PetMind AI - Landing Page Styles
   ============================================ */

/* CSS Variables - Easy to customize */
:root {
  --color-primary: #fb923c;
  --color-primary-dark: #ea580c;
  --color-secondary: #ec4899;
  --color-text: #111827;
  --color-text-light: #6b7280;
  --color-text-muted: #9ca3af;
  --color-background: #fef7f0;
  --color-background-alt: #fff5eb;
  --color-white: #ffffff;
  --color-border: #fed7aa;
  --color-border-light: #fef3c7;
  --color-success: #22c55e;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --border-radius: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-alt) 50%, var(--color-background) 100%);
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--color-primary-dark), #db2777);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: rgba(251, 146, 60, 0.1);
  border-color: var(--color-primary);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.btn svg {
  flex-shrink: 0;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 0.75rem;
  color: var(--color-white);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--color-primary-dark), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav-link {
  position: relative;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-primary-dark);
  background: rgba(251, 146, 60, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  background: rgba(251, 146, 60, 0.15);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

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

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.avatar-group {
  display: flex;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -0.75rem;
  overflow: hidden;
}

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

.avatar img {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-stats p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.hero-stats strong {
  color: var(--color-text);
}

/* Phone Mockup - iPhone Style */
.hero-phone {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(251, 146, 60, 0.3), rgba(236, 72, 153, 0.3));
  filter: blur(60px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  width: 290px;
  z-index: 1;
}

/* Side buttons */
.phone-btn-left-1 { position: absolute; left: -3px; top: 96px; width: 3px; height: 32px; background: #374151; border-radius: 2px 0 0 2px; }
.phone-btn-left-2 { position: absolute; left: -3px; top: 144px; width: 3px; height: 48px; background: #374151; border-radius: 2px 0 0 2px; }
.phone-btn-left-3 { position: absolute; left: -3px; top: 208px; width: 3px; height: 48px; background: #374151; border-radius: 2px 0 0 2px; }
.phone-btn-right { position: absolute; right: -3px; top: 128px; width: 3px; height: 64px; background: #374151; border-radius: 0 2px 2px 0; }

.phone-body {
  background: linear-gradient(180deg, #374151, #1f2937, #374151);
  border-radius: 3rem;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #4b5563;
}

.phone-bezel {
  background: #000;
  border-radius: 2.5rem;
  padding: 4px;
}

.phone-screen {
  background: var(--color-white);
  border-radius: 2.3rem;
  overflow: hidden;
}

/* Dynamic Island */
.dynamic-island {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 112px;
  height: 32px;
  margin: 12px auto 4px;
  background: #000;
  border-radius: 9999px;
}

.island-camera {
  width: 12px;
  height: 12px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 50%;
}

.island-dot {
  width: 8px;
  height: 8px;
  background: #374151;
  border-radius: 50%;
}

/* Status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 24px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.status-time { font-weight: 600; }

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-icon {
  width: 16px;
  height: 16px;
}

/* Phone content */
.phone-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

.phone-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(236, 72, 153, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.phone-info {
  flex: 1;
}

.phone-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.phone-info p {
  font-size: 12px;
  color: var(--color-text-muted);
}

.phone-online {
  width: 40px;
  height: 40px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.online-dot {
  width: 12px;
  height: 12px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* Phone Mood Card */
.phone-mood-card {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), var(--color-white), rgba(236, 72, 153, 0.1));
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  margin: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.mood-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mood-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.mood-time {
  font-size: 10px;
  color: var(--color-text-muted);
}

.mood-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mood-emoji {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #facc15, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

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

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

/* Phone Stats */
.phone-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 16px;
}

.stat-item {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.stat-energy .stat-icon { background: rgba(251, 146, 60, 0.15); }
.stat-happy .stat-icon { background: rgba(236, 72, 153, 0.15); }
.stat-stress .stat-icon { background: rgba(34, 197, 94, 0.15); }

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* Phone AI Insight */
.phone-insight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  border-radius: 16px;
  padding: 12px;
  margin: 12px 16px;
  box-shadow: var(--shadow-md);
}

.insight-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-content .insight-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2px;
}

.insight-content .insight-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Phone Bottom Nav */
.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-item .nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-item.active .nav-icon {
  background: var(--color-primary);
}

.nav-item span {
  font-size: 9px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-item.active span {
  color: var(--color-primary);
}

/* Home Indicator */
.home-indicator {
  width: 128px;
  height: 4px;
  background: #d1d5db;
  border-radius: 9999px;
  margin: 8px auto;
}

/* ============================================
   Section Header (shared)
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-header h2 { font-size: 3rem; }
}

.section-header p {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 6rem 0;
}

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

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

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

.feature-card {
  background: var(--color-white);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

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

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(236, 72, 153, 0.15));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ============================================
   Pets Section
   ============================================ */
.pets {
  padding: 6rem 0;
  background: linear-gradient(to right, rgba(251, 146, 60, 0.05), rgba(236, 72, 153, 0.05));
}

.pets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

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

.pet-card {
  background: var(--color-white);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.pet-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
}

.pet-card:hover .pet-emoji img {
  transform: scale(1.1);
}

.pet-emoji {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pet-emoji img {
  width: 3rem;
  height: 3rem;
  transition: transform 0.3s ease;
}

.pet-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pet-accuracy {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-success);
}

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

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

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.pricing-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.pricing-card.popular {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.05), rgba(236, 72, 153, 0.05));
  border: 2px solid var(--color-border);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.price {
  text-align: center;
  margin-bottom: 0.5rem;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.price .period {
  font-size: 1rem;
  color: var(--color-text-light);
}

.plan-description {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.plan-features {
  margin-bottom: 2rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.plan-features .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews {
  padding: 6rem 0;
  background: linear-gradient(to right, rgba(251, 146, 60, 0.05), rgba(236, 72, 153, 0.05));
}

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

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

.review-card {
  background: var(--color-white);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

.stars {
  color: var(--color-primary);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(236, 72, 153, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviewer-avatar img {
  width: 1.75rem;
  height: 1.75rem;
}

.reviewer-name {
  font-weight: 500;
  font-size: 0.9375rem;
}

.reviewer-pet {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.more-reviews {
  display: none;
  margin-top: 1.5rem;
}

.more-reviews.show {
  display: grid;
}

.reviews-more {
  text-align: center;
  margin-top: 2.5rem;
}

.reviews-more .btn svg {
  transition: transform 0.3s ease;
}

.reviews-more .btn.active svg {
  transform: rotate(180deg);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: 6rem 0;
}

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

.cta-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(236, 72, 153, 0.15));
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon img {
  width: 3rem;
  height: 3rem;
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.cta p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

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

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

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 3rem 0;
  background: var(--color-white);
  border-top: 1px solid rgba(251, 146, 60, 0.2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

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

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-primary-dark);
}

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