:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #1a1d29;
    --text-muted: #5b6472;
    --accent: #4285F4;
    --accent-dark: #2e5fc7;
    --border: #e6e9ef;
    --hero-from: #14192b;
    --hero-to: #232a45;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header / Hero */
.hero {
    position: relative;
    background-color: var(--hero-from);
    background-image:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'220'%20height%3D'220'%3E%3Cg%20fill%3D'none'%20stroke%3D'%235ea1ff'%20stroke-width%3D'0.75'%20stroke-linecap%3D'round'%20opacity%3D'0.16'%3E%3Cpath%20d%3D'M0%2042%20H58%20L76%2060%20V150'%2F%3E%3Cpath%20d%3D'M46%200%20V54%20H130%20V196'%2F%3E%3Cpath%20d%3D'M220%2034%20H166%20V96%20H120'%2F%3E%3Cpath%20d%3D'M196%20220%20V168%20H108%20L92%20152'%2F%3E%3Cpath%20d%3D'M0%20176%20H30'%2F%3E%3Cpath%20d%3D'M220%20150%20H188'%2F%3E%3C%2Fg%3E%3Cg%20opacity%3D'0.22'%3E%3Ccircle%20cx%3D'76'%20cy%3D'60'%20r%3D'1.6'%20fill%3D'%235ea1ff'%2F%3E%3Ccircle%20cx%3D'130'%20cy%3D'54'%20r%3D'2.6'%20fill%3D'none'%20stroke%3D'%235ea1ff'%20stroke-width%3D'0.75'%2F%3E%3Ccircle%20cx%3D'166'%20cy%3D'96'%20r%3D'1.6'%20fill%3D'%235ea1ff'%2F%3E%3Ccircle%20cx%3D'108'%20cy%3D'168'%20r%3D'2.6'%20fill%3D'none'%20stroke%3D'%235ea1ff'%20stroke-width%3D'0.75'%2F%3E%3Ccircle%20cx%3D'30'%20cy%3D'176'%20r%3D'1.6'%20fill%3D'%235ea1ff'%2F%3E%3Ccircle%20cx%3D'188'%20cy%3D'150'%20r%3D'1.6'%20fill%3D'%235ea1ff'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),
        linear-gradient(160deg, var(--hero-from), var(--hero-to));
    background-repeat: repeat, no-repeat;
    background-size: 220px 220px, cover;
    color: #fff;
    padding: 56px 24px 72px;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(20, 25, 43, 0.4) 0%, rgba(20, 25, 43, 0) 68%);
    pointer-events: none;
}

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

.hero img {
    height: 112px;
    width: 112px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.35), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    margin: 20px 0 8px;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 0 auto;
    max-width: 560px;
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

/* Shared section layout */
.section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 4px;
}

.section-subtitle {
    color: var(--text-muted);
    margin: 0 0 28px;
    font-size: 0.98em;
}

/* Featured apps */
.featured {
    margin-top: -40px;
    padding-bottom: 8px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
}

.featured-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(20, 25, 43, 0.12);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.featured-card.primary {
    border: 2px solid var(--accent);
}

.badge {
    align-self: flex-start;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(66, 133, 244, 0.12);
    color: var(--accent-dark);
}

.featured-card .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.3em;
}

.app-icon-img {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(20, 25, 43, 0.25);
}

.app-logo-img {
    height: 90px;
    align-self: flex-start;
    border-radius: 12px;
}

.featured-card h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}

.featured-card .tagline {
    margin: -12px 0 0;
    color: var(--text-muted);
    font-size: 1em;
    line-height: 1.55;
}

.play-badge {
    display: inline-flex;
    align-self: flex-start;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.play-badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.play-badge img {
    height: 54px;
    width: auto;
    display: block;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: auto;
}

.text-link {
    font-weight: 600;
    font-size: 0.92em;
    color: var(--accent-dark);
}

.text-link:hover {
    text-decoration: underline;
}

/* Secondary apps grid */
.projects {
    padding: 56px 0 72px;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 25, 43, 0.08);
    border-color: rgba(66, 133, 244, 0.35);
}

.project-card .app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95em;
}

.project-card h4 {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
}

.project-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88em;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: var(--hero-from);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 24px;
    font-size: 0.9em;
}

@media (max-width: 760px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Language toggle */
.lang-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
    z-index: 2;
}

.lang-toggle button {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78em;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button.active {
    background: #fff;
    color: var(--hero-from);
}
