/*
 * Mollie-inspired Design System
 * Clean, Geometric, Premium
 *
 * Consolidated single stylesheet:
 * - Core design system (variables, reset, layout, components)
 * - Case study styles
 * - Module/card layouts
 * - Carousel styles
 * - More about section
 * - Style guide page
 * - Hero options playground
 */

/* ============================================
   DESIGN TOKENS & RESET
   ============================================ */

:root {
    /* Colors */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F3F6F8;
    /* Light gray for contrast sections */
    --color-text-main: #0C0E14;
    /* Deep black/charcoal */
    --color-text-muted: #586375;
    --color-accent: #0055FF;
    /* Mollie Blue */
    --color-accent-hover: #0044CC;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-header: 80px;
    --spacing-section: 120px;

    /* UI Tokens */
    --radius-pill: 100px;
    --radius-card: 24px;
    --radius-image: 16px;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo,
.nav-link,
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--color-accent);
}

.bg-light {
    background-color: var(--color-bg-secondary);
}

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

/* ============================================
   BUTTONS & INTERACTIONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    position: relative;
    --mouse-x: 50%;
    --mouse-y: 50%;
    --glow-opacity: 0;
}

.btn:hover {
    --glow-opacity: 1;
    box-shadow:
        0 0 20px rgba(0, 85, 255, calc(var(--glow-opacity) * 0.4)),
        calc((var(--mouse-x) - 50%) * 0.15) calc((var(--mouse-y) - 50%) * 0.15) 25px rgba(0, 85, 255, calc(var(--glow-opacity) * 0.3)),
        calc((var(--mouse-x) - 50%) * 0.1 - 3px) calc((var(--mouse-y) - 50%) * 0.1 - 3px) 20px rgba(255, 0, 100, calc(var(--glow-opacity) * 0.25)),
        calc((var(--mouse-x) - 50%) * 0.1 + 3px) calc((var(--mouse-y) - 50%) * 0.1 + 3px) 20px rgba(0, 255, 150, calc(var(--glow-opacity) * 0.2));
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-text-main);
    color: #FFF;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(0, 85, 255, calc(var(--glow-opacity) * 0.5)),
        calc((var(--mouse-x) - 50%) * 0.2) calc((var(--mouse-y) - 50%) * 0.2) 30px rgba(0, 85, 255, calc(var(--glow-opacity) * 0.4)),
        calc((var(--mouse-x) - 50%) * 0.15 - 4px) calc((var(--mouse-y) - 50%) * 0.15 - 4px) 25px rgba(255, 0, 100, calc(var(--glow-opacity) * 0.3)),
        calc((var(--mouse-x) - 50%) * 0.15 + 4px) calc((var(--mouse-y) - 50%) * 0.15 + 4px) 25px rgba(0, 255, 150, calc(var(--glow-opacity) * 0.25));
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
    background-color: #FFF;
    box-shadow:
        0 0 20px rgba(0, 85, 255, calc(var(--glow-opacity) * 0.4)),
        calc((var(--mouse-x) - 50%) * 0.2) calc((var(--mouse-y) - 50%) * 0.2) 30px rgba(0, 85, 255, calc(var(--glow-opacity) * 0.3)),
        calc((var(--mouse-x) - 50%) * 0.15 - 4px) calc((var(--mouse-y) - 50%) * 0.15 - 4px) 25px rgba(255, 0, 100, calc(var(--glow-opacity) * 0.25)),
        calc((var(--mouse-x) - 50%) * 0.15 + 4px) calc((var(--mouse-y) - 50%) * 0.15 + 4px) 25px rgba(0, 255, 150, calc(var(--glow-opacity) * 0.2));
}

.btn-text {
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    gap: 12px;
    /* subtle expansion animation */
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--spacing-header);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

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

.nav-link.btn-primary {
    color: #FFF;
    padding: 10px 24px;
    border-radius: 6px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   SECTION COMMON
   ============================================ */

.section {
    padding: var(--spacing-section) 0;
}

.section-header {
    margin-bottom: 60px;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-top: 16px;
    line-height: 1.6;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    padding-top: calc(var(--spacing-header) + 80px);
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Box Styling */
.hero-content {
    background-color: var(--color-text-main);
    color: #FFFFFF;
    padding: 60px 50px;
    border-radius: 24px;
    width: 100%;
}

.hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Background Layers */
.hero-content {
    position: relative;
    overflow: hidden;
    background-color: var(--color-text-main);
    /* #0C0E14 */
    border-radius: 32px;
}

.hero-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-blob-1 {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-blob-2 {
    position: absolute;
    bottom: 50px;
    right: 100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 100, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
}

.hero-blob-3 {
    position: absolute;
    bottom: -20px;
    right: 250px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 200, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(12, 14, 20, 0.7) 0%, rgba(12, 14, 20, 0.3) 50%, rgba(12, 14, 20, 0) 100%);
}

.hero-text-wrapper {
    position: relative;
    z-index: 3;
    padding: 60px;
}

.hero-content .btn-primary {
    background-color: #FFFFFF;
    color: var(--color-text-main);
}

.hero-content .btn-primary:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
}

.hero-content .btn-secondary {
    background-color: rgba(12, 14, 20, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
}

.hero-content .btn-secondary:hover {
    background-color: #0C0E14;
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Premium Dark Container */
.premium-dark-box {
    position: relative;
    overflow: hidden;
    background-color: #0C0E14;
    border-radius: 32px;
}

.premium-dark-box .hero-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: screen;
    pointer-events: none;
}

.premium-dark-box .canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.premium-dark-box .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(12, 14, 20, 0.7) 0%, rgba(12, 14, 20, 0.3) 50%, rgba(12, 14, 20, 0) 100%);
}

.premium-dark-box-content {
    position: relative;
    z-index: 3;
    padding: 60px;
    color: #FFFFFF;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #E6E8EB;
    border-radius: 6px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-muted);
}

.tab-btn i {
    font-size: 1.1em;
}

.tab-btn:hover {
    border-color: #DDE1E6;
    background-color: #F8F9FA;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: #FFFFFF;
    color: var(--color-text-main);
    border-color: var(--color-text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-content-box {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 0;
    width: 100%;
    min-height: 560px;
    position: relative;
    overflow: hidden;
    display: flex;
}

.tab-pane {
    display: none;
    width: 100%;
    padding: 60px;
    flex: 1;
    box-sizing: border-box;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    animation: fadeIn 0.5s ease;
}

.tab-text-content {
    width: 55%;
    position: relative;
    z-index: 2;
}

.tab-text-content h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.tab-text-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-card {
    background: #FFF;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
}

.card-image {
    height: 300px;
    background-color: #E0E6EB;
    width: 100%;
}

.card-content {
    padding: 24px 0;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card-content p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

/* Full Width Contact Section (Dark) */
.contact-full-width {
    position: relative;
    background-color: #0C0E14;
    overflow: hidden;
    width: 100%;
}

.contact-full-width .hero-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: screen;
    pointer-events: none;
}

.contact-full-width .canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Symmetrical Overlay for Contact */
.contact-full-width .contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(12, 14, 20, 0.8) 0%, rgba(12, 14, 20, 0.2) 60%, rgba(12, 14, 20, 0.5) 100%);
}

.contact-full-width .contact-content {
    position: relative;
    z-index: 3;
    padding: 80px 24px;
    color: #FFFFFF;
}

.contact-full-width .section-title,
.contact-full-width .section-subtitle,
.contact-full-width p {
    color: #FFFFFF;
}

.contact-full-width .btn-primary {
    background-color: #FFFFFF;
    color: var(--color-text-main);
}

.contact-full-width .btn-primary:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
}

/* Contact specific spacing */
.contact-content p {
    margin-bottom: 64px;
}

/* ============================================
   MORE ABOUT SECTION
   ============================================ */

.more-about-section {
}

.more-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 60px;
}

.more-about-card {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 520px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.more-about-content {
}

.more-about-content h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.more-about-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-subtle {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #F5F7F9;
    color: var(--color-text-main);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-subtle:hover {
    background: #EBEFF2;
}

.more-about-image {
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.more-about-image img {
    display: block;
    border-radius: var(--radius-image);
}

.more-about-image img.img-constrained {
    max-width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* ============================================
   CAROUSEL / HIGHLIGHTS
   ============================================ */

.highlight-section {
    padding: 48px 0;
    overflow: hidden;
}

.highlight-header {
    text-align: left;
    margin: 0 auto 60px;
    padding: 0 24px;
    max-width: var(--container-width);
}

.highlight-carousel {
    position: relative;
    width: 100%;
}

/* Controls - Centered above content */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: var(--container-width);
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(12, 14, 20, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(12, 14, 20, 0.8);
    transform: scale(1.05);
}

/* Track & Items */
.carousel-track-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    margin: -30px 0;
}

.carousel-track {
    display: flex;
    gap: 32px;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 auto;
    max-width: 80%;
    max-height: 540px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Visual styles for boxes */
.carousel-box-visual {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-box-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
}

/* Placeholder Gradients */
.box-1 .carousel-box-visual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.box-2 .carousel-box-visual {
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
}

.box-3 .carousel-box-visual {
    background: linear-gradient(135deg, #09203f 0%, #537895 100%);
}

.box-4 .carousel-box-visual {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.box-5 .carousel-box-visual {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
}

/* ============================================
   MODULE LAYOUT SYSTEM
   ============================================ */

.module-section {
    padding: var(--spacing-section) 0;
}

.module-stack {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* 1. Heading Box */
.mod-heading {
    text-align: left;
    max-width: 800px;
}

.mod-heading h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.mod-heading p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* 2. Content Box */
.mod-content-box {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 60px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.mod-content-inner {
    max-width: 50%;
    position: relative;
    z-index: 2;
}

.mod-content-box h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.mod-content-box p {
    margin-bottom: 24px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.mod-content-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 246, 248, 0.5) 0%, rgba(243, 246, 248, 0) 100%);
    z-index: 1;
}

/* 3. Double Content Box */
.mod-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mod-card {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 520px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.mod-card-visual {
    flex: 1;
    background-color: #E0E6EB;
    background-size: cover;
    background-position: center;
    min-height: 200px;
}

.mod-card-content {
    padding: 32px;
    background: #FFFFFF;
    flex-shrink: 0;
}

.mod-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.mod-card-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Module card gradient variants */
.mod-card-visual.gradient-purple-blue {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.mod-card-visual.gradient-pink-red {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mod-card-visual.gradient-purple-pink {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.mod-card-visual.gradient-peach-pink {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

.mod-card-visual.gradient-coral-pink {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* 4. Triple Content Box */
.mod-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

/* 5. Bento Box */
.mod-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 24px;
}

.bento-item {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-size: cover;
    background-position: center;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-std {
    grid-column: span 1;
    grid-row: span 1;
}

/* Bento gradient variants */
.bento-item.gradient-purple-pink {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.bento-item.gradient-green-blue {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.bento-item.gradient-coral-pink {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.bento-item.gradient-yellow-orange {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.bento-item.gradient-blue-light {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.bento-full-width {
    grid-column: span 4;
}

/* 7. 3 Content Columns (Icon) */
.mod-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.mod-icon-item {
    text-align: left;
}

.mod-icon-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    display: block;
}

.mod-icon-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.mod-icon-item p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   CASE STUDY STYLES
   ============================================ */

.case-study-article {
    padding-top: var(--spacing-header);
    background-color: var(--color-bg-primary);
}

/* ---- Hero Section ---- */
.cs-hero {
    padding: 80px 24px 48px;
    width: 100%;
    text-align: center;
    background-color: #0C0E14;
    position: relative;
    overflow: hidden;
}

.cs-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Behance Pro-inspired gradient background */
.cs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    right: -20%;
    bottom: -30%;
    background:
        radial-gradient(ellipse 50% 60% at 95% 100%, rgba(0, 100, 255, 0.9) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 70% 110%, rgba(255, 0, 128, 0.85) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 110% 90%, rgba(120, 0, 200, 0.8) 0%, transparent 55%),
        radial-gradient(ellipse 50% 55% at 5% 100%, rgba(0, 220, 255, 0.85) 0%, transparent 55%),
        radial-gradient(ellipse 45% 50% at -10% 85%, rgba(138, 43, 226, 0.75) 0%, transparent 55%);
    filter: blur(50px);
    z-index: 0;
}

.cs-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
    display: block;
}

.cs-hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    color: #FFFFFF;
}

.cs-hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}

/* ---- Meta Bar ---- */
.cs-meta-bar {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cs-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cs-meta-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.cs-meta-value {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
}

/* ---- Metrics Strip ---- */
.cs-metrics {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.cs-metric-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.cs-metric-card:hover {
    transform: translateY(-2px);
}

.cs-metric-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.cs-metric-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ---- Content Sections ---- */
.cs-section {
    max-width: 740px;
    margin: 0 auto;
    padding: 60px 24px 0;
}

.cs-section__label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: block;
}

.cs-section__heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 32px;
    color: var(--color-text-main);
}

.cs-section p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.cs-section p strong {
    color: var(--color-text-main);
    font-weight: 600;
}

/* ---- Callout ---- */
.cs-callout {
    background: rgba(0, 85, 255, 0.05);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    padding: 32px;
    margin: 40px 0;
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.6;
}

.cs-callout em {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: 1.25rem;
    display: block;
}

/* ---- Timeline ---- */
.cs-timeline {
    margin: 40px 0;
    padding-left: 24px;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.cs-timeline-item {
    position: relative;
}

.cs-timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-bg-primary);
    border: 3px solid var(--color-accent);
}

.cs-timeline-item__date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 8px;
    display: block;
}

.cs-timeline-item__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.cs-timeline-item__desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---- Principles Grid ---- */
.cs-principles {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cs-principle {
    background: var(--color-bg-secondary);
    border-radius: 16px;
    padding: 32px;
}

.cs-principle__number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
    opacity: 0.5;
}

.cs-principle__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.cs-principle__desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---- Hero Carousel ---- */
.cs-hero-carousel {
    background-color: #0C0E14;
    padding: 48px 0;
}

.cs-hero-carousel .carousel-controls {
    max-width: calc(var(--container-width) - 48px);
}

/* ============================================
   STYLE GUIDE PAGE
   ============================================ */

.sg-page {
    padding-bottom: 100px;
}

.sg-page-header {
    padding-top: 80px;
    margin-bottom: 60px;
}

.sg-page-header .hero-title {
    font-size: 3rem;
}

.sg-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sg-title {
    font-family: var(--font-heading);
    margin-bottom: 32px;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Color Swatches */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.swatch-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.swatch-color {
    height: 120px;
    width: 100%;
}

.swatch-color.swatch-bg-primary {
    background: var(--color-bg-primary);
    border-bottom: 1px solid #eee;
}

.swatch-color.swatch-bg-secondary {
    background: var(--color-bg-secondary);
}

.swatch-color.swatch-text-main {
    background: var(--color-text-main);
}

.swatch-color.swatch-text-muted {
    background: var(--color-text-muted);
}

.swatch-color.swatch-accent {
    background: var(--color-accent);
}

.swatch-info {
    padding: 16px;
    background: #fff;
}

.swatch-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.swatch-hex {
    font-family: monospace;
    color: var(--color-text-muted);
}

/* Type Example */
.type-row {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 24px;
}

.type-label {
    width: 150px;
    color: var(--color-text-muted);
    font-family: monospace;
    flex-shrink: 0;
}

.sg-body-text {
    max-width: 600px;
}

/* Buttons & Components showcase */
.sg-button-row {
    display: flex;
    gap: 24px;
    align-items: center;
}

.sg-component-label {
    margin-bottom: 12px;
    font-family: monospace;
    color: var(--color-text-muted);
}

.sg-component-heading {
    margin-bottom: 24px;
}

.sg-tabs-start {
    justify-content: flex-start;
}

.sg-hero-box {
    max-width: 800px;
}

.sg-hero-box .hero-title {
    font-size: 2.5rem;
}

.sg-card-preview {
    max-width: 400px;
    border: 1px solid #eee;
}

.sg-card-preview .card-image {
    height: 200px;
}

.sg-card-preview .card-content {
    padding: 24px;
}

/* ============================================
   HERO OPTIONS PLAYGROUND
   ============================================ */

.playground-page {
    padding: 40px;
    background: #f0f2f5;
}

.playground-header {
    margin-bottom: 40px;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.option-container {
    position: relative;
}

.option-label {
    position: absolute;
    top: -30px;
    left: 0;
    font-family: monospace;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Overrides for playground hero boxes */
.playground-page .hero-content {
    margin: 0;
    position: relative;
    z-index: 1;
    background-color: transparent;
    background-color: #0C0E14;
    overflow: hidden;
}

.playground-page #hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

.playground-page .hero-content > * {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.playground-page .hero-actions {
    pointer-events: auto;
}

/* Canvas container generic (for playground variants) */
.canvas-container-abs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Hero option 5 specific */
.hero-option-dark {
    background-color: #0C0E14;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-underlay-playground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: screen;
    pointer-events: none;
}

.playground-blob-blue {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.playground-blob-pink {
    position: absolute;
    bottom: 50px;
    right: 100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 100, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
}

.playground-blob-yellow {
    position: absolute;
    bottom: -20px;
    right: 250px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 200, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.canvas-container-z1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay-playground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(12, 14, 20, 0.7) 0%, rgba(12, 14, 20, 0.3) 50%, rgba(12, 14, 20, 0) 100%);
}

.hero-content-layer {
    position: relative;
    z-index: 3;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

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

@media (max-width: 1200px) {
    .carousel-item {
        width: 80vw;
    }

    .cs-hero-carousel .carousel-controls {
        max-width: calc(80vw - 48px);
    }
}

@media (max-width: 992px) {
    .mod-grid-3,
    .mod-icon-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mod-bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-auto-rows: 250px;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .bento-std {
        grid-column: span 1;
    }

    .mod-content-inner {
        max-width: 100%;
    }

    .mod-content-bg {
        display: none;
    }
}

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

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

    .hero-content {
        padding: 40px 24px;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: var(--spacing-header);
        left: 0;
        right: 0;
        background: #FFF;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .nav-list.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-text-content {
        width: 100%;
        padding-right: 0;
    }

    .about-content-box {
        padding: 40px 24px;
        min-height: auto;
    }

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

    /* More about responsive */
    .more-about-grid {
        grid-template-columns: 1fr;
    }

    .more-about-card {
        min-height: auto;
        padding: 32px 32px 0 32px;
    }

    /* Carousel responsive */
    .highlight-header {
        margin-bottom: 40px;
    }

    .carousel-controls {
        display: none;
    }

    /* Module responsive */
    .mod-grid-2 {
        grid-template-columns: 1fr;
    }

    .mod-bento-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .bento-item {
        height: 250px;
        width: 100%;
    }

    /* Case study responsive */
    .cs-hero__title {
        font-size: 2.25rem;
    }

    .cs-metrics,
    .cs-principles {
        grid-template-columns: 1fr;
    }

    .cs-meta-bar {
        gap: 24px;
        flex-direction: column;
    }
}