:root {
    --ink: #121714;
    --text: #233028;
    --muted: #66746c;
    --line: #dbe4df;
    --panel: #ffffff;
    --surface: #f5f7f2;
    --surface-2: #eef4f0;
    --dark: #07130d;
    --dark-2: #102019;
    --accent: #19a765;
    --accent-2: #d5a631;
    --accent-3: #1e7898;
    --danger-soft: #fff3d7;
    --shadow: 0 22px 55px rgba(7, 19, 13, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, #ffffff 0%, var(--surface) 54%, #ffffff 100%);
    line-height: 1.55;
}

a { color: inherit; }
.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(18px, 5vw, 72px);
    border-bottom: 1px solid rgba(219, 228, 223, .85);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.brand img {
    display: block;
    width: 214px;
    height: auto;
}
nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 800;
}
nav a:hover { background: var(--surface-2); color: var(--ink); }
nav a:focus-visible,
.button:focus-visible,
button:focus-visible,
.ghost:focus-visible {
    outline: 3px solid rgba(25,167,101,.28);
    outline-offset: 3px;
}
nav a.nav-button {
    border: 2px solid var(--ink);
    border-radius: 4px;
    color: var(--ink);
    background: #fff;
    padding: 0 14px;
}
nav a.nav-button:hover {
    background: var(--ink);
    color: #fff;
}

main { padding: 0 clamp(18px, 5vw, 72px) 72px; }
.premium-hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, .72fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    margin: 0 calc(clamp(18px, 5vw, 72px) * -1);
    padding: clamp(54px, 8vw, 112px) clamp(18px, 5vw, 72px);
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 19, 13, .96) 0%, rgba(7, 19, 13, .82) 43%, rgba(7, 19, 13, .36) 100%),
        url("/assets/images/football-analytics-hero.png") center right / cover no-repeat;
}
.premium-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(245,247,242,0), var(--surface));
    pointer-events: none;
}
.hero-copy, .hero-panel { position: relative; z-index: 1; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
    max-width: 960px;
    font-size: clamp(2.75rem, 6.6vw, 6.7rem);
    line-height: .92;
    letter-spacing: 0;
    margin: 0 0 24px;
    color: inherit;
}
h2 {
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.08;
    margin: 0 0 16px;
    color: var(--ink);
}
h3 { margin: 0 0 10px; color: var(--ink); }
p { margin: 0 0 16px; }
.hero-copy > p:not(.eyebrow) {
    max-width: 760px;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: rgba(255,255,255,.82);
}
.eyebrow {
    margin-bottom: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: .76rem;
    font-weight: 950;
    color: var(--accent-2);
}
.actions, .payment-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #0b7044);
    color: #fff;
    padding: 0 19px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(25,167,101,.22);
}
.button:hover, button:hover { filter: brightness(1.03); transform: translateY(-1px); }
.button.small {
    min-height: 36px;
    padding: 0 13px;
    font-size: .9rem;
}
.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 19px;
    text-decoration: none;
    font-weight: 900;
    background: #fff;
    color: var(--ink);
}
.ghost.light {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.24);
    backdrop-filter: blur(10px);
}
.trust-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.trust-row span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 0 12px;
    color: rgba(255,255,255,.76);
    background: rgba(255,255,255,.07);
    font-weight: 800;
    font-size: .9rem;
}
.hero-panel, .notice, .tip-of-day, .auth, .card, .prediction-card, .match-card, .feature {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}
.glass-panel {
    color: #fff;
    background: rgba(8, 23, 15, .74);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 28px 70px rgba(0,0,0,.33);
    backdrop-filter: blur(18px);
}
.glass-panel h2 { color: #fff; }
.muted-invert { color: rgba(255,255,255,.68); }
.score-ring {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    margin: 22px 0;
    border-radius: 50%;
    color: #fff;
    font-size: 2.1rem;
    font-weight: 950;
    background:
        radial-gradient(circle at center, var(--dark) 0 52%, transparent 53%),
        conic-gradient(var(--accent) 0 74%, rgba(255,255,255,.18) 74% 100%);
}
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: -34px 0 64px;
    position: relative;
    z-index: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--line);
}
.stats-strip div {
    min-height: 112px;
    display: grid;
    align-content: center;
    padding: 22px;
    background: #fff;
}
.stats-strip strong { font-size: 1.7rem; color: var(--ink); }
.stats-strip span { color: var(--muted); font-weight: 800; }
.section-head {
    max-width: 860px;
    margin: 0 0 22px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 4rem); }
.grid {
    display: grid;
    gap: 20px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid, .tips-grid { margin-bottom: 62px; }
.feature {
    min-height: 210px;
    background: linear-gradient(180deg, #fff, #f8faf7);
}
.feature span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    border-radius: 8px;
    color: #fff;
    background: var(--dark-2);
    font-weight: 950;
}
.feature p, .match-card p, .prediction-card p { color: var(--muted); }
.match-card, .prediction-card {
    box-shadow: 0 15px 40px rgba(18, 23, 20, .08);
}
.match-card {
    display: grid;
    gap: 16px;
}
.match-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 900;
}
.match-card h3, .prediction-card h2 {
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    line-height: 1.08;
}
.match-card h3 span, .prediction-card h2 span { color: var(--accent-3); }
.bar-row {
    display: grid;
    grid-template-columns: minmax(98px, 1fr) minmax(90px, 1.15fr) 46px;
    align-items: center;
    gap: 10px;
    min-height: 32px;
}
.bar-row span {
    font-size: .92rem;
    font-weight: 800;
    color: var(--text);
}
.bar-row div {
    height: 8px;
    border-radius: 999px;
    background: #e8eee9;
    overflow: hidden;
}
.bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.bar-row strong {
    text-align: right;
    color: var(--ink);
}
.preview-lock {
    position: relative;
    margin: 4px 0 2px;
}
.preview-blur .bar-row div,
.preview-blur .bar-row strong {
    filter: blur(7px);
    user-select: none;
}
.preview-lock::after {
    content: "";
    position: absolute;
    inset: 28px -4px -2px calc(50% - 30px);
    border-radius: 8px;
    background: rgba(255,255,255,.42);
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.preview-lock-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    color: #fff;
    background: rgba(7, 19, 13, .82);
    font-size: .78rem;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(7,19,13,.18);
}
.text-link {
    margin-top: 8px;
    color: var(--accent);
    font-weight: 950;
    text-decoration: none;
}
.pricing-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 70px;
    padding: clamp(28px, 5vw, 54px);
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--dark), #173223);
    color: #fff;
}
.pricing-band h2 { color: #fff; }
.pricing-band p { max-width: 760px; color: rgba(255,255,255,.76); }
.page-head {
    padding: 52px 0 28px;
    margin-bottom: 18px;
}
.rich-head {
    max-width: 980px;
}
.page-head h1, .auth h1 {
    font-size: clamp(2.35rem, 5.6vw, 5.2rem);
    line-height: .94;
    margin-bottom: 18px;
}
.muted { color: var(--muted); }
.auth {
    max-width: 620px;
    margin: 56px auto;
    box-shadow: var(--shadow);
}
.form {
    display: grid;
    gap: 15px;
}
label {
    display: grid;
    gap: 7px;
    font-weight: 900;
    color: var(--ink);
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(25,167,101,.14);
    border-color: var(--accent);
}
textarea { resize: vertical; }
.check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.check input { width: auto; }
.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.meter {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    background: #e8f7ef;
    color: #0c6b41;
    padding: 0 13px;
    font-weight: 950;
}
.notice {
    background: var(--danger-soft);
    border-color: #f0d99b;
}
.flash {
    margin: 18px clamp(18px, 5vw, 72px) 0;
    background: #e8f7ef;
    border: 1px solid #b8e2ca;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 900;
}
.tip-of-day, .premium-tip {
    margin-bottom: 32px;
    background:
        linear-gradient(135deg, #ffffff 0%, #f7fbf5 100%);
    box-shadow: var(--shadow);
}
.premium-tip h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.prediction-card {
    display: grid;
    gap: 16px;
}
.prediction-card.compact { align-content: start; }
.venue {
    margin-top: -10px;
    font-weight: 800;
}
.market-stack {
    display: grid;
    gap: 14px;
}
.market {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}
.market h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}
.mini-note {
    margin: 7px 0 0;
    font-size: .94rem;
}
.source-box {
    padding: 16px;
    border-radius: 8px;
    background: var(--surface-2);
}
.source-box p { margin-top: 7px; margin-bottom: 0; }
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 42px;
}
.about-hero > div:first-child {
    padding: clamp(28px, 5vw, 52px);
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7,19,13,.96), rgba(19,54,37,.94)),
        url("/assets/images/football-analytics-hero.png") center / cover no-repeat;
}
.about-hero h2 { color: #fff; }
.about-hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.about-panel {
    display: grid;
    gap: 12px;
    align-content: center;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.about-panel strong {
    font-size: 1.45rem;
    color: var(--ink);
}
.about-panel span {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 14px;
    background: var(--surface-2);
    font-weight: 900;
}
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
    gap: 24px;
    align-items: start;
}
.contact-card,
.contact-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.contact-card {
    padding: clamp(22px, 4vw, 34px);
}
.contact-panel {
    padding: clamp(24px, 4vw, 38px);
}
.contact-panel h2 {
    color: var(--ink);
}
.account-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 34px;
}
.account-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 32px);
}
.account-status {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
}
.account-card h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 14px;
}
.account-list {
    display: grid;
    gap: 14px;
    margin: 0;
}
.account-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.account-list dt {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}
.account-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 850;
}
.portal-notice {
    margin-top: 24px;
}
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(18, 23, 20, .06);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
th, td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
th {
    color: var(--ink);
    background: #f8faf8;
}
footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 26px clamp(18px, 5vw, 72px);
    background: #fff;
}

@media (max-width: 1050px) {
    .premium-hero, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .brand img { width: min(210px, 78vw); }
    nav {
        width: 100%;
        gap: 8px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    nav a {
        justify-content: center;
        min-height: 42px;
        padding-left: 10px;
        padding-right: 10px;
        border: 1px solid var(--line);
        background: #fff;
    }
    nav a.button.small {
        width: 100%;
        box-shadow: none;
    }
    main { padding-bottom: 48px; }
    .premium-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 46px;
        padding-bottom: 78px;
        background:
            linear-gradient(180deg, rgba(7, 19, 13, .95) 0%, rgba(7, 19, 13, .82) 100%),
            url("/assets/images/football-analytics-hero.png") center / cover no-repeat;
    }
    .grid.two, .grid.three, .grid.four, .stats-strip, .about-hero, .contact-layout, .account-overview { grid-template-columns: 1fr; }
    .stats-strip { margin-top: -28px; }
    .pricing-band {
        align-items: flex-start;
        flex-direction: column;
    }
    .bar-row {
        grid-template-columns: 1fr 72px;
    }
    .bar-row div { grid-column: 1 / -1; order: 3; }
    .bar-row strong { text-align: left; }
    .mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    h1 { font-size: clamp(2.25rem, 13vw, 3.2rem); }
    .hero-panel, .notice, .tip-of-day, .auth, .card, .prediction-card, .match-card, .feature {
        padding: 18px;
    }
    nav {
        grid-template-columns: 1fr;
    }
    .stats-strip div {
        min-height: 88px;
    }
    .preview-lock-badge {
        position: static;
        transform: none;
        margin-top: 10px;
        width: fit-content;
    }
    .preview-lock::after {
        inset: 30px -4px 38px 42%;
    }
}
