/* ==========================================================================
   TurfGuard Theme — Strictly Harmonized with Brand Logo Palette
   Palette: Vibrant Turf Green (#2ECC71), Deep Emerald (#10B981),
            Shield Obsidian/Slate (#0B0F14, #121A24, #192432), Crisp White & Silver
   ========================================================================== */

:root {
    --bg-primary: #0b0f14;
    --bg-secondary: #101720;
    --bg-card: #15202c;
    --bg-card-hover: #1b2938;
    --border-color: #223345;
    --border-subtle: rgba(46, 204, 113, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #8092a4;
    
    /* Brand Greens (exact match to logo "TURF" and keeper jersey) */
    --accent-green: #2ecc71;
    --accent-green-bright: #38e080;
    --accent-green-hover: #27ae60;
    --accent-green-dark: #0f5132;
    --accent-green-glow: rgba(46, 204, 113, 0.22);
    --accent-green-subtle: rgba(46, 204, 113, 0.10);
    
    /* Shield Gradients */
    --shield-gradient: linear-gradient(180deg, #182535 0%, #0e1620 100%);
    --green-gradient: linear-gradient(135deg, #2ecc71 0%, #10b981 100%);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 25px rgba(46, 204, 113, 0.3);
    
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-green-bright);
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.brand-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.brand-logo .logo-turf {
    color: var(--accent-green);
}

.brand-logo .logo-guard {
    color: #ffffff;
}

.brand-badge {
    background: var(--green-gradient);
    color: #042411;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.98rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-green);
    color: #042411;
    box-shadow: 0 4px 16px var(--accent-green-glow);
}

.btn-primary:hover {
    background: var(--accent-green-bright);
    color: #042411;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(46, 204, 113, 0.45);
}

/* Secondary Button - Clean Dark Shield with Green Crest Accent */
.btn-shield {
    background: #182535;
    color: #ffffff;
    border: 1px solid var(--accent-green);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-shield:hover {
    background: #203145;
    color: var(--accent-green-bright);
    border-color: var(--accent-green-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 204, 113, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--accent-green);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 90px 0 70px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 420px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.16) 0%, rgba(16, 185, 129, 0.06) 45%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-green-subtle);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: var(--accent-green);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-subtitle {
    max-width: 680px;
    margin: 20px auto 32px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* App Mockup / Feature Showcase */
.mockup-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: var(--shield-gradient);
    border: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.mockup-screen {
    background: #080d12;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--border-subtle);
}

/* Feature Grid */
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(46, 204, 113, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-green-subtle);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Step-by-Step Feature Cards */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--green-gradient);
    color: #042411;
    font-weight: 800;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

/* Live Sharing Promo Banner */
.banner-card {
    background: var(--shield-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
    box-shadow: var(--shadow-card);
}

.banner-content {
    flex: 1;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    user-select: none;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-toggle {
    transition: transform 0.25s ease;
    color: var(--accent-green);
    font-size: 1.2rem;
}

/* Forms (Contact Page) */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Legal Documents Content (Privacy & Terms) */
.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: var(--shadow-card);
}

.legal-content h2 {
    margin-top: 36px;
    margin-bottom: 12px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    color: #ffffff;
}

.legal-content p, .legal-content li {
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin: 12px 0 20px 24px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-col h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 16px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 540px;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    animation: slideUp 0.35s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 900px) {
    .banner-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* Currency Switcher Pills */
.curr-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.curr-pill:hover, .curr-pill.active {
    background: var(--accent-green-subtle);
    border-color: var(--accent-green);
    color: var(--accent-green);
    font-weight: 700;
}
