/* ============================================
   WYROH — Landing Page Styles
   Modern one-page for app launch
   ============================================ */

/* ---- Variables ---- */
:root {
    --bg: #050508;
    --bg-surface: #0a0a12;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #667EEA;
    --secondary: #764BA2;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --orange: #FF8E53;
    --red: #FF6B6B;
    --green: #10b981;
    --text: #f0f0f5;
    --text-secondary: #a0a4b8;
    --text-muted: #6b7280;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(139, 92, 246, 0.3);
    --glow-purple: rgba(139, 92, 246, 0.4);
    --glow-cyan: rgba(6, 182, 212, 0.3);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ---- Hero CSS-only animations (no JS needed) ---- */
.hero-anim {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.25s; }
.hero-anim-3 { animation-delay: 0.4s; }
.hero-anim-4 { animation-delay: 0.55s; }

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Scroll reveal (JS-driven, below the fold only) ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }
[data-reveal]:nth-child(5) { transition-delay: 0.4s; }
[data-reveal]:nth-child(6) { transition-delay: 0.5s; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   GRADIENT TEXT UTILITY
   ============================================ */
.gradient-text,
.hero-gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--cyan), var(--pink));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 32px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-logo:hover img {
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 50px;
    transition: color 0.3s, background 0.3s;
}

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

.nav-link.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    padding: 8px 22px;
}

.nav-link.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

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

.nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu — animated with max-height */
.nav-mobile {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    gap: 4px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
    background: rgba(5, 5, 8, 0.95);
}

.nav-mobile.open {
    max-height: 220px;
    opacity: 1;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--border);
}

.nav-mobile-link {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.3s, background 0.3s;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

/* Particles canvas */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Glow orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--glow-purple);
    top: -200px;
    right: -150px;
    animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb-2 {
    width: 450px;
    height: 450px;
    background: var(--glow-cyan);
    bottom: -150px;
    left: -100px;
    animation: orbFloat2 16s ease-in-out infinite;
}

.hero-orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.15);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 40px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-gradient-text {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
}

/* Store buttons */
.hero-stores,
.cta-stores {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.store-btn:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.store-btn i {
    font-size: 28px;
}

.store-btn-text {
    text-align: left;
}

.store-btn-small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.store-btn-big {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

/* Scroll hint */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    animation: hintPulse 3s ease-in-out infinite;
}

.hero-scroll-hint span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(8px); }
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

/* ============================================
   SECTIONS — Shared
   ============================================ */
.section {
    padding: 120px 24px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--icon-gradient, linear-gradient(135deg, var(--primary), var(--secondary)));
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--icon-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   HIGHLIGHT SECTION
   ============================================ */
.highlight {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.highlight-content .section-title {
    text-align: left;
}

.highlight-content .section-badge {
    text-align: left;
}

.highlight-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.highlight-text strong {
    color: var(--text);
    font-weight: 600;
}

.highlight-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

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

.stat-number {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* Phone frame with real screenshot */
.highlight-visual {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 60px rgba(102, 126, 234, 0.15);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone-frame-img {
    width: 100%;
    height: auto;
    border-radius: 27px;
    display: block;
}

.phone-frame-lg {
    width: 300px;
}

/* ============================================
   APP SHOWCASE
   ============================================ */
.app-showcase {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.showcase-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 40px;
}

.showcase-item {
    text-align: center;
    max-width: 280px;
}

.showcase-item-featured {
    max-width: 300px;
}

.showcase-item-featured .phone-frame {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 80px rgba(102, 126, 234, 0.12);
}

.showcase-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.showcase-label i {
    font-size: 18px;
    color: var(--primary);
}

.showcase-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 8px;
}

/* Carousel dots — hidden on desktop, visible on mobile */
.showcase-dots {
    display: none;
}

@media (max-width: 768px) {
    .showcase-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding-top: 20px;
    }

    .showcase-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background 0.3s, transform 0.3s;
    }

    .showcase-dot.active {
        background: var(--primary);
        transform: scale(1.3);
    }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    background: var(--bg);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    text-align: center;
    padding: 32px 28px;
    flex: 1;
    max-width: 320px;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s;
}

.step-card:hover .step-icon {
    border-color: var(--border-hover);
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 100px;
}

/* ============================================
   SLOGANS MARQUEE
   ============================================ */
.slogans {
    padding: 60px 0;
    overflow: hidden;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.slogans-marquee {
    overflow: hidden;
}

.slogans-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.slogan-item {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    opacity: 0.6;
    padding: 0 16px;
    letter-spacing: -0.02em;
}

.slogan-divider {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--primary);
    opacity: 0.3;
    padding: 0 8px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download-cta {
    background: var(--bg);
    padding: 140px 24px;
}

.cta-wrapper {
    text-align: center;
    position: relative;
    padding: 80px 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.04) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-logo {
    margin-bottom: 28px;
    filter: drop-shadow(0 0 30px var(--glow-purple));
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.cta-stores {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 60px 24px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 260px;
}

.footer-brand img {
    margin-bottom: 16px;
    opacity: 0.7;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links-grid {
    display: flex;
    gap: 60px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

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

.footer-col-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.3s;
}

.footer-social a:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-grid {
        gap: 48px;
    }

    .footer-links-grid {
        gap: 40px;
    }
}

/* ============================================
   Large mobile (≤768px)
   Performance + Design overhaul
   ============================================ */
@media (max-width: 768px) {

    /* ---- Performance: reduce GPU-heavy effects ---- */
    .hero-orb {
        filter: blur(80px);
        opacity: 0.3;
        animation: none;
    }

    .hero-orb-1 {
        width: 300px;
        height: 300px;
    }

    .hero-orb-2 {
        width: 250px;
        height: 250px;
    }

    .hero-orb-3 {
        width: 200px;
        height: 200px;
    }

    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(5, 5, 8, 0.95);
    }

    .hero-badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .store-btn {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Disable gradient animation on mobile for perf */
    .gradient-text,
    .hero-gradient-text {
        animation: none;
        background-position: 50% 50%;
    }

    /* ---- Layout: Sections ---- */
    .section {
        padding: 80px 20px;
    }

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

    /* ---- Navbar ---- */
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    /* ---- Hero ---- */
    .hero {
        min-height: calc(100vh - 40px);
        min-height: calc(100dvh - 40px);
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    /* Hide scroll hint on mobile — no mouse, no use */
    .hero-scroll-hint {
        display: none;
    }

    /* Store buttons: stack vertically, better spacing */
    .hero-stores,
    .cta-stores {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 24px;
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* ---- Features: 2-column compact grid ---- */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
        margin: 0;
    }

    .feature-card {
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: center;
        text-align: center;
    }

    .feature-card:hover {
        transform: none;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .feature-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .feature-desc {
        font-size: 12px;
        line-height: 1.5;
        color: var(--text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ---- Highlight ---- */
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .highlight-content .section-title {
        text-align: center;
    }

    .highlight-content .section-badge {
        display: block;
        text-align: center;
    }

    .highlight-text {
        text-align: center;
    }

    .highlight-stats {
        justify-content: center;
        gap: 24px;
    }

    .stat {
        align-items: center;
        text-align: center;
    }

    .stat-number {
        font-size: 24px;
    }

    .phone-frame {
        width: 220px;
    }

    .phone-frame-lg {
        width: 240px;
    }

    .phone-frame::before {
        width: 80px;
        height: 20px;
    }

    .phone-frame:hover {
        transform: none;
    }

    /* ---- How it works: compact horizontal layout per step ---- */
    .steps-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 100%;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        gap: 2px 16px;
        text-align: left;
        max-width: 100%;
        padding: 16px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }

    .step-number {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
        margin: 0;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .step-icon {
        display: none;
    }

    .step-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 16px;
        margin-bottom: 2px;
        align-self: end;
    }

    .step-desc {
        grid-column: 2;
        grid-row: 2;
        font-size: 13px;
        line-height: 1.5;
        align-self: start;
    }

    .step-card:hover .step-icon {
        transform: none;
    }

    /* ---- App Showcase: Horizontal scroll with snap ---- */
    .app-showcase .section-container {
        max-width: 100%;
        padding: 0;
    }

    .app-showcase .section-header {
        padding: 0 20px;
    }

    .showcase-grid {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 0 0 20px;
        justify-content: flex-start;
        align-items: stretch;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .showcase-grid::-webkit-scrollbar {
        display: none;
    }

    .showcase-item {
        scroll-snap-align: center;
        min-width: 80vw;
        max-width: 80vw;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 8px;
    }

    /* First item: extra left padding for peek effect */
    .showcase-item:first-child {
        margin-left: 10vw;
    }

    /* Last item: extra right padding */
    .showcase-item:last-child {
        margin-right: 10vw;
    }

    .showcase-item-featured {
        min-width: 80vw;
        max-width: 80vw;
    }

    .showcase-item .phone-frame {
        width: 240px;
        max-width: 65vw;
    }

    .showcase-item-featured .phone-frame {
        width: 260px;
        max-width: 70vw;
    }

    .showcase-label {
        margin-top: 16px;
    }

    .showcase-desc {
        font-size: 13px;
        max-width: 260px;
    }

    /* ---- Footer ---- */
    .site-footer {
        padding: 48px 20px 28px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* ---- CTA ---- */
    .download-cta {
        padding: 60px 20px;
    }

    .cta-wrapper {
        padding: 48px 20px;
        border-radius: var(--radius-md);
    }

    .cta-glow {
        width: 300px;
        height: 200px;
    }

    .cta-logo {
        width: 60px;
        height: 60px;
        filter: drop-shadow(0 0 20px var(--glow-purple));
    }

    .cta-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* ---- Slogans ---- */
    .slogans {
        padding: 40px 0;
    }
}

/* ============================================
   Small mobile (≤480px) — iPhone SE, etc.
   ============================================ */
@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 50px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.6rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 28px;
    }

    .section {
        padding: 56px 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    /* Features: even more compact */
    .features-grid {
        gap: 12px;
    }

    .feature-card {
        padding: 18px 16px;
        gap: 14px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
        border-radius: 12px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-desc {
        font-size: 13px;
    }

    /* Stats: horizontal row with smaller text */
    .highlight-stats {
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .phone-frame {
        width: 200px;
    }

    .phone-frame-lg {
        width: 220px;
    }

    .phone-frame::before {
        width: 70px;
        height: 18px;
    }

    /* Steps: smaller number circle */
    .step-card {
        padding: 14px 12px;
        grid-template-columns: 42px 1fr;
    }

    .step-number {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .step-title {
        font-size: 15px;
    }

    .step-desc {
        font-size: 12px;
    }

    /* Showcase: vw-based sizing cascades from 768px */
    .showcase-item .phone-frame {
        width: 220px;
    }

    .showcase-item-featured .phone-frame {
        width: 240px;
    }

    /* CTA */
    .cta-wrapper {
        padding: 40px 16px;
        border-radius: 16px;
    }

    .download-cta {
        padding: 48px 16px;
    }

    /* Footer: smaller text */
    .footer-col-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-col-links a {
        font-size: 13px;
    }

    .footer-col-links li {
        margin-bottom: 6px;
    }

    /* Slogans */
    .slogans {
        padding: 32px 0;
    }

    .slogan-item {
        font-size: 0.9rem;
    }

    .slogan-divider {
        font-size: 0.9rem;
    }

    /* Store buttons: full width */
    .store-btn {
        max-width: 100%;
        padding: 12px 20px;
    }

    .store-btn-big {
        font-size: 15px;
    }
}

/* ============================================
   Very small mobile (≤360px) — Galaxy S, etc.
   ============================================ */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 16px 14px;
        gap: 12px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .feature-title {
        font-size: 15px;
    }

    .feature-desc {
        font-size: 12px;
    }

    .highlight-stats {
        gap: 12px;
    }

    .stat-number {
        font-size: 18px;
    }

    .phone-frame {
        width: 180px;
    }

    .phone-frame-lg {
        width: 200px;
    }

    /* Steps even smaller */
    .step-card {
        grid-template-columns: 38px 1fr;
        padding: 12px 10px;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .step-title {
        font-size: 14px;
    }

    .step-desc {
        font-size: 11px;
    }

    /* Showcase: keep vw sizing */
    .showcase-item .phone-frame {
        width: 180px;
    }

    .showcase-item-featured .phone-frame {
        width: 200px;
    }

    .cta-title {
        font-size: 1.3rem;
    }
}
