/* BallSwipe landing page styles - scoped to /ballswipe/ */

:root {
    --bs-primary: #6366f1;
    --bs-secondary: #0ea5e9;
    --bs-accent: #f43f5e;
    --bs-dark: #0f172a;
    --bs-dark-2: #1e293b;
    --bs-dark-3: #334155;
    --bs-text: #e2e8f0;
    --bs-text-muted: #94a3b8;
    --bs-text-dim: #64748b;
    --bs-white: #ffffff;
    --bs-red: #e74c3c;
    --bs-green: #2ecc71;
    --bs-blue: #3b82f6;
    --bs-yellow: #f59e0b;
    --bs-purple: #a855f7;
    --bs-gradient: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --bs-gradient-text: linear-gradient(135deg, #818cf8 0%, #0ea5e9 50%, #f43f5e 100%);
    --bs-radius: 14px;
    --bs-radius-lg: 24px;
    --bs-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bs-dark);
    color: var(--bs-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--bs-primary); color: var(--bs-white);
    padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 0; }

/* Smart App Banner (custom — for Android Chrome / macOS Safari) */
#bs-app-banner {
    display: none;
    position: sticky;
    top: 0;
    z-index: 60;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem 0.55rem 0.4rem;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.25;
    animation: bs-banner-slide 0.25s ease-out;
}
#bs-app-banner.visible { display: flex; }
@keyframes bs-banner-slide {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
.bs-app-banner-close {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.35rem;
    line-height: 1;
    flex-shrink: 0;
}
.bs-app-banner-close:hover { color: rgba(255, 255, 255, 0.95); }
.bs-app-banner-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.bs-app-banner-text { flex: 1; min-width: 0; overflow: hidden; }
.bs-app-banner-name {
    color: var(--bs-white);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bs-app-banner-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bs-app-banner-stars {
    color: #fbbf24;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-top: 1px;
}
.bs-app-banner-store {
    color: rgba(255, 255, 255, 0.45);
    margin-left: 0.3rem;
    letter-spacing: normal;
}
.bs-app-banner-cta {
    background: var(--bs-primary);
    color: var(--bs-white) !important;
    padding: 0.45rem 1.15rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}
.bs-app-banner-cta:hover {
    background: var(--bs-primary-dark, #4f46e5);
    transform: translateY(-1px);
}
[dir="rtl"] #bs-app-banner { direction: rtl; }
[dir="rtl"] .bs-app-banner-stars,
[dir="rtl"] .bs-app-banner-name,
[dir="rtl"] .bs-app-banner-sub { text-align: right; }
[dir="rtl"] .bs-app-banner-store { margin-left: 0; margin-right: 0.3rem; }
@media (max-width: 480px) {
    #bs-app-banner { padding: 0.45rem 0.6rem 0.45rem 0.25rem; gap: 0.5rem; }
    .bs-app-banner-icon { width: 38px; height: 38px; }
    .bs-app-banner-name { font-size: 0.9rem; }
    .bs-app-banner-sub { font-size: 0.72rem; }
    .bs-app-banner-stars { display: none; }
    .bs-app-banner-cta { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
}

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

/* Top nav */
.bs-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bs-nav .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 1rem; padding-bottom: 1rem;
}
.bs-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--bs-white); }
.bs-brand img { width: 32px; height: 32px; border-radius: 8px; }
.bs-nav-links { display: flex; gap: 1.5rem; align-items: center; font-size: 0.95rem; color: var(--bs-text-muted); }
.bs-nav-links a:hover { color: var(--bs-white); }
.bs-nav-links .home-link { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Hero */
.bs-hero {
    position: relative;
    padding: 5rem 0 4rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(14, 165, 233, 0.14) 0%, transparent 45%),
        var(--bs-dark);
    overflow: hidden;
}
.bs-hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.bs-hero-kicker {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 100px;
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.bs-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--bs-white);
    letter-spacing: -0.02em;
}
.bs-hero h1 .accent {
    background: var(--bs-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bs-hero p.lead {
    font-size: 1.15rem;
    color: var(--bs-text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}
.bs-store-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.bs-store-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: var(--bs-white); color: #000;
    border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.bs-store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.bs-store-btn svg { width: 24px; height: 24px; }
.bs-store-btn .small { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.7; line-height: 1; margin-bottom: 2px; }
.bs-store-btn .big { display: block; font-size: 1rem; font-weight: 600; line-height: 1.1; }

.bs-hero-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.bs-phone-frame {
    position: relative;
    width: 280px;
    aspect-ratio: 9 / 19.5;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 10px;
    box-shadow: var(--bs-shadow), 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.bs-phone-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 28px;
}
.bs-floating-icon {
    position: absolute;
    width: 96px; height: 96px;
    border-radius: 22px;
    box-shadow: var(--bs-shadow);
    top: -20px; right: -10px;
    background: var(--bs-white);
    padding: 4px;
}
.bs-floating-icon img { width: 100%; height: 100%; border-radius: 18px; }

/* Section base */
.bs-section { padding: 5rem 0; }
.bs-section-alt { background: var(--bs-dark-2); }
.bs-section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.bs-section-kicker {
    display: inline-block;
    color: var(--bs-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.bs-section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--bs-white);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.bs-section-header p {
    font-size: 1.1rem;
    color: var(--bs-text-muted);
}

/* Feature grid */
.bs-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.bs-feature {
    background: var(--bs-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem;
    border-radius: var(--bs-radius-lg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.bs-section-alt .bs-feature { background: var(--bs-dark); }
.bs-feature:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.4); }
.bs-feature-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bs-gradient);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    color: var(--bs-white);
}
.bs-feature-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bs-feature h3 { font-size: 1.3rem; color: var(--bs-white); margin-bottom: 0.6rem; font-weight: 700; }
.bs-feature p { color: var(--bs-text-muted); font-size: 0.97rem; }

/* Difficulty cards */
.bs-difficulties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bs-diff-card {
    background: var(--bs-dark-2);
    border-left: 4px solid;
    padding: 1.5rem;
    border-radius: var(--bs-radius);
}
.bs-diff-card.easy { border-color: var(--bs-green); }
.bs-diff-card.medium { border-color: var(--bs-yellow); }
.bs-diff-card.hard { border-color: var(--bs-red); }
.bs-diff-card.evil { border-color: var(--bs-purple); }
.bs-diff-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--bs-white); margin-bottom: 0.4rem; }
.bs-diff-card p { color: var(--bs-text-muted); font-size: 0.9rem; }
.bs-diff-card .count { display: block; color: var(--bs-text-dim); font-size: 0.8rem; margin-top: 0.5rem; font-weight: 600; }

/* How to play */
.bs-howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.bs-howto-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bs-dark-2);
    border-radius: var(--bs-radius-lg);
}
.bs-section-alt .bs-howto-step { background: var(--bs-dark); }
.bs-step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: var(--bs-gradient);
    border-radius: 50%;
    color: var(--bs-white);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.bs-howto-step p { color: var(--bs-text-muted); font-size: 1rem; }

/* Screenshots */
.bs-screenshots {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-top: 2rem;
}
.bs-screenshots .bs-shot {
    background: var(--bs-dark-2);
    border-radius: var(--bs-radius);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.bs-screenshots img { border-radius: 10px; }

/* Platforms */
.bs-platforms-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 800px; margin: 0 auto 2.5rem; }
.bs-platform-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: var(--bs-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.bs-stores-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* CTA section */
.bs-cta {
    background: var(--bs-gradient);
    padding: 4rem 0;
    text-align: center;
}
.bs-cta h2 { color: var(--bs-white); font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; font-weight: 800; }
.bs-cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 2rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.bs-cta .bs-store-buttons { justify-content: center; }

/* Footer */
.bs-footer { background: #0a0f1c; padding: 3rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.bs-footer .container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.bs-footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--bs-white); margin-bottom: 0.6rem; }
.bs-footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.bs-footer p { color: var(--bs-text-dim); font-size: 0.9rem; max-width: 420px; }
.bs-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--bs-text-muted); }
.bs-footer-links a:hover { color: var(--bs-white); }
.bs-footer-bottom { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--bs-text-dim); font-size: 0.85rem; }

/* Language picker */
.bs-lang-section { padding: 2.5rem 0; background: var(--bs-dark-2); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.bs-lang-section h3 { color: var(--bs-text); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; text-align: center; }
.bs-lang-grid { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; justify-content: center; max-width: 1000px; margin: 0 auto; font-size: 0.85rem; }
.bs-lang-grid a { color: var(--bs-text-muted); padding: 0.25rem 0.5rem; border-radius: 6px; }
.bs-lang-grid a:hover { color: var(--bs-white); background: rgba(255, 255, 255, 0.05); }
.bs-lang-grid a.current { color: var(--bs-white); background: rgba(99, 102, 241, 0.2); font-weight: 600; }

/* RTL */
[dir="rtl"] .bs-hero .container { direction: rtl; }
[dir="rtl"] .bs-feature-icon { margin-left: auto; margin-right: 0; }
[dir="rtl"] .bs-store-btn { direction: rtl; }
[dir="rtl"] .bs-store-btn .small,
[dir="rtl"] .bs-store-btn .big { text-align: right; }

/* Responsive */
@media (max-width: 900px) {
    .bs-hero { padding: 3rem 0; }
    .bs-hero .container { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .bs-hero p.lead { margin-left: auto; margin-right: auto; }
    .bs-store-buttons { justify-content: center; }
    .bs-features { grid-template-columns: 1fr; }
    .bs-difficulties { grid-template-columns: repeat(2, 1fr); }
    .bs-howto { grid-template-columns: 1fr; }
    .bs-screenshots { grid-template-columns: repeat(2, 1fr); }
    .bs-section { padding: 3.5rem 0; }
    .bs-section-header { margin-bottom: 2rem; }
    .bs-floating-icon { width: 72px; height: 72px; top: -16px; right: 0; }
}
@media (max-width: 480px) {
    .bs-difficulties { grid-template-columns: 1fr; }
    .bs-screenshots { grid-template-columns: 1fr; }
    .bs-phone-frame { width: 240px; }
}
