/* ============================================================
   Flash Marketers — "The Ethereal Architect" Design System
   ============================================================ */

/* --- Design Tokens --- */
:root {
    /* Colors */
    --primary: #6a1cf6;
    --primary-dim: #5510cc;
    --primary-container: #ac8eff;
    --secondary-container: #d4bbff;
    --tertiary-container: #f0c4ff;
    --surface: #fdf3ff;
    --surface-container-low: #f9edff;
    --surface-container: #f3e2ff;
    --surface-container-highest: #ebd4ff;
    --surface-container-lowest: #ffffff;
    --surface-variant: #f0e4f9;
    --on-background: #38274c;
    --on-surface: #38274c;
    --on-surface-muted: #6e5a82;
    --outline-variant: #bba4d2;
    --primary-fixed: #e5d5ff;

    /* Typography */
    --font-display: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.75rem;
    --sp-8: 2.75rem;
    --sp-10: 3.5rem;
    --sp-12: 4rem;
    --sp-16: 6rem;
    --sp-24: 8.5rem;

    /* Roundedness */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1.25rem;
    --radius-full: 999px;

    /* Shadows */
    --shadow-ambient: 0 24px 48px rgba(56, 39, 76, 0.06);
    --shadow-float: 0 12px 32px rgba(56, 39, 76, 0.10);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--on-background);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* --- Interactive Mesh Canvas --- */
#mesh-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- Navigation (Glass) --- */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 243, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.3s ease;
}

.nav-glass.scrolled {
    box-shadow: var(--shadow-ambient);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-6);
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--on-background);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.brand-flash {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(106, 28, 246, 0.5));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--on-surface-muted);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--on-background);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(253, 243, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--sp-6);
    z-index: 999;
    flex-direction: column;
    gap: var(--sp-4);
    box-shadow: var(--shadow-ambient);
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--sp-3) 0;
    color: var(--on-background);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 24px rgba(106, 28, 246, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dim), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(106, 28, 246, 0.35);
}

.btn-primary.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.btn-primary.btn-lg {
    padding: 1.1rem 3rem;
    font-size: 1.1rem;
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    background: var(--surface-container-highest);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface-container);
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--sp-24) var(--sp-6) var(--sp-16);
    gap: var(--sp-10);
}

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

.hero-eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--sp-4);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--on-background);
    margin-bottom: var(--sp-6);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--on-surface-muted);
    margin-bottom: var(--sp-8);
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-subtitle em {
    font-style: italic;
    color: var(--primary);
}

.hero-actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    opacity: 0;
    animation: fadeInScale 1s ease forwards 0.6s;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-float);
}

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
    padding: var(--sp-24) var(--sp-6);
}

.section-software {
    background: var(--surface-container-low);
}

.section-courses {
    background: var(--surface);
}

.section-blend {
    background: var(--surface-container-low);
}

.section-cta {
    background: var(--surface);
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--sp-16);
}

.asymmetric-left {
    flex-direction: row;
}

.asymmetric-right {
    flex-direction: row;
}

.section-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    margin-bottom: var(--sp-3);
}

.section-label.center {
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--on-background);
    margin-bottom: var(--sp-6);
}

.section-title.center {
    text-align: center;
}

.section-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--on-surface-muted);
    max-width: 480px;
    margin-bottom: var(--sp-6);
}

.pillar-content {
    flex: 1;
}

.pillar-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* --- Feature Pills --- */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.pill {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: var(--surface-container-highest);
    color: var(--primary);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.pill:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Floating Cards --- */
.floating-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-ambient);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Code Card */
.card-code {
    padding: var(--sp-6);
    max-width: 420px;
    width: 100%;
}

.code-dots {
    display: flex;
    gap: 6px;
    margin-bottom: var(--sp-5);
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff6b6b; }
.code-dots span:nth-child(2) { background: #feca57; }
.code-dots span:nth-child(3) { background: #5fdb7c; }

.code-block {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--on-surface-muted);
    white-space: pre;
}

.code-kw  { color: var(--primary); font-weight: 600; }
.code-fn  { color: #e066a0; }
.code-prop { color: #4ecdc4; }
.code-str { color: #ffa726; }

/* Course Card */
.card-course {
    padding: var(--sp-8);
    max-width: 380px;
    width: 100%;
}

.course-icon {
    font-size: 2.5rem;
    margin-bottom: var(--sp-5);
}

.course-tag {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    background: var(--primary-fixed);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: var(--sp-3);
}

.course-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--on-background);
    margin-bottom: var(--sp-4);
}

.course-stats {
    display: flex;
    gap: var(--sp-2);
    font-size: 0.8rem;
    color: var(--on-surface-muted);
    margin-bottom: var(--sp-5);
}

.course-progress-bar {
    height: 6px;
    background: var(--surface-container-highest);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.course-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-container));
    border-radius: var(--radius-full);
    animation: progressFill 2s ease forwards 1s;
}

@keyframes progressFill {
    to { width: 68%; }
}

/* --- Blend Section --- */
.blend-inner {
    max-width: 960px;
    margin: 0 auto;
}

.blend-subtitle {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--on-surface-muted);
    max-width: 540px;
    margin: 0 auto var(--sp-12);
}

.blend-subtitle em {
    color: var(--primary);
    font-style: italic;
}

.blend-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--sp-12);
}

.blend-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    transition: transform 0.4s ease;
}

.blend-circle:hover {
    transform: scale(1.08);
}

.blend-circle-software {
    background: rgba(106, 28, 246, 0.08);
    margin-right: -30px;
    z-index: 1;
}

.blend-circle-courses {
    background: rgba(240, 196, 255, 0.25);
    margin-left: -30px;
    z-index: 1;
}

.blend-circle-icon {
    font-size: 2rem;
}

.blend-circle-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--on-background);
}

.blend-intersection {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    z-index: 2;
    box-shadow: 0 0 40px rgba(106, 28, 246, 0.3);
    animation: pulseGlow 3s ease-in-out infinite;
}

.blend-flash {
    font-size: 1.6rem;
    filter: brightness(2);
}

.blend-inter-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    text-align: center;
    color: #ffffff;
    line-height: 1.2;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(106, 28, 246, 0.3); }
    50%      { box-shadow: 0 0 60px rgba(106, 28, 246, 0.5); }
}

/* Blend Points */
.blend-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
}

.blend-point {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-2xl);
    padding: var(--sp-8);
    box-shadow: var(--shadow-ambient);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blend-point:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
}

.blend-point-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--sp-4);
}

.blend-point-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--on-background);
    margin-bottom: var(--sp-3);
}

.blend-point-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--on-surface-muted);
}

/* --- CTA Section --- */
.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-image {
    width: 280px;
    margin: 0 auto var(--sp-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-float);
}

.cta-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--on-background);
    margin-bottom: var(--sp-5);
}

.cta-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--on-surface-muted);
    margin-bottom: var(--sp-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: var(--sp-4);
    font-size: 0.8rem;
    color: var(--on-surface-muted);
    opacity: 0.7;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    background: var(--surface-container-low);
    padding: var(--sp-12) var(--sp-6);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--on-background);
    margin-bottom: var(--sp-3);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--on-surface-muted);
    margin-bottom: var(--sp-6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--sp-6);
    margin-bottom: var(--sp-6);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--on-surface-muted);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.75rem;
    color: var(--outline-variant);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animation class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: var(--sp-16);
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
    }

    .section-inner {
        flex-direction: column !important;
        text-align: center;
        gap: var(--sp-10);
    }

    .section-body {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-pills {
        justify-content: center;
    }

    .blend-points {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .blend-diagram {
        flex-direction: column;
        gap: 0;
    }

    .blend-circle-software {
        margin-right: 0;
        margin-bottom: -25px;
    }

    .blend-circle-courses {
        margin-left: 0;
        margin-top: -25px;
    }

    .blend-circle {
        width: 150px;
        height: 150px;
    }

    .blend-intersection {
        width: 100px;
        height: 100px;
    }

    .section {
        padding: var(--sp-16) var(--sp-4);
    }
}

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

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

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .hero {
        padding-top: var(--sp-12);
    }
}
