:root {
    --color-cream: #FFF9F0;
    --color-warm-white: #FFFDFB;
    --color-crust: #8B5A2B;
    --color-crust-dark: #5D3A1A;
    --color-golden: #D4A056;
    --color-golden-light: #E8C48A;
    --color-toast: #C68B4E;
    --color-text: #3D2914;
    --color-text-secondary: #7A6352;
    --color-bg: var(--color-warm-white);
    --color-surface: #FFFFFF;
    --color-surface-elevated: #FFFFFF;
    --color-border: rgba(139, 90, 43, 0.12);
    --gradient-warm: linear-gradient(135deg, #FFF9F0 0%, #FFE8D0 50%, #FFF4E8 100%);
    --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(212, 160, 86, 0.15) 0%, transparent 50%),
                    radial-gradient(ellipse at 70% 80%, rgba(198, 139, 78, 0.1) 0%, transparent 50%),
                    var(--gradient-warm);
    --shadow-sm: 0 2px 8px rgba(93, 58, 26, 0.06);
    --shadow-md: 0 8px 32px rgba(93, 58, 26, 0.08);
    --shadow-lg: 0 16px 64px rgba(93, 58, 26, 0.12);
    --shadow-glow: 0 0 60px rgba(212, 160, 86, 0.3);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-cream: #1A1412;
        --color-warm-white: #0D0A08;
        --color-text: #F5EDE5;
        --color-text-secondary: #A89888;
        --color-bg: #0D0A08;
        --color-surface: #1A1412;
        --color-surface-elevated: #241E1A;
        --color-border: rgba(212, 160, 86, 0.15);
        --gradient-warm: linear-gradient(135deg, #1A1412 0%, #0D0A08 50%, #1A1412 100%);
        --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(212, 160, 86, 0.08) 0%, transparent 50%),
                        radial-gradient(ellipse at 70% 80%, rgba(198, 139, 78, 0.05) 0%, transparent 50%),
                        var(--gradient-warm);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
        --shadow-glow: 0 0 80px rgba(212, 160, 86, 0.15);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(255, 253, 251, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    nav {
        background: rgba(13, 10, 8, 0.85);
    }
}

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

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

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-logo span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    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='%23D4A056' fill-opacity='0.03'%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") repeat;
    animation: drift 60s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 2rem;
    filter: drop-shadow(var(--shadow-glow));
    animation: float 6s ease-in-out infinite;
}

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

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-crust-dark) 0%, var(--color-crust) 50%, var(--color-toast) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-color-scheme: dark) {
    .hero h1 {
        background: linear-gradient(135deg, var(--color-golden-light) 0%, var(--color-golden) 50%, var(--color-toast) 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-crust) 0%, var(--color-crust-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 90, 43, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 90, 43, 0.4);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-golden);
    background: var(--color-surface-elevated);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.platforms {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.platforms span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Device Showcase */
.showcase {
    padding: 6rem 2rem;
    background: var(--color-bg);
}

.showcase-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.showcase-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.device-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.device-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.device-tab:hover {
    border-color: var(--color-golden);
}

.device-tab.active {
    background: var(--color-crust);
    color: white;
    border-color: var(--color-crust);
}

.screenshots-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

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

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

.screenshot {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.02);
}

.screenshot img {
    height: auto;
    max-height: 600px;
    width: auto;
}

.screenshot.iphone img {
    max-height: 580px;
}

.screenshot.ipad img {
    max-height: 550px;
}

.screenshot.mac img {
    max-height: 480px;
    border-radius: var(--radius-md);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: var(--gradient-warm);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 160, 86, 0.15);
    color: var(--color-crust);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-icon.green { background: rgba(52, 199, 89, 0.15); }
.feature-icon.red { background: rgba(255, 59, 48, 0.15); }
.feature-icon.blue { background: rgba(0, 122, 255, 0.15); }
.feature-icon.orange { background: rgba(255, 149, 0, 0.15); }
.feature-icon.purple { background: rgba(175, 82, 222, 0.15); }
.feature-icon.teal { background: rgba(90, 200, 250, 0.15); }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

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

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

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-golden) 0%, var(--color-toast) 100%);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(212, 160, 86, 0.3);
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

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

/* Privacy Section */
.privacy {
    padding: 8rem 2rem;
    background: var(--gradient-warm);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.privacy-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.privacy-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.privacy-list {
    list-style: none;
    margin-top: 2rem;
}

.privacy-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.privacy-list li span {
    font-size: 1.25rem;
}

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

.privacy-badge {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-golden);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.privacy-badge span:first-child {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.privacy-badge span:last-child {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-crust);
}

/* FAQ Section */
.faq {
    padding: 8rem 2rem;
    background: var(--color-bg);
}

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

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

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

/* Download Section */
.download {
    padding: 8rem 2rem;
    background: var(--gradient-hero);
    text-align: center;
}

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

.download h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.download p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.app-store-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Make screenshots clickable */
.screenshot {
    cursor: zoom-in;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.footer-logo span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-crust);
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-icon {
        width: 120px;
        height: 120px;
    }

    .privacy-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .privacy-list {
        text-align: left;
    }

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

/* Light/Dark image switching based on system preference */
.screenshot picture.img-light { display: block; }
.screenshot picture.img-dark { display: none; }

@media (prefers-color-scheme: dark) {
    .screenshot picture.img-light { display: none; }
    .screenshot picture.img-dark { display: block; }
}

/* Ensure picture elements display properly */
.screenshot picture img {
    display: block;
    height: auto;
    max-height: 600px;
    width: auto;
}

.screenshot.iphone picture img {
    max-height: 580px;
}

.screenshot.ipad picture img {
    max-height: 550px;
}

.screenshot.mac picture img {
    max-height: 480px;
    border-radius: var(--radius-md);
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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