/* ========== MUSIC WORKBOOK SUITE - MODERN STUDIO THEME ========== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Inter+Tight:wght@600;800&display=swap');

:root {
    /* PALETTE - Modern Tech/Music Studio */
    --bg-page: #f1f5f9;
    /* Slate 100 - Warmer Grey */
    --bg-surface: #ffffff;
    --bg-header: #0f172a;
    /* Slate 900 - Deep Midnight */

    --text-main: #334155;
    /* Slate 700 */
    --text-header: #ffffff;
    /* White on Dark */
    --text-muted: #64748b;
    /* Slate 500 */

    --primary: #4f46e5;
    /* Indigo 600 - Use sparingly */
    --primary-dark: #4338ca;
    /* Indigo 700 */
    --accent: #f59e0b;
    /* Amber 500 - Warmth/Gold */
    --border: #cbd5e1;
    /* Slate 300 */

    /* SHADOWS & RADIUS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    /* More rounded = More modern app feel */

    /* ANIMATIONS */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-family: 'Inter Tight', sans-serif;
    letter-spacing: -0.025em;
    /* Tight tracking for modern feel */
}

h1 {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

h3 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

/* HEADER - THE BIG CHANGE */
header {
    text-align: center;
    padding: 100px 0 80px;
    background: var(--bg-header);
    color: var(--text-header);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    /* Slanted edge */
    margin-bottom: 40px;
}

header h1,
header h2,
header h3 {
    color: white !important;
}

.subtitle {
    font-size: 1.35rem;
    color: #94a3b8;
    /* Slate 400 */
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.4);
    /* Glow */
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* UTILS - SWITCHER */
.lang-switch {
    position: absolute;
    top: 30px;
    right: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    letter-spacing: 1px;
}

.lang-switch span {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switch span.active {
    color: white;
    border-bottom: 2px solid var(--accent);
}

.lang-switch span:hover {
    color: white;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 30px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-link:hover {
    color: white;
}

[data-lang="en"] {
    display: none;
}

/* CARD GRID (Landing) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: -60px;
    /* Overlap header */
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.card {
    background: var(--bg-surface);
    border: none;
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.card h2 {
    font-size: 1.6rem;
    color: #1e293b;
}

/* PRODUCT PAGE (Harmony Workbook) */
.product-layout {
    max-width: 900px;
    margin: 0 auto;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.intro-box {
    background: var(--bg-surface);
    border: none;
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-card);
    margin-bottom: 56px;
}

.intro-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #475569;
}

.intro-box strong {
    color: var(--primary);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    margin-bottom: 80px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #e0e7ff;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}

/* CTA SECTIONS (Dark/Primary blocks) */
.cta-section {
    text-align: center;
    /* DEEP NAVY / MIDNIGHT GRADIENT - NOT BLINDING */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 32px;
    border-radius: var(--radius);
    margin-bottom: 64px;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3);
    /* Subtle dark shadow */
    border: 1px solid #334155;
    /* Slight border definition */
}

.cta-section h2 {
    color: white !important;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.cta-section .btn {
    margin: 10px;
    min-width: 220px;
}

.cta-section .btn-primary {
    background: white;
    color: #0f172a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
    background: #f8fafc;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* VIDEO */
.video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* FOOTER */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    background: white;
}

/* MOBILE */
@media (max-width: 768px) {
    header {
        clip-path: none;
        padding: 60px 20px 40px;
        margin-bottom: 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .grid-3,
    .product-layout {
        margin-top: 20px;
    }

    .intro-box {
        padding: 24px;
    }
}