/* ========== CSS Variables ========== */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --primary-dark: #7c3aed;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #f472b6 100%);
    --gradient-text: linear-gradient(135deg, #8b5cf6, #06b6d4, #f472b6);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== Background Effects ========== */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.mobile-menu-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* Interactive Dashboard Preview Container */
#dashboardPreviewContainer {
    width: 100%;
    max-width: 600px;
}

/* ========== Sections Common ========== */
section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ========== Features Section ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== Games Section ========== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.game-card.coming-soon {
    opacity: 0.6;
}

.game-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.game-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

/* PC Only Badge */
.pc-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--secondary);
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* ========== Scripts Section ========== */
/* Script Showcase */
.script-showcase {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.script-card-large {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.script-card-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.script-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.script-card-large h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.script-card-large p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.script-code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    text-align: left;
}

.script-code code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: var(--secondary);
    word-break: break-all;
}

.btn-copy {
    margin-bottom: 1.5rem;
}

.btn-copy.copied {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}

.script-games {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.game-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

/* Legacy script grid (keep for compatibility) */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.script-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.script-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.script-badge {
    padding: 0.2rem 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #10b981;
}

/* ========== How It Works ========== */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    padding: 2rem;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border-light);
}

/* ========== FAQ Section ========== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== CTA Section ========== */
.cta {
    text-align: center;
    padding: 8rem 2rem;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0.05;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
}

.cta .btn {
    position: relative;
}

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ========== Responsive ========== */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        min-height: 400px;
        width: 100%;
    }
    
    #dashboardPreviewContainer {
        max-width: 100%;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
}

/* Tablets portrait and large phones landscape */
@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 5rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .step-connector {
        display: none;
    }
    
    .steps {
        flex-direction: column;
        gap: 0;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .scripts-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        padding: 2.5rem 1.5rem;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    #dashboardPreviewContainer {
        max-width: 100%;
    }
}

/* Standard phones (iPhone 6/7/8/SE2/12 mini - 375px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        padding: 4.5rem 1rem 2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-visual {
        min-height: 280px;
        margin-top: 1rem;
    }
    
    #dashboardPreviewContainer {
        max-width: 100%;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .section-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .game-image {
        height: 120px;
        font-size: 3rem;
    }
    
    .game-info {
        padding: 1.25rem;
    }
    
    .game-info h3 {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.85rem;
    }
    
    .cta {
        padding: 4rem 1rem;
    }
    
    .cta-content {
        padding: 2rem 1.25rem;
    }
    
    .cta h2 {
        font-size: 1.35rem;
    }
    
    .cta p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .mobile-menu {
        padding: 1rem;
    }
    
    .mobile-menu a {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
}

/* Small phones (iPhone 5/SE1 - 320px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .cta h2 {
        font-size: 1.2rem;
    }
}

/* Landscape mode for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 2rem 2rem;
        flex-direction: row;
        text-align: left;
    }
    
    .hero-content {
        flex: 1;
        max-width: 55%;
    }
    
    .hero-visual {
        flex: 1;
        min-height: 250px;
        max-width: 45%;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .hero-stats {
        justify-content: flex-start;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: block;
        height: 30px;
    }
    
    #dashboardPreviewContainer {
        max-width: 280px;
    }
    
    section {
        padding: 2.5rem 2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        flex-direction: row;
    }
    
    .step-connector {
        display: block;
        width: 40px;
    }
    
    .step {
        padding: 1rem;
        min-width: 150px;
    }
    
    .faq-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .cta {
        padding: 2.5rem 2rem;
    }
    
    .cta-content {
        padding: 2rem;
    }
    
    .footer {
        padding: 1.5rem 2rem;
    }
    
    .footer-content {
        flex-direction: row;
    }
    
    /* Hide mobile menu in landscape - use regular nav */
    .nav-links, .nav-buttons {
        display: flex;
    }
    
    .hamburger {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Very short landscape (iPhone SE landscape) */
@media (max-height: 400px) and (orientation: landscape) {
    .hero {
        padding: 3.5rem 1.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-badge {
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Large phones (iPhone Plus/Max/Pro Max - 414px-430px) */
@media (min-width: 400px) and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(0.75rem, env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
    
    .mobile-menu {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}
