/* Melodica Solutions - hub and sub-brand placeholder styles */

:root {
    --pitch-black: #0A0E12;
    --text-secondary: rgba(20, 27, 36, 0.7);
    --text-placeholder: rgba(20, 27, 36, 0.4);
    --surface-1: #FFFFFF;
    --surface-2: #FAFBFB;
    --surface-4: #EAEBED;
    --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* Brand color, and ink for text in that color */
    --brand: var(--pitch-black);
    --brand-ink: var(--pitch-black);
}

.brand--news        { --brand: #635BFF; --brand-ink: #635BFF; }
.brand--experiences { --brand: #F65996; --brand-ink: #F65996; }
.brand--finance     { --brand: #0A2540; --brand-ink: #0A2540; }

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

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.48;
    color: var(--pitch-black);
    background: var(--surface-1);
    -webkit-font-smoothing: antialiased;
}

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

/* "M" mark */
.mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.mark--lg {
    width: 72px;
    height: 72px;
    font-size: 36px;
}

/* Top bar (placeholder pages) */
.topbar {
    padding: 24px 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--pitch-black);
}

/* Hub */
.hub {
    flex: 1;
    width: 100%;
    max-width: 1088px;
    margin: 0 auto;
    padding: 96px 24px 80px;
}

.hero {
    text-align: center;
    margin-bottom: 64px;
}

.hero .mark {
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
}

.brands {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    border: 1px solid var(--surface-4);
    border-radius: 16px;
    background: var(--surface-1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-card:hover,
.brand-card:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 16px 40px rgba(10, 14, 18, 0.08);
    transform: translateY(-4px);
}

.brand-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.brand-card .mark {
    margin-bottom: 32px;
}

.brand-name {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--brand-ink);
    margin-bottom: 8px;
}

.brand-name span {
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-secondary);
}

.brand-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.brand-card-cta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--surface-4);
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-ink);
}

.brand-card-cta--soon {
    color: var(--text-placeholder);
}

.brand-card-cta span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.brand-card:hover .brand-card-cta span {
    transform: translateX(4px);
}

/* Coming-soon placeholder */
.placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
}

.placeholder .mark {
    margin-bottom: 32px;
}

.placeholder .brand-name {
    font-size: 48px;
    margin-bottom: 24px;
}

.placeholder .brand-name span {
    font-size: 20px;
}

.status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--surface-4);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    margin-right: 8px;
    vertical-align: 1px;
}

.placeholder p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
}

/* Footer */
.site-footer {
    padding: 32px 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hub {
        padding: 64px 16px 48px;
    }

    .hero {
        margin-bottom: 48px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .brands {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .brand-card {
        padding: 24px;
    }

    .brand-card .mark {
        margin-bottom: 24px;
    }

    .topbar {
        padding: 16px;
    }

    .placeholder .brand-name {
        font-size: 40px;
    }
}
