/* ==========================================================================
   DogiDogiWalk Official Website - Design System & Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Poppins:wght@500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #FF6B35;
  --primary-hover: #E85A24;
  --primary-light: #FFF0EB;
  --secondary: #FFD166;
  --secondary-hover: #F4C44F;
  --accent-green: #06D6A0;
  --accent-pink: #FF85A1;
  --accent-purple: #9D4EDD;
  
  /* Neutral Colors */
  --bg-main: #FFFDF8;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8F6F0;
  --text-dark: #2B2D42;
  --text-body: #4A4E69;
  --text-muted: #8D99AE;
  --border-color: #EBE5DA;
  
  /* Shadows & Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(43, 45, 66, 0.05);
  --shadow-md: 0 8px 24px rgba(255, 107, 53, 0.12);
  --shadow-lg: 0 16px 40px rgba(43, 45, 66, 0.12);
  --shadow-pop: 0 8px 0px #E5531B;
  
  /* Fonts */
  --font-jp: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-en: 'Fredoka', 'Poppins', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1.5px solid rgba(255, 107, 53, 0.2);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title span.highlight {
  color: var(--primary);
  background: linear-gradient(120deg, rgba(255, 209, 102, 0.4) 0%, rgba(255, 107, 53, 0.2) 100%);
  padding: 0.1em 0.3em;
  border-radius: 8px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   3. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  user-select: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Store Badge Buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--text-dark);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(43, 45, 66, 0.2);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 45, 66, 0.3);
  background-color: #1A1B28;
}

.store-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-btn-text .sub {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.store-btn-text .main {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(235, 229, 218, 0.6);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(43, 45, 66, 0.08);
  background-color: rgba(255, 255, 255, 0.95);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.logo-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: width 0.25s ease;
}

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

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(255, 209, 102, 0.25) 0%, transparent 40%),
              radial-gradient(circle at 10% 60%, rgba(255, 107, 53, 0.15) 0%, transparent 35%);
}

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

.hero-content {
  max-width: 580px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .text-primary {
  color: var(--primary);
  display: inline-block;
  position: relative;
}

.hero-title .text-primary::after {
  content: '🐾';
  font-size: 0.7em;
  margin-left: 0.2em;
  display: inline-block;
  animation: pawWiggle 2s infinite ease-in-out;
}

@keyframes pawWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg) scale(1.1); }
  75% { transform: rotate(15deg) scale(1.1); }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 2.2rem;
  line-height: 1.8;
}

.hero-features-list {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.hero-feature-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--accent-green);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(43, 45, 66, 0.18);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-img-wrapper:hover {
  transform: translateY(-8px) scale(1.01);
}

.hero-floating-badge {
  position: absolute;
  z-index: 3;
  background: #FFFFFF;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: floatAnim 4s infinite ease-in-out;
}

.badge-top-left {
  top: 8%;
  left: -8%;
}

.badge-bottom-right {
  bottom: 8%;
  right: -5%;
  animation-delay: -2s;
}

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

.badge-icon {
  font-size: 1.8rem;
}

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

.badge-info strong {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 800;
}

.badge-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Stats Section
   -------------------------------------------------------------------------- */
.stats {
  padding: 3rem 0;
  background-color: var(--primary);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
  background-size: 24px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.stat-label {
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   7. Features Section
   -------------------------------------------------------------------------- */
.features {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: var(--primary-light);
  color: var(--primary);
}

.card-orange .feature-icon-box { background: #FFF0EB; color: #FF6B35; }
.card-green .feature-icon-box { background: #E6F9F4; color: #06D6A0; }
.card-yellow .feature-icon-box { background: #FFF9E6; color: #F4A261; }
.card-purple .feature-icon-box { background: #F3E8FF; color: #9D4EDD; }

.feature-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.feature-text {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.feature-media {
  margin-top: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   8. How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works {
  padding: 6rem 0;
  background-color: var(--bg-subtle);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: white;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.step-icon {
  font-size: 3rem;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   9. Testimonials / Reviews Section
   -------------------------------------------------------------------------- */
.testimonials {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

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

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.rating-stars {
  color: #FFB703;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

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

.user-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.user-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. FAQ Section
   -------------------------------------------------------------------------- */
.faq {
  padding: 6rem 0;
  background-color: var(--bg-subtle);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-jp);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.8rem;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   11. CTA Section
   -------------------------------------------------------------------------- */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #FF85A1 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.cta-desc {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
}

.cta .store-buttons {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--text-dark);
  color: #FFFFFF;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.social-btn:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .store-buttons {
    justify-content: center;
  }
  
  .hero-features-list {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-menu.active {
    clip-path: circle(140% at 100% 0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .badge-top-left, .badge-bottom-right {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
