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

:root {
  /* Theme: Light - Pastel Muted version of icon palette */
  --bg: #ffffff;
  --bg-soft: #fbf9f8;
  --bg-accent: #f5f0ed;
  --text: #3d3430;
  --text-muted: #7a6e69;
  --accent: #ff9fb2; /* Soft puppy pink */
  --accent-secondary: #ffcdb2; /* Soft peach */
  --accent-tertiary: #b2e2f2; /* Soft sky blue */
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(255, 159, 178, 0.15);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);

  --container-width: 1200px;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Figtree', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

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

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

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

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === PREMIUM UI BLOCKS === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px -5px rgba(255, 159, 178, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: 0.6s;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px -10px rgba(255, 159, 178, 0.6);
  filter: brightness(1.05);
}

.btn-store {
  background: #111;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.btn-store:hover {
  background: #333;
  transform: translateY(-3px);
}

.btn-store i {
  font-size: 28px;
}

.btn-store .text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.btn-store .small {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.8;
}

.btn-store .big {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* === MESH GRADIENT BG === */
.mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(at 0% 0%, rgba(255, 159, 178, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(178, 226, 242, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 205, 178, 0.1) 0px, transparent 50%);
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent);
  filter: blur(100px);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
  animation: float 20s infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10%, 10%); }
}

/* === SECTION DIVIDER === */
.section-divider {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--accent), var(--accent-secondary), var(--accent-tertiary));
}

/* === NAV === */
.puppy-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
}

.puppy-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

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

.nav-links a:hover {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* === HERO === */
.puppy-hero {
  padding-top: calc(var(--nav-height) + 60px);
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  margin: 0 auto 32px;
  box-shadow: 0 20px 40px -10px rgba(255, 159, 178, 0.3);
  object-fit: contain;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-store-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-accent);
  padding: 6px 16px;
  border-radius: 99px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.rating-badge i {
  color: #ffb800;
}

/* === SCREENSHOT GALLERY: Fan Stack === */
.screenshot-stack-gallery {
  background: var(--bg-soft);
  perspective: 1000px;
}

.fan-container {
  position: relative;
  height: 600px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.fan-card {
  position: absolute;
  width: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  background: white;
}

.fan-card img {
  width: 100%;
  height: auto;
}

.fan-card:nth-child(1) { transform: translateX(-240px) rotate(-12deg); z-index: 1; }
.fan-card:nth-child(2) { transform: translateX(-120px) rotate(-6deg); z-index: 2; }
.fan-card:nth-child(3) { transform: translateX(0) rotate(0deg); z-index: 3; }
.fan-card:nth-child(4) { transform: translateX(120px) rotate(6deg); z-index: 2; }
.fan-card:nth-child(5) { transform: translateX(240px) rotate(12deg); z-index: 1; }

.fan-card:hover {
  transform: translateX(0) translateY(-20px) scale(1.1) rotate(0) !important;
  z-index: 10 !important;
}

/* === HOW IT WORKS: Vertical Timeline === */
.workflow-section {
  background: var(--bg);
}

.workflow-grid {
  display: grid;
  grid-template-columns: 20% 50% 30%;
  gap: 40px;
}

.workflow-timeline {
  position: relative;
  padding-left: 40px;
}

.workflow-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--bg-accent);
}

.workflow-step {
  position: relative;
  margin-bottom: 60px;
}

.workflow-dot {
  position: absolute;
  left: -40px;
  top: 0;
  width: 22px;
  height: 22px;
  background: white;
  border: 4px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
}

.workflow-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--accent);
}

/* === FEATURES: Zigzag === */
.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-info {
  flex: 1;
}

.feature-visual {
  flex: 1;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--bg-accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 32px;
}

.feature-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-text {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.visual-accent {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

/* === STATS: SVG Rings === */
.stats-section {
  background: var(--bg-soft);
  text-align: center;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.svg-ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
}

.svg-ring-wrap svg {
  width: 160px;
  height: 160px;
}

.circle-bg {
  fill: none;
  stroke: var(--bg-accent);
  stroke-width: 8;
}

.circle-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 2s ease-out;
}

.stat-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-weight: 600;
  color: var(--text-muted);
}

/* === REVIEWS: App Store Cards === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: white;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--bg-accent);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  color: #ffb800;
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}

.review-user {
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 4px;
  display: block;
}

.review-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.review-body {
  font-size: 15px;
  color: var(--text-muted);
}

/* === DOWNLOAD CTA === */
.download-footer-cta {
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--white) 100%);
}

.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.cta-visual img {
  max-width: 500px;
  width: 100%;
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}

/* === FOOTER === */
.mega-footer {
  background: var(--bg-soft);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.footer-brand .logo-wrap {
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.social-links a:hover {
  background: var(--accent);
  color: white;
}

.newsletter-box {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.newsletter-box p {
  font-size: 14px;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--bg-accent);
  border-radius: 10px;
}

.newsletter-form button {
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: 1fr; }
  .feature-row { gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .hero-title { font-size: 3rem; }
  .fan-container { height: 450px; }
  .fan-card { width: 180px; }
  .fan-card:nth-child(1) { transform: translateX(-140px) rotate(-12deg); }
  .fan-card:nth-child(2) { transform: translateX(-70px) rotate(-6deg); }
  .fan-card:nth-child(4) { transform: translateX(70px) rotate(6deg); }
  .fan-card:nth-child(5) { transform: translateX(140px) rotate(12deg); }

  .feature-row { flex-direction: column !important; }
  .feature-title { font-size: 2rem; }

  .reviews-grid { grid-template-columns: 1fr; }
  .split-cta { grid-template-columns: 1fr; text-align: center; }
  .cta-visual { order: 2; margin-top: 40px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* Mobile Nav Active */
.nav-links.mobile-active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  padding: 40px 24px;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
