/* Self-hosted Nunito Sans Variable Font */
@font-face {
    font-family: 'Nunito Sans Local';
    src: url('../fonts/NunitoSans-VariableFont.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans Local';
    src: url('../fonts/NunitoSans-Italic-VariableFont.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}

:root {
    /* MaterPet Brand Colors */
    --primary: #376CB4;
    --primary-light: #87A7D2;
    --primary-dark: #2A5490;
    --secondary: #28B56C;
    --secondary-light: #7ED3A7;
    --accent-orange: #F26B3B;
    --accent-warm: #F7A68A;
    --surface: #F5F5F5;
    --surface-dark: #E8E8E8;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --error: #B1223C;

    /* Marker Colors */
    --transport: #4A6C87;
    --shop: #6D4FC7;
    --restaurant: #F77F6C;
    --hospital: #3588C0;
    --pharmacy: #2DBB87;
    --beauty: #E76CD3;
    --education: #FAAB43;

    --shadow-soft: 0 4px 20px rgba(55, 108, 180, 0.08);
    --shadow-medium: 0 8px 40px rgba(55, 108, 180, 0.12);
    --shadow-strong: 0 16px 60px rgba(55, 108, 180, 0.18);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans Local', 'Nunito Sans', sans-serif;
    background-color: var(--surface);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .section-tag, .btn, .nav-cta, .stat-number, .step-number {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(55, 108, 180, 0.3);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(55, 108, 180, 0.4);
}

/* Mobile CTA button - hidden by default, lives outside nav to avoid backdrop-filter issues */
.nav-cta-mobile {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 6px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-light);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-warm);
    opacity: 0.25;
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--primary-light);
}

.hero-badge span {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text);
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
    isolation: isolate;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--secondary-light);
    opacity: 0.4;
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(55, 108, 180, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(55, 108, 180, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--surface-dark);
}

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

.hero-visual {
    position: relative;
    animation: slideUp 1s ease-out 0.2s backwards;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.phone-frame {
    background: var(--text);
    border-radius: 48px;
    padding: 12px;
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--surface) 100%);
    border-radius: 40px;
    aspect-ratio: 9/19;
    overflow: hidden;
    position: relative;
}

.phone-content {
    padding: 40px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phone-header {
    text-align: center;
    margin-bottom: 20px;
}

.phone-header h3 {
    font-size: 1.1rem;
    color: var(--text);
}

.phone-map {
    flex: 1;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    background-color: #f0ede8;
    background-image:
        /* Single wide diagonal street */
        linear-gradient(
            -35deg,
            transparent 0%,
            transparent 25%,
            #ffffff 25%,
            #ffffff 35%,
            transparent 35%,
            transparent 100%
        ),
        /* Horizontal streets */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            #ffffff 40px,
            #ffffff 46px
        ),
        /* Vertical streets */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            #ffffff 50px,
            #ffffff 56px
        );
}

.map-marker {
    position: absolute;
    width: 28px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: markerBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(55, 108, 180, 0.35));
}

.map-marker img {
    width: 100%;
    height: auto;
}

.marker-1 { top: 20%; left: 30%; animation-delay: 0s; }
.marker-2 { top: 45%; left: 60%; animation-delay: 0.3s; }
.marker-3 { top: 65%; left: 25%; animation-delay: 0.6s; }
.marker-4 { top: 35%; left: 75%; animation-delay: 0.9s; }

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

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-medium);
    z-index: 3;
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 15%;
    left: -60px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -40px;
    animation-delay: -2s;
}

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

.floating-card .rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.floating-card .stars {
    color: #FAAB43;
}

.floating-card .place {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 48px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-orange));
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #D4E5F7, var(--hospital));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.services .section-header {
    color: var(--white);
}

.services .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.services .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.service-card span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.service-card p {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Categories Section */
.categories {
    padding: 120px 0;
    background: var(--text);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.categories .section-header {
    color: var(--white);
}

.categories .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.categories .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.category-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.category-card p {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Pet Profiles Section */
.pet-profiles {
    padding: 120px 0;
    background: var(--surface);
}

.pet-profiles-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.pet-profiles-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 24px;
}

.pet-profiles-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.pet-features-list {
    list-style: none;
}

.pet-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.pet-features-list .icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.pet-features-list h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.pet-features-list span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pet-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pet-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.pet-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pet-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.pet-avatar.dog { background: linear-gradient(135deg, #FBD3C4, #F7A68A); }
.pet-avatar.cat { background: linear-gradient(135deg, #BEE9D3, #7ED3A7); }
.pet-avatar.rabbit { background: linear-gradient(135deg, #C3D3E8, #87A7D2); }
.pet-avatar.bird { background: linear-gradient(135deg, #FED465, #FAAB43); }

.pet-card-header h4 {
    font-size: 1rem;
}

.pet-card-header span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pet-tag {
    background: var(--surface);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Access Requirements Section */
.access-requirements {
    padding: 80px 0;
    background: var(--white);
}

.access-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.access-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.access-pill:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

.access-pill span {
    font-size: 1.2rem;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: var(--surface);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    opacity: 0.5;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: var(--shadow-medium);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    opacity: 0.5;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.step p {
    color: var(--text-light);
    max-width: 280px;
    margin: 0 auto;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

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

.stat {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat p {
    font-weight: 600;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 24px;
}

.cta p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 48px;
}

.app-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-badge:hover {
    transform: translateY(-4px);
}

.app-badge img {
    height: 54px;
    width: auto;
}

/* Footer */
.footer {
    background: var(--text);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 700;
}

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

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

.footer-links a {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.social-links a:hover {
    transform: translateY(-4px);
    background: var(--primary);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.language-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        max-width: 300px;
    }

    .floating-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pet-profiles-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .step::after {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 99;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        padding: 0;
        border-bottom: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--white);
        padding: 16px 24px;
        display: block;
        font-weight: 600;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--secondary);
        transform: scale(1.05);
    }

    /* Hide desktop CTA on mobile */
    .nav-cta-desktop {
        display: none;
    }

    /* Mobile CTA - lives outside nav to avoid backdrop-filter containing block issue */
    .nav-cta-mobile {
        display: block !important;
        position: fixed;
        bottom: 40px;
        bottom: calc(40px + env(safe-area-inset-bottom));
        left: 24px;
        right: 24px;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(20px);
        transition: opacity 0.3s ease 0.4s, visibility 0.3s ease 0.4s, transform 0.3s ease 0.4s;
        z-index: 10000;
        padding: 16px 24px;
        font-size: 1rem;
        background: var(--primary);
        color: var(--white);
        border-radius: var(--radius-sm);
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(55, 108, 180, 0.3);
    }

    .nav-cta-mobile.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
        z-index: 101;
    }

    .mobile-menu-btn span {
        background: var(--text);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span {
        background: var(--white);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .feature-card {
        padding: 32px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pet-cards {
        grid-template-columns: 1fr;
    }

    .access-grid {
        gap: 12px;
    }

    .access-pill {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
