: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 {
    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;
}

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

.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;
}

/* 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;
}

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

/* Widget Phase-in Effect */
.widget-fade-wrapper {
    position: relative;
    /* Create a smooth fade out at the bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.widget-shot {
    max-width: 320px; /* Reduced width for better proportion with fade */
    border-bottom: none; /* Remove border at bottom where it fades */
}

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

/* 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 {
    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 */
}

footer {
    padding: 3rem;
    text-align: center;
    color: #444;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* 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 {
        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: 300px;
    }
}
