/* Bombsquad Landing Page Styles */
/* Color palette extracted from mobile app screenshots */

:root {
    --bg-primary: #151926;
    --bg-secondary: #1a2033;
    --bg-card: #1f2940;
    --bg-elevated: #252d44;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);

    --accent-orange: #F5A623;
    --accent-orange-hover: #ffb938;
    --accent-green: #4CD964;
    --accent-blue: #4A90D9;
    --accent-pink: #E91E8B;
    --accent-purple: #9B59B6;
    --accent-red: #E74C3C;

    /* Puzzle grid colors - pastel versions matching the app */
    --grid-blue: #7EC8E3;
    --grid-green: #7ED687;
    --grid-yellow: #F0E68C;
    --grid-purple: #C9A0DC;
    --grid-orange: #FFB366;
    --grid-pink: #FFB6C1;

    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-xs: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(76, 217, 100, 0.05) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 600px;
}

.logo {
    margin-bottom: 24px;
}

.logo-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-orange);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(245, 166, 35, 0.3);
}

.bomb-emoji {
    font-size: 56px;
    line-height: 1;
}

.title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.store-button:hover {
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.store-icon {
    width: 28px;
    height: 28px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.store-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Puzzle Preview */
.puzzle-preview {
    margin-top: 60px;
    z-index: 1;
}

.phone-frame {
    background: var(--bg-secondary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
                inset 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.phone-screen {
    background: var(--bg-primary);
    border-radius: 32px;
    padding: 24px 20px;
    width: 280px;
}

.puzzle-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.puzzle-size {
    font-size: 1.25rem;
    font-weight: 700;
}

.puzzle-mode {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.grid-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.grid-cell.blue { background: var(--grid-blue); }
.grid-cell.green { background: var(--grid-green); }
.grid-cell.yellow { background: var(--grid-yellow); }
.grid-cell.purple { background: var(--grid-purple); }
.grid-cell.orange { background: var(--grid-orange); }
.grid-cell.pink { background: var(--grid-pink); }

.grid-cell.has-bomb {
    background: #2a3142;
    border-radius: 50%;
}

.cell-bomb {
    font-size: 1.1rem;
}

.cell-x {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 600;
    font-size: 0.9rem;
}

.puzzle-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.control-btn {
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--border-radius-xs);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.control-btn.check {
    color: var(--accent-green);
}

.control-btn.hint {
    color: var(--accent-orange);
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px 28px;
    text-align: center;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.daily-icon {
    background: rgba(74, 144, 217, 0.15);
    color: var(--accent-blue);
}

.practice-icon {
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent-orange);
}

.compete-icon {
    background: rgba(155, 89, 182, 0.15);
    color: var(--accent-purple);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Rules Section */
.rules {
    padding: 100px 24px;
}

.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

.rules-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.rules-text {
    flex: 1;
    min-width: 280px;
}

.rule {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.rule:last-child {
    margin-bottom: 0;
}

.rule-number {
    width: 32px;
    height: 32px;
    background: var(--accent-orange);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rule p {
    font-size: 1.1rem;
    line-height: 1.5;
    padding-top: 4px;
}

.rules-visual {
    flex-shrink: 0;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: var(--border-radius-sm);
    width: 180px;
}

.mini-cell {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mini-cell.blue { background: var(--grid-blue); }
.mini-cell.green { background: var(--grid-green); }
.mini-cell.yellow { background: var(--grid-yellow); }

.mini-cell.bomb {
    background: #2a3142;
    border-radius: 50%;
}

.mini-cell.x {
    color: rgba(0, 0, 0, 0.35);
    font-weight: 700;
    font-size: 1.25rem;
}

/* CTA Section */
.cta {
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 48px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-size: 1.5rem;
}

.footer-name {
    font-weight: 600;
    font-size: 1.1rem;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

    .app-store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .puzzle-preview {
        margin-top: 40px;
    }

    .phone-screen {
        width: 260px;
        padding: 20px 16px;
    }

    .features {
        padding: 60px 20px;
    }

    .rules {
        padding: 60px 20px;
    }

    .rules-content {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .cta {
        padding: 60px 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* Animation for puzzle solving demo */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.grid-cell .cell-bomb,
.grid-cell .cell-x {
    animation: popIn 0.3s ease-out;
}
