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

:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --primary-soft: rgba(108, 92, 231, 0.08);
  --accent: #00CEC9;
  --accent-light: #55EFC4;
  --bg: #F7F8FC;
  --bg-dark: #0F0F23;
  --surface: #FFFFFF;
  --text: #2D3436;
  --text-secondary: #636E72;
  --text-muted: #B2BEC3;
  --border: rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 4px 24px rgba(108, 92, 231, 0.08);
  --shadow-lg: 0 12px 48px rgba(108, 92, 231, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.45);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

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

/* ========== Nav ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 248, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--primary-soft);
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--primary);
  color: white;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger svg { display: block; }

/* Language toggle */
.lang-toggle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: none;
  border: 1.5px solid var(--border);
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== Hero ========== */
.hero {
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 16px;
}

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

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-ctas { display: flex; gap: 12px; margin-bottom: 32px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.hero-stats strong { color: var(--text); font-weight: 800; }
.stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 300px;
  background: var(--surface);
  border-radius: 28px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phone-screen { padding: 16px; }

.demo-header {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-dots { margin-left: auto; color: var(--text-muted); }

.demo-pet {
  text-align: center;
  padding: 16px 0;
  background: linear-gradient(135deg, rgba(108,92,231,0.04), rgba(0,206,201,0.04));
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.demo-pet svg { animation: float 3s ease-in-out infinite; }
.demo-name { font-size: 13px; font-weight: 700; margin-top: 8px; color: var(--text-secondary); }

.demo-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 24px;
  margin-bottom: 16px;
}

.demo-chat { display: flex; flex-direction: column; gap: 8px; }

.demo-msg {
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 85%;
}
.demo-msg.bot {
  background: #F0F0F8;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.demo-msg.user {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Floating emojis */
.float-emoji {
  position: absolute;
  font-size: 28px;
  animation: floatEmoji 6s ease-in-out infinite;
  opacity: 0.6;
}
.e1 { top: 10%; right: -10%; animation-delay: 0s; }
.e2 { bottom: 20%; left: -5%; animation-delay: 2s; }
.e3 { top: 30%; left: 5%; animation-delay: 4s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatEmoji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* ========== Features ========== */
.features { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Pets ========== */
.pets-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(108,92,231,0.03) 100%);
}

.pets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pet-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.pet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pet-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-emoji { font-size: 48px; line-height: 1; }

.pet-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.pet-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ========== Pricing ========== */
.pricing { padding: 100px 0; }

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.toggle-btn {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.toggle-btn:first-child { border-radius: 50px 0 0 50px; }
.toggle-btn:nth-child(2) { border-radius: 0 50px 50px 0; border-left: none; }
.toggle-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.toggle-save {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-4 { grid-template-columns: repeat(4, 1fr); }

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.price-card.featured:hover { transform: scale(1.04) translateY(-4px); }

.price-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.price-badge { font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.price-amount { font-size: 42px; font-weight: 900; letter-spacing: -2px; }
.price-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.price-features {
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li { font-size: 14px; color: var(--text-secondary); }

.price-btn { width: 100%; justify-content: center; }
.pricing-note { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-muted); max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== Download ========== */
.download {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), #4834D4);
  color: white;
  text-align: center;
}
.download h2 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.download p { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }
.download-btns { display: flex; justify-content: center; gap: 16px; }
.download .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.download .btn-secondary {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.download .btn-secondary:hover { background: rgba(255,255,255,0.25); color: white; border-color: rgba(255,255,255,0.5); }
.download-soon { margin-top: 16px; font-size: 14px; opacity: 0.7; letter-spacing: 0.5px; }

/* Cookie Consent */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.cookie-bar a { color: var(--primary); text-decoration: underline; }
.cookie-btn { padding: 8px 24px; font-size: 13px; }

/* ========== FAQ ========== */
.faq { padding: 80px 0; }

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--text-muted); }
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Footer ========== */
.footer {
  padding: 60px 0 32px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.footer-brand .logo { color: white; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 32px;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.35);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pets-grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; margin: 0 auto; }
  .pricing-grid, .pricing-4 { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .float-emoji { display: none; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .section-header h2 { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .download-btns { flex-direction: column; align-items: center; }

  /* Mobile nav */
  .nav-hamburger { display: block; }
  .nav-links, .nav-cta { display: none; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(247, 248, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav.open .nav-links a { font-size: 16px; }
  .nav.open .nav-cta {
    display: block;
    text-align: center;
    margin: 0 24px 16px;
    position: absolute;
    top: calc(64px + var(--mobile-links-h, 140px));
  }

  /* Cookie bar mobile */
  .cookie-bar { flex-direction: column; gap: 12px; text-align: center; padding: 14px 20px; }
  .cookie-btn { width: 100%; }

  /* Footer mobile */
  .footer-links { grid-template-columns: 1fr 1fr; }
}
