/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-alt: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
    transition: var(--transition);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo:hover {
    transform: translateY(-2px);
}

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

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.nav-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.dropdown-toggle:hover {
    background: rgba(0, 123, 255, 0.08);
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown.active .dropdown-toggle {
    background: rgba(0, 123, 255, 0.08);
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

/* ===================================
   Apps Section
   =================================== */
.apps-section {
    padding: 6rem 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.product-category {
    margin: 3rem 0 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid var(--gray-light);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.app-showcase:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.app-showcase.reverse {
    direction: rtl;
}

.app-showcase.reverse > * {
    direction: ltr;
}

.app-content {
    padding: 1rem;
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.app-icon-text {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.app-icon-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
}

.app-icon-sniffr {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 20px;
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.app-tagline {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.app-description {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.app-features {
    list-style: none;
    margin-bottom: 2rem;
}

.app-features li {
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
    width: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.app-features li:last-child {
    border-bottom: none;
}

.app-download {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--dark-light);
}

.download-btn svg {
    width: 32px;
    height: 32px;
}

.download-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-btn small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.download-btn strong {
    font-size: 1rem;
    font-weight: 600;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.25rem;
    animation: bounce-icon 1s ease-in-out infinite;
}

.badge-text {
    letter-spacing: 0.5px;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
    50% {
        transform: scale(1.02);
        box-shadow: var(--shadow-xl);
    }
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.app-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-mockup {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9 / 17.24;
    background: #1c1c1e;
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid #2c2c2e;
}

.app-mockup > * {
    background: white;
    border-radius: 36px;
    overflow: hidden;
}

.app-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: #1c1c1e;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.app-mockup.pet-social {
    background: #1c1c1e;
}

.app-mockup.pet-social > * {
    background: #F5F3F9;
}

.app-mockup.scheduler {
    background: #1c1c1e;
}

.mockup-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gray);
}

.mockup-placeholder span {
    font-size: 4rem;
}

.mockup-placeholder p {
    font-weight: 600;
    text-align: center;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    position: relative;
    z-index: 1;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 6rem 0;
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    padding: 2rem;
    background: var(--light);
    border-radius: 16px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 600;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 6rem 0;
    background: var(--light);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 2rem auto 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-item p {
    color: var(--gray);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 2rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-logo {
    width: 80px;
    height: auto;
}

.footer-brand p {
    opacity: 0.7;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

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

.footer-column li {
    margin-bottom: 0.25rem;
}

.footer-column a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .app-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-showcase.reverse {
        direction: ltr;
    }

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

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 0.5rem 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: stretch;
        text-align: center;
        gap: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: var(--dark);
        transition: all 0.2s ease;
        position: relative;
    }

    .nav-link:hover {
        background: rgba(0, 123, 255, 0.04);
        color: var(--primary);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

    .dropdown-toggle {
        display: inline-flex;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-dropdown-wrapper {
        position: relative;
        width: 100%;
    }

    .nav-dropdown-wrapper .nav-link {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown .dropdown-menu {
        display: none;
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background: linear-gradient(to bottom, rgba(0, 123, 255, 0.02), rgba(0, 123, 255, 0.04));
        margin: 0;
        padding: 0;
        border-radius: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(0, 123, 255, 0.1);
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        max-height: 200px;
    }

    .dropdown-menu li {
        padding: 0;
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 0.875rem 1.5rem 0.875rem 2.5rem;
        font-size: 0.9375rem;
        color: var(--gray);
        display: block;
        font-weight: 400;
        transition: all 0.2s ease;
        position: relative;
    }

    .dropdown-menu a:before {
        content: '›';
        position: absolute;
        left: 1.5rem;
        color: var(--primary);
        opacity: 0;
        transition: all 0.2s ease;
        transform: translateX(-4px);
    }

    .dropdown-menu a:hover {
        background: rgba(0, 123, 255, 0.08);
        color: var(--primary);
        padding-left: 2.75rem;
    }

    .dropdown-menu a:hover:before {
        opacity: 1;
        transform: translateX(0);
    }

    .footer-logo {
        width: 60px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .app-showcase {
        padding: 2rem;
    }

    .download-btn {
        flex: 1;
        min-width: 200px;
    }

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

/* ===================================
   Animations & Utilities
   =================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
