/* Brand fonts, hosted with the site (the server's security policy blocks Google Fonts). Both are variable fonts, latin subset (covers æ ø å). */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('assets/fonts/fredoka.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/hanken-grotesk.woff2') format('woff2'); }

/* Base Styles & Variables */
:root {
    --primary-blue: #0D61C2;
    --primary-blue-dark: #083E8C;
    --primary-green: #FFD54A;
    --primary-green-dark: #E8B400;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0B2A5C;
    
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --text-light-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    
    --font-heading: 'Fredoka', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), #FFC72C);
    color: var(--text-dark);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(232, 180, 0, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

.btn-shadow {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.icon-play {
    width: 20px;
    height: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
}
.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.trophy-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-green);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}
.logo-text span {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}
.nav-links a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}
.hero h1, .hero h2, .hero h3 {
    color: var(--text-light);
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, rgba(10,88,202,0.4) 0%, rgba(2,6,23,0) 70%);
    filter: blur(60px);
    z-index: 1;
}
.hero-bg-accent-2 {
    position: absolute;
    bottom: -20%;
    right: 0%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(32,201,80,0.2) 0%, rgba(2,6,23,0) 70%);
    filter: blur(60px);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: var(--primary-green);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff, var(--primary-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    color: var(--text-light-muted);
}
.stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    border-radius: 40px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    max-width: 400px;
}
.mockup-img {
    border-radius: 40px;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0,0,0,0.5);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Sections General */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.feature-icon svg {
    width: 32px;
    height: 32px;
}

.icon-blue { background: rgba(10,88,202,0.1); color: var(--primary-blue); }
.icon-green { background: rgba(32,201,80,0.1); color: var(--primary-green); }
.icon-purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.icon-orange { background: rgba(249,115,22,0.1); color: #f97316; }

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.feature-desc {
    color: var(--text-muted);
}

/* Formats Showcase */
.formats-section {
    padding: 120px 0;
}
.formats-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.formats-content {
    flex: 1;
}

.format-list {
    list-style: none;
    margin-top: 40px;
}
.format-item {
    display: flex;
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.format-item:hover {
    background: var(--bg-light);
}
.format-item.active {
    background: var(--bg-white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.format-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border-color);
    margin-right: 20px;
    flex-shrink: 0;
    margin-top: 4px;
    transition: all 0.3s ease;
}
.format-item.active .format-icon {
    background: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(32,201,80,0.2);
}

.format-text h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.format-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.formats-visual {
    flex: 1;
}
.glass-card {
    background: linear-gradient(135deg, rgba(10,88,202,0.05), rgba(32,201,80,0.05));
    border: 1px solid rgba(10,88,202,0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bracket Mockup CSS */
.bracket-mockup {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}
.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}
.bracket-match {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.team {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
}
.team:first-child { border-bottom: 1px solid var(--border-color); }
.team.winner {
    background: rgba(32,201,80,0.05);
    font-weight: 700;
}
.bracket-connector {
    width: 40px;
    color: var(--border-color);
}

/* App Flow */
.flow-section {
    padding: 120px 0;
    background: var(--bg-dark);
    color: var(--text-light);
}
.flow-section .section-title { color: var(--text-light); }
.flow-section .section-subtitle { color: var(--text-light-muted); }

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    position: relative;
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}
.step-num {
    width: 64px;
    height: 64px;
    background: var(--primary-blue);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 8px var(--bg-dark);
}
.step h3 { color: var(--text-light); margin-bottom: 8px; font-size: 1.25rem;}
.step p { color: var(--text-light-muted); font-size: 0.9rem;}

.step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 32px;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background: var(--primary-blue);
    color: white;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(32,201,80,0.3) 0%, transparent 70%);
}
.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.cta-section h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 24px;
}
.cta-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}
.cta-note {
    font-size: 0.875rem !important;
    opacity: 0.7 !important;
    margin-top: 16px;
    margin-bottom: 0 !important;
}

/* Footer */
.footer {
    background: white;
    padding: 80px 0 24px;
    border-top: 1px solid var(--border-color);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}
.footer-brand {
    max-width: 300px;
}
.footer-brand .logo-text { color: var(--text-dark); }
.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}
.link-col h3 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}
.link-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.link-col a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    color: var(--text-light-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container, .formats-container, .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-title { font-size: 3rem; }
    .hero-actions { justify-content: center; flex-direction: column;}
    .hero-stats { justify-content: center; }
    
    .formats-visual { width: 100%; margin-top: 40px; }
    
    .flow-steps { flex-direction: column; gap: 40px; }
    .step-connector { display: none; }
    
    .d-none-mobile { display: none; }
}
