:root {
    --bg-dark: #0A0A0B;
    --bg-card: #141417;
    --accent: #10B981;
    --accent-glow: rgba(16, 185, 129, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: #8E8EA0;
    --glass-bg: rgba(20, 20, 23, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    overflow-x: clip;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: clip;
    line-height: 1.6;
}

.highlight {
    color: var(--accent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .legal-link {
    color: var(--text-primary);
}

.cta-nav {
    background: var(--accent);
    color: #FFF;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 12rem 5% 5rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 90%;
}

.button-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background: #FFF;
    color: #000;
}

.primary-btn:hover {
    transform: scale(1.05);
    background: #e5e5e5;
}

.secondary-btn {
    background: var(--glass-bg);
    color: #FFF;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glass Cards */
.hero-visual {
    position: relative;
    height: 100%;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: absolute;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    animation: float 6s ease-in-out infinite;
}

.map-card {
    top: 20%;
    left: 10%;
    z-index: 2;
}

.map-card-2 {
    top: 0%;
    right: -5%;
    z-index: 2;
    animation-delay: -1.5s;
}

.map-card-3 {
    bottom: 0%;
    left: -5%;
    z-index: 1;
    animation-delay: -5s;
}

.rating-card {
    bottom: 30%;
    right: 10%;
    animation-delay: -3s;
}

.glass-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.icon-pulse {
    animation: pulse 2s infinite;
}

.star-rating {
    color: #FBBF24;
    fill: #FBBF24;
}

/* Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Features Section */
.features-section {
    padding: 8rem 5%;
    background: var(--bg-card);
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
}

.icon-ring {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.icon-ring i {
    color: var(--accent);
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Footer / Compliance */
.compliance-footer {
    padding: 5rem 5% 2rem 5%;
    background: #050505;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    color: #FFF;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.9rem;
}

/* Legal Page Overrides */
.legal-container {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    letter-spacing: -0.5px;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
}

.glitch {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
}

.legal-container .update-date {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 3rem;
    display: block;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem 0;
    color: #E2E2E2;
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.deletion-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.deletion-box h3 {
    margin-bottom: 1rem;
    color: #FFF;
}

/* Contact Form */
.contact-section {
    padding: 6rem 5%;
    background-color: var(--black);
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30,30,30,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 28px;
    padding: 4rem;
    backdrop-filter: blur(20px);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.form-group label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.form-group input, .form-group textarea {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.3rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.submit-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8a00 100%);
    color: var(--text-primary);
    border: none;
    padding: 1.5rem;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}
.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }
    .button-group {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        padding-top: 10rem;
        padding-bottom: 3rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .button-group {
        flex-direction: column;
        gap: 1rem;
    }
    .features-section {
        padding: 4rem 5%;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .contact-section {
        padding: 4rem 5%;
    }
    .contact-container {
        padding: 2rem;
    }
    .form-group input, .form-group textarea {
        font-size: 1rem;
        padding: 1rem;
    }
    .footer-brand p {
        max-width: 100%;
    }
}

/* SEO Links */
.seo-park-link {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 8px;
}
.seo-park-link:hover {
    color: #fff;
}

/* === BEGIN AI TOP BANNER & LIGHT/DARK THEME SYSTEM === */
:root {
    --ai-banner-h: 40px;
}

.ai-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--ai-banner-h);
    z-index: 1002;
    background: linear-gradient(90deg, #160B05 0%, #291206 50%, #160B05 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 4%;
    font-size: 0.84rem;
    color: #F4F4F5;
    text-align: center;
    flex-wrap: wrap;
}

.ai-top-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.ai-top-banner-text {
    font-weight: 500;
    color: #E4E4E7;
}

.ai-top-banner-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-top-banner-link {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.ai-top-banner-link:hover {
    opacity: 0.82;
    text-decoration: underline;
}

.ai-top-banner-sep {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.78rem;
}

/* Shift fixed navbar & page containers cleanly below the top AI banner */
.navbar {
    top: var(--ai-banner-h) !important;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero { padding-top: calc(12rem + var(--ai-banner-h)) !important; }
.directory-container, .state-container { padding-top: calc(8.2rem + var(--ai-banner-h)) !important; }
.events-hero { padding-top: calc(155px + var(--ai-banner-h)) !important; }
.pricing-page-wrap { padding-top: calc(126px + var(--ai-banner-h)) !important; }
.ai-shell { padding-top: calc(116px + var(--ai-banner-h)) !important; }
.lake-main, .park-main { padding-top: calc(6.8rem + var(--ai-banner-h)) !important; }
body > main:not(.ai-shell):not(.pricing-page-wrap):not(.reset-shell):not(.lake-main):not(.park-main),
.legal-container { padding-top: calc(7.5rem + var(--ai-banner-h)); }

/* Navbar Theme Toggle Segmented Pill */
.nav-right-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 3px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle-pill:hover {
    border-color: var(--accent);
}

.theme-toggle-opt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    line-height: 1;
}

.theme-toggle-opt svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.3;
}

html[data-theme="dark"] .theme-toggle-opt[data-mode="dark"],
html:not([data-theme="dark"]) .theme-toggle-opt[data-mode="light"] {
    background: var(--accent);
    color: #FFFFFF;
}

html:not([data-theme="dark"]) .theme-toggle-opt[data-mode="light"] {
    color: #FFFFFF;
}

/* Homepage AI Showcase & Cards (Dark Defaults) */
.ai-showcase-box {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(18, 18, 22, 0.96) 55%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 24px;
    padding: 44px 38px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ai-showcase-chat {
    background: rgba(9, 9, 11, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    padding: 24px;
}

/* =========================================================
   LIGHT THEME OVERRIDES (html:not([data-theme="dark"]))
   ========================================================= */
html:not([data-theme="dark"]) {
    --bg-dark: #F8FAFC;
    --bg-card: #FFFFFF;
    --accent: #059669;
    --accent-glow: rgba(5, 150, 105, 0.22);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(15, 23, 42, 0.10);
    color-scheme: light;
}

html:not([data-theme="dark"]) body {
    background-color: #F8FAFC;
    color: #0F172A;
}

html:not([data-theme="dark"]) .ai-top-banner {
    background: linear-gradient(90deg, #D1FAE5 0%, #ECFDF5 50%, #D1FAE5 100%);
    border-bottom-color: rgba(5, 150, 105, 0.28);
    color: #0F172A;
}

html:not([data-theme="dark"]) .ai-top-banner-badge {
    background: var(--accent);
    color: #FFFFFF;
}

html:not([data-theme="dark"]) .ai-top-banner-text {
    color: #1E293B;
}

html:not([data-theme="dark"]) .ai-top-banner-sep {
    color: rgba(15, 23, 42, 0.25);
}

html:not([data-theme="dark"]) .navbar,
html:not([data-theme="dark"]) .navbar.scrolled {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

html:not([data-theme="dark"]) .logo {
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .theme-toggle-pill {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
}

html:not([data-theme="dark"]) .hero {
    background: radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.10), transparent 55%), #F8FAFC !important;
}

html:not([data-theme="dark"]) .primary-btn {
    background: var(--accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px var(--accent-glow);
}

html:not([data-theme="dark"]) .secondary-btn {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
}

html:not([data-theme="dark"]) .secondary-btn:hover {
    background: #F1F5F9 !important;
    border-color: #94A3B8 !important;
}

html:not([data-theme="dark"]) .glass-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
    color: #0F172A;
}

html:not([data-theme="dark"]) .features-section {
    background: #F1F5F9;
}

html:not([data-theme="dark"]) .feature-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

html:not([data-theme="dark"]) .feature-card:hover {
    background: #FFFFFF;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

/* Homepage AI Showcase & Origin / Lake Cards in Light Mode */
html:not([data-theme="dark"]) .ai-showcase-box,
html:not([data-theme="dark"]) #skate-ai > div,
html:not([data-theme="dark"]) #skate-ai-alt > div {
    background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

html:not([data-theme="dark"]) #skate-ai h2,
html:not([data-theme="dark"]) #skate-ai-alt h2,
html:not([data-theme="dark"]) .features-section h2,
html:not([data-theme="dark"]) .features-section h3,
html:not([data-theme="dark"]) #about h3 {
    color: #0F172A !important;
}

html:not([data-theme="dark"]) #skate-ai p,
html:not([data-theme="dark"]) #skate-ai-alt p,
html:not([data-theme="dark"]) #skate-ai span,
html:not([data-theme="dark"]) #skate-ai-alt span,
html:not([data-theme="dark"]) #about p {
    color: #334155 !important;
}

html:not([data-theme="dark"]) #about .about-content > div,
html:not([data-theme="dark"]) .features-section a[href^="lakes/"],
html:not([data-theme="dark"]) .features-section div[style*="rgba(255,255,255,0.03)"] {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

html:not([data-theme="dark"]) #skate-ai > div > div > div:last-child,
html:not([data-theme="dark"]) #skate-ai-alt > div > div > div:last-child,
html:not([data-theme="dark"]) .ai-showcase-chat {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

html:not([data-theme="dark"]) #skate-ai > div > div > div:last-child div,
html:not([data-theme="dark"]) #skate-ai-alt > div > div > div:last-child div {
    color: #1E293B !important;
    border-color: #CBD5E1 !important;
}

html:not([data-theme="dark"]) #skate-ai > div > div > div:last-child > div:nth-child(3),
html:not([data-theme="dark"]) #skate-ai-alt > div > div > div:last-child > div:nth-child(3) {
    background: #FFFFFF !important;
}

/* Pricing Page Light Mode */
html:not([data-theme="dark"]) .step-pill-card,
html:not([data-theme="dark"]) .account-bar,
html:not([data-theme="dark"]) .price-card,
html:not([data-theme="dark"]) .topup-section,
html:not([data-theme="dark"]) .auth-modal {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
}

html:not([data-theme="dark"]) .price-card.featured {
    border: 2px solid var(--accent) !important;
}

html:not([data-theme="dark"]) .topup-card {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .topup-card.popular {
    border-color: var(--accent) !important;
    background: #FFFFFF !important;
}

html:not([data-theme="dark"]) .account-status,
html:not([data-theme="dark"]) .price-yearly,
html:not([data-theme="dark"]) .price-features li {
    color: #334155 !important;
}

html:not([data-theme="dark"]) .price-features li.muted {
    color: #64748B !important;
}

html:not([data-theme="dark"]) .web-save-callout {
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .small-btn:not(.accent),
html:not([data-theme="dark"]) .price-cta:not(.primary) {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

html:not([data-theme="dark"]) .price-cta.primary,
html:not([data-theme="dark"]) .small-btn.accent,
html:not([data-theme="dark"]) .price-badge,
html:not([data-theme="dark"]) .topup-badge {
    color: #FFFFFF !important;
}

html:not([data-theme="dark"]) .status-pill:not(.pro) {
    background: #E2E8F0 !important;
    color: #475569 !important;
}

html:not([data-theme="dark"]) .banner-alert.success {
    color: #065F46 !important;
}

html:not([data-theme="dark"]) .banner-alert.cancel {
    color: #92400E !important;
}

/* AI Console Page Light Mode */
html:not([data-theme="dark"]) .ai-topbar,
html:not([data-theme="dark"]) .paywall-gate-card,
html:not([data-theme="dark"]) .ai-chip,
html:not([data-theme="dark"]) .composer-row {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

html:not([data-theme="dark"]) .gate-plan-box {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .gate-btn:not(.primary),
html:not([data-theme="dark"]) #manageSubBtn,
html:not([data-theme="dark"]) #aiSignOutBtn {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

html:not([data-theme="dark"]) .gate-btn.primary,
html:not([data-theme="dark"]) .send-btn,
html:not([data-theme="dark"]) .auth-tab.active,
html:not([data-theme="dark"]) .msg-bubble.user {
    color: #FFFFFF !important;
}

html:not([data-theme="dark"]) .auth-tabs {
    background: #F1F5F9 !important;
}

html:not([data-theme="dark"]) .auth-tab:not(.active) {
    color: #475569 !important;
}

html:not([data-theme="dark"]) .auth-inline-box input,
html:not([data-theme="dark"]) .auth-field input {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

html:not([data-theme="dark"]) .auth-field label {
    color: #334155 !important;
}

html:not([data-theme="dark"]) .auth-msg {
    color: var(--accent) !important;
}

html:not([data-theme="dark"]) .credit-pill:not(.ok) {
    color: #B91C1C !important;
    background: rgba(239, 68, 68, 0.10) !important;
}

html:not([data-theme="dark"]) .chat-window {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

html:not([data-theme="dark"]) .msg-bubble.assistant {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .composer-row textarea {
    color: #0F172A !important;
}

/* Directory, State, Index, Boats, Tricks, Lessons, Events, Subpages Light Mode */
html:not([data-theme="dark"]) .filter-btn {
    background: #F1F5F9;
    color: #475569;
    border-color: #CBD5E1;
}

html:not([data-theme="dark"]) .filter-btn.active {
    background: var(--accent) !important;
    color: #FFFFFF !important;
    border-color: var(--accent) !important;
}

html:not([data-theme="dark"]) .loc-card,
html:not([data-theme="dark"]) .boat-card,
html:not([data-theme="dark"]) .trick-card,
html:not([data-theme="dark"]) .lesson-card,
html:not([data-theme="dark"]) .event-card,
html:not([data-theme="dark"]) .calendar-panel,
html:not([data-theme="dark"]) .park-card,
html:not([data-theme="dark"]) .faq-item {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

html:not([data-theme="dark"]) .loc-title,
html:not([data-theme="dark"]) .loc-title a,
html:not([data-theme="dark"]) .nearby-parks-section a,
html:not([data-theme="dark"]) .nearby-parks-section strong,
html:not([data-theme="dark"]) .boat-name,
html:not([data-theme="dark"]) .trick-name,
html:not([data-theme="dark"]) .lesson-title,
html:not([data-theme="dark"]) .event-title,
html:not([data-theme="dark"]) .cal-day:not(.other-month):not(.today),
html:not([data-theme="dark"]) .cal-nav,
html:not([data-theme="dark"]) .lake-main,
html:not([data-theme="dark"]) .park-main,
html:not([data-theme="dark"]) .lake-details strong,
html:not([data-theme="dark"]) .park-details strong,
html:not([data-theme="dark"]) .faq-item summary,
html:not([data-theme="dark"]) .legal-content h2,
html:not([data-theme="dark"]) .deletion-box h3,
html:not([data-theme="dark"]) .footer-links h4 {
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .nearby-parks-section a[href$=".html"] {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

html:not([data-theme="dark"]) .btn-android {
    background: #FFFFFF !important;
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .about-content > div {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

html:not([data-theme="dark"]) .about-content p {
    color: #334155 !important;
}

.park-main,
main[style*="padding-top:7rem"] {
    padding-top: calc(7rem + var(--ai-banner-h)) !important;
}

html:not([data-theme="dark"]) .nearby-parks-section span,
html:not([data-theme="dark"]) .loc-desc,
html:not([data-theme="dark"]) .boat-desc,
html:not([data-theme="dark"]) .trick-desc,
html:not([data-theme="dark"]) .lesson-desc,
html:not([data-theme="dark"]) .event-desc,
html:not([data-theme="dark"]) .cal-event-pill .pill-title,
html:not([data-theme="dark"]) .lake-desc,
html:not([data-theme="dark"]) .lake-details,
html:not([data-theme="dark"]) .faq-a,
html:not([data-theme="dark"]) .park-card p,
html:not([data-theme="dark"]) .park-details li,
html:not([data-theme="dark"]) .faq-item p {
    color: #475569 !important;
    border-color: #E2E8F0 !important;
}

html:not([data-theme="dark"]) .tag-capsule,
html:not([data-theme="dark"]) .spec-tag,
html:not([data-theme="dark"]) .lesson-cta,
html:not([data-theme="dark"]) .seo-park-link,
html:not([data-theme="dark"]) .seo-lake-link,
html:not([data-theme="dark"]) main a[href^="#"] {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #1E293B !important;
}

html:not([data-theme="dark"]) .cal-nav {
    border-color: #CBD5E1 !important;
}

html:not([data-theme="dark"]) .cal-day.other-month {
    color: #CBD5E1 !important;
}

html:not([data-theme="dark"]) .search-bar-container input,
html:not([data-theme="dark"]) .form-control,
html:not([data-theme="dark"]) .form-group input,
html:not([data-theme="dark"]) .form-group textarea {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

html:not([data-theme="dark"]) .modal-content,
html:not([data-theme="dark"]) .contact-container {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .form-group label {
    color: #334155 !important;
}

html:not([data-theme="dark"]) .contact-section {
    background-color: #F8FAFC !important;
    border-top-color: #E2E8F0 !important;
}

html:not([data-theme="dark"]) .compliance-footer {
    background: #F1F5F9 !important;
    border-top-color: #E2E8F0 !important;
}

html:not([data-theme="dark"]) .footer-bottom {
    border-top-color: #E2E8F0 !important;
    color: #64748B !important;
}

html:not([data-theme="dark"]) .state-container,
html:not([data-theme="dark"]) .state-container div[style*="rgba(255,255,255,0.03)"] {
    color: #0F172A !important;
}

html:not([data-theme="dark"]) .state-container div[style*="rgba(255,255,255,0.03)"] {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

html:not([data-theme="dark"]) .state-container p {
    color: #475569 !important;
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 1180px) {
    .navbar { padding: 1rem 3%; gap: 0.75rem; }
    .nav-links { gap: 1.1rem; }
    .nav-links a { font-size: 0.88rem; white-space: nowrap; }
}

@media (max-width: 960px) {
    .navbar {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 4% !important;
        gap: 0.5rem !important;
    }
    .navbar .logo {
        font-size: 1.3rem;
        gap: 0.55rem;
    }
    .nav-actions > .cta-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.07);
        color: var(--text-primary);
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }
    html:not([data-theme="dark"]) .mobile-menu-btn {
        background: #F1F5F9;
        border-color: #CBD5E1;
        color: #0F172A;
    }
    .mobile-menu-btn:hover,
    .navbar.nav-open .mobile-menu-btn {
        border-color: var(--accent);
        color: var(--accent);
    }
    .mobile-menu-btn svg {
        width: 20px;
        height: 20px;
        stroke-width: 2.4;
    }
    .mobile-menu-btn .icon-close { display: none; }
    .navbar.nav-open .mobile-menu-btn .icon-menu { display: none; }
    .navbar.nav-open .mobile-menu-btn .icon-close { display: block; }

    .navbar .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        padding: 0.75rem 4% 1rem !important;
        background: rgba(12, 12, 16, 0.98);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
        z-index: 1001;
    }
    html:not([data-theme="dark"]) .navbar .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #E2E8F0;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    }
    .navbar.nav-open .nav-links {
        display: flex !important;
    }
    .navbar .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 0.95rem;
        border-radius: 10px;
        font-size: 0.98rem !important;
        font-weight: 700;
        color: var(--text-primary) !important;
    }
    .navbar .nav-links a:hover,
    .navbar .nav-links a.active,
    .navbar .nav-links a.highlight {
        background: rgba(5, 150, 105, 0.11);
        color: var(--accent) !important;
    }
}

@media (max-width: 768px) {
    :root { --ai-banner-h: 52px; }
    .ai-top-banner { font-size: 0.75rem; gap: 5px; padding: 5px 10px; line-height: 1.35; }
    .ai-top-banner-sep { display: none; }
    .hero { padding-top: calc(6.6rem + var(--ai-banner-h)) !important; }
    .directory-container, .state-container { padding-top: calc(6.2rem + var(--ai-banner-h)) !important; }
    .header-title { font-size: 2.35rem !important; margin-bottom: 1.75rem !important; }
}

@media (max-width: 430px) {
    .theme-toggle-opt span { display: none; }
    .theme-toggle-opt { padding: 6px 8px; }
}

/* === AI CAPABILITIES & SCENARIO SHOWCASE (ai.html) === */
.ai-showcase-wrap {
    max-width: 1100px;
    margin: 12px auto 80px;
    padding: 0 20px;
}
.ai-showcase-hero {
    background: linear-gradient(145deg, rgba(5, 150, 105, 0.12) 0%, rgba(18, 18, 22, 0.95) 60%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(5, 150, 105, 0.32);
    border-radius: 22px;
    padding: 34px 32px;
    margin-bottom: 28px;
}
html:not([data-theme="dark"]) .ai-showcase-hero {
    background: linear-gradient(145deg, #ECFDF5 0%, #FFFFFF 60%, #F0FDF4 100%);
    border-color: rgba(5, 150, 105, 0.28);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.ai-showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.16);
    border: 1px solid rgba(5, 150, 105, 0.38);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.ai-showcase-hero h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 10px;
}
.ai-showcase-hero > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 820px;
    margin: 0 0 22px;
}
.ai-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.ai-pillar-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px;
}
html:not([data-theme="dark"]) .ai-pillar-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
}
.ai-pillar-card h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.ai-pillar-card p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}
.ai-scenarios-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 16px;
}
.ai-scenarios-header h2 {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}
.ai-scenarios-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}
.ai-scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}
.ai-scenario-card {
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ai-scenario-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
html:not([data-theme="dark"]) .ai-scenario-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.ai-scenario-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 6px;
}
.ai-scenario-card h3 {
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.ai-scenario-card p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}
.ai-scenario-prompt-preview {
    font-size: 0.81rem;
    line-height: 1.45;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent);
    padding: 9px 11px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
html:not([data-theme="dark"]) .ai-scenario-prompt-preview {
    background: #F8FAFC;
    color: #334155;
}
.scenario-try-btn {
    align-self: flex-start;
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.35);
    color: var(--accent);
    border-radius: 9px;
    padding: 7px 13px;
    font-size: 0.81rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}
.scenario-try-btn:hover {
    background: var(--accent);
    color: #FFFFFF;
}
/* === END AI TOP BANNER & LIGHT/DARK THEME SYSTEM === */

/* === HERO MOBILE PHONE SHOWCASE (Angled + Hover Wiggle + Store Buttons Below) === */
.hero {
    padding-top: calc(7.5rem + var(--ai-banner-h)) !important;
    min-height: auto;
    padding-bottom: 4.5rem;
    gap: 5rem;
}
.hero-visual.hero-phone-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}
.hero-phone-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.15rem;
}
.hero-phone-wrapper {
    position: relative;
    z-index: 2;
    transform: rotateY(-12deg) rotateX(5deg) rotateZ(-2.5deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 26px 52px rgba(15, 23, 42, 0.14)) drop-shadow(0 6px 16px rgba(15, 23, 42, 0.06));
    will-change: transform;
    cursor: pointer;
}
@keyframes heroPhoneWiggle {
    0%   { transform: rotateY(-12deg) rotateX(5deg) rotateZ(-2.5deg) translateY(0px); }
    22%  { transform: rotateY(-3deg) rotateX(2deg) rotateZ(2.2deg) translateY(-4px); }
    48%  { transform: rotateY(-10deg) rotateX(4deg) rotateZ(-2.0deg) translateY(-3px); }
    74%  { transform: rotateY(-5deg) rotateX(2.5deg) rotateZ(1.2deg) translateY(-4px); }
    100% { transform: rotateY(-6deg) rotateX(2deg) rotateZ(0deg) translateY(-4px); }
}
.hero-phone-wrapper:hover {
    animation: heroPhoneWiggle 0.72s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero-phone-img {
    display: block;
    width: 285px;
    max-width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}
.hero-store-buttons {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-store-buttons .btn {
    padding: 0.78rem 1.3rem;
    font-size: 0.92rem;
}
@media (max-width: 1024px) {
    .hero {
        padding-top: calc(6.5rem + var(--ai-banner-h)) !important;
    }
    .hero-visual.hero-phone-scene {
        display: flex;
        margin-top: 2rem;
    }
    .hero-phone-wrapper {
        transform: rotateY(-6deg) rotateX(3deg) rotateZ(-1.5deg);
    }
    .hero-phone-img {
        width: 260px;
    }
}
/* === END HERO MOBILE PHONE SHOWCASE === */

/* === TRICKS PAGE LIGHT/DARK COMPAT === */
html:not([data-theme="dark"]) .trick-name { color: #0F172A !important; }
html:not([data-theme="dark"]) .trick-desc { color: #334155 !important; }
html:not([data-theme="dark"]) .trick-card { background: #FFFFFF !important; border-color: #E2E8F0 !important; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05); }
