/* ========================================================
   Shabdly Marketing Website - style.css
   Mobile-first, dark theme, saffron accent
   ======================================================== */

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background: #1A1A1A;
    color: #F7F5F0;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ----- UTILITIES ----- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section { padding: 60px 0; width: 100%; }
.section-dark { background: #1A1A1A; }
.section:not(.section-dark):not(.hero) { background: #222222; }
.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 32px;
    color: #F7F5F0;
}

/* ----- BUTTON ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.btn-saffron { background: #E8580C; color: #fff; }

/* ----- TILE SYSTEM ----- */
.tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    text-transform: uppercase;
}
.tile-green { background: #538D4E; }
.tile-amber { background: #B59F3B; }
.tile-gray  { background: #3A3A3C; }
.tile-empty { background: transparent; border: 2px solid #3A3A3C; }

/* ===== 1. HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1A1A1A;
}
.hero-inner { text-align: center; position: relative; z-index: 2; }
.hero-wordmark {
    font-size: 3rem;
    color: #E8580C;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.hero-tagline {
    font-size: 1.1rem;
    color: #F7F5F0;
    margin-bottom: 4px;
}
.hero-subtitle {
    font-size: 0.95rem;
    color: #5F5E5A;
    margin-bottom: 28px;
}
.hero-tiles {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}
.anim-tile { transform: scaleY(0); }
.hero-cta { margin-top: 8px; }

/* Floating background tiles */
.floating-tiles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.float-tile {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    opacity: 0.4;
}
.ft-1 { top: 12%; left: 8%; }
.ft-2 { top: 25%; right: 12%; }
.ft-3 { bottom: 30%; left: 15%; }
.ft-4 { bottom: 15%; right: 8%; }
.ft-5 { top: 50%; left: 50%; }

/* ===== 2. HOW TO PLAY ===== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.step-card {
    background: #2C2C2A;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
}
.step-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #E8580C;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.step-icon-tiles {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 12px;
}
.mini-tile {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
}
.mini-green { background: #538D4E; }
.mini-amber { background: #B59F3B; }
.mini-gray  { background: #3A3A3C; }
.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #F7F5F0;
}
.step-card p { color: #5F5E5A; font-size: 0.9rem; }

/* ===== 3. GAME PREVIEW ===== */
.game-demo-card {
    background: #2C2C2A;
    border-radius: 16px;
    padding: 24px 16px;
    max-width: 400px;
    margin: 0 auto;
}
.demo-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-width: 280px;
    margin: 0 auto 16px;
}
.demo-tile {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #3A3A3C;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    transition: transform 0.3s;
    background: transparent;
}
.demo-tile.filled { border-color: #565656; }
.demo-tile.green  { background: #538D4E; border-color: #538D4E; }
.demo-tile.amber  { background: #B59F3B; border-color: #B59F3B; }
.demo-tile.gray   { background: #3A3A3C; border-color: #3A3A3C; }
.demo-tile.flip {
    animation: tileFlip 0.5s ease-in-out;
}
@keyframes tileFlip {
    0%   { transform: scaleY(1); }
    50%  { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}
.demo-message {
    text-align: center;
    min-height: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #E8580C;
    margin-bottom: 12px;
}
.demo-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 340px;
    margin: 0 auto;
}
.demo-kb-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.demo-key {
    min-width: 28px;
    height: 40px;
    border-radius: 4px;
    background: #565656;
    color: #F7F5F0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: uppercase;
    padding: 0 6px;
}
.demo-key:hover { background: #6a6a6a; }
.demo-key.wide { min-width: 52px; font-size: 0.7rem; }
.demo-key.key-green  { background: #538D4E; }
.demo-key.key-amber  { background: #B59F3B; }
.demo-key.key-gray   { background: #3A3A3C; color: #666; }

/* ===== 4. LEADERBOARD PREVIEW ===== */
.leaderboard-header { text-align: center; margin-bottom: 28px; }
.counter-line { font-size: 1.1rem; color: #5F5E5A; }
.counter {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #E8580C;
    display: inline-block;
    min-width: 60px;
}
.podium-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}
.podium-card {
    background: #2C2C2A;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    flex: 1;
    max-width: 160px;
}
.podium-1 {
    transform: translateY(-12px);
    border: 2px solid #E8580C;
}
.podium-rank {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.podium-1 .podium-rank { color: #E8580C; }
.podium-2 .podium-rank { color: #BDBDBD; }
.podium-3 .podium-rank { color: #CD7F32; }
.podium-name { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.podium-score { display: block; color: #5F5E5A; font-size: 0.85rem; }
.skyline {
    height: 40px;
    background: linear-gradient(to top, #1A1A1A 0%, transparent 100%);
    margin-top: 16px;
}

/* ===== 5. STREAK & REWARDS ===== */
.reward-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.reward-card {
    background: #2C2C2A;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    border-left: 4px solid #E8580C;
}
.reward-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.reward-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.reward-card p { color: #5F5E5A; font-size: 0.9rem; }

/* ===== 6. FESTIVAL MOMENTS ===== */
.carousel { position: relative; overflow: hidden; }
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-card {
    min-width: 100%;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
}
.festival-holi {
    background: linear-gradient(135deg, #E040FB, #AB47BC);
}
.festival-diwali {
    background: linear-gradient(135deg, #FF9800, #F57F17);
}
.festival-eid {
    background: linear-gradient(135deg, #4CAF50, #E8F5E9);
    color: #1A1A1A;
}
.festival-word {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 8px;
    margin-bottom: 8px;
}
.festival-name {
    font-size: 1rem;
    opacity: 0.8;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3A3A3C;
    transition: background 0.3s;
}
.dot.active { background: #E8580C; }

/* ===== 7. BRAND PARTNERS ===== */
.brand-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.brand-logo {
    background: #3A3A3C;
    border-radius: 8px;
    padding: 16px 24px;
    font-weight: 500;
    color: #5F5E5A;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}
.brand-subtitle {
    text-align: center;
    color: #5F5E5A;
    font-size: 0.9rem;
}

/* ===== 8. TESTIMONIALS ===== */
.testimonial-carousel { overflow: hidden; }
.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}
.testimonial-card {
    min-width: 100%;
    background: #2C2C2A;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
}
.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 16px;
    color: #F7F5F0;
    line-height: 1.5;
}
.testimonial-author {
    font-size: 0.9rem;
    color: #5F5E5A;
}
.testimonial-author strong { color: #F7F5F0; }
.testimonial-streak {
    display: inline-block;
    margin-left: 8px;
    background: rgba(232,88,12,0.15);
    color: #E8580C;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== 9. DOWNLOAD CTA ===== */
.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}
.phone-mockup {
    width: 180px;
    height: 320px;
    background: #2C2C2A;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3A3A3C;
}
.mockup-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #E8580C;
}
.download-title { margin-bottom: 20px; }
.download-subtitle {
    color: #5F5E5A;
    font-size: 0.9rem;
    margin-top: 8px;
}
.play-icon { flex-shrink: 0; }
.qr-placeholder {
    width: 100px;
    height: 100px;
    background: #3A3A3C;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5F5E5A;
    font-size: 0.8rem;
    margin-top: 16px;
}

/* ===== 10. FOOTER ===== */
.footer {
    background: #111;
    padding: 40px 0 24px;
}
.footer-inner { text-align: center; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.footer-links a {
    color: #5F5E5A;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #E8580C; }
.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2C2C2A;
    display: inline-block;
}
.footer-copyright {
    color: #5F5E5A;
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.footer-tagline {
    color: #5F5E5A;
    font-size: 0.8rem;
}

/* ===== GSAP animation helper classes ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE — TABLET (768px+) ===== */
@media (min-width: 768px) {
    .section { padding: 80px 0; }
    .section-title { font-size: 2rem; margin-bottom: 40px; }
    .hero-wordmark { font-size: 4.5rem; }
    .hero-tagline { font-size: 1.3rem; }

    .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .reward-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

    .tile { width: 56px; height: 56px; font-size: 1.4rem; }

    .download-section { flex-direction: row; text-align: left; }
    .download-title { text-align: left; }
}

/* ===== RESPONSIVE — DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    .section { padding: 100px 0; }
    .section-title { font-size: 2.25rem; }
    .hero-wordmark { font-size: 5.5rem; }
    .hero-tagline { font-size: 1.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-tiles { gap: 12px; }

    .tile { width: 64px; height: 64px; font-size: 1.6rem; }

    .game-demo-card { max-width: 450px; padding: 32px 24px; }
    .demo-board { max-width: 320px; gap: 8px; }
    .demo-keyboard { max-width: 380px; }

    .podium-card { max-width: 200px; }

    .phone-mockup { width: 220px; height: 400px; }
}
