/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #f3f4f6;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;

    /* Accent Colors - Developer-focused palette */
    --accent-primary: #3b82f6;      /* Blue - primary CTA */
    --accent-secondary: #9333ea;    /* Purple - secondary elements */
    --accent-pink: #f9a8d4;         /* Pink - accents */
    --accent-yellow: #fde68a;       /* Yellow - highlights */
    --accent-cyan: #5eead4;         /* Cyan - links */

    /* Gradient (matching app) */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);

    /* UI Elements */
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    background: #eef4ff;
    min-height: 100%;
}

/* Dark Mode - Automatic based on system preference */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Colors */
        --bg-primary: #0a0a0a;
        --bg-secondary: #151515;
        --bg-card: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;

        /* UI Elements for Dark Mode */
        --border-color: #2a2a2a;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    html {
        background: #0c0c10;
    }

    .header.scrolled {
        background: rgba(10, 10, 10, 0.8);
    }

    .nav.active::before {
        background: rgba(26, 26, 26, 0.95);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .nav.active a:not(.btn-primary) {
        border-bottom: 1px solid rgba(42, 42, 42, 0.8);
    }

    .nav.active a:not(.btn-primary):hover {
        background: rgba(59, 130, 246, 0.15);
    }

    .faq-item:active {
        background: rgba(59, 130, 246, 0.1);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

body > * {
    position: relative;
    z-index: 1;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
    display: flex;
    align-items: center;
}

.header > .container {
    width: 100%;
}

.header.scrolled {
    background: rgba(245, 247, 251, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

/* Dark mode scrolled header override - must come after the base styles */
@media (prefers-color-scheme: dark) {
    .header.scrolled {
        background: rgba(10, 10, 10, 0.8);
    }
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    padding-top: calc(16px + env(safe-area-inset-top));
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    color: var(--text-primary);
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

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

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

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

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

/* Hero Section */
.hero {
    padding: clamp(140px, 20vw, 200px) 0 clamp(100px, 14vw, 160px);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    padding: 0 40px;
}

.hero-title {
    font-size: clamp(44px, 7vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-tagline {
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
}

.hero-punchline {
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-punchline-final {
    margin-top: 16px;
}

.punchline-emphasis {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-primary), var(--bg-primary)), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-image: linear-gradient(rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.1)), var(--gradient-primary);
}

.btn-disabled {
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--bg-card);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 8px solid #2a2a2a;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--glow-purple), transparent 60%),
                radial-gradient(circle at 70% 70%, var(--glow-green), transparent 60%),
                var(--bg-secondary);
    border-radius: 32px;
    backdrop-filter: blur(10px);
}

/* Section Styles */
section {
    padding: clamp(100px, 14vw, 160px) 0;
    background: transparent;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

.section-subtitle {
    max-width: 720px;
    margin: -40px auto 60px;
    text-align: center;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    background: transparent;
}

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, var(--glow-green), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* How It Works Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

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

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-screenshot {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

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

/* Comparison Section */
.comparison {
    background: transparent;
    padding-bottom: clamp(60px, 8vw, 80px);
}

.comparison-intro {
    max-width: 900px;
    margin: 0 auto 16px;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.comparison-intro:last-of-type {
    margin-bottom: 0;
}

.comparison-intro a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.comparison-intro a:hover {
    color: var(--accent-secondary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.comparison-column {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
}

.comparison-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comparison-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.comparison-item.traditional .comparison-icon {
    color: #ef4444;
}

.comparison-item.visualkey .comparison-icon {
    color: var(--accent-primary);
}

.comparison-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comparison-note {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.comparison-note p {
    margin: 12px 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.comparison-note strong {
    color: var(--text-primary);
}

/* Screenshots Gallery Section */
.screenshots {
    background: transparent;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.screenshot-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    aspect-ratio: 9/16;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    background: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
}

.screenshot-caption {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    background: var(--bg-card);
}

/* Legacy placeholders */
.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle at center, var(--glow-green), transparent 70%),
                var(--bg-secondary);
}

.screenshot-placeholder span {
    font-size: 64px;
    opacity: 0.5;
}

.screenshot-placeholder p {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Benefits Section */
.benefits {
    background: transparent;
    padding: clamp(40px, 6vw, 60px) 0 clamp(80px, 12vw, 140px);
}

.benefits-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

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

.showcase-screenshot {
    width: 100%;
    max-width: clamp(280px, 35vw, 400px);
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
    object-fit: contain;
}

.benefits-content {
    text-align: left;
}

.benefits-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.benefits-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Legacy grid styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-card {
    text-align: left;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Handoff Section */
.handoff-section {
    background: transparent;
    padding: clamp(80px, 12vw, 140px) 0;
}

.handoff-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.handoff-device {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.handoff-mac {
    position: relative;
    z-index: 1;
}

.handoff-mac .handoff-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(400px, 55vw, 600px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.handoff-iphone {
    position: absolute;
    right: 5%;
    bottom: -15%;
    z-index: 2;
}

.handoff-iphone .handoff-image {
    width: auto;
    height: clamp(320px, 42vw, 520px);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    object-fit: contain;
}

/* Demo Section */
.demo-section {
    background: transparent;
    padding: clamp(80px, 12vw, 140px) 0;
}

.demo-section .section-title {
    margin-bottom: 48px;
}

/* Screenshot Carousel */
.screenshot-carousel {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    justify-content: center;
}

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

.carousel-slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.carousel-image {
    width: auto;
    height: clamp(400px, 60vw, 600px);
    max-width: 100%;
    border-radius: 24px;
    border: none;
    box-shadow: none;
    display: block;
    object-fit: contain;
    background: transparent;
}

.carousel-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Legacy video styles */
.demo-video-container {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.demo-video {
    width: auto;
    max-width: 280px;
    max-height: 560px;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    display: block;
}

/* Legacy Security Section (keeping for backward compatibility) */
.security {
    background: transparent;
}

/* Feature Showcase - Prominent Multi-Agent Section */
.feature-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-video {
    flex-shrink: 0;
}

.demo-video {
    width: auto;
    max-width: 300px;
    max-height: 600px;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    display: block;
}

.showcase-content {
    flex: 1;
}

.showcase-content h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.showcase-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.security-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.security-item {
    padding: 24px;
    text-align: center;
    flex: 1 1 280px;
    max-width: 400px;
}

.security-diagram {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

.security-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

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

.download-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 16px 0 32px 0;
}

.download-cta {
    display: flex;
    justify-content: center;
}

.btn-large {
    padding: 14px 40px;
    font-size: 16px;
}

.nav .btn {
    padding: 10px 20px;
    font-size: 14px;
    margin-left: 16px;
}

.nav .btn-primary {
    color: #ffffff;
}

/* Button text responsive display */
.btn-text-short {
    display: none;
}

.btn-text-full {
    display: inline;
}

/* FAQ Section */
.faq {
    background: transparent;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.faq-item summary {
    padding: 32px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    font-size: 20px;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.faq-icon {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 32px 32px 32px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.faq-answer ul {
    margin: 16px 0;
    padding-left: 32px;
}

.faq-answer li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.contact-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-links a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.footer {
    background: transparent;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

.footer-copyright {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .footer-copyright {
        font-size: 0.85rem;
    }
}

.footer a {
    color: var(--text-secondary);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Privacy Policy Page */
.privacy-policy {
    padding: 120px 0 80px 0;
    min-height: 100vh;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.privacy-section {
    margin-bottom: 48px;
}

.privacy-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.privacy-section ul {
    margin: 16px 0;
    padding-left: 32px;
}

.privacy-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.privacy-section a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: color 0.2s;
}

.privacy-section a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design */

/* Mobile carousel for How It Works section */
@media (max-width: 768px) {
    /* Carousel for How It Works section */
    .steps {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .steps::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .step {
        flex: 0 0 100%;
        scroll-snap-align: center;
        padding: 0 24px;
    }

    .step-screenshot {
        max-width: 240px;
        margin-bottom: 40px !important;
        margin-top: 0 !important;
        object-fit: cover;
        object-position: center bottom;
        max-height: 400px;
    }

    .step-content .step-number {
        margin-bottom: 16px;
    }

    .step-content h3 {
        margin-bottom: 12px;
    }

    .step-content p {
        margin-bottom: 0;
    }

    .how-it-works .container {
        padding: 0 16px;
    }

    /* Dot indicators */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 24px;
        padding: 0 24px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--border-color);
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--gradient-primary);
        width: 24px;
        border-radius: 4px;
    }
}

/* Narrow phone optimization (regular iPhones) */
@media (max-width: 430px) {
    .container {
        padding: 0 16px;
    }

    /* Solid header on mobile (no frosting) */
    .header.scrolled {
        background: #eef4ff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    @media (prefers-color-scheme: dark) {
        .header.scrolled {
            background: #0c0c10;
        }
    }

    .step-screenshot {
        max-width: 200px;
    }

    /* Show short button text on mobile */
    .btn-text-short {
        display: inline;
    }

    .btn-text-full {
        display: none;
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 16px 0;
        padding-top: calc(16px + env(safe-area-inset-top));
    }

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

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

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin: 0;
        order: 3;
        color: var(--text-primary);
    }

    .mobile-menu-toggle svg {
        display: block;
        width: 24px;
        height: 24px;
    }

    .nav {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        order: 2;
        margin-left: auto;
    }

    .nav .btn-primary {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: static;
        padding: 8px 16px;
        font-size: 14px;
        vertical-align: middle;
    }

    /* Hide Contact, FAQ, Privacy links - show in dropdown */
    .nav a:not(.btn-primary) {
        display: none;
    }

    /* Dropdown menu container */
    .nav.active::before {
        content: '';
        position: fixed;
        top: 75px;
        right: 12px;
        width: 200px;
        height: 106px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 98;
    }

    .nav.active a:not(.btn-primary) {
        display: block;
        position: fixed;
        right: 12px;
        width: 200px;
        padding: 16px 20px;
        color: var(--text-primary);
        background: transparent;
        border-bottom: 1px solid rgba(42, 42, 42, 0.5);
        z-index: 99;
        transition: background 0.2s, color 0.2s;
        font-weight: 500;
        text-align: left;
    }

    .nav.active a:not(.btn-primary):hover {
        background: rgba(59, 130, 246, 0.1);
        color: var(--accent-primary);
    }

    .nav.active a:not(.btn-primary):last-of-type {
        border-bottom: none;
    }

    /* Stack the dropdown links */
    .nav.active a:nth-child(1):not(.btn-primary) {
        top: 75px;
        border-radius: 16px 16px 0 0;
    }

    .nav.active a:nth-child(2):not(.btn-primary) {
        top: calc(75px + 53px);
        border-radius: 0 0 16px 16px;
    }

    /* Dark mode override for mobile menu - must come after light mode styles */
    @media (prefers-color-scheme: dark) {
        .nav.active::before {
            background: rgba(26, 26, 26, 0.95);
            border: 1px solid var(--border-color);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        .nav.active a:not(.btn-primary) {
            border-bottom: 1px solid rgba(42, 42, 42, 0.8);
        }

        .nav.active a:not(.btn-primary):hover {
            background: rgba(59, 130, 246, 0.15);
        }
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .hide-mobile {
        display: none;
    }

    .hero {
        padding: 80px 0;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 24px;
    }

    .hero-tagline {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-punchline {
        margin-top: 24px;
        font-size: 16px;
    }

    .hero-punchline-final {
        margin-top: 12px;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .section-subtitle {
        font-size: 15px;
        margin: -16px auto 32px;
        padding: 0 8px;
    }

    section {
        padding: 60px 0;
    }

    /* Benefits grid mobile */
    .benefits {
        padding: 60px 0;
    }

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

    .benefit-card h3 {
        font-size: 18px;
    }

    .benefit-card p {
        font-size: 15px;
    }

    /* Handoff section mobile */
    .handoff-visual {
        padding-bottom: 0;
    }

    .handoff-mac .handoff-image {
        max-height: clamp(280px, 60vw, 400px);
    }

    .handoff-iphone {
        display: none;
    }

    /* Benefits showcase mobile */
    .benefits-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        max-width: 100%;
        padding: 0 16px;
    }

    .benefits-image {
        order: -1;
    }

    .showcase-screenshot {
        width: min(100%, 260px);
        height: auto;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        margin: 0 auto;
    }

    .benefits-content {
        text-align: left;
    }

    .benefits-title {
        font-size: 28px;
    }

    .benefits-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .benefits-list {
        gap: 24px;
        text-align: left;
    }

    .benefit-item h3 {
        font-size: 17px;
    }

    .benefit-item p {
        font-size: 15px;
    }

    /* Demo section mobile */
    .demo-section {
        padding: 20px 0 60px;
        background: transparent;
    }

    .carousel-track {
        background: transparent;
    }

    .carousel-slide {
        background: transparent;
    }

    .carousel-image {
        height: clamp(450px, 85vw, 550px);
        background: transparent;
        box-shadow: none;
    }

    .demo-video {
        max-width: 220px;
        max-height: 440px;
        border-radius: 16px;
    }

    /* Beta section mobile - smaller CTA button */
    .btn-large {
        padding: 14px 32px;
        font-size: 15px;
    }

    .how-it-works {
        padding-top: 60px;
    }

    /* Feature showcase mobile optimization */
    .feature-showcase {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 60px;
        text-align: center;
    }

    .showcase-content h3 {
        font-size: 24px;
    }

    .showcase-content p {
        font-size: 16px;
    }

    .demo-video {
        max-width: 240px;
        max-height: 480px;
        border-radius: 12px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 15px;
    }

    .step {
        flex-direction: column-reverse;
    }

    .step-screenshot {
        margin-bottom: 0;
        margin-top: 24px;
    }

    .step h3 {
        font-size: 20px;
    }

    .step p {
        font-size: 15px;
    }

    .hero-ctas {
        flex-direction: row;
        gap: 12px;
    }

    .btn {
        flex: 1;
        padding: 12px 16px;
    }

    .faq-item summary {
        padding: 20px;
    }

    .faq-item summary h3 {
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px 20px 20px;
        font-size: 15px;
    }

    .faq-answer p {
        margin-bottom: 16px;
    }

    .faq-answer p:last-child {
        margin-bottom: 0;
    }

    .faq-answer ul {
        padding-left: 24px;
        margin-left: 4px;
    }

    .faq-icon {
        font-size: 20px;
    }

    /* Privacy page mobile styles */
    .page-title {
        font-size: 32px;
    }

    .privacy-policy {
        padding: 80px 0 60px 0;
    }

    .privacy-section h2 {
        font-size: 24px;
    }

    .privacy-section ul {
        padding-left: 24px;
        margin-left: 4px;
    }

    /* Better mobile touch interactions */
    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
        transition: transform 0.05s, opacity 0.05s;
    }

    .feature-card:active {
        transform: scale(0.98);
    }

    .screenshot-card:active {
        transform: scale(0.98);
    }

    .faq-item:active {
        transform: scale(0.99);
        background: rgba(59, 130, 246, 0.05);
    }

    /* Remove hover effects on touch devices */
    @media (hover: none) {
        .feature-card:hover,
        .screenshot-card:hover {
            transform: none;
            box-shadow: none;
        }

        .feature-card:hover::before {
            opacity: 0;
        }
    }

    .logo {
        font-size: 16px;
        gap: 6px;
    }

    .logo-image {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        background: none;
        padding: 0;
        border: none;
        min-width: auto;
    }

    .nav a {
        width: auto;
        display: flex;
        align-items: center;
    }

    .nav .btn {
        padding: 6px 12px;
        font-size: 13px;
        background: var(--gradient-primary);
    }

    .nav-wrapper {
        position: relative;
    }

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

    /* Show hamburger on narrow phones */
    @media (max-width: 430px) {
        .mobile-menu-toggle {
            display: block;
        }
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}
