/* Cupertino Flagship Pro Theme - Adjusted Sapphire & Aurora Palette */
:root {
    color-scheme: light;
    --paper: #ffffff;
    --paper-raise: #f4f6fa;
    --paper-raise-hover: #e9edf5;
    --ink: #111827;
    --soft: #374151;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-soft: #f0f9ff;
    --pulse: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #7c3aed 100%);
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.15s ease;
}

.wrap {
    width: min(1140px, 100% - 32px);
    margin: 0 auto;
}

/* Header */
.site-header {
    height: 58px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav-link {
    font-size: 14px;
    color: var(--soft);
    font-weight: 500;
}

.site-nav-link:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 9999px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--paper-raise);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--paper-raise-hover);
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

/* Hero Section */
.hero-section {
    padding: 72px 0 20px 0;
    text-align: center;
}

.home-eyebrow {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-title {
    font-size: clamp(2.5rem, 5.8vw, 4.4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
    max-width: 860px;
    margin: 0 auto;
}

.home-lede {
    margin: 22px auto 0 auto;
    max-width: 680px;
    font-size: 19px;
    line-height: 1.65;
    color: var(--soft);
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-subnote {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

/* Activity Mockup Showcase */
.showcase-window {
    margin: 48px auto 0 auto;
    max-width: 980px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    color: #e2e8f0;
}

.window-header {
    background: #1e293b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.win-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.win-dot-red { background: #ef4444; }
.win-dot-yellow { background: #f59e0b; }
.win-dot-green { background: #10b981; }

.window-body {
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

.stat-item-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.stat-item-val {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.stat-item-desc {
    font-size: 12px;
    color: #38bdf8;
    margin-top: 4px;
}

/* One App Three Jobs Section */
.home-section {
    padding: 88px 0;
}

.home-titled {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 36px;
}

.home-app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.home-heading {
    font-size: clamp(1.85rem, 3.8vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.job-card {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.job-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.job-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--muted);
}

/* Home Band */
.home-band {
    background: var(--paper-raise);
    padding: 80px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
}

.band-content p.desc {
    font-size: 16.5px;
    color: var(--soft);
    line-height: 1.7;
    margin-top: 16px;
}

.dash-preview {
    background: #0f172a;
    border-radius: 12px;
    padding: 24px;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.dash-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}

.dash-tag {
    color: #38bdf8;
    font-weight: 700;
}

/* 12 Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 32px;
    margin-top: 48px;
}

.feature-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 10px 0 6px 0;
}

.feature-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.feature-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

/* Home iOS / Showcase */
.home-ios {
    padding: 88px 0 20px 0;
    background: linear-gradient(180deg, var(--paper-raise) 0%, var(--paper) 100%);
    overflow: hidden;
}

.ios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.home-pulse {
    display: block;
    margin-top: 0.12em;
    font-size: 0.72em;
    background: var(--pulse);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.phone-mockups {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.phone-frame {
    width: 210px;
    padding: 8px;
    border-radius: 36px;
    background: #1d1d1f;
    box-shadow: 0 35px 70px -25px rgba(0, 0, 0, 0.35);
}

.phone-screen {
    aspect-ratio: 9 / 19.5;
    border-radius: 28px;
    background: #0f172a;
    padding: 18px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 12px;
}

.phone-offset {
    transform: translateY(32px);
}

/* Closing CTA */
.home-closing {
    padding: 88px 0;
    text-align: center;
}

/* Download Page */
.download-card {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 48px 40px;
    max-width: 820px;
    margin: 48px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.download-card h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-spec-table {
    width: 100%;
    margin: 28px 0 32px 0;
    border-collapse: collapse;
    text-align: left;
}

.download-spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}

.download-spec-table td:first-child {
    color: var(--muted);
    font-weight: 600;
    width: 120px;
}

/* Footer */
.site-footer {
    background: var(--paper-raise);
    border-top: 1px solid var(--line);
    padding: 56px 0 44px 0;
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: var(--muted);
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--faint);
    font-size: 12.5px;
}

/* Responsive */
@media (max-width: 860px) {
    .jobs-grid, .band-grid, .features-grid, .ios-grid, .window-body, .footer-grid {
        grid-template-columns: 1fr;
    }
    .phone-mockups {
        margin-top: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
@media (max-width: 880px) {
    .nav-links, .nav-menu {
        display: none !important;
    }
}
