:root {
    --teal: #2A6464;
    --red: #B23C36;
    /* hero widget typography - unified, compact */
    --hero-fs-xs: 0.52rem;
    --hero-fs-sm: 0.62rem;
    --hero-fs-body: 0.68rem;
    --hero-fs-title: 0.72rem;
    /* app3-style variables for hero widgets */
    --color-surface-well: #f2f2f2;
    --color-border-light: #dbdbdb;
    --color-text-strong: #171b34;
    --color-text-muted: #999;
    --color-surface-muted: #f7f7f7;
    --slate-900: #0f172a;
    --slate-800: #1f2937;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
}

* { box-sizing: border-box; }

body.page {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--slate-50);
    color: var(--slate-900);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .display-font { font-family: 'Space Grotesk', sans-serif; }

::selection { background: var(--teal); color: white; }

html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }

/* Offset in-page anchors for sticky header */
section[id] { scroll-margin-top: 5rem; }

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Hero widgets - app3 well-style (keeps round borders) */
.hero-well {
    background: var(--color-surface-well, #f2f2f2);
    border: 1px solid var(--color-border-light, #dbdbdb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
}

.teal-glow {
    text-shadow: 0 0 30px rgba(42, 100, 100, 0.2);
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulse-red {
    0%, 100% { background-color: rgba(178, 60, 54, 1); box-shadow: 0 0 0 0 rgba(178, 60, 54, 0.4); }
    50% { background-color: rgba(178, 60, 54, 0.8); box-shadow: 0 0 0 6px rgba(178, 60, 54, 0); }
}

.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 6s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 4s ease-in-out infinite; }
.animate-pulse-red { animation: pulse-red 2s infinite; }

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.7);
}
.navbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.logo img {
    width: 16rem;
    height: 4rem;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}
.logo:hover img { transform: scale(1.02); }
.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    transition: color 0.2s ease;
}
@media (min-width: 768px) {
    .nav-link { font-size: 1rem; }
}
.nav-link:hover { color: var(--slate-900); }
@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.cta-button {
    position: relative;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}
.cta-shadow {
    position: absolute;
    inset: 0;
    background: var(--red);
    border-radius: 0.5rem;
    transform: skewX(-12deg);
    filter: blur(8px);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}
.cta-button:hover .cta-shadow { opacity: 0.4; }
.cta-surface {
    position: relative;
    background: var(--red);
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    transform: skewX(-12deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}
.cta-button:hover .cta-surface { background: #c4453e; }
.cta-text {
    display: block;
    transform: skewX(12deg);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
}

main.main {
    position: relative;
    z-index: 10;
    padding: 3.5rem 0 3rem;
}
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}
.hero-left { display: flex; flex-direction: column; }
.hero-right { position: relative; height: 320px; width: 100%; perspective: 1000px; }
@media (min-width: 1024px) {
    .hero { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
    .hero-left { grid-column: span 5; }
    .hero-right { grid-column: span 7; }
}

.ball-selection {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: .5rem 0;
}
.ball-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}
.ball-chip {
    width: 3.4rem;
    height: 3.4rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    cursor: pointer;
    transition: transform 0.5s ease-in-out, filter 0.3s ease-in-out;
}
.ball-chip:hover { transform: scale(1.15); }
.ball-chip.is-active {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.9));
}
.ball-chip[disabled] {
    cursor: default;
    opacity: 0.6;
}

.hero-title {
    font-size: clamp(1rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 2rem 0;
}
.hero-title .highlight {
    color: transparent;
    background: linear-gradient(90deg, var(--teal), #14b8a6, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 2em;
}
.hero-desc, .features-desc, .showcase-desc, .roadmap-desc, .contact-desc {
    font-size: 1rem;
    color: var(--slate-500);
    max-width: 32rem;
    line-height: 1.7;
    margin-right: .5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.9rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--slate-900);
    color: white;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}
.btn-primary:hover { background: #1e293b; transform: scale(1.02); }
.btn-secondary {
    background: white;
    color: var(--slate-600);
    border-color: var(--slate-200);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}
.btn-secondary:hover { background: var(--slate-50); color: var(--slate-900); }

.stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-200);
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
}
.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-500);
}
.stat-divider { width: 1px; height: 2rem; background: var(--slate-200); }

/* Visuals */
.center-ball {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.ball-model {
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: transparent;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    position: relative;
    --poster-color: transparent;
    --progress-bar-height: 0px;
    --progress-mask: none;
    background-color: transparent;
    outline: none;
    transition: opacity 0.45s ease;
}
 .ball-model.is-fading { opacity: 0; }
/* Hide model-viewer default loading ring/bar */
.ball-model::part(default-progress-bar),
.ball-model::part(progress-bar) {
    display: none;
}
.ball-model:focus-visible { outline: none; }
/* .ball-model::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: screen;
    pointer-events: none;
}
.ball-model::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 70% 75%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 60%);
    mix-blend-mode: multiply;
    pointer-events: none;
} */
.ball {
    position: relative;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: var(--slate-900);
    border: 1px solid rgba(51, 65, 85, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.ball-texture {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background: url('https://images.unsplash.com/photo-1519861531473-920026393112?q=80&w=1000&auto=format&fit=crop') center/cover;
    mix-blend-mode: overlay;
}
.ball-line {
    position: absolute;
    width: 110%;
    height: 1px;
    background: rgba(71, 85, 105, 0.5);
    top: 50%;
}
.ball-line.rotate-pos { transform: translateY(-50%) rotate(45deg); }
.ball-line.rotate-neg { transform: translateY(-50%) rotate(-45deg); }
.ball-border {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 1px solid rgba(51, 65, 85, 0.2);
    box-shadow: inset 10px 10px 40px rgba(255, 255, 255, 0.1);
}

/* Live widget - app3 LigoweMatch who-plays style + concise stats */
.live-widget {
    position: absolute;
    bottom: 1rem;
    top: unset;
    left: 0;
    z-index: 20;
    width: 13rem;
    padding: 0.9rem;
}
.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--red);
}
.live-label {
    font-size: var(--hero-fs-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--red);
}
.live-time {
    font-size: var(--hero-fs-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
}
.live-widget .who-plays {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Space Grotesk', Helvetica, sans-serif;
    font-size: var(--hero-fs-body);
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-text-strong);
}
.live-widget .team-a,
.live-widget .team-b {
    display: flex;
    flex: 1 1 40%;
    align-items: center;
    gap: 0.35rem;
}
.live-widget .team-a {
    text-align: right;
    justify-content: flex-end;
}
.live-widget .team-b {
    text-align: left;
    justify-content: flex-start;
}
.live-widget .team-name {
    flex: 1 1 auto;
    font-size: var(--hero-fs-body);
    color: var(--color-text-strong);
}
.live-widget .result {
    flex: 0 0 auto;
    font-weight: bold;
    font-size: var(--hero-fs-body);
}
.live-widget .separator {
    flex: 0 0 auto;
    margin: 0 4px;
    color: var(--color-text-strong);
}

.live-progress {
    margin-top: 0.5rem;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.live-progress-bar {
    height: 100%;
    width: 72%;
    background: var(--red);
    opacity: 0.6;
    border-radius: inherit;
    transition: width 0.4s ease;
}

/* Live stats: mini table (basket/volley) + soccer goals/yc */
.live-stats {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border-light);
}
.live-stats-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--hero-fs-sm);
}
.live-stats-table td,
.live-stats-table th {
    padding: 2px 4px;
    border: none;
}
.live-stats-table .darker th {
    background: var(--color-surface-muted);
    color: var(--color-text-strong);
    font-weight: 600;
}
.live-stats-table .live-player-name {
    font-weight: 500;
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-stats-table .right {
    text-align: right;
}
.live-stats-soccer {
    font-size: var(--hero-fs-sm);
}
.live-soccer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    gap: 0.4rem;
}
.live-soccer-row .live-player-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-soccer-row .live-badges {
    flex: 0 0 auto;
    font-size: var(--hero-fs-body);
}

/* Standings - app3 LigoweTable style */
.standings {
    position: absolute;
    top: 5rem;
    right: 0;
    z-index: 10;
    width: 16rem;
    overflow: hidden;
    padding: 0.6rem 1rem 0.5rem;
    animation: float-slow 7s ease-in-out infinite;
    animation-delay: 1.5s;
    display: none;
}
.standings-title {
    font-size: var(--hero-fs-title);
    text-transform: uppercase;
    margin: 0;
    padding: 0.6rem 1rem;
    color: var(--color-text-strong);
}
.standings .league {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--hero-fs-body);
}
.standings .league td,
.standings .league th {
    border: 1px solid var(--color-border-light);
    border-width: 0 0 1px;
    padding: 4px 8px;
    vertical-align: top;
}
.standings .league .darker td,
.standings .league .darker th {
    background: var(--color-surface-muted);
    color: var(--color-text-strong);
}
.standings .league .right {
    text-align: right;
}
.standings .league .team-name {
    font-weight: 500;
}

/* Stats rank - top 4 players by sport-specific stat */
.stats-rank {
    position: absolute;
    bottom: 1rem;
    left: auto;
    right: 0;
    z-index: 30;
    width: 12rem;
    overflow: hidden;
}
.stats-rank-title {
    font-size: var(--hero-fs-title);
    text-transform: uppercase;
    margin: 0;
    padding: 0.6rem 0.75rem 0.4rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-strong);
}
.stats-rank-list {
    padding: 0.4rem 0.75rem 0.6rem;
}
.stats-rank-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: var(--hero-fs-body);
}
.stats-rank-item .rank {
    flex: 0 0 1.2rem;
    font-weight: 700;
    color: var(--teal);
}
.stats-rank-item .player-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-strong);
}
.stats-rank-item .stat-value {
    flex: 0 0 auto;
    font-weight: 600;
    font-size: var(--hero-fs-sm);
    color: var(--color-text-strong);
}

/* Recent matches - app3 LigoweMatch style, played results */
.recent-matches {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 20;
    width: 14rem;
    padding: 0.75rem 1rem;
    display: none;
}
.recent-matches-title {
    font-size: var(--hero-fs-title);
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-strong);
}
.recent-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.recent-match-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.recent-match-context {
    font-size: var(--hero-fs-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.recent-match-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.recent-match-item {
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(219, 219, 219, 0.5);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.recent-match-item:hover {
    background: white;
    border-color: var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.recent-match-item .who-plays {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Space Grotesk', Helvetica, sans-serif;
    font-size: var(--hero-fs-body);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-text-strong);
}
.recent-match-item .team-a,
.recent-match-item .team-b {
    display: flex;
    flex: 1 1 40%;
    align-items: center;
    gap: 0.35rem;
}
.recent-match-item .team-a { text-align: right; justify-content: flex-end; }
.recent-match-item .team-b { text-align: left; justify-content: flex-start; }
.recent-match-item .team-name {
    flex: 1 1 auto;
    font-size: var(--hero-fs-body);
}
.recent-match-item .team-name.winner {
    font-weight: 700;
    color: var(--teal);
}
.recent-match-item .result {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: var(--hero-fs-body);
    color: var(--color-text-strong);
}
.recent-match-item .separator {
    flex: 0 0 auto;
    margin: 0 6px;
    font-weight: 600;
    color: var(--slate-400);
}

/* Features section */
.features-section { margin-top: 3.5rem; position: relative; }
.features-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}
.features-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.features-link {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--teal);
    font-weight: 500;
    font-size: 0.875rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.features-link:hover { color: #1e4a4a; }

/* Feature tiles (3 with screenshots) */
.features-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.feature-tile {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    background: white;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.feature-tile:hover { box-shadow: 0 20px 40px rgba(148, 163, 184, 0.35); transform: translateY(-2px); }
.feature-tile-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.feature-tile-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.08) 35%, transparent 100%);
    pointer-events: none;
}
.feature-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.feature-tile-body { padding: 1.25rem; }
.feature-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--slate-900);
}
.feature-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.feature-bullets li {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.6;
}
.feature-bullets li strong {
    color: var(--slate-800);
    font-weight: 600;
}

/* Full-width feature hero (no screenshot) */
.feature-hero {
    position: relative;
    margin-top: 1.5rem;
    padding: 2rem 1.75rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(145deg, var(--teal) 0%, #1e4a4a 50%, #153d3d 100%);
    border: 1px solid rgba(42, 100, 100, 0.3);
    box-shadow: 0 20px 50px rgba(42, 100, 100, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.feature-hero:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(42, 100, 100, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #2d7474 0%, #215656 50%, #184545 100%);
    border-color: rgba(255, 255, 255, 0.15);
}
.feature-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.feature-hero:hover::before {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}
.feature-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
    pointer-events: none;
}
.feature-hero-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.5s ease;
}
.feature-hero-decor--1 {
    width: 8rem;
    height: 8rem;
    top: -2rem;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}
.feature-hero:hover .feature-hero-decor--1 {
    transform: scale(1.4);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
}
.feature-hero-decor--2 {
    width: 5rem;
    height: 5rem;
    bottom: -1rem;
    left: 8%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}
.feature-hero:hover .feature-hero-decor--2 {
    transform: scale(1.5) translate(0.5rem, -0.5rem);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
}
.feature-hero-decor--3 {
    width: 4rem;
    height: 4rem;
    top: 50%;
    right: 5%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    transform: translateY(-50%);
}
.feature-hero:hover .feature-hero-decor--3 {
    transform: translateY(-50%) scale(1.6);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}
.feature-hero-content {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin: 0 auto;
}
.feature-hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: white;
    letter-spacing: -0.02em;
}
.feature-hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.feature-hero-bullet {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}
.feature-hero-bullet strong {
    color: white;
    font-weight: 600;
}

@media (min-width: 768px) {
    main.main { padding: 6rem 0 4rem; }
    .hero { gap: 3rem; }
    .hero-right { height: 600px; }
    .ball-model { width: 24rem; height: 24rem; }
    .ball { width: 24rem; height: 24rem; }
    .live-widget {
        width: 16rem;
        top: 2.5rem;
        bottom: unset;
        left: 1rem;
    }
    .standings,
    .recent-matches { display: block; }
    .standings { width: 16rem; top: 5rem; }
    .recent-matches { width: 15rem; bottom: 0; right: 2.5rem; }
    .stats-rank {
        width: 13rem;
        bottom: 5rem;
        left: -2rem;
        right: auto;
    }
    .features-header { flex-direction: row; align-items: flex-end; }
    .features-link { display: inline-flex; }
    .features-section { margin-top: 5rem; }
    .features-tiles { gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
    .feature-tile { border-radius: 1.25rem; }
    .feature-tile-body { padding: 1.5rem; }
    .feature-group-title { font-size: 1.2rem; }
    .feature-hero {
        margin-top: 2rem;
        padding: 2.5rem 3rem;
    }
    .feature-hero-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
    .feature-hero-bullet { font-size: 1.0625rem; }
    .showcase-section { margin-top: 7rem; }
    .showcase-card { padding: 2rem; }
    .showcase-media { padding: 1.5rem; }
    .showcase-mobile { width: 30%; right: 1.25rem; }
    .roadmap-section { margin-top: 7rem; }
    .roadmap-card { padding: 1.75rem; border-radius: 1.25rem; }
    .roadmap-icon { width: 3rem; height: 3rem; }
    .roadmap-name { font-size: 1.2rem; }
    .roadmap-meta { font-size: 0.875rem; }
    .footer { padding: 3rem 0 2rem; }
    .footer-row { flex-direction: row; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-right { height: 520px; }
    .ball-model { width: 20rem; height: 20rem; }
    .live-widget { width: 14rem; top: 1.5rem; }
    .standings { width: 14rem; top: 3.5rem; }
    .stats-rank { width: 12rem; bottom: 3rem; }
    .recent-matches { width: 14rem; right: 0.5rem; bottom: 0.5rem; }
    .features-tiles { grid-template-columns: repeat(2, 1fr); }
}
.feature-icon.teal { background: rgba(42, 100, 100, 0.1); color: var(--teal); }
.feature-icon.red { background: rgba(178, 60, 54, 0.1); color: var(--red); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.feature-icon.purple { background: rgba(147, 51, 234, 0.1); color: #7c3aed; }
.feature-icon.orange { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
.feature-icon.green { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.feature-icon.indigo { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.feature-icon.amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.feature-icon.slate { background: rgba(71, 85, 105, 0.12); color: #475569; }
.feature-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
.feature-text { font-size: 0.8rem; color: var(--slate-500); margin: 0; line-height: 1.6; }
.feature-decor {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 16rem;
    opacity: 0.6;
    transition: opacity 0.5s ease, transform 0.7s ease;
    display: none;
}
@media (min-width: 1024px) {
    .feature-decor { display: block; }
}
.feature-card:hover .feature-decor {
    opacity: 1;
    transform: translateY(-0.5rem);
}
.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 100, 100, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.feature-card:hover .feature-overlay { opacity: 1; }
.feature-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}
.decor-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    transform: rotate(3deg);
}
.decor-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.decor-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--slate-200);
}
.decor-lines { display: grid; gap: 0.5rem; }
.decor-line {
    height: 0.5rem;
    border-radius: 999px;
    background: var(--slate-100);
}
.decor-line.short { width: 50%; }
.decor-line.medium { width: 75%; }
.decor-line.full { width: 100%; }

.graph {
    position: relative;
    height: 12rem;
    width: 100%;
    border-left: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}
.graph svg {
    position: absolute;
    inset: 0;
    overflow: visible;
}
.graph-line {
    filter: drop-shadow(0 2px 4px rgba(178, 60, 54, 0.3));
}
.graph-point {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--red);
}
.graph-point.strong {
    border-width: 2px;
    box-shadow: 0 0 10px rgba(178, 60, 54, 0.4);
}

/* Showcase section */
.showcase-section { margin-top: 3.5rem; }
.showcase-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.showcase-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 900px) {
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
.showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--slate-200);
    background: white;
    padding: 1.25rem;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.showcase-card:hover { box-shadow: 0 20px 40px rgba(148, 163, 184, 0.35); transform: translateY(-2px); }
.showcase-link {
    display: block;
    color: inherit;
}
.showcase-link:focus-visible {
    outline: 2px solid rgba(42, 100, 100, 0.35);
    outline-offset: 4px;
    border-radius: 1rem;
}
.showcase-card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.showcase-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.showcase-icon.teal { background: rgba(42, 100, 100, 0.1); color: var(--teal); }
.showcase-icon.red { background: rgba(178, 60, 54, 0.1); color: var(--red); }
.showcase-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}
.showcase-meta {
    font-size: 0.75rem;
    color: var(--slate-500);
    letter-spacing: 0.02em;
    margin: 0;
}
.showcase-media {
    position: relative;
    border-radius: 1.25rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--slate-200);
}
.showcase-desktop {
    width: 100%;
    display: block;
    border-radius: 0.9rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}
.showcase-mobile {
    position: absolute;
    right: 1rem;
    bottom: -1rem;
    width: 36%;
    min-width: 7rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid var(--slate-200);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}
@media (min-width: 641px) and (max-width: 767px) {
    .showcase-card { padding: 1.5rem; }
    .showcase-media { padding: 1rem; }
}

/* Roadmap section */
.roadmap-section { margin-top: 3.5rem; }
.roadmap-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.roadmap-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.roadmap-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    background: white;
    padding: 1.25rem;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.roadmap-card:hover { box-shadow: 0 20px 40px rgba(148, 163, 184, 0.35); transform: translateY(-2px); }
.roadmap-card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.roadmap-name-text + .roadmap-pill {
    margin-left: 0.5rem;
}
.roadmap-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.roadmap-icon.teal { background: rgba(42, 100, 100, 0.1); color: var(--teal); }
.roadmap-icon.red { background: rgba(178, 60, 54, 0.1); color: var(--red); }
.roadmap-icon.indigo { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.roadmap-icon.green { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.roadmap-icon.orange { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
.roadmap-icon.purple { background: rgba(147, 51, 234, 0.12); color: #7c3aed; }
.roadmap-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}
.roadmap-meta {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin: 0;
    line-height: 1.6;
}
.roadmap-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@media (min-width: 900px) {
    .roadmap-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1200px) {
    .roadmap-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Contact section */
.contact-section { margin-top: 3.5rem; }
.contact-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.contact-flash {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
}
.contact-flash--success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.contact-flash--error {
    background: rgba(178, 60, 54, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(178, 60, 54, 0.25);
}
.contact-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 2rem;
    padding: 2rem 1.75rem;
    border-radius: 1.75rem;
    border: 1px solid var(--slate-200);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 20px 50px rgba(148, 163, 184, 0.18);
}

.contact-decor {
    position: absolute;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}
.contact-decor--tl {
    top: -4rem;
    left: -4rem;
    background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
}
.contact-decor--br {
    bottom: -5rem;
    right: -5rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, var(--red) 0%, transparent 70%);
}

.contact-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.contact-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-600);
    letter-spacing: 0.02em;
}
.contact-field-optional {
    font-weight: 400;
    color: var(--slate-400);
}
.contact-field .required {
    color: var(--red);
}
.contact-input,
.contact-textarea {
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    background: white;
    color: var(--slate-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-input::placeholder,
.contact-textarea::placeholder {
    color: var(--slate-400);
}
.contact-input:hover,
.contact-textarea:hover {
    border-color: var(--slate-300);
}
.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 100, 100, 0.15);
}
.contact-textarea {
    resize: vertical;
    min-height: 5rem;
}
.contact-submit {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-direct-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-500);
    margin: 0;
}
.contact-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.contact-details {
    display: grid;
    gap: 1rem;
}
.contact-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-item:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 100, 100, 0.12);
}
.contact-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(42, 100, 100, 0.1);
    color: var(--teal);
    flex-shrink: 0;
}
.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-400);
    font-weight: 600;
}
.contact-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-800);
}
@media (min-width: 768px) {
    .contact-section { margin-top: 7rem; }
    .contact-card {
        padding: 2.5rem 3rem;
        gap: 2.5rem;
    }
    .contact-content {
        grid-template-columns: 2fr 1fr;
        align-items: start;
        gap: 2.5rem;
    }
    .contact-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-direct {
        min-width: 14rem;
    }
}


/* Footer */
.footer {
    border-top: 1px solid var(--slate-200);
    background: white;
    padding: 2.5rem 0 2rem;
}
.footer-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    background: var(--teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-text {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
}
.footer-link {
    color: var(--teal);
    text-decoration: underline;
}
.footer-link:hover {
    color: var(--slate-700);
}

/* Terms & Conditions */
.terms-section {
    padding: 3rem 0 4rem;
    max-width: 48rem;
    margin: 0 auto;
}
.terms-section h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.terms-section h2 {
    font-size: 1.1rem;
    margin: 2rem 0 0.75rem;
    color: var(--slate-700);
}
.terms-section p, .terms-section li {
    line-height: 1.6;
    color: var(--slate-600);
}
.terms-section ol, .terms-section ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}
.terms-section em {
    color: var(--slate-500);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
