/* Purrfocus Website - Purple Theme */
:root {
    /* Primary purple from app accent color */
    --primary: #665FD1;
    --primary-light: #8B85E0;
    --primary-dark: #4A45A8;

    /* Backgrounds matching app */
    --bg-light: #F2F1F9;
    --bg-light-gradient: linear-gradient(180deg, #E8E6F5 0%, #F8F7FC 100%);
    --bg-dark: #1C1B2E;
    --bg-dark-gradient: linear-gradient(180deg, #252438 0%, #1C1B2E 100%);

    /* Text */
    --text-primary: #2C2B3E;
    --text-secondary: #6B6A7D;
    --text-light: #F8F7FC;

    /* Semantic */
    --danger: #E85555;
    --warning: #F5A623;
    --success: #4CD964;

    /* UI */
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 24px rgba(102, 95, 209, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(102, 95, 209, 0.1);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: 44px;
    border-radius: 10px;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

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

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    background: var(--bg-light-gradient);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(102, 95, 209, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero .app-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(102, 95, 209, 0.25);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .tagline {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.app-store-badge img {
    height: 54px;
    transition: transform 0.2s;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

/* Cat Showcase */
.cat-showcase {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cat-showcase img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.3s;
}

.cat-showcase img:hover {
    transform: translateY(-8px) scale(1.1);
}

/* Screenshots Section */
.screenshots {
    padding: 5rem 2rem;
    background: var(--card-bg);
    text-align: center;
}

.screenshots h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.screenshots .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.device-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.device-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.device-btn:hover {
    background: rgba(102, 95, 209, 0.1);
}

.device-btn.active {
    background: var(--primary);
    color: white;
}

.screenshots-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.screenshots-track {
    display: none;
    gap: 1.5rem;
    padding: 1rem 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.screenshots-track::-webkit-scrollbar {
    display: none;
}

.screenshots-track.active {
    display: flex;
}

.screenshots-track img {
    flex-shrink: 0;
    height: 500px;
    width: auto;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    scroll-snap-align: center;
    transition: transform 0.3s;
}

.screenshots-track img:hover {
    transform: scale(1.02);
}

.ipad-screenshots img {
    height: 400px;
}

@media (max-width: 768px) {
    .screenshots-track img {
        height: 350px;
    }

    .ipad-screenshots img {
        height: 280px;
    }
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(102, 95, 209, 0.08);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 95, 209, 0.18);
}

.feature-card .icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    background: var(--card-bg);
    padding: 6rem 2rem;
}

.how-it-works .container {
    max-width: 900px;
    margin: 0 auto;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(102, 95, 209, 0.3);
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Cats Section */
.about-cats {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.about-cats .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-cats h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-cats .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(102, 95, 209, 0.08);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 95, 209, 0.18);
}

.about-card .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(102, 95, 209, 0.15) 0%, rgba(102, 95, 209, 0.08) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    position: relative;
}

.cta .app-store-badge {
    position: relative;
}

/* Page Content (Privacy, Support) */
.page-header {
    background: var(--bg-light-gradient);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(102, 95, 209, 0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--card-bg);
    min-height: 60vh;
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.page-content p,
.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--primary);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq {
    margin-top: 1.5rem;
}

.faq-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid rgba(102, 95, 209, 0.08);
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
    border: 1px solid rgba(102, 95, 209, 0.08);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(102, 95, 209, 0.15);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 95, 209, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 95, 209, 0.3);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 2rem;
    text-align: center;
}

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

footer .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

footer .logo img {
    height: 36px;
    width: 36px;
}

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

footer nav {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

footer nav ul {
    justify-content: center;
}

footer nav a {
    color: rgba(255, 255, 255, 0.7);
}

footer nav a:hover {
    color: white;
}

footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.15rem;
    }

    .hero .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    /* Mobile Navigation */
    nav .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    nav .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--card-bg);
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 100;
    }

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

    nav .nav-menu li {
        border-bottom: 1px solid rgba(102, 95, 209, 0.1);
    }

    nav .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

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

    .step-number {
        margin: 0 auto;
    }

    .cat-showcase img {
        width: 60px;
        height: 60px;
    }

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

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

    .about-cats h2 {
        font-size: 2rem;
    }

    footer nav .nav-menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        background: transparent;
        padding: 0;
        box-shadow: none;
        gap: 1rem;
    }

    footer nav .nav-menu li {
        border-bottom: none;
    }

    footer nav .nav-menu a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1C1B2E;
        --bg-light-gradient: var(--bg-dark-gradient);
        --card-bg: #252438;
        --text-primary: #F8F7FC;
        --text-secondary: #A5A4B8;
        --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    }

    nav {
        background: rgba(28, 27, 46, 0.85);
        border-bottom-color: rgba(102, 95, 209, 0.2);
    }

    .feature-card,
    .faq-item,
    .contact-form,
    .about-card {
        border-color: rgba(102, 95, 209, 0.15);
    }

    .about-card .icon {
        background: linear-gradient(135deg, rgba(102, 95, 209, 0.25) 0%, rgba(102, 95, 209, 0.12) 100%);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        background: var(--bg-dark);
        border-color: rgba(102, 95, 209, 0.25);
        color: var(--text-primary);
    }
}
