:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-border: #333333;
    
    /* App Typography */
    --font-heading: 'Palatino', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    --font-mono: "SF Mono", "Courier New", Courier, monospace;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo.small { font-size: 1rem; }

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.5;
    color: var(--text-secondary);
}

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

.btn-icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
    margin-bottom: 2px; /* Optical alignment */
    object-fit: contain;
}

/* Feature Sections */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 80vh;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
}

.content-side {
    padding: 2rem;
}

.visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

/* Typography */
.hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    border-radius: 18px; /* iOS icon rounded corners approx */
    border: 1px solid #333; /* Separate dark icon from dark bg */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.08); /* Subtle glow */
}

h1.hero-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 em { color: var(--text-secondary); }

.hero-desc {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 2.5rem;
}

h2 {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specs-list {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Product Images */
.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
    transition: transform 0.3s ease;
}

/* SVG Phone Frame Overrides */
svg.product-image {
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
    background: transparent;
}

.product-image:hover {
    transform: scale(1.02);
    border-color: #333;
}

.widget-shot {
    max-width: 320px;
}

.app-shot, .detail-shot {
    max-width: 300px;
}

/* Raw Screenshot Images (no frame) */
.screenshot-raw {
    max-width: 300px;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hero screenshot */
.hero-section .screenshot-raw {
    max-width: 320px;
}

.interactive-shot {
    max-width: 280px;
}

/* Widget Sizes Section */
.sizes-section .screenshot-raw {
    max-width: 320px;
}

/* Interactive Section - reverse layout on mobile */
@media (max-width: 900px) {
    .feature-section.interactive-section {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .feature-section.sizes-section {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Feature Grid */
.feature-grid {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA & Footer */
.cta-section {
    text-align: center;
    padding: 6rem 0;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
}

.install-btn.large {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-weight: bold; /* Make button title thicker */
    text-decoration: none;
}

footer {
    padding: 4rem 3rem;
    color: #444;
    font-family: var(--font-mono);
    font-size: 1rem;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-content-minimal p {
    margin: 0;
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    display: flex; justify-content: center; align-items: center;
}

.modal-content {
    background: #111;
    border: 1px solid #333;
    padding: 3rem;
    border-radius: 20px;
    width: 90%; max-width: 500px;
}

.modal-header { display: flex; justify-content: space-between; margin-bottom: 2rem; }

.steps-container { display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1rem; }
.step-number { 
    background: #fff; color: #000; 
    width: 24px; height: 24px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 4px; font-weight: bold; font-family: var(--font-mono);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .feature-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 4rem;
    }

    .feature-section.app-section,
    .feature-section.interactive-section,
    .feature-section.sizes-section {
        display: flex;
        flex-direction: column-reverse;
    }

    h1.hero-title { font-size: 3rem; }

    .hero-desc { margin: 0 auto 2rem; }
    .specs-list { align-items: center; }

    .product-image {
        max-width: 260px;
    }
    
    .screenshot-raw {
        max-width: 240px;
    }
    
    .hero-section .screenshot-raw {
        max-width: 260px;
    }
    
    .sizes-section .screenshot-raw {
        max-width: 260px;
    }

    /* Footer mobile styles */
    .footer-content-minimal {
        text-align: center;
    }
}

/* New Content Sections */
.centered-section {
    padding: 6rem 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.centered-section h2 { 
    margin-bottom: 2rem; 
    font-size: 2.5rem;
}

.centered-section p { 
    font-size: 1.2rem; 
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pull-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 3rem 0;
    padding: 0 2rem;
    border-left: 2px solid var(--text-primary);
    display: inline-block;
}

/* Comparison Table */
.comparison-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    text-align: left;
    min-width: 600px;
}

.comparison-table th, .comparison-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--accent-border);
}

.comparison-table th { 
    color: var(--text-secondary); 
    font-weight: normal; 
    font-size: 0.9rem;
    text-transform: uppercase;
}

.comparison-table td { color: var(--text-secondary); }
.comparison-table td:first-child { color: var(--text-primary); font-weight: bold; }
.comparison-table td:nth-child(2) { color: var(--text-primary); }

/* Use Case Grid */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin-top: 3rem;
}

.use-case-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--accent-border);
    transition: transform 0.2s;
}

.use-case-item:hover {
    transform: translateY(-2px);
    border-color: #444;
}

.use-case-icon { 
    font-size: 2rem; 
    margin-bottom: 1rem; 
    display: block; 
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
    margin-top: 4rem;
}

.faq-item h3 { 
    color: var(--text-primary); 
    margin-bottom: 0.8rem; 
    text-transform: none; 
    font-size: 1.1rem;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
    .centered-section { padding: 4rem 5%; }
    
    /* Mobile Navigation: Hide text links, keep CTA */
    .nav-link { display: none; }
    
    /* Reduce header padding on mobile to give more space */
    header { padding: 1.5rem; }
}

/* Carousel Styles */
.full-width-carousel {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.carousel-window {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousel-track .use-case-item {
    width: 300px;
    flex-shrink: 0;
    /* Resetting previous grid-specific styles if any, though HTML structure changed */
    margin: 0;
}

/* Grayscale Emojis */
.use-case-icon {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.use-case-item:hover .use-case-icon {
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 6 - 1.5rem * 6)); }
}

/* Pause animation on hover */
.carousel-track:hover {
    animation-play-state: paused;
}
