/* ============================================
   CORPORATE TRUST DESIGN SYSTEM
   Quant School - Educational Platform
   ============================================ */

/* Design Tokens */
:root {
    /* Colors */
    --bg-base: #F8FAFC;
    --bg-surface: #FFFFFF;
    --primary: #4F46E5;
    --secondary: #7C3AED;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --accent-success: #10B981;
    --border: #E2E8F0;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-500: #64748B;
    --slate-700: #334155;
    --slate-900: #0F172A;
    --indigo-50: #EEF2FF;
    --indigo-100: #E0E7FF;
    --indigo-600: #4F46E5;
    --indigo-900: #312E81;
    --indigo-950: #1E1B4B;
    --violet-600: #7C3AED;

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing Scale (Major Third - 1.250) */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows - Colored with indigo tint */
    --shadow-sm: 0 2px 8px -2px rgba(79, 70, 229, 0.08);
    --shadow-md: 0 4px 20px -2px rgba(79, 70, 229, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(79, 70, 229, 0.15), 0 8px 10px -6px rgba(79, 70, 229, 0.1);
    --shadow-button: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.5);

    /* Transitions */
    --transition-base: all 200ms ease-out;
    --transition-slow: all 500ms ease-out;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: var(--transition-base);
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

/* Decorative Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    bottom: -150px;
    left: -100px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.badge-new {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--indigo-100), var(--violet-600) 200%);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.badge-inner {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: var(--shadow-button);
}

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

.btn-secondary {
    background: white;
    color: var(--slate-700);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--slate-50);
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Visual Card */
.hero-visual {
    perspective: 2000px;
}

.hero-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
    transform: rotateX(5deg) rotateY(-8deg);
    transition: var(--transition-slow);
}

.hero-card:hover {
    transform: rotateX(2deg) rotateY(-4deg);
}

.stats-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 6rem 0;
    background-color: var(--bg-surface);
}

.about h2 {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

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

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
}

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

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.about-card h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   COURSES SECTION
   ============================================ */
.courses {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--slate-50) 100%);
}

.courses h2 {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

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

.course-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-100);
    transition: var(--transition-base);
    position: relative;
}

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

.course-card-featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.course-card-featured:hover {
    transform: translateY(-6px) scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
}

.badge-glow {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-glow);
}

.course-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.course-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.course-card ul li {
    padding: 0.625rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
}

.course-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-success);
    font-weight: 700;
    font-size: 1.1rem;
}

.course-duration {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits {
    padding: 6rem 0;
    background: white;
}

.benefits h2 {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 700;
}

.benefit-item p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--indigo-50) 0%, var(--slate-50) 100%);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details p {
    margin: 1rem 0;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
}

.contact-form h3 {
    color: var(--text-main);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-base);
    background: white;
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-button);
    font-family: var(--font-primary);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.4);
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-success), #34D399);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.success-content h3 {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.back-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-button);
    font-family: var(--font-primary);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.4);
}

.request-id {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 1rem;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid #EF4444;
    margin-bottom: 2rem;
}

.error-content {
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.error-content h3 {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Submit button disabled state */
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-button);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-950) 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about h2,
    .courses h2,
    .benefits h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    .about,
    .courses,
    .benefits,
    .contact {
        padding: 4rem 0;
    }

    .about-grid,
    .courses-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .course-card-featured {
        transform: scale(1);
    }

    .popular-badge {
        top: 1.5rem;
        right: 1.5rem;
        position: relative;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .blob-1,
    .blob-2 {
        opacity: 0.15;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth Transitions */
a, button, .btn, .card {
    transition: var(--transition-base);
}
