@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-primary: #06070d;
    --bg-secondary: #0c0d16;
    --bg-card: rgba(18, 19, 35, 0.65);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow-green: rgba(158, 255, 0, 0.15);
    --border-glow-purple: rgba(218, 27, 96, 0.15);
    --accent-green: #9eff00;
    --accent-green-rgb: 158, 255, 0;
    --accent-orange: #ff8a00;
    --accent-pink: #da1b60;
    --accent-purple: #8e2de2;
    --text-primary: #ffffff;
    --text-secondary: #8a8f9f;
    --text-muted: #595d6e;
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
    --gradient-primary: linear-gradient(135deg, var(--accent-orange), var(--accent-pink), var(--accent-purple));
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Elements */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(158, 255, 0, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 40%;
    right: -10%;
    width: 70%;

    background: radial-gradient(circle, rgba(218, 27, 96, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.glowing-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.orb-1 {
    top: 20%;
    right: 10%;
    background: rgba(142, 45, 226, 0.1);
}

.orb-2 {
    bottom: 20%;
    left: 5%;
    background: rgba(158, 255, 0, 0.06);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(158, 255, 0, 0.3);
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(158, 255, 0, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(158, 255, 0, 0.03);
}

/* Navbar */
header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
}

header.scrolled .nav-container {
    padding: 12px 24px;
    background: rgba(6, 7, 13, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    border-radius: 100px;
    background: rgba(12, 13, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--accent-green);
    filter: drop-shadow(0 0 6px rgba(158, 255, 0, 0.6));
}



.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-title);
    letter-spacing: -0.01em;
}

.logo-text span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

nav a:hover, nav a.active {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(158, 255, 0, 0.4);
}

.cta-button {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 10px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
}

.cta-button:hover {
    background: transparent;
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(158, 255, 0, 0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 95vh;
    padding-top: 160px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at bottom, rgba(18, 19, 35, 0.6) 0%, var(--bg-primary) 80%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(158, 255, 0, 0.08);
    border: 1px solid rgba(158, 255, 0, 0.2);
    border-radius: 50px;
    padding: 6px 16px;
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.2rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero-title span.glow {
    background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
}

.slogan-tagline {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.slogan-tagline span.highlight-green {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(158, 255, 0, 0.2);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.download-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.download-badge:hover {
    border-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(158, 255, 0, 0.15);
}

.download-badge svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.badge-text span:first-child {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.badge-text span:last-child {
    font-size: 1rem;
    font-weight: 600;
}

/* Floating Mockup (Hero Right) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-wrap {
    width: 100%;
    max-width: 480px;
    transform: rotate3d(1, -1, 1, 12deg);
    transition: var(--transition-smooth);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

.hero-phone-wrap:hover {
    transform: rotate3d(0, 0, 0, 0deg) scale(1.02);
}

/* Phone Mockup Styling */
.phone-mockup {
    background: #000000;
    border-radius: 40px;
    border: 12px solid #1c1d24;
    position: relative;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1), 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
    width: 100%;
    margin: 0 auto;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    pointer-events: none;
    z-index: 10;
}

.phone-mockup.landscape,
.landscape-layout .phone-mockup {
    aspect-ratio: 19.5 / 9;
    border-radius: 40px;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 30px;
    background: #000000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notch::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0f1016;
    margin-right: 30px;
}

.notch::after {
    content: '';
    width: 35px;
    height: 4px;
    border-radius: 20px;
    background: #1e2030;
}

.phone-mockup.landscape .notch,
.landscape-layout .phone-mockup .notch {
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: top left;
    width: 110px;
    height: 30px;
    margin-top: -55px;
}

/* Phone Screen Inner */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #090a10;
    position: relative;
    padding-top: 40px;
    overflow-y: auto;
    overflow-x: hidden;
}

.phone-screen::-webkit-scrollbar {
    width: 0px; /* Hide scrollbar inside phone mockups */
}

.phone-mockup.landscape .phone-screen,
.landscape-layout .phone-mockup .phone-screen {
    padding-top: 0;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* App Header in Phone Mockups */
.phone-app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 4px;
}

.phone-app-logo {
    width: 44px;
    height: 44px;
    fill: var(--accent-green);
    filter: drop-shadow(0 0 4px rgba(158, 255, 0, 0.4));
}

.phone-app-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-title);
    line-height: 1;
}

.phone-app-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
}
.phone-app-tagline span.green {
    color: var(--accent-green);
}

/* Sections Common */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-box {
    background: rgba(158, 255, 0, 0.1);
    border-color: var(--accent-green);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(158, 255, 0, 0.2);
}

.feature-icon-box svg {
    width: 28px;
    height: 28px;
    fill: var(--text-primary);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-box svg {
    fill: var(--accent-green);
}

.feature-card h3 {
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* App Showcase Section (Carousel/Selector) */
.showcase {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.showcase-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.selector-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 24px;
    border-radius: 18px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-smooth);
}

.selector-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.selector-btn.active {
    background: rgba(18, 19, 35, 0.8);
    border-color: rgba(158, 255, 0, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.selector-num {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.selector-btn.active .selector-num {
    background: var(--accent-green);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(158, 255, 0, 0.4);
}

.selector-text h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    transition: var(--transition-smooth);
}

.selector-btn.active .selector-text h3 {
    color: var(--accent-green);
}

.selector-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Showcase Screen Frame Slider */
.showcase-phone-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.showcase-phone-wrap {
    width: 100%;
    max-width: 320px;
    transition: var(--transition-smooth);
}

.showcase-phone-wrap.landscape-layout {
    max-width: 500px;
}

.phone-screen-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.phone-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
}

.phone-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* APP SCREENS CSS IMPLEMENTATIONS */

/* SCREEN 1: Setup Match */
.setup-screen {
    padding: 10px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setup-instruction {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0 10px;
}

.setup-card {
    background: #141520;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-title {
    font-size: 0.8rem;
    font-weight: 700;
}

.team-box.team1 .team-title { color: #FF9F1C; }
.team-box.team2 .team-title { color: #E040FB; }

.team-players {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.vs-divider {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.edit-players-hint {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

.settings-selector-card {
    background: #141520;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.settings-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.settings-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.chevron-icon {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.btn-start-match {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    border: none;
    color: white;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(250, 60, 20, 0.25);
    transition: var(--transition-smooth);
}

.btn-start-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(250, 60, 20, 0.4);
}

.bottom-tab-bar {
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 20px;
    background: #07080f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.tab-bar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.tab-bar-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
}

/* SCREEN 2: Scoreboard landscape (Preview style) */
.scoreboard-landscape-preview {
    width: 100%;
    height: 100%;
    background: #090a10;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sb-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sb-team-name {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.sb-team-name.team1 {
    color: #ff9f1c;
    background: rgba(255, 159, 28, 0.1);
}

.sb-team-name.team2 {
    color: #e040fb;
    background: rgba(224, 64, 251, 0.1);
}

.sb-main-score-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    margin: 8px 0;
}

.sb-digit-card {
    background: linear-gradient(to bottom, #161722 0%, #0b0c12 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255,255,255,0.05);
    border-radius: 12px;
    width: 100px;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.8rem;
    font-family: var(--font-title);
    font-weight: 800;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Simulated card fold line */
.sb-digit-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.sb-center-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sb-sets-row {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
}

.sb-sets-label {
    font-size: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sb-undo-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e67e22;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.sb-undo-btn svg {
    width: 12px;
    height: 12px;
    fill: #ffffff;
}

.sb-footer-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.sb-foot-btn {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-foot-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.serve-swap-indicator {
    width: 16px;
    height: 16px;
    fill: #3498db;
}

/* SCREEN 3: Stats screen */
.stats-screen {
    padding: 10px 16px 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-card-main {
    background: linear-gradient(135deg, #181d38 0%, #0d0f20 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-trophy {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 2px;
}

.stats-result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.stats-date {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.stats-meta-line {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.stats-score-summary {
    width: 100%;
    margin-top: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.stats-score-row {
    display: flex;
    padding: 8px 12px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stats-score-row:last-child {
    border-bottom: none;
}

.stats-team-names {
    font-size: 0.75rem;
    font-weight: 600;
    width: 35%;
    text-align: left;
}

.stats-team-names.t2 {
    text-align: right;
}

.stats-team-names.t1 span { color: #ff9f1c; }
.stats-team-names.t2 span { color: #e040fb; }

.stats-score-digits {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
    width: 30%;
    text-align: center;
}

.stats-score-row.sub-set {
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 6px 12px;
}

.stats-score-row.sub-set .stats-score-digits {
    font-weight: 700;
    font-size: 0.95rem;
}

.stats-grid-label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
    align-self: flex-start;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.stat-item {
    background: #12131f;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.stat-item-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-item-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-title);
}

.stat-item-sub {
    font-size: 0.55rem;
    color: var(--text-muted);
}

/* SCREEN 4: Match Insights & Timeline */
.insights-screen {
    padding: 10px 16px 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insights-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    align-self: flex-start;
}

.insight-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.insight-tile {
    background: #121320;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.insight-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-tile:nth-child(1) .insight-icon { background: rgba(52, 152, 219, 0.1); }
.insight-tile:nth-child(2) .insight-icon { background: rgba(241, 196, 15, 0.1); }
.insight-tile:nth-child(3) .insight-icon { background: rgba(26, 188, 156, 0.1); }
.insight-tile:nth-child(4) .insight-icon { background: rgba(155, 89, 182, 0.1); }

.insight-icon svg {
    width: 16px;
    height: 16px;
}

.insight-tile:nth-child(1) .insight-icon svg { fill: #3498db; }
.insight-tile:nth-child(2) .insight-icon svg { fill: #f1c40f; }
.insight-tile:nth-child(3) .insight-icon svg { fill: #1abc9c; }
.insight-tile:nth-child(4) .insight-icon svg { fill: #9b59b6; }

.insight-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.insight-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.insight-desc {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #121320;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 12px;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.timeline-dot.yellow { background: #ff9f1c; }
.timeline-dot.green { background: var(--accent-green); }

.timeline-game-info {
    display: flex;
    flex-direction: column;
}

.timeline-game-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
}

.timeline-game-subtitle {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.timeline-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-duration {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.timeline-score {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.timeline-score span.yellow { color: #ff9f1c; }
.timeline-score span.green { color: var(--accent-green); }

/* SCREEN 5: Share Poster App */
.share-screen {
    padding: 10px 16px 80px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.poster-box {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 1 / 1.35;
    background: url('images/padel-court.jpg') center/cover no-repeat;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

/* Gradient overlay for poster */
.poster-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.poster-header {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.poster-logo {
    width: 24px;
    height: 24px;
    fill: var(--accent-green);
}

.poster-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-title);
    line-height: 1;
}

.poster-tagline {
    font-size: 0.45rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.poster-tagline span.green { color: var(--accent-green); }

.poster-main-info {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poster-team {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.poster-team-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.poster-team-sets {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-green);
    letter-spacing: 0.2em;
    margin-top: 2px;
}

.poster-team.t2 .poster-team-sets {
    color: rgba(255, 255, 255, 0.6);
}

.poster-vs-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 4px 0;
}

.poster-footer {
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.poster-score-box {
    background: rgba(20, 21, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poster-sets-label {
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.poster-sets-score {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--accent-green);
}

.poster-date {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    line-height: 1.3;
}

.social-share-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-icon-btn.instagram svg { fill: url(#instagram-gradient); }
.social-icon-btn.whatsapp svg { fill: #25D366; }

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-primary);
}

/* LIVE SCOREBOARD SIMULATOR WIDGET (Hero area landscape mockup) */
.simulator-widget {
    background: #090a10;
    width: 100%;
    border-radius: 28px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    animation: pulse-red 1.5s infinite;
}

.sim-label-live {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sim-help-tip {
    font-size: 0.6rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
}

.sim-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin: 10px 0;
}

.sim-team-clicker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 42%;
}

.sim-team-clicker:hover {
    transform: translateY(-2px);
}

.sim-team-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.sim-team-clicker.t1 .sim-team-lbl { color: #ff9f1c; }
.sim-team-clicker.t2 .sim-team-lbl { color: #e040fb; }

.sim-digit-card {
    background: linear-gradient(to bottom, #191a27 0%, #0d0e17 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255,255,255,0.05);
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1.1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-family: var(--font-title);
    font-weight: 800;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.sim-team-clicker:hover .sim-digit-card {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(158, 255, 0, 0.2), 0 12px 25px rgba(0, 0, 0, 0.6);
}

.sim-digit-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.sim-digit-card.scoring-anim {
    animation: digit-flip 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-divider-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 16%;
}

.sim-serve-indicator {
    width: 16px;
    height: 16px;
    fill: #3498db;
    opacity: 0.2;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sim-serve-indicator.active {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(52, 152, 220, 0.6));
}

.sim-sets-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sim-sets-score {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
}

.sim-sets-lbl {
    font-size: 0.45rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sim-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.sim-action-btn.reset-btn:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.sim-action-btn.reset-btn:hover svg {
    fill: #e74c3c;
}

.sim-action-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--text-secondary);
}

.sim-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-sound-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.sim-sound-toggle svg {
    width: 14px;
    height: 14px;
    fill: var(--text-secondary);
}

.sim-history-log {
    font-size: 0.6rem;
    color: var(--text-muted);
    max-width: 180px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* INTERACTIVE DEMO CTA SECTION */
.demo-section {
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(142, 45, 226, 0.04) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.demo-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.demo-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.demo-visual-landscape {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
}

.demo-visual-landscape .phone-mockup {
    border-width: 10px;
}

/* Call to Action Banner */
.download-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.download-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.download-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(158, 255, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(142, 45, 226, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.download-title {
    font-size: 3rem;
    line-height: 1.2;
    max-width: 600px;
}

.download-desc {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 1.1rem;
}

.download-badges-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    background: var(--bg-primary);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-green);
}

.footer-about {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    font-size: 0.8rem;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
}

.footer-links-bottom a:hover {
    color: #ffffff;
}

/* Animations */
@keyframes digit-flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
        background: #11121d;
    }
    100% {
        transform: rotateX(0deg);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Scroll reveal utility classes (activated via JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid, .showcase-grid, .demo-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero {
        padding-top: 130px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-subtitle {
        margin: 0 auto;
    }
    .app-badge {
        align-self: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-phone-wrap {
        max-width: 420px;
        transform: none;
    }
    .hero-phone-wrap:hover {
        transform: scale(1.02);
    }
    .section-title {
        font-size: 2.3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:first-child {
        grid-column: span 2;
    }
    .phone-mockup {
        height: 200px;
    }
}

@media (max-width: 768px) {
    header {
        top: 0;
    }
    .nav-container {
        border-radius: 0;
        padding: 16px 20px;
    }
    nav {
        display: none; /* Hide full nav menu, keep simple */
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .download-box {
        padding: 50px 20px;
    }
    .download-title {
        font-size: 2.1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col:first-child {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }



}

@media (max-width: 486px) {
    .logo-icon {
        display: none;
    }

    .hero-phone-wrap {
        max-width: 320px;
        transform: none;
    }

}
