/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #612A78;
    --primary-dark: #4A1D5E;
    --primary-deeper: #3d1a4a;
    --accent: #B96DD4;
    --accent-light: #d4a5e8;
    --accent-glow: #f0d0ff;
    --gradient-primary: linear-gradient(135deg, #612A78, #8B3FA8);
    --gradient-rich: linear-gradient(135deg, #4A1D5E, #7B3A96, #B96DD4);
    --gradient-hero: linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(74, 29, 94, 0.82) 40%, rgba(97, 42, 120, 0.72) 100%);
    --gradient-section: linear-gradient(135deg, #612A78, #4A1D5E);
    --bg-light: #f5eef8;
    --bg-lighter: #faf6fc;
    --text-dark: #1a1a2e;
    --text-muted: #64748b;
    --text-subtle: #475569;
    --footer-bg: #1a1028;
    --border-purple: #e8d5f0;
    --shadow-purple: rgba(97, 42, 120, 0.15);
    --shadow-purple-strong: rgba(97, 42, 120, 0.25);
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
    background: linear-gradient(135deg, #B96DD4, #f0d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; color: var(--text-dark); }
.section-header p { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(97, 42, 120, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-tag-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(97, 42, 120, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #7B3A96, #A04FC0);
    box-shadow: 0 8px 32px rgba(97, 42, 120, 0.45);
    transform: translateY(-2px);
}
.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
.btn-sm { padding: 10px 24px; font-size: 0.875rem; border-radius: 10px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(97, 42, 120, 0.06);
    transition: all 0.3s ease;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.nav-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-subtle);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 24px;
}
.hero-text { max-width: 700px; }
.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
}
.hero-text h1 .text-gradient {
    background: linear-gradient(135deg, #d4a5e8, #f0d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Search Box */
.search-box {
    display: flex;
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(97, 42, 120, 0.08);
    margin-bottom: 40px;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    flex: 1;
}
.search-field i { color: var(--primary); font-size: 1rem; }
.search-field select,
.search-field input {
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
    width: 100%;
}
.search-field select { cursor: pointer; }
.search-field + .search-field { border-left: 1px solid #e2e8f0; }
.btn-search {
    border-radius: 12px;
    padding: 14px 32px;
    white-space: nowrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rich);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(97, 42, 120, 0.05);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-purple);
    border-color: rgba(185, 109, 212, 0.2);
}
.service-img {
    height: 220px;
    overflow: hidden;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.08); }
.service-info { padding: 24px; }
.service-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.service-info p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}
.service-price {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(97, 42, 120, 0.08);
    padding: 6px 14px;
    border-radius: 8px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 0;
    background: #fff;
}
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}
.step {
    text-align: center;
    flex: 1;
    max-width: 240px;
}
.step-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-rich);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(97, 42, 120, 0.25);
}
.step-icon i { font-size: 1.75rem; color: #fff; }
.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #fff;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.step p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.step-connector {
    display: flex;
    align-items: center;
    padding-top: 30px;
    color: var(--accent);
    font-size: 1.25rem;
}

/* ===== WHY ONLYPAW ===== */
.why-onlypaw {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}
.why-onlypaw::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rich);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(97, 42, 120, 0.05);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow-purple);
    border-color: rgba(185, 109, 212, 0.15);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(97, 42, 120, 0.12), rgba(185, 109, 212, 0.12));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon i { font-size: 1.5rem; color: var(--primary); }
.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
    background: #fff;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-purple);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(97, 42, 120, 0.1);
    transform: translateY(-4px);
}
.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 16px;
    display: flex;
    gap: 2px;
}
.testimonial-card > p {
    font-size: 1rem;
    color: var(--text-subtle);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-rich);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}
.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-dark);
}
.testimonial-author span {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* ===== PROVIDER CTA ===== */
.provider-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #4A1D5E 0%, #612A78 40%, #7B3A96 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.provider-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(185, 109, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.provider-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(185, 109, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.provider-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.provider-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.provider-text > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}
.provider-benefits {
    margin-bottom: 36px;
}
.provider-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 14px;
}
.provider-benefits i { color: var(--accent-light); font-size: 1.125rem; }
.provider-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== DOWNLOAD CTA ===== */
.download-cta {
    padding: 100px 0;
    background: var(--bg-lighter);
    position: relative;
}
.download-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rich);
}
.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}
.download-text { max-width: 560px; }
.download-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.download-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}
.download-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.store-badge {
    display: inline-block;
    position: relative;
}
.store-badge img { height: 52px; }
.store-badge.coming-soon { opacity: 0.5; pointer-events: none; position: relative; }
.badge-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.download-mockup {
    flex-shrink: 0;
}
.app-mockup {
    width: 200px;
    height: 200px;
    border-radius: 40px;
    box-shadow: 0 20px 60px var(--shadow-purple-strong);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 80px 0 32px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-rich);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.footer-brand > p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    line-height: 1.6;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(185, 109, 212, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}
.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}
.footer-links a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(185, 109, 212, 0.12);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== PAGE STYLES (for about, privacy, terms, contact) ===== */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #4A1D5E 0%, #612A78 40%, #7B3A96 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185, 109, 212, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.page-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-content {
    padding: 80px 0;
}
.page-content .container {
    max-width: 800px;
}
.page-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 48px;
    margin-bottom: 16px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
    font-size: 1rem;
    color: var(--text-subtle);
    line-height: 1.8;
    margin-bottom: 16px;
}
.page-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}
.page-content ul li {
    font-size: 1rem;
    color: var(--text-subtle);
    line-height: 1.8;
    list-style: disc;
    margin-bottom: 8px;
}
.page-content a { color: var(--primary); text-decoration: underline; }
.page-content a:hover { color: var(--accent); }

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}
.contact-info-card .icon {
    width: 48px;
    height: 48px;
    background: rgba(97, 42, 120, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-card .icon i { color: var(--primary); font-size: 1.25rem; }
.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.contact-info-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}
.contact-form {
    background: var(--bg-light);
    padding: 36px;
    border-radius: 20px;
    border: 1px solid rgba(97, 42, 120, 0.06);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(97, 42, 120, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .provider-content { grid-template-columns: 1fr; }
    .provider-image { max-height: 400px; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .search-box { flex-direction: column; }
    .search-field + .search-field { border-left: none; border-top: 1px solid #e2e8f0; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.5rem; }
    .section-header h2 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .download-content { flex-direction: column; text-align: center; }
    .download-text h2 { font-size: 2rem; }
    .download-buttons { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .provider-text h2 { font-size: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 2.25rem; }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero { min-height: 100vh; }
}
