:root {
    --primary: #3B9E7E;
    --primary-dark: #2d7d63;
    --primary-darker: #1e5c48;
    --primary-light: #6ec4a8;
    --primary-glow: rgba(59, 158, 126, 0.25);
    --accent: #F97B4F;
    --accent-light: #fba07c;
    --bg-main: #f7fbf9;
    --bg-card: #ffffff;
    --text-main: #1a2e25;
    --text-muted: #5a7a6e;
    --border: rgba(59, 158, 126, 0.18);
    --shadow: rgba(30, 92, 72, 0.08);
}
* { box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg-main); color: var(--text-main); scroll-behavior: smooth; }

/* NAVBAR */
.navbar { background: rgba(247,251,249,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 20px var(--shadow); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(30,92,72,0.13); }
.navbar-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; max-width: 1400px; margin: 0 auto; }
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-main); transition: all 0.3s ease; }
.navbar-brand:hover { transform: translateY(-2px); }
.brand-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; box-shadow: 0 8px 25px var(--primary-glow); transition: all 0.3s ease; position: relative; overflow: hidden; }
.brand-icon::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transition: left 0.5s; }
.navbar-brand:hover .brand-icon::before { left: 100%; }
.navbar-brand:hover .brand-icon { transform: scale(1.08); box-shadow: 0 12px 32px rgba(59,158,126,0.45); }
.brand-text { font-family: 'Fredoka', sans-serif; font-size: 1.75rem; font-weight: 700; letter-spacing: 0.02em; background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.desktop-menu { display: flex; align-items: center; gap: 0.5rem; }
.nav-link { color: var(--text-muted); text-decoration: none; padding: 0.7rem 1.2rem; border-radius: 0.75rem; font-weight: 600; transition: all 0.3s ease; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--primary-darker); background: rgba(59,158,126,0.1); }
.cta-btn { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 0.75rem 1.75rem; border-radius: 0.75rem; font-weight: 800; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 15px var(--primary-glow); margin-left: 1rem; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59,158,126,0.45); }
.mobile-menu-button { display: none; background: rgba(59,158,126,0.1); border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.75rem; color: var(--text-main); cursor: pointer; }

/* HERO */
.hero { background: linear-gradient(155deg, #e8f5ef 0%, #f7fbf9 55%, #fff7f4 100%); position: relative; overflow: hidden; min-height: 640px; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><defs><pattern id="p" width="80" height="80" patternUnits="userSpaceOnUse"><text y="50" font-size="30" opacity="0.05">🐾</text></pattern></defs><rect width="800" height="800" fill="url(%23p)"/></svg>'); z-index: 1; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.16; z-index: 1; }
.blob-1 { width: 520px; height: 520px; background: var(--primary); top: -120px; right: -100px; }
.blob-2 { width: 350px; height: 350px; background: var(--accent); bottom: -80px; left: -60px; }
.hero-container { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; padding: 5rem 2rem; display: flex; align-items: center; gap: 4rem; }
.hero-content { flex: 1; }
.hero-visual { flex: 1; display: flex; justify-content: center; }

.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(59,158,126,0.1); border: 1px solid var(--border); color: var(--primary-dark); padding: 0.5rem 1.2rem; border-radius: 100px; font-size: 0.9rem; font-weight: 700; margin-bottom: 1.5rem; animation: fadeUp 0.6s ease both; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes scan { 0%,100%{top:0;opacity:0.6} 50%{top:calc(100% - 3px);opacity:1} }

.hero-title { font-family: 'Fredoka', sans-serif; font-size: 3.8rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.15; color: var(--text-main); margin-bottom: 1.5rem; animation: fadeUp 0.7s 0.1s ease both; }
.hero-title .highlight { background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 60%, var(--primary-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 2.5rem; max-width: 520px; animation: fadeUp 0.7s 0.2s ease both; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.7s 0.3s ease both; }

.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 1.1rem 2.5rem; border-radius: 0.85rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; transition: all 0.3s ease; box-shadow: 0 6px 20px var(--primary-glow); font-size: 1rem; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(59,158,126,0.45); }
.btn-accent { background: linear-gradient(135deg, var(--accent) 0%, #e0612d 100%); color: white; padding: 1.1rem 2.5rem; border-radius: 0.85rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; transition: all 0.3s ease; box-shadow: 0 6px 20px rgba(249,123,79,0.3); font-size: 1rem; }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(249,123,79,0.45); }
.btn-outline { background: transparent; color: var(--primary-dark); padding: 1.1rem 2.5rem; border-radius: 0.85rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; transition: all 0.3s ease; border: 2px solid var(--border); font-size: 1rem; }
.btn-outline:hover { background: rgba(59,158,126,0.08); border-color: var(--primary); }

/* Hero cards */
.hero-cards { position: relative; width: 420px; height: 420px; animation: fadeUp 0.8s 0.4s ease both; }
.pet-card-float { position: absolute; background: white; border-radius: 1.5rem; padding: 1.25rem; box-shadow: 0 12px 40px rgba(30,92,72,0.12); border: 1px solid var(--border); animation: float 4s ease-in-out infinite; }
.card-main { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 220px; text-align: center; }
.card-top-right { top: 0; right: 0; width: 175px; animation-delay: -2s !important; }
.card-bottom-left { bottom: 0; left: 0; width: 175px; animation-delay: -1s !important; }
.pet-emoji { font-size: 3.5rem; display: block; margin-bottom: 0.5rem; }
.badge-lost { background: #fff3ef; color: var(--accent); border: 1px solid rgba(249,123,79,0.3); padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.78rem; font-weight: 800; }
.badge-found { background: #edf7f3; color: var(--primary); border: 1px solid var(--border); padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.78rem; font-weight: 800; }
.ai-floating-badge { position: absolute; top: 28%; right: -24px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 0.6rem 1rem; border-radius: 100px; font-size: 0.78rem; font-weight: 800; box-shadow: 0 8px 24px var(--primary-glow); display: flex; align-items: center; gap: 0.4rem; animation: float 3s ease-in-out infinite; z-index: 10; }

.stats-row { display: flex; gap: 2.5rem; margin-top: 2.5rem; animation: fadeUp 0.7s 0.4s ease both; }
.stat-number { font-family: 'Fredoka', sans-serif; letter-spacing: 0.01em; font-size: 1.9rem; font-weight: 900; color: var(--primary-dark); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; margin-top: 0.25rem; }

/* SECTIONS */
.section-title { text-align: center; font-family: 'Fredoka', sans-serif; font-size: 2.8rem; font-weight: 700; letter-spacing: 0.01em; background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.75rem; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 4rem; font-weight: 500; }

/* HOW IT WORKS */
.how-section { background: white; padding: 6rem 2rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.step-card { background: var(--bg-main); border: 1px solid var(--border); border-radius: 2rem; padding: 2.5rem 2rem; text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden; }
.step-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.step-card:hover::after { transform: scaleX(1); }
.step-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(59,158,126,0.15); background: white; }
.step-num { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 900; color: white; margin: 0 auto 1.5rem; box-shadow: 0 6px 20px var(--primary-glow); }
.step-icon-wrap { width: 100%; height: 160px; background: linear-gradient(135deg, rgba(59,158,126,0.07), rgba(59,158,126,0.03)); border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; margin-bottom: 1.5rem; }
.step-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text-main); }
.step-desc { color: var(--text-muted); line-height: 1.65; font-size: 0.95rem; }

/* TWO PATHS */
.paths-section { background: var(--bg-main); padding: 6rem 2rem; }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 1100px; margin: 0 auto; }
.path-card { border-radius: 2rem; padding: 3rem 2.5rem; position: relative; overflow: hidden; transition: all 0.4s ease; }
.path-card-lost { background: linear-gradient(155deg, #fff7f4 0%, #ffeee7 100%); border: 1.5px solid rgba(249,123,79,0.25); }
.path-card-found { background: linear-gradient(155deg, #edf7f3 0%, #d8f0e6 100%); border: 1.5px solid var(--border); }
.path-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.1); }
.path-icon { font-size: 4rem; margin-bottom: 1.5rem; display: block; }
.path-title { font-family: 'Fredoka', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 1rem; }
.path-title-lost { color: var(--accent); }
.path-title-found { color: var(--primary-dark); }
.path-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; }
.path-features { list-style: none; padding: 0; margin-bottom: 2rem; }
.path-features li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text-main); margin-bottom: 0.6rem; font-weight: 600; font-size: 0.95rem; }
.path-features li i { margin-top: 3px; font-size: 0.85rem; }
.path-features li .ic-accent { color: var(--accent); }
.path-features li .ic-primary { color: var(--primary); }

/* AI SECTION */
.ai-section { background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 60%, var(--primary) 100%); padding: 6rem 2rem; position: relative; overflow: hidden; }
.ai-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><circle cx="250" cy="250" r="200" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="40"/><circle cx="250" cy="250" r="300" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="30"/></svg>') center/cover; }
.ai-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 4rem; position: relative; z-index: 2; }
.ai-content { flex: 1; }
.ai-visual { flex: 1; display: flex; justify-content: center; }
.ai-title { font-family: 'Fredoka', sans-serif; font-size: 2.8rem; font-weight: 700; letter-spacing: 0.01em; color: white; margin-bottom: 1.2rem; line-height: 1.2; }
.ai-desc { color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 2rem; font-size: 1.05rem; }
.ai-features { list-style: none; padding: 0; }
.ai-features li { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255,255,255,0.85); margin-bottom: 0.85rem; font-weight: 600; }
.ai-features li i { color: var(--primary-light); margin-top: 3px; }
.ai-mockup { background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.2); border-radius: 2rem; padding: 2rem; width: 320px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.scan-line { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--primary-light), transparent); border-radius: 2px; animation: scan 2.2s ease-in-out infinite; }
.ai-result-row { display: flex; align-items: center; gap: 0.75rem; background: rgba(255,255,255,0.12); border-radius: 0.75rem; padding: 0.75rem; margin-bottom: 0.6rem; }
.conf-bar { height: 5px; background: rgba(255,255,255,0.15); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.conf-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), white); border-radius: 3px; }

/* LISTINGS */
.listings-section { background: white; padding: 6rem 2rem; }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; max-width: 1200px; margin: 0 auto 3rem; }
.listing-card { background: var(--bg-main); border: 1px solid var(--border); border-radius: 1.5rem; overflow: hidden; transition: all 0.35s ease; cursor: pointer; }
.listing-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(59,158,126,0.13); }
.listing-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 5.5rem; position: relative; }
.listing-img-lost { background: linear-gradient(135deg, #fff7f4, #ffe8df); }
.listing-img-found { background: linear-gradient(135deg, #edf7f3, #d8f0e6); }
.listing-tag { position: absolute; top: 1rem; right: 1rem; padding: 0.35rem 0.85rem; border-radius: 100px; font-size: 0.78rem; font-weight: 800; }
.tag-lost { background: var(--accent); color: white; }
.tag-found { background: var(--primary); color: white; }
.listing-body { padding: 1.5rem; }
.listing-name { font-weight: 800; font-size: 1.15rem; margin-bottom: 0.3rem; }
.listing-meta { color: var(--text-muted); font-size: 0.88rem; display: flex; align-items: center; gap: 0.4rem; }
.listing-location { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }

/* FAQ */
.faq-section { background: var(--bg-main); padding: 6rem 2rem; }
.faq-container { max-width: 860px; margin: 0 auto; }
.faq-item { background: white; border: 1px solid var(--border); border-radius: 1.25rem; margin-bottom: 1.25rem; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 2px 12px var(--shadow); }
.faq-question { padding: 1.75rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.05rem; color: var(--text-main); }
.faq-question:hover { background: rgba(59,158,126,0.04); }
.faq-icon { color: var(--primary); transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.75rem; }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 1.75rem 1.75rem; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; }

/* CTA */
.cta-section { background: linear-gradient(155deg, #e8f5ef, #f7fbf9); padding: 5rem 2rem; border-top: 1px solid var(--border); }
.cta-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.cta-title { font-family: 'Fredoka', sans-serif; font-size: 2.8rem; font-weight: 700; letter-spacing: 0.01em; color: var(--text-main); margin-bottom: 1rem; }
.cta-title span { background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { background: #0f2018; border-top: 1px solid rgba(59,158,126,0.2); padding: 4rem 2rem 2rem; color: rgba(255,255,255,0.8); }
.footer-content { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-section h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--primary-light); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; transition: all 0.3s ease; font-weight: 600; font-size: 0.92rem; }
.footer-links a:hover { color: var(--primary-light); padding-left: 0.4rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-link { width: 42px; height: 42px; background: rgba(255,255,255,0.06); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); text-decoration: none; transition: all 0.3s ease; }
.social-link:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; text-align: center; color: rgba(255,255,255,0.35); font-size: 0.88rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; text-align: center; padding: 3.5rem 2rem; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .stats-row { justify-content: center; }
    .ai-inner { flex-direction: column; text-align: center; }
    .ai-mockup { width: 100%; max-width: 380px; }
    .paths-grid { grid-template-columns: 1fr; }
    .hero-cards { width: 320px; height: 320px; }
}
@media (max-width: 768px) {
    .desktop-menu { display: none; }
    .mobile-menu-button { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2.1rem; }
    .ai-title { font-size: 2.1rem; }
    .cta-title { font-size: 2.1rem; }
}