/* Global Reset & Typography */
:root {
    /* Light Mode - Matching AppTheme.swift */
    --bg-color: #F2F2F7;
    --surface-color: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #555555;

    /* App Accent (Neon Green from Theme.swift) */
    --accent: #00CC99;

    --border-radius: 16px;
    --max-width: 900px;

    /* Subtle Border for Light Mode */
    --card-border: #E5E5EA;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 80px;
    background-color: var(--bg-color);
    /* Flat background */
}

.logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    /* Flat accent color, no gradient text unless desired */
    /* keeping gradient text is okay for logo, but let's make it simpler */
    background: none;
    -webkit-text-fill-color: var(--accent);
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 40px;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

/* Device Mockup */
.device-mockup {
    width: 100%;
    /* height: 600px; Removed fixed height to show full screenshot */
    background-color: var(--surface-color);
    border: 8px solid #E0E0E0;
    border-radius: 32px;
    /* Slightly adjusted radius */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    line-height: 0;
    /* Remove potential gap */
}

.app-screenshot {
    width: 100%;
    height: auto;
    /* Allow height to adapt */
    display: block;
}

/* Sections */
.section {
    padding: 80px 0;
}

.dark-bg {
    background-color: var(--bg-color);
    /* Uniform background */
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.lead {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Grid for Features */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: var(--surface-color);
    padding: 32px;
    border-radius: var(--border-radius);
    /* Flat Design: No shadow, simple border */
    border: 1px solid var(--card-border);
    transition: border-color 0.2s ease;
}

.card:hover {
    /* No lift, just color highlight */
    transform: none;
    box-shadow: none;
    border-color: var(--accent);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.card p {
    font-size: 0.95rem;
}

/* Getting Started List */
.steps-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.step-item {
    background: var(--surface-color);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.step-item:hover {
    border-color: var(--accent);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(0, 204, 153, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
}

.step-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Tips List */
.tips-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tip-item {
    background: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    /* Center align items */
    gap: 20px;
    border: 1px solid var(--card-border);
    transition: border-color 0.2s;
}

.tip-item:hover {
    background: var(--surface-color);
    border-color: var(--accent);
}

.tip-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    margin-top: 8px;
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .device-mockup {
        height: 500px;
    }
}