/* ── Board4Sport Main Stylesheet ─────────────────────────────────────────── */

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

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --navy:        #0D1B2A;
    --navy-mid:    #1A2F47;
    --blue:        #00AEEF;
    --blue-dark:   #0096D6;
    --blue-light:  #E8F7FD;
    --white:       #ffffff;
    --gray-bg:     #F5F7FA;
    --gray-light:  #E8EDF2;
    --gray-text:   #6B7280;
    --gray-dark:   #374151;
    --green:       #27AE60;
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
    --radius:      10px;
    --radius-lg:   16px;
    --transition:  0.2s ease;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-dark);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

main { flex: 1; }

/* ── Header / Nav ─────────────────────────────────────────────────────────── */
#site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

#site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 52px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-menu a:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.nav-menu a.active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 600;
}

.nav-menu a.btn-download {
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    margin-left: 8px;
}

.nav-menu a.btn-download:hover {
    background: var(--blue-dark);
    color: var(--white);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── Page Hero ────────────────────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 64px 0 56px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.6em;
    font-weight: 800;
    margin-bottom: 0.4em;
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 1.1em;
    color: #7FB3D3;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Home Hero ────────────────────────────────────────────────────────────── */
.home-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 80px 0;
    color: var(--white);
}

.home-hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.home-hero-text { flex: 1; }

.home-hero-text .badge {
    display: inline-block;
    background: rgba(0,174,239,0.2);
    color: var(--blue);
    border: 1px solid rgba(0,174,239,0.3);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.home-hero-text h1 {
    font-size: 3em;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.home-hero-text h1 span { color: var(--blue); }

.home-hero-text p {
    font-size: 1.1em;
    color: #7FB3D3;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.home-hero-image {
    flex: 1;
    max-width: 480px;
}

.home-hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,174,239,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-blue {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-outline-blue:hover {
    background: var(--blue);
    color: var(--white);
}

/* ── Section ──────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-bg); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2em;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--gray-text);
    font-size: 1.05em;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Cards grid ───────────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2.2em;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.card p {
    color: var(--gray-text);
    font-size: 0.92em;
    line-height: 1.65;
}

/* ── Product cards ────────────────────────────────────────────────────────── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    border-top: 4px solid var(--blue);
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-card .product-logo {
    height: 70px;
    width: auto;
    margin: 0 auto 20px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.product-card p {
    color: var(--gray-text);
    font-size: 0.93em;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.badge-free    { background: #D5F5E3; color: #1E8449; }
.badge-soon    { background: #FEF9E7; color: #B7950B; }

/* ── Feature list ─────────────────────────────────────────────────────────── */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    transition: box-shadow var(--transition);
}

.feature-item:hover { box-shadow: var(--shadow-sm); }

.feature-item .fi-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
}

.feature-item h4 {
    font-size: 1em;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.88em;
    color: var(--gray-text);
    line-height: 1.6;
    margin: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--gray-light);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    color: var(--navy);
    transition: color var(--transition);
}

.faq-question:hover { color: var(--blue); }

.faq-question .faq-icon {
    min-width: 24px;
    height: 24px;
    background: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.1em;
    font-weight: 300;
    transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-question .faq-icon {
    transform: rotate(45deg);
    background: var(--blue);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--gray-text);
    font-size: 0.95em;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

/* ── Download section ─────────────────────────────────────────────────────── */
.download-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    color: var(--white);
}

.download-box h2 {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.download-box p {
    color: #7FB3D3;
    font-size: 1.05em;
    margin-bottom: 32px;
}

.download-meta {
    margin-top: 16px;
    color: #4A7FA5;
    font-size: 0.85em;
}

/* ── Stats row ────────────────────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2.4em;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item span {
    font-size: 0.9em;
    color: var(--gray-text);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
#site-footer {
    background: var(--navy);
    color: #7FB3D3;
    padding: 48px 0 24px;
    margin-top: auto;
}

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

.footer-brand img { height: 50px; margin-bottom: 16px; }

.footer-brand p {
    font-size: 0.9em;
    line-height: 1.7;
    color: #4A7FA5;
}

.footer-col h4 {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: #4A7FA5;
    font-size: 0.9em;
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
    border-top: 1px solid #1E3A5F;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #2A4A6A;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .home-hero .container { flex-direction: column; gap: 40px; }
    .home-hero-image { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .cards-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: var(--shadow-md); gap: 4px; }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .home-hero-text h1 { font-size: 2em; }
    .page-hero h1 { font-size: 1.9em; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .download-box { padding: 36px 24px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}
