/* ============================================================
   APPS Services — "Playful Pro" theme
   ============================================================ */

:root {
    --bg: #FFF9F2;
    --surface: #FFFFFF;
    --ink: #2B2118;
    --muted: #6B5D4F;
    --soft-muted: #C9BBAA;
    --accent: #E85D2A;
    --accent-dark: #C44A1E;
    --accent-soft: #FDE7D8;
    --violet: #7C5CE0;
    --violet-soft: #EBE4FA;
    --gold: #F2B32C;
    --gold-dark: #C08A10;
    --gold-soft: #FBEED2;
    --radius: 24px;
    --radius-sm: 16px;
    --font-display: 'Baloo 2', Verdana, sans-serif;
    --font-body: 'Nunito Sans', Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
}

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

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 16px;
    padding: 15px 32px;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 8px 24px rgba(232, 93, 42, 0.35);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 13px 30px;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--bg);
}

/* ---------- Navbar ---------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 249, 242, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(43, 33, 24, 0.06);
}

.nav-container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.logo:hover {
    color: var(--ink);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
}

.logo-accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-menu a {
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu .nav-cta {
    background: var(--ink);
    color: var(--bg);
    padding: 12px 24px;
    border-radius: 999px;
}

.nav-menu .nav-cta:hover {
    background: var(--accent);
    color: var(--bg);
}

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

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    overflow: hidden;
}

.hero-inner {
    max-width: 1296px;
    margin: 0 auto;
    padding: 72px 24px 96px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
}

.hero-badge {
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 19px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    width: 520px;
    height: 440px;
    position: relative;
    flex-shrink: 0;
}

.hero-card {
    position: absolute;
    width: 220px;
    height: 320px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    animation: float 6s ease-in-out infinite;
}

.hero-card-violet {
    top: 30px;
    left: 40px;
    background: var(--violet);
    color: var(--bg);
    transform: rotate(-8deg);
    box-shadow: 0 20px 40px rgba(124, 92, 224, 0.3);
}

.hero-card-gold {
    top: 80px;
    left: 260px;
    background: var(--gold);
    color: var(--ink);
    transform: rotate(7deg);
    box-shadow: 0 20px 40px rgba(242, 179, 44, 0.35);
    animation-delay: 1.2s;
}

@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

.section {
    padding: 88px 0;
}

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

.section-label {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.15;
}

.section-subtitle {
    margin-top: 12px;
    font-size: 17px;
    color: var(--muted);
}

/* ---------- About ---------- */

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-lead {
    font-size: 21px;
    line-height: 1.6;
    max-width: 760px;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.about-point h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
}

.about-point p {
    font-size: 15px;
    color: var(--muted);
}

/* ---------- Services ---------- */

.services {
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(43, 33, 24, 0.08);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-orange { background: var(--accent-soft); color: var(--accent); }
.service-icon-violet { background: var(--violet-soft); color: var(--violet); }
.service-icon-gold   { background: var(--gold-soft);   color: var(--gold-dark); }

.service-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
}

.service-card p {
    font-size: 15px;
    color: var(--muted);
}

/* ---------- Games gallery ---------- */

.games-empty {
    background: var(--surface);
    border: 2px dashed var(--soft-muted);
    border-radius: var(--radius);
    padding: 64px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.games-empty-icon {
    width: 88px;
    height: 88px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.games-empty h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
}

.games-empty p {
    color: var(--muted);
    max-width: 440px;
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.game-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(43, 33, 24, 0.06);
}

.game-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.game-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
}

.game-genre {
    background: var(--violet-soft);
    color: var(--violet);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.game-description {
    font-size: 16px;
    color: var(--muted);
    max-width: 720px;
}

.game-screenshots {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.game-screenshots img {
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    object-fit: cover;
}

.game-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    border: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 800;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 999px;
}

.store-badge:hover {
    background: var(--ink);
    color: var(--bg);
}

.game-platforms {
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

/* ---------- Footer ---------- */

.footer {
    background: var(--ink);
    color: var(--bg);
    padding: 72px 0 40px;
}

.footer-cta {
    text-align: center;
    padding-bottom: 64px;
    margin-bottom: 64px;
    border-bottom: 1px solid rgba(255, 249, 242, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-cta-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 3.5vw, 40px);
}

.footer-cta-text {
    color: var(--soft-muted);
    max-width: 480px;
}

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

.footer .logo {
    color: var(--bg);
}

.footer .logo:hover {
    color: var(--bg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 300px;
}

.footer-tagline {
    color: var(--soft-muted);
    font-size: 14px;
}

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

.footer-column h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: var(--soft-muted);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--bg);
}

.footer-plain {
    color: var(--soft-muted);
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 249, 242, 0.12);
    font-size: 13px;
    color: var(--soft-muted);
}

/* ---------- Legal pages ---------- */

.legal-page {
    padding: 72px 0 96px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(34px, 4vw, 48px);
    margin-bottom: 8px;
}

.last-updated {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    margin: 40px 0 16px;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    margin: 28px 0 12px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--muted);
}

.legal-content ul {
    margin: 0 0 16px 24px;
    color: var(--muted);
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--ink);
}

/* ---------- Error pages ---------- */

.error-page {
    padding: 96px 0 120px;
}

.error-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.error-code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(96px, 14vw, 160px);
    line-height: 1;
    color: var(--accent);
}

.error-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
}

.error-text {
    color: var(--muted);
    font-size: 17px;
}

.error-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    max-width: 720px;
    margin: 0 auto;
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 16px 48px rgba(43, 33, 24, 0.35);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.55;
    flex: 1 1 0;
}

.cookie-text a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--bg);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    font-size: 14px;
    padding: 11px 24px;
    cursor: pointer;
    border: none;
}

.cookie-btn-ghost {
    background: transparent;
    border: 2px solid var(--soft-muted);
    color: var(--bg);
    padding: 9px 22px;
}

.cookie-btn-ghost:hover {
    border-color: var(--bg);
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 20px;
    }

    .cookie-actions {
        justify-content: center;
    }
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hero-visual {
        width: 420px;
        height: 400px;
    }

    .hero-card {
        width: 180px;
        height: 270px;
    }

    .hero-card-gold {
        left: 210px;
    }
}

@media (max-width: 860px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 24px 24px;
        border-bottom: 1px solid rgba(43, 33, 24, 0.08);
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        padding: 12px 0;
    }

    .nav-menu .nav-cta {
        display: inline-block;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        flex-direction: column;
        padding: 48px 24px 64px;
    }

    .hero-visual {
        width: 100%;
        max-width: 460px;
        height: 420px;
        margin: 0 auto;
    }

    .about-points,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .footer-top {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .hero-visual {
        height: 360px;
    }

    .hero-card {
        width: 150px;
        height: 230px;
    }

    .hero-card-violet {
        left: 12px;
    }

    .hero-card-gold {
        left: 175px;
    }

    .game-card {
        padding: 24px;
    }
}
