/* Exampil Design System - Landing Page CSS
    Derived from src/styles/Colors.ts
*/

:root {
    /* Core Brand Tokens */
    --primary: #8C3562;       /* App "BLUE_COLOR" (Magenta/Plum) */
    --primary-dark: #422042;  /* App "DARK_COLOR" */
    --bg-app: #EEF3F5;        /* App "BG_COLOR" */
    
    /* Text Tokens */
    --text-main: #2F2651;     /* App "TEXT_COLOR" (Deep Purple) */
    --text-sub: #6F6B88;      /* App "SUB_TEXT_COLOR" */
    --text-disabled: #ACAAB7; /* App "GREY_COLOR" */
    --text-link: #918DF3;     /* App "EMAIL_TEXT_COLOR" (Lavender) */
    
    /* UI Tokens */
    --white: #FFFFFF;
    --border: #EBE9EF;        /* App "BORDER_LINE_COLOR" */
    
    /* Semantic/Status Tokens */
    --success: #22CC55;
    --error: #EC6666;
    --warning: #FBC472;
    --quiz-purple: #9672FB;   /* "CorrectColor" */

    /* Layout Spacing */
    --section-padding: 80px 20px;
    --container-width: 1100px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }

p {
    color: var(--text-sub);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

section {
    padding: var(--section-padding);
}

/* Buttons - Using the Primary Brand Color */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 53, 98, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

/* Hero Section Component */
.hero-wrapper {
    background-color: var(--bg-app);
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Card Component (Level 2 Hierarchy) */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(47, 38, 81, 0.05);
}

/* Semantic Status Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-success { background: #E9F9EE; color: var(--success); }
.badge-error { background: #FEEEEE; color: var(--error); }

/* Navigation */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

nav .logo {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
}

nav .nav-link {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav .nav-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-wrapper { flex-direction: column; text-align: center; }
}