/* PitWeek — landing styles
 * Premium F1-inspired dark UI with Liquid Glass surfaces and a
 * subtle carbon-fiber overlay. Mobile-first, fully responsive.
 */

/* -------------------------- Reset & base -------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
    --red: #E10600;
    --red-glow: rgba(225, 6, 0, 0.35);
    --red-soft: rgba(225, 6, 0, 0.08);
    --bg-0: #050507;
    --bg-1: #0a0a0d;
    --bg-2: #15151a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.72);
    --text-3: rgba(255, 255, 255, 0.5);
    --text-4: rgba(255, 255, 255, 0.32);
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    --orange: #FF8C00;
    --teal: #00D2BE;
    --container: 1200px;
    --radius-card: 20px;
    --radius-pill: 999px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(225, 6, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(225, 6, 0, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Carbon-fiber overlay — diagonal lines at very low opacity */
.carbon-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 4px,
        rgba(255, 255, 255, 0.015) 4px,
        rgba(255, 255, 255, 0.015) 5px
    );
    z-index: 1;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* -------------------------- Header -------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 0;
    background: rgba(10, 10, 13, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--red) 0%, #ff4040 100%);
    box-shadow: 0 4px 12px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
}
.brand-mark::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 3px;
    background:
        repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(255,255,255,0.15) 2px, rgba(255,255,255,0.15) 3px);
}
.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    padding: 10px 18px;
    background: var(--red);
    color: white;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px var(--red-glow);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--red-glow); }

/* -------------------------- Hero -------------------------- */
.hero {
    padding: 140px 0 80px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.6;
    filter: blur(40px);
}
.hero-content {
    max-width: 640px;
    z-index: 3;
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--red-soft);
    border: 1px solid rgba(225, 6, 0, 0.25);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ff6b6b;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.hero-title .accent {
    color: var(--red);
    background: linear-gradient(135deg, var(--red) 0%, #ff4040 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(16px, 1.6vw, 20px);
    color: var(--text-2);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--red) 0%, #ff4040 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 28px var(--red-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--red-glow); }
.btn-large { padding: 20px 36px; font-size: 17px; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.2); }

.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta-pill {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}

/* Hero device mockup */
.hero-device {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.device-frame {
    width: 280px;
    height: 560px;
    border-radius: 48px;
    background: linear-gradient(180deg, #1a1a1d 0%, #0a0a0d 100%);
    border: 8px solid #1a1a1d;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}
.device-frame::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 26px;
    background: #000;
    border-radius: 16px;
    z-index: 10;
}
.device-screen {
    width: 100%;
    height: 100%;
    padding: 60px 24px 30px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 15% 10%, rgba(225, 6, 0, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0d 0%, #050507 100%);
}
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.screen-flag { font-size: 32px; }
.screen-round {
    padding: 5px 11px;
    background: var(--red);
    color: white;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px var(--red-glow);
}
.screen-countdown {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 24px 0 4px;
}
.countdown-num {
    font-size: 96px;
    font-weight: 900;
    color: var(--red);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-shadow: 0 0 40px var(--red-glow);
}
.countdown-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-3);
    margin-bottom: 14px;
}
.screen-event {
    font-size: 19px;
    font-weight: 800;
    margin-top: 16px;
}
.screen-circuit {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    margin-bottom: 20px;
}
.screen-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 16px;
}
.screen-sessions { display: flex; flex-direction: column; gap: 10px; }
.session-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}
.session-row .time {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-3);
    font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.orange { background: var(--orange); }
.dot.red { background: var(--red); }

/* -------------------------- Stats strip -------------------------- */
.stats-strip {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 8px;
}

/* -------------------------- Sections -------------------------- */
.features, .widgets, .pro-section { padding: 100px 0; }

.section-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-2);
    margin-bottom: 16px;
}
.section-eyebrow.accent-text {
    background: var(--red-soft);
    border-color: rgba(225, 6, 0, 0.25);
    color: #ff6b6b;
}
.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-2);
    margin-bottom: 56px;
    max-width: 600px;
}

/* -------------------------- Feature grid -------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 56px;
}
.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 6, 0, 0.3);
    background: var(--surface-2);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red-soft) 0%, transparent 100%);
    border: 1px solid rgba(225, 6, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.feature-card p {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.6;
}

/* -------------------------- Widgets showcase -------------------------- */
.widget-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 56px;
}
.widget-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 15% 10%, rgba(225, 6, 0, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #14141a 0%, #0a0a0e 100%);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.widget-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent 0, transparent 4px, rgba(255, 255, 255, 0.02) 4px, rgba(255, 255, 255, 0.02) 5px);
    pointer-events: none;
}
.widget-schedule { aspect-ratio: 2/1; flex-direction: row; padding: 16px; gap: 16px; }
.widget-schedule .w-side { flex: 1; display: flex; flex-direction: column; }
.widget-schedule .w-list { flex: 1.2; display: flex; flex-direction: column; gap: 4px; }
.w-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 22px;
}
.round-pill {
    padding: 3px 8px;
    background: var(--red);
    color: white;
    border-radius: var(--radius-pill);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 6px var(--red-glow);
}
.round-pill.big { padding: 4px 10px; font-size: 9px; }
.w-big {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: auto 0;
    font-size: 56px;
    font-weight: 900;
    color: var(--red);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-shadow: 0 0 24px var(--red-glow);
}
.w-big.small { font-size: 40px; }
.w-unit {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 800;
    letter-spacing: 0.1em;
}
.w-name { font-size: 13px; font-weight: 800; margin-top: 4px; letter-spacing: -0.01em; }
.w-country { font-size: 9px; color: var(--text-3); font-weight: 700; letter-spacing: 0.1em; }
.w-list-title {
    font-size: 8px;
    font-weight: 800;
    color: var(--text-3);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}
.w-list-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 0;
}
.w-list-row span:last-child {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-3);
    font-size: 8px;
    font-weight: 500;
}
.bar { width: 3px; height: 12px; border-radius: 2px; }
.bar.orange { background: var(--orange); }
.bar.red { background: var(--red); }
.bar.mer { background: var(--teal); }
.bar.fer { background: var(--red); }
.bar.mcl { background: var(--orange); }

.widget-standings .trophy { font-size: 14px; }
.widget-standings .champ {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-2);
    letter-spacing: 0.06em;
}
.standing-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 600;
}
.pos {
    width: 14px; height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-3);
    flex-shrink: 0;
}
.pos.gold { background: var(--gold); color: black; }
.pos.silver { background: var(--silver); color: black; }
.pos.bronze { background: var(--bronze); color: white; }
.pts {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-2);
}

/* -------------------------- PRO section -------------------------- */
.pro-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(225, 6, 0, 0.03) 50%, transparent 100%);
}
.pro-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -300px;
    right: -200px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.4;
    filter: blur(60px);
}
.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 56px;
}
.pro-feature {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    transition: border-color 0.3s, background 0.3s;
}
.pro-feature:hover {
    border-color: rgba(225, 6, 0, 0.4);
    background: var(--surface-2);
}
.pro-icon { font-size: 28px; margin-bottom: 12px; }
.pro-feature h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.pro-feature p {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
}

/* -------------------------- Download -------------------------- */
.download {
    padding: 80px 0 100px;
}
.download-card {
    background:
        radial-gradient(circle at 50% 0%, var(--red-soft) 0%, transparent 60%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid rgba(225, 6, 0, 0.15);
    border-radius: 32px;
    padding: 64px 32px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.download-card h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.download-card p {
    color: var(--text-2);
    font-size: 18px;
    margin-bottom: 32px;
}
.download-meta {
    display: block;
    margin-top: 16px;
    color: var(--text-3);
    font-size: 13px;
}

/* -------------------------- Footer -------------------------- */
footer {
    background: var(--bg-0);
    border-top: 1px solid var(--border);
    padding: 56px 0 24px;
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand-name { font-size: 19px; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-disclaimer {
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 6px;
}
.footer-links a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-base {
    display: flex;
    justify-content: space-between;
    color: var(--text-4);
    font-size: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* -------------------------- Responsive -------------------------- */
@media (max-width: 980px) {
    .hero-device { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .hero { padding: 110px 0 60px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .download-card { padding: 48px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-base { flex-direction: column; gap: 8px; text-align: center; }
}

/* -------------------------- Legal pages (privacy/terms/support) -------------------------- */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 48px;
}
.legal-content h1 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.legal-content .updated {
    color: var(--text-3);
    font-size: 13px;
    margin-bottom: 32px;
    display: block;
}
.legal-content h2 {
    font-size: 19px;
    font-weight: 800;
    color: #ff6b6b;
    margin-top: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content strong { color: var(--text); font-weight: 700; }
.legal-content a { color: #ff6b6b; }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-3);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.legal-back:hover { color: var(--text); }

@media (max-width: 720px) {
    .legal-content { padding: 32px 24px; }
}
