/* Group C App Landing Pages - Shared Modern Design System */
:root {
    --bg: #0a0e1a;
    --bg-card: #141926;
    --bg-card-alt: #1a2035;
    --stroke: rgba(255, 255, 255, 0.08);
    --text: #eef2ff;
    --muted: #8892b0;
    --radius: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(10, 14, 26, 0.85);
    border-bottom: 1px solid var(--stroke);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--muted);
    transition: color .2s;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero */
.hero {
    padding: clamp(4rem, 10vw, 8rem) 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hero p {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hero .cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .cta-row a {
    display: inline-flex;
}

.hero .cta-row img {
    height: 48px;
}

/* Section */
section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-label {
    display: inline-block;
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 2.5rem;
    text-align: center;
}

/* Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.card .num {
    font-size: 2rem;
    font-weight: 800;
    opacity: .15;
}

.card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

/* Split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.split.reverse {
    direction: rtl;
}

.split.reverse>* {
    direction: ltr;
}

.split h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    margin: 0 0 1rem;
}

.split p {
    color: var(--muted);
}

/* CTA band */
.cta-band {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.cta-band h2 {
    margin: 0 0 .75rem;
}

.cta-band p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--stroke);
    background: #060a14;
    padding: 2.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-grid h4 {
    margin: 0 0 .75rem;
    font-size: .95rem;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li,
.footer-grid p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
}

.footer-grid a {
    color: var(--muted);
    transition: color .2s;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--stroke);
    color: var(--muted);
    font-size: .85rem;
}

/* App Portfolio */
.app-portfolio {
    text-align: center;
}

.app-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.app-portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    text-decoration: none;
    color: inherit;
}

.app-portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, .25);
    box-shadow: 0 8px 32px rgba(139, 92, 246, .12);
}

.app-portfolio-card img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    transition: transform .3s ease;
}

.app-portfolio-card:hover img {
    transform: scale(1.08);
}

.app-portfolio-card h3 {
    font-size: 1.05rem;
    margin: 0 0 .4rem;
    line-height: 1.3;
}

.app-portfolio-card p {
    color: var(--muted);
    font-size: .85rem;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.app-portfolio-card .visit-link {
    color: #a78bfa;
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: gap .2s ease;
}

.app-portfolio-card:hover .visit-link {
    gap: .6rem;
    color: #c4b5fd;
}

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

    .nav-links {
        display: none;
    }

    .app-portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 2rem auto 0;
    }
}