:root {
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --background: #ffffff;
    --section-bg: #f5f5f7;
    --accent: #0071e3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
                 Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 140px 24px 100px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    color: var(--text-secondary);
}

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

.section.gray {
    background: var(--section-bg);
}

/* Grid for text + mockups */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.text h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.subhead {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.text p, .text li {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.text ul {
    padding-left: 20px;
}

/* Mockups */
.mockups {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    justify-content: center;
}

.iphone {
    width: 280px;
    border-radius: 40px;
    padding: 16px;
    background: #000;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
}

.iphone img {
    width: 100%;
    border-radius: 28px;
    display: block;
}

.watch {
    width: 130px;
    border-radius: 28px;
    padding: 10px;
    background: #111;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.watch img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

/* App Store badge */
.app-badge {
    margin-top: 40px;
}

.app-badge img {
    height: 60px;
}

/* Back link */
.back-link {
    display: inline-block;
    margin: 40px 0 0 24px;
    font-size: 16px;
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* App cards (index page) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 60px 0 120px;
}

.app-card {
    background: var(--section-bg);
    border-radius: 20px;
    padding: 40px 32px;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.10);
}

.app-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 20px;
    display: block;
}

.app-card h2 {
    font-size: 26px;
    margin: 0 0 10px;
}

.app-card .card-status {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.card-status.available { color: #34c759; }
.card-status.coming-soon { color: var(--accent); }

.app-card p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.apple-footer {
    background: #f5f5f7;
    padding: 60px 20px 40px;
    font-size: 12px;
    color: #6e6e73;
}

.apple-footer-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.footer-divider {
    height: 1px;
    background: #d2d2d7;
    margin-bottom: 30px;
}

.footer-links {
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.footer-links a {
    color: #424245;
    text-decoration: none;
    margin: 0 6px;
}

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

.separator {
    color: #d2d2d7;
    margin: 0 4px;
}

.copyright {
    margin: 0;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mockups {
        justify-content: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .text h2 {
        font-size: 32px;
    }
}
