/* === LogicLab landing page — palette aligned with the app theme === */
:root {
    --teal: #00897B;
    --teal-dark: #00695C;
    --teal-light: #4DB6AC;
    --teal-bg: #E0F2F1;
    --surface: #FAFAF9;
    --surface-elevated: #FFFFFF;
    --ink: #1A1A1A;
    --ink-soft: #5C5C5C;
    --ink-faint: #8A8A8A;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--surface);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Hero === */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-bg) 0%, #FAFAF9 100%);
    padding: 64px 0 96px;
    text-align: center;
}

.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 380px;
    height: 380px;
    background: #4DB6AC;
    top: -80px;
    left: -120px;
}

.blob-2 {
    width: 280px;
    height: 280px;
    background: #FFD54F;
    top: 40px;
    right: -80px;
    opacity: 0.35;
}

.blob-3 {
    width: 320px;
    height: 320px;
    background: #CE93D8;
    bottom: -120px;
    left: 30%;
    opacity: 0.25;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 137, 123, 0.25));
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 16px;
}

.tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.tagline-sub {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--teal);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--teal-dark);
}

.btn-secondary {
    background: var(--surface-elevated);
    color: var(--teal-dark);
    border: 2px solid var(--teal-light);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--teal-bg);
}

/* === Games section === */
.games-section {
    padding: 80px 0;
    background: var(--surface);
}

.games-section h2,
.download-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.section-intro {
    text-align: center;
    color: var(--ink-soft);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.game-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.game-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: var(--shadow-md);
}

.game-card img {
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.game-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.game-card p {
    color: rgba(26, 26, 26, 0.75);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* On wide screens, span the last odd card across 2 columns for symmetry */
@media (min-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .game-card-wide {
        grid-column: span 1;
    }
}

/* === Download / QR section === */
.download-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--teal-bg) 0%, var(--surface) 100%);
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 720px) {
    .download-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.download-text h2 {
    text-align: left;
    margin-bottom: 16px;
}

.download-text p {
    color: var(--ink-soft);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.btn-playstore {
    display: inline-flex;
    background: #000;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s ease;
    cursor: pointer;
}

.btn-playstore:hover {
    transform: translateY(-2px);
}

.badge-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-playstore svg {
    color: white;
}

.badge-line-1 {
    display: block;
    font-size: 0.7rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.badge-line-2 {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: -2px;
}

/* === QR code === */
.qr-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--teal-light);
    max-width: 280px;
    margin: 0 auto;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: white;
    border-radius: var(--radius-sm);
    padding: 12px;
    position: relative;
}

.qr-pattern {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 50%, var(--ink) 50%),
        linear-gradient(0deg, transparent 50%, var(--ink) 50%);
    background-size: 12.5% 12.5%;
    background-position: 0 0, 0 0;
    opacity: 0.35;
    position: relative;
    border-radius: 4px;
}

.qr-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 5px solid var(--ink);
    background: white;
    border-radius: 4px;
}

.qr-corner::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: var(--ink);
    border-radius: 2px;
}

.qr-corner-tl { top: 0; left: 0; }
.qr-corner-tr { top: 0; right: 0; }
.qr-corner-bl { bottom: 0; left: 0; }

.qr-caption {
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 4px;
}

.qr-caption-sub {
    color: var(--ink-faint);
    font-size: 0.85rem;
}

/* === Features section === */
.features-section {
    padding: 80px 0;
    background: var(--surface);
}

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

.feature {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.feature p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* === Footer === */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    padding: 48px 0 32px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
    }
}

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

.footer-logo {
    width: 48px;
    height: 48px;
}

.footer-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

@media (min-width: 720px) {
    .footer-nav {
        text-align: center;
    }
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: var(--teal-light);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
}

@media (min-width: 720px) {
    .footer-copyright {
        text-align: right;
    }
}
