/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0C1220;
    --navy-mid: #0f1728;
    --navy-surface: #162035;
    --navy-card: #131d2e;
    --coral: #E8737F;
    --coral-light: #f0a0a9;
    --purple: #7C3AED;
    --purple-light: #A78BFA;
    --blue: #0A84FF;
    --green: #30D158;
    --bg: #0C1220;
    --bg-alt: #0f1728;
    --bg-card: #131d2e;
    --bg-card-hover: #1a2640;
    --text: #EEF2FF;
    --text-secondary: rgba(238,242,255,0.52);
    --border: rgba(255,255,255,0.08);
    --border-dark: rgba(255,255,255,0.08);
    --radius: 24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ===== Header / Nav ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 18, 32, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-img--footer {
    height: 28px;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
nav a:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow--top {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232, 115, 127, 0.18) 0%, rgba(124, 58, 237, 0.1) 40%, transparent 70%);
}

.hero-glow--bottom {
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.08) 0%, transparent 70%);
}

.hero-center {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 0 100px;
}

.hero-logo-wrap {
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
}

.hero-logo {
    height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 40px rgba(232, 115, 127, 0.35));
}

.hero-tagline {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-tagline em {
    font-style: normal;
    color: var(--coral);
}

.hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 100px;
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(232, 115, 127, 0.4);
    letter-spacing: -0.01em;
}
.btn-primary:hover {
    background: var(--coral-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232, 115, 127, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    letter-spacing: -0.01em;
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: translateY(-2px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-hint span {
    display: block;
    width: 2px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    margin: 0 auto;
    border-radius: 2px;
    animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Apps / Games Sections ===== */
.apps-section {
    padding: 96px 0;
    background: var(--navy);
}

.apps-section--games {
    background: var(--bg-alt);
}

/* ===== Category Header ===== */
.category-header {
    text-align: center;
    margin-bottom: 56px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.category-pill--apps {
    background: rgba(10, 132, 255, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(10, 132, 255, 0.25);
}

.category-pill--games {
    background: rgba(167, 139, 250, 0.15);
    color: var(--purple-light);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.category-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 10px;
}

.category-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
}

/* ===== Apps Grid ===== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.apps-grid--single {
    grid-template-columns: 1fr;
    max-width: 780px;
    margin: 0 auto;
}

/* ===== App Card ===== */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.14);
}

.app-card--featured {
    background: linear-gradient(140deg, #131d2e 60%, rgba(10, 132, 255, 0.07));
}

.app-card--game {
    background: var(--bg-card);
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ecopompe-icon {
    background: #ffffff;
    padding: 8px;
}

.ecopompe-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.orbis-icon {
    background: #ffffff;
    padding: 0;
    overflow: hidden;
}

.orbis-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.mots-fleches-icon {
    background: #f5efe0;
    border: 1px solid rgba(196,169,125,0.4);
}

.mots-fleches-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.tengo-icon {
    background: linear-gradient(145deg, #F2EEE4, #E8E2D4);
    border: 1px solid rgba(0,0,0,0.05);
}

.meliz-icon {
    background: #FFF8F0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 181, 197, 0.3);
}

.meliz-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.graviwords-icon {
    background: #07070f;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(59, 123, 255, 0.3);
}

.graviwords-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.randompix-icon {
    background: #ffd7e1;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(250, 103, 129, 0.3);
}

.randompix-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.tengo-logo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1D1D1F;
    line-height: 1;
}

.tengo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F5A8B8;
    display: inline-block;
}

.app-meta {
    flex: 1;
    padding-top: 2px;
}

.app-meta h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.app-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 100px;
}

.status-badge.available {
    background: rgba(48, 209, 88, 0.12);
    color: #4ade80;
    border: 1px solid rgba(48, 209, 88, 0.25);
}

.status-badge.soon {
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.app-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== Chips ===== */
.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(10, 132, 255, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(10, 132, 255, 0.2);
}

.chip--muted {
    background: rgba(167, 139, 250, 0.12);
    color: var(--purple-light);
    border-color: rgba(167, 139, 250, 0.2);
}

.chip--tengo {
    background: rgba(200, 184, 230, 0.12);
    color: #c4b5fd;
    border-color: rgba(200, 184, 230, 0.2);
}

.chip--orbis {
    background: rgba(132, 194, 175, 0.12);
    color: #6ee7b7;
    border-color: rgba(132, 194, 175, 0.2);
}

.chip--meliz {
    background: rgba(255, 181, 197, 0.12);
    color: #f9a8b8;
    border-color: rgba(255, 181, 197, 0.25);
}

.chip--graviwords {
    background: rgba(59, 123, 255, 0.14);
    color: #7aa6ff;
    border-color: rgba(59, 123, 255, 0.28);
}

.chip--randompix {
    background: rgba(250, 103, 129, 0.12);
    color: #fb7185;
    border-color: rgba(250, 103, 129, 0.25);
}

/* ===== Mini Screenshots ===== */
.mini-screenshots {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.mini-screenshots::-webkit-scrollbar { display: none; }

.mini-screenshots img {
    height: 140px;
    width: auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.mini-screenshots img:hover { transform: scale(1.04); }

/* ===== Card Footer ===== */
.app-card-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.app-store-btn:hover { transform: scale(1.05); }

.link-secondary {
    font-size: 14px;
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
    transition: opacity 0.2s;
}
.link-secondary:hover { opacity: 0.7; }

/* ===== About ===== */
.about {
    padding: 80px 0 100px;
    background: var(--bg-alt);
}

.about-card {
    background: linear-gradient(135deg, #162035 0%, #1a2640 100%);
    border-radius: 28px;
    padding: 56px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    color: #F5F5F7;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.about-card::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(232, 115, 127, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.about-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 15px;
    color: rgba(245,245,247,0.7);
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-text p strong {
    color: #F5F5F7;
    font-weight: 600;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(245,245,247,0.8);
    background: rgba(255,255,255,0.05);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
}

.value-icon { font-size: 16px; }

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
    min-width: 130px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px 24px;
}

.stat-number {
    display: block;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, var(--coral-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(245,245,247,0.5);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ===== Footer ===== */
footer {
    padding: 32px 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

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

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    .app-card { padding: 28px; }
}

@media (max-width: 768px) {
    .hero-center { padding: 72px 0 88px; }
    .hero-logo { height: 60px; }
    .hero-tagline { font-size: 26px; }
    .hero-sub { font-size: 15px; }

    .apps-section { padding: 64px 0; }
    .category-title { font-size: 28px; }
    .category-header { margin-bottom: 40px; }

    .app-card { padding: 24px; }
    .app-icon { width: 56px; height: 56px; border-radius: 14px; }
    .app-meta h3 { font-size: 19px; }

    .about { padding: 0 0 64px; }
    .about-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 36px;
    }
    .about-stats {
        flex-direction: row;
        width: 100%;
        min-width: unset;
    }
    .stat { flex: 1; padding: 16px 12px; }
    .stat-number { font-size: 34px; }
    .about-values { grid-template-columns: 1fr; }

    footer .footer-inner {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .footer-brand { justify-content: center; }

    nav { gap: 20px; }

    .hero-cta { flex-direction: column; gap: 12px; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
