/*
Theme Name: JoinDream11
Theme URI: https://joindream11.com
Author: JoinDream11 Team
Author URI: https://joindream11.com
Description: Join Dream11 APK Download – Play Live & Win in India
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joindream11
*/

/* ============================================================
   Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Exo+2:wght@600;700;800&display=swap');

/* ============================================================
   CSS Variables & Reset
   ============================================================ */
:root {
    --bg-dark: #0b0f1a;
    --bg-card: rgba(11, 15, 26, 0.7);
    --primary-light: #00c6ff;
    --primary-mid: #007bff;
    --primary-dark: #001f4d;
    --text-main: #ffffff;
    --text-muted: #b0c4de;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(0, 198, 255, 0.2);
    --neon-glow: 0 0 20px rgba(0, 198, 255, 0.5);
    --font-body: 'Poppins', sans-serif;
    --font-head: 'Exo 2', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   Animated Blue Background Effects
   ============================================================ */
.ambient-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 15% 30%, rgba(0, 123, 255, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(0, 198, 255, 0.08) 0%, transparent 50%);
    animation: pulse-bg 12s infinite alternate ease-in-out;
}
@keyframes pulse-bg {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
    margin-bottom: 1rem;
}
h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
}
.text-gradient {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}
p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }

/* ============================================================
   Layout & Utilities
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
    border-color: var(--primary-light);
}

/* ============================================================
   Buttons & Interactions
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    z-index: 1;
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-mid));
    color: #fff;
    border: 1px solid var(--primary-light);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
    animation: pulse-btn 2s infinite;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.8);
}
.btn-primary:hover::before { left: 100%; }

.btn-outline {
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(0, 198, 255, 0.1);
    color: #fff;
    box-shadow: var(--neon-glow);
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 15px rgba(0, 198, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 198, 255, 0.8); }
    100% { box-shadow: 0 0 15px rgba(0, 198, 255, 0.4); }
}

/* ============================================================
   Site Header / Navigation
   ============================================================ */

/* Reset all nav list defaults — high specificity to override WP defaults */
.site-header ul,
.site-header li,
.site-header .menu,
.site-header .menu-item,
nav.primary-nav ul,
nav.primary-nav li,
nav.primary-nav .menu,
nav.primary-nav .menu-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none;
    border: none;
    outline: none;
}
.site-header .menu::before,
.site-header .menu::after {
    content: none !important;
    display: none !important;
}
.site-header .menu-item::before {
    content: none !important;
    display: none !important;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: rgba(5, 12, 24, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.3s ease;
    overflow: visible;
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ---- Layer 1: Top Bar ---- */
.header-top {
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
}
.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.follow-us-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}
.header-social-link:hover {
    color: var(--primary-light);
    background: rgba(0, 198, 255, 0.1);
}
.header-social-link svg {
    display: block;
}
.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 28px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.header-cta-download {
    background: linear-gradient(135deg, #ff3d00, #ffcf00);
    color: #08111f;
    border: 2px solid #fff176;
    box-shadow: 0 0 22px rgba(255, 207, 0, 0.55);
}
.header-cta-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(255, 207, 0, 0.75);
    color: #08111f;
}
.header-cta-join {
    background: linear-gradient(135deg, #06305f, #00c6ff);
    color: #ffffff;
    border: 2px solid #00e5ff;
}
.header-cta-join:hover {
    background: linear-gradient(135deg, #0047ff, #00e5ff);
    color: #fff;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.65);
}

/* ---- Layer 2: Main Nav Bar ---- */
.header-main {
    padding: 12px 0;
}
.header-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-sizing: border-box;
}

/* Brand / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Header logo: locked size — prevents any global img rule from enlarging it */
.site-header .brand-logo,
.site-header .brand img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.brand-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.brand .brand-highlight {
    color: #00b7ff;
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: center;
}
.primary-nav > ul,
.primary-nav .menu {
    display: flex !important;
    align-items: center;
    gap: 6px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
}
.primary-nav li,
.primary-nav .menu-item {
    position: relative;
    list-style: none !important;
}
.primary-nav a {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Desktop Dropdown Menu */
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 198, 255, 0.25);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 6px;
    list-style: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 198, 255, 0.08);
    z-index: 1000;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-nav .sub-menu .menu-item {
    width: 100%;
}
.primary-nav .sub-menu a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.primary-nav .sub-menu a:hover {
    color: #fff;
    background: rgba(0, 198, 255, 0.12);
}
.primary-nav .menu-item-has-children > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.primary-nav .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: rgba(11, 15, 26, 0.6);
    border-bottom: 1px solid rgba(0, 198, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none !important;
}
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.breadcrumb-item a:hover {
    color: var(--primary-light);
}
.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}
.breadcrumb-item:not(:last-child)::after {
    content: "›";
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    margin-left: 0.5rem;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1102;
    order: 4;
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.urgency-badge {
    display: inline-block;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.social-proof {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
}
.stars { display: flex; gap: 4px; }
.stars svg {
    width: 18px;
    height: 18px;
    fill: #00c6ff;
    filter: drop-shadow(0 0 2px #00c6ff);
}
.live-pulse {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: livePulse 1.5s infinite;
    margin-right: 5px;
    display: inline-block;
}
@keyframes livePulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: #b0c4de;
    font-weight: 500;
}
.hero-img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-img-wrap img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 123, 255, 0.5));
    animation: floatApp 6s ease-in-out infinite;
    border-radius: 20px;
}
@keyframes floatApp {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============================================================
   SEO Content (About)
   ============================================================ */
.seo-content {
    column-count: 2;
    column-gap: 3rem;
    text-align: justify;
}
.seo-content h3 {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: #fff;
    text-transform: none;
    margin: 1.5rem 0 0.5rem;
    border-left: 3px solid var(--primary-light);
    padding-left: 10px;
}
.seo-content strong { color: var(--primary-light); font-weight: 600; }

/* ============================================================
   Games Matrix
   ============================================================ */
.games-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}
.game-item {
    background: #121826;
    border-radius: 0;
    padding: 10px 0px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.2);
}
.game-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.4);
    border-color: #007bff;
}
.game-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
}
.game-item span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

/* ============================================================
   Features Grid
   ============================================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.feature-icon {
    width: 50px;
    height: 50px;
    fill: var(--primary-light);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.5));
}

/* ============================================================
   Download Steps (Timeline)
   ============================================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
}
.step {
    position: relative;
    margin-bottom: 2.5rem;
}
.step::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary-light);
    box-shadow: 0 0 15px var(--primary-light);
}
.step h3 { color: #fff; margin-bottom: 5px; }

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-wrapper { max-width: 900px; margin: 0 auto; }
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(0,0,0,0.4);
    overflow: hidden;
    transition: all 0.3s;
}
.faq-btn {
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.faq-btn:hover { background: rgba(0, 198, 255, 0.05); }
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    transition: all 0.4s ease;
    color: var(--text-muted);
    opacity: 0;
}
.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.15);
}
.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 600px;
    opacity: 1;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 10px;
    padding-top: 10px;
}
.faq-icon {
    color: var(--primary-light);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.4s;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ============================================================
   Footer & Disclaimers
   ============================================================ */
footer {
    background: #050810;
    padding: 4rem 1.5rem 6rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.disclaimer-box {
    background: rgba(255,255,255,0.02);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    margin: 2rem auto;
    max-width: 900px;
    font-size: 0.85rem;
    color: #888;
    text-align: left;
}
.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    box-shadow: inset 0 0 10px rgba(0,198,255,0.2);
}
.footer-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--primary-light);
}

/* ============================================================
   Sticky Mobile Bar
   ============================================================ */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem;
    border-top: 1px solid var(--primary-light);
    box-shadow: 0 -5px 25px rgba(0, 198, 255, 0.2);
}
.mobile-cta-bar .btn { width: 100%; font-size: 1.1rem; padding: 1rem; }

/* ============================================================
   Scroll Animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Mobile Nav Overlay
   ============================================================ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ---- Nav Get App: visible as regular menu item on desktop ---- */
.nav-get-app {
    display: list-item;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .header-top-inner {
        padding: 0 20px;
    }
    .header-main-inner {
        height: auto;
        min-height: 60px;
        padding: 12px 20px;
        flex-wrap: wrap;
    }
    .site-header .brand-logo,
    .site-header .brand img {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }
    .brand-name {
        font-size: 18px;
    }
    .brand-subtitle {
        font-size: 9px;
    }
    .nav-toggle {
        display: flex;
    }
    /* Get App btn stays hidden on tablet — nav item is sufficient */
    .primary-nav {
        order: 5;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 8px 0 4px;
    }
    .primary-nav::-webkit-scrollbar {
        display: none;
    }
    .primary-nav > ul,
    .primary-nav .menu {
        display: flex;
        gap: 4px;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    .primary-nav a {
        height: 36px;
        padding: 0 12px;
        font-size: 14px;
    }
    /* Sub-menu inline on mobile (horizontal scroll) */
    .primary-nav .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 4px;
        box-shadow: none;
        border-radius: 12px;
        min-width: 0;
        padding: 6px;
    }
    .primary-nav .menu-item-has-children.open > .sub-menu {
        display: flex;
        flex-direction: row;
        gap: 2px;
    }
    .primary-nav .sub-menu a {
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }
    .primary-nav .menu-item-has-children > a::after {
        content: "▾";
        margin-left: 4px;
        font-size: 10px;
        opacity: 0.75;
    }
}

/* Small mobile: switch to hamburger drawer */
@media (max-width: 600px) {
    /* Top bar: hide social section, keep CTA buttons */
    .header-top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1205;
        padding: 10px 0;
    }
    .header-main {
        margin-top: 54px;
    }
    .header-cta {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .social-links {
        display: none;
    }
    .header-top-inner {
        padding: 0 16px;
        height: 36px;
        justify-content: flex-end;
    }
    .header-cta-btn {
        height: 34px;
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        padding: 0 8px;
        font-size: 10px;
        letter-spacing: 0.02em;
    }

    .header-main-inner {
        min-height: 56px;
        padding: 10px 16px;
    }
    .site-header .brand-logo,
    .site-header .brand img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    .brand-name {
        font-size: 16px;
    }
    .brand-subtitle {
        font-size: 8px;
    }
    .nav-toggle {
        display: flex;
    }
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(8, 16, 32, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transition: right 0.35s ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1102;
        order: 0;
        width: 280px;
    }
    .primary-nav.open { right: 0; }
    .primary-nav > ul,
    .primary-nav .menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        flex-wrap: nowrap;
    }
    .primary-nav .menu-item {
        width: 100%;
    }
    .primary-nav a {
        height: auto;
        padding: 0.85rem 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 15px;
    }
    .primary-nav a:hover {
        background: transparent;
        color: #fff;
    }
    .primary-nav .menu-item-has-children > a::after {
        content: "▾";
        margin-left: auto;
        font-size: 12px;
    }
    .primary-nav .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0.5rem 1rem;
        min-width: 0;
    }
    .primary-nav .menu-item-has-children.open > .sub-menu {
        display: block;
    }
    .primary-nav .sub-menu a {
        height: auto;
        padding: 0.55rem 1rem;
        font-size: 14px;
        border-bottom: none;
    }
    /* Show Get App in mobile drawer */
    .nav-get-app {
        display: list-item;
    }
    .nav-get-app a {
        color: var(--primary-light) !important;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .mobile-cta-bar { display: block; }
    footer { padding-bottom: 7rem; }
    .hero-img-wrap img { max-width: 85%; }
    .container { padding: 4rem 1rem; }
}
