:root {
    --bg: #f4f8ff;
    --surface: #ffffff;
    --ink: #10203b;
    --ink-soft: #3f5378;
    --brand: #0e5cff;
    --brand-deep: #0a3ea8;
    --line: #d7e3ff;
    --ok: #1e9e6a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, #dceaff 0%, transparent 36%),
        radial-gradient(circle at 92% 0%, #e5f2ff 0%, transparent 40%),
        linear-gradient(180deg, #f9fbff 0%, var(--bg) 75%);
    line-height: 1.55;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.container {
    width: min(1080px, 92vw);
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
}

.logo span {
    color: var(--brand);
}

nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
    transition: 200ms ease;
}

nav a:hover,
nav a[aria-current="page"] {
    color: var(--brand-deep);
    background: #eaf1ff;
}

.hero {
    padding: 82px 0 42px;
}

.hero h1 {
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 14px;
}

.hero p {
    max-width: 64ch;
    color: var(--ink-soft);
    margin: 0 0 20px;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    padding: 12px 18px;
    font-weight: 700;
    transition: 180ms ease;
}

.button.primary {
    background: var(--brand);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--brand-deep);
}

.button.secondary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: #ffffff;
}

.button.secondary:hover {
    border-color: #bfd0ff;
    background: #f7faff;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, 1fr);
    margin: 10px 0 70px;
}

.card {
    grid-column: span 4;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(16, 32, 59, 0.06);
}

.card h3 {
    margin: 0 0 8px;
}

.card p {
    margin: 0;
    color: var(--ink-soft);
}

.app-card-top {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: start;
}

.app-card-copy h3 {
    margin: 0 0 8px;
    line-height: 1.2;
    font-size: 1.08rem;
}

.app-card-copy p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.app-card-copy {
    margin-top: 0;
}

.app-card-download {
    margin: 10px 0 0;
    text-align: left;
    line-height: 0;
}

.app-card-download a {
    display: inline-block;
    line-height: 0;
}

.product-icon {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    margin: 0 0 14px;
    border: 1px solid #d7e3ff;
    box-shadow: 0 10px 18px rgba(16, 32, 59, 0.14);
    object-fit: cover;
}

.appletv-icon {
    width: 96px;
    height: auto;
    object-fit: cover;
}

.appstore-badge {
    display: block;
    width: 96px;
    max-width: 100%;
    height: auto;
    margin-top: 0;
}

.content {
    padding: 54px 0 72px;
}

.content h1 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    margin-top: 0;
}

.content h2 {
    margin-top: 32px;
    margin-bottom: 6px;
}

.content p,
.content li {
    color: var(--ink-soft);
}

.content strong {
    color: var(--ink);
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 12px;
    font-weight: 700;
    background: #eaf2ff;
    color: var(--brand-deep);
    margin-bottom: 10px;
}

footer {
    border-top: 1px solid var(--line);
    padding: 22px 0 30px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.highlight {
    border-left: 4px solid var(--ok);
    padding: 2px 0 2px 14px;
    margin: 20px 0;
}

@media (max-width: 900px) {
    .card {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 58px;
        padding: 9px 0;
    }

    .hero {
        padding-top: 52px;
    }

    .grid {
        margin-bottom: 48px;
    }

    .card {
        grid-column: span 12;
    }

    .app-card-top {
        grid-template-columns: 80px 1fr;
    }

    .product-icon {
        width: 80px;
        height: 80px;
    }

    .appletv-icon {
        width: 80px;
        height: auto;
    }

    .appstore-badge {
        width: 80px;
    }
}
