:root {
    color-scheme: light;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --ink: #111c36;
    --muted: #526079;
    --paper: #f6f8fc;
    --line: #dbe4f4;
    font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
    accent-color: var(--blue);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
::selection { color: #fff; background: var(--blue-dark); }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.page-width { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px 20px; background: #fff; z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; gap: 40px; min-height: 96px; border-bottom: 1px solid var(--line); }
.topbar-brandline { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex: 0 0 auto; color: inherit; text-decoration: none; white-space: nowrap; }
.brand-mark { display: block; width: auto; height: 20px; flex: 0 0 auto; object-fit: contain; }
.topbar-brandline .eyebrow { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); padding-block: 12px; }
.site-nav a:hover, .site-footer a:hover { color: var(--blue-dark); }

.hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 64px; padding-block: 56px 80px; }
h1 { font-size: clamp(48px, 5.3vw, 76px); line-height: 1.07; letter-spacing: -.04em; font-weight: 780; }
h1 span { color: var(--blue); }
.hero-description { margin-top: 28px; max-width: 41ch; color: var(--muted); font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 56px; padding: 16px 24px; border-radius: 10px; font-size: 16px; line-height: 1.5; font-weight: 650; text-decoration: none; transition: background-color 180ms ease-out; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-web { color: var(--blue-dark); border: 1px solid #bdcdef; background: transparent; }
.button-web:hover { background: #e8efff; }
.store-badge { display: inline-block; border-radius: 7px; }
.store-badge img { width: 168px; height: 56px; }
.store-badge:hover { opacity: .85; }
.platform-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 23px; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.7; }
.platform-link .icon { width: 17px; height: 17px; }
.platform-link:hover { color: var(--blue-dark); text-decoration: underline; }
.hero-product { justify-self: center; width: 430px; max-width: 100%; padding-inline: 16px; }
.hero-screens { position: relative; aspect-ratio: 398 / 590; }
.hero-ios, .hero-web { position: absolute; transform: translateY(var(--scroll-shift, 0px)); }
.hero-ios { width: 64%; left: 0; top: 0; z-index: 2; }
.hero-web { width: 59%; right: 0; top: 13%; z-index: 1; }
.hero-product img { width: 100%; border-radius: 16px; box-shadow: 0 18px 32px -16px #183a7c45; }
.hero-ios img { transform: rotate(-4deg); }
.hero-web img { transform: rotate(7deg); }
.hero-product figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 11px; }

h2 { font-size: clamp(30px, 3.3vw, 42px); line-height: 1.2; font-weight: 730; letter-spacing: -.035em; }
.product-section { padding-block: 32px 100px; }
.section-intro { max-width: 620px; }
.steps { margin: 42px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 44px 1fr 1.1fr; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-block: 27px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 12%; background: #e5edff; color: var(--blue-dark); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 22px; letter-spacing: -.025em; font-weight: 650; line-height: 1.4; }
.steps p { max-width: 47ch; font-size: 15px; line-height: 1.8; color: var(--muted); }

.tournament-section { padding-bottom: 100px; }
.tournament-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.mode-switch { display: inline-flex; flex-shrink: 0; padding: 5px; gap: 4px; border: 1px solid #c8d7f2; border-radius: 13px; background: #eaf0fb; }
.mode-switch[hidden], .mode-panel[hidden] { display: none; }
.mode-switch button { padding: 12px 20px; min-height: 46px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.mode-switch button:hover { color: var(--blue-dark); }
.mode-switch button[aria-selected="true"] { color: #fff; background: var(--blue); }
.mode-panels { min-height: 300px; margin-top: 32px; }
.mode-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 34px; border-top: 1px solid var(--line); }
.mode-description h3 { font-size: 28px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.mode-description p { margin-top: 18px; max-width: 45ch; color: var(--muted); font-size: 16px; line-height: 1.8; }
.mode-details { margin: 0; }
.mode-details > div { display: grid; grid-template-columns: 116px 1fr; gap: 18px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.mode-details > div:first-child { padding-top: 0; }
.mode-details dt { color: var(--blue-dark); font-size: 14px; font-weight: 650; line-height: 1.75; }
.mode-details dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.mode-shared { display: flex; gap: 10px; align-items: center; padding-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.mode-shared .icon { color: var(--blue); }

.iphone-section { background: #eaf0fb; padding-block: 80px; }
.iphone-layout { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 80px; }
.iphone-copy h2 { max-width: 15ch; }
.iphone-copy > p:not(.platform-note) { max-width: 40ch; margin-top: 23px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; color: var(--blue-dark); font-size: 15px; line-height: 1.6; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.platform-note { max-width: 42ch; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.app-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.app-gallery > figure { transform: translateY(var(--scroll-shift, 0px)); }
.app-gallery figure:last-child { margin-top: 44px; }
.app-gallery img { width: 100%; border-radius: 12px; }
.app-gallery figcaption { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.plus-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; padding-block: 100px; }
.plus-word { color: var(--blue); }
.plus-copy > p:not(.platform-note) { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 43ch; }
.plus-features { list-style: none; padding: 0; margin: 27px 0 0; }
.plus-features li { padding-block: 17px; border-top: 1px solid var(--line); }
.plus-features strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.6; }
.plus-features li span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.insights-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.insights-gallery figure:last-child { margin-top: 52px; }
.insights-gallery img { width: 100%; border-radius: 12px; }
.insights-gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.web-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid var(--line); padding-block: 56px; }
.web-copy p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.web-copy p + p { margin-top: 18px; }

.developer-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 100px; }
.developer-section h2 a { color: var(--blue-dark); text-decoration: none; }
.developer-section h2 a:hover { text-decoration: underline; }
.developer-section h2 .icon { width: 23px; height: 23px; margin-left: 6px; vertical-align: middle; }
.developer-copy p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 45ch; }
.developer-copy p + p { margin-top: 20px; }
.developer-copy .text-link { margin-top: 20px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 30px; border-top: 1px solid var(--line); }
.site-footer p { font-size: 12px; color: var(--muted); }
.site-footer p a { text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.site-footer nav a { font-size: 12px; color: var(--muted); text-decoration: none; padding-block: 8px; }

@media (max-width: 1100px) {
    .page-width { width: calc(100% - 64px); }
    .hero { gap: 32px; }
    .hero-description { font-size: 17px; }
    .hero-product { width: 370px; }
    .iphone-layout, .developer-section, .mode-panel, .web-section, .plus-section { gap: 40px; }
    .steps li { grid-template-columns: 44px 1fr 1.1fr; gap: 20px; }
    .steps h3 { font-size: 20px; }
    .tournament-header { align-items: flex-start; flex-direction: column; }
    .mode-details > div { grid-template-columns: 100px 1fr; gap: 12px; }
}
@media (max-width: 760px) {
    .page-width { width: calc(100% - 40px); }
    .site-header { min-height: 80px; gap: 20px; }
    .brand { font-size: 18px; }
    .brand img { width: 30px; height: 30px; }
    .site-nav a { font-size: 12px; }
    .site-nav a:not(:last-child) { display: none; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 54px 56px; }
    h1 { font-size: clamp(42px, 9.4vw, 68px); }
    .hero-description { margin-top: 22px; max-width: 43ch; font-size: 17px; }
    .hero-actions { gap: 16px; margin-top: 27px; }
    .button { min-height: 50px; padding: 13px 20px; gap: 20px; font-size: 15px; }
    .store-badge img { width: 150px; height: 50px; }
    .platform-link { margin-top: 20px; font-size: 12px; }
    .hero-product { width: 350px; padding-inline: 24px; }
    .product-section { padding-block: 24px 60px; }
    h2 { font-size: 32px; }
    .steps { margin-top: 30px; }
    .steps li { grid-template-columns: 44px 1fr; gap: 7px 18px; padding-block: 25px; }
    .step-number { grid-row: span 2; }
    .steps h3 { font-size: 20px; }
    .steps p { grid-column: 2; max-width: 47ch; }
    .tournament-section { padding-bottom: 60px; }
    .tournament-header { gap: 26px; }
    .mode-switch { width: 100%; }
    .mode-switch button { flex: 1; padding-inline: 10px; font-size: 13px; }
    .mode-panels { min-height: 535px; margin-top: 26px; }
    .mode-panel { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
    .mode-description h3 { font-size: 26px; }
    .mode-description p { font-size: 15px; }
    .mode-details > div { grid-template-columns: 100px 1fr; }
    .mode-shared { align-items: flex-start; font-size: 13px; padding-top: 14px; }
    .mode-shared .icon { margin-top: 3px; }
    .iphone-section { padding-block: 56px; }
    .iphone-layout { grid-template-columns: 1fr; gap: 36px; }
    .iphone-copy h2 { max-width: 18ch; }
    .iphone-copy > p:not(.platform-note) { max-width: 48ch; }
    .app-gallery { max-width: 530px; width: 100%; margin-inline: auto; gap: 14px; }
    .app-gallery figure:last-child { margin-top: 30px; }
    .app-gallery img { border-radius: 10px; }
    .app-gallery figcaption { font-size: 10px; }
    .plus-section { grid-template-columns: 1fr; gap: 32px; padding-block: 60px; }
    .plus-copy > p:not(.platform-note) { font-size: 16px; }
    .insights-gallery { gap: 12px; max-width: 530px; margin-inline: auto; }
    .insights-gallery figcaption { font-size: 10px; }
    .web-section { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
    .developer-section { grid-template-columns: 1fr; gap: 24px; padding-block: 60px; }
    .developer-copy p { max-width: 50ch; }
    .site-footer { column-gap: 20px; row-gap: 14px; padding-block: 28px; }
    .site-footer nav { width: 100%; margin-left: 0; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    [data-scroll-shift] { transform: none !important; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
