/* CSS Variables */
:root {
    --color-primary: #007AFF;
    --color-primary-dark: #0056CC;
    --color-secondary: #34C759;
    --color-text: #1D1D1F;
    --color-text-secondary: #6E6E73;
    --color-background: #FFFFFF;
    --color-background-alt: #F5F5F7;
    --color-border: #E5E5EA;
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

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

h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Nav button - primary style with nav-appropriate sizing */
.nav-links .btn-primary {
    padding: 10px 20px;
    font-size: 0.9375rem;
    color: white;
}

.nav-links .btn-primary:hover {
    color: white;
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
}

.footer-logo-img {
    height: 32px;
    max-width: 120px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition);
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: linear-gradient(180deg, var(--color-background-alt) 0%, var(--color-background) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 24px 0 32px;
    line-height: 1.5;
}

.hero-cta {
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    background: #1D1D1F;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1D1D1F;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    padding: 8px;
}

.phone-screen-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.features h2 {
    text-align: center;
}

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

.feature-card {
    padding: 32px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-alt);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.9375rem;
    margin-top: 8px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--color-background-alt);
}

.how-it-works h2 {
    text-align: center;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--color-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 16px;
}

.step h3 {
    color: var(--color-text);
}

.step p {
    margin-top: 8px;
    font-size: 0.9375rem;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 16px;
    color: var(--color-text-secondary);
}

.step-arrow svg {
    width: 32px;
    height: 32px;
}

/* Perfect For Section */
.perfect-for {
    padding: 100px 0;
    background: var(--color-background-alt);
}

.perfect-for h2 {
    text-align: center;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.audience-card {
    padding: 28px;
    background: var(--color-background);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition);
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.audience-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--color-primary), #5AC8FA);
    border-radius: 14px;
    color: white;
}

.audience-icon svg {
    width: 28px;
    height: 28px;
}

.audience-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.audience-card p {
    font-size: 0.9375rem;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    overflow: hidden;
    background: var(--color-background);
}

.screenshots h2 {
    text-align: center;
}

.screenshot-slider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.slider-container {
    flex: 1;
    overflow: hidden;
    background: white;
}

.slider-track {
    display: flex;
    gap: 8px;
    transition: transform 0.4s ease;
}

.slide {
    flex: 0 0 auto;
    width: 220px;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

/* Download Section */
.download {
    padding: 100px 0;
    text-align: center;
}

.download h2 {
    margin-bottom: 16px;
}

.download .section-subtitle {
    margin-bottom: 40px;
}

.download-note {
    margin-top: 24px;
    font-size: 0.875rem;
}

.download-contact {
    margin-top: 16px;
    font-size: 0.875rem;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: var(--color-text);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: white;
    font-size: 0.9375rem;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Legal Pages */
.legal-page {
    padding: calc(var(--header-height) + 60px) 0 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.legal-content .last-updated {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--color-text);
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--color-text);
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content a {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: white;
        border-bottom: 1px solid var(--color-border);
        padding: 16px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 24px;
    }

    .nav-links li:last-child {
        width: auto;
        padding: 12px 24px;
    }

    .nav-links .btn-primary {
        display: inline-flex;
        width: auto;
    }

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

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .phone-mockup {
        width: 240px;
        border-radius: 36px;
        padding: 10px;
    }

    .phone-notch {
        width: 100px;
        height: 24px;
        top: 10px;
    }

    .phone-screen {
        border-radius: 28px;
    }

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

    .audience-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slide {
        width: 180px;
    }


    .feature-card {
        padding: 24px;
    }

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

    .step-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .logo-img {
        height: 32px;
        max-width: 120px;
    }

    .footer-logo-img {
        height: 28px;
        max-width: 100px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo-img {
        height: 28px;
        max-width: 100px;
    }

    .footer-logo-img {
        height: 24px;
        max-width: 90px;
    }

    .hero {
        padding: calc(var(--header-height) + 40px) 0 60px;
    }

    .phone-mockup {
        width: 200px;
        border-radius: 32px;
        padding: 8px;
    }

    .phone-notch {
        width: 80px;
        height: 20px;
        top: 8px;
        border-radius: 0 0 14px 14px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .features, .how-it-works, .download, .perfect-for, .screenshots {
        padding: 60px 0;
    }

    .screenshot-slider {
        gap: 8px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .slide {
        width: 150px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}
