:root {
    /* Color Palette - Logo Brand Colors */
    --bg-main: #050510;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-card-hover: rgba(30, 30, 50, 0.8);
    
    --text-main: #ffffff;
    --text-secondary: #e0e0ff;
    --text-muted: #9ca3af;
    
    /* Brand Colors based on Logo - Reverted Backgrounds to Pink/Purple */
    --primary: #e91e63;   /* Pink (Backgrounds/Buttons) */
    --secondary: #9c27b0; /* Purple (Backgrounds/Buttons) */
    --accent: #FFD700;    /* Gold (Text Gradient Highlight) */
    
    /* Studio Theme (Tech Blue) */
    --studio-blue: #00bcd4;
    --studio-purple: #3f51b5;
    --gradient-studio: linear-gradient(135deg, #00bcd4 0%, #3f51b5 100%);

    /* Background Gradients (Pink/Purple) */
    --gradient-main: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(156, 39, 176, 0.4) 0%, transparent 70%);

    /* Text Gradient (Gold/Amber/White) - ONLY for text-gradient class */
    --gradient-text: linear-gradient(to right, #FFD700, #FFA500, #FFFFFF);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    
    --nav-height: 90px;
    --container-width: 1400px;
    
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --radius-lg: 32px;
    --radius-md: 20px;
}

/* --- Documentation / Blog Styles --- */
.doc-section {
    padding-top: 180px; /* Space for fixed nav */
    padding-bottom: 100px;
    min-height: 80vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-flow 6s linear infinite;
    display: inline-block;
}

.text-highlight {
    color: transparent;
    background: var(--gradient-main); /* Changed to Primary Pink/Purple Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--primary); /* Pink underline matches gradient start */
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent; /* Initial transparent */
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px; /* Shrink on scroll */
}

.nav-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 48px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Logo Hover Effect --- */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo::after {
    content: '\f015'; /* fa-home */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -2px;
    right: -18px;
    /* Minimal style: Icon only, no heavy background */
    background: transparent;
    color: var(--text-secondary); 
    width: auto;
    height: auto;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.8) translate(-5px, 5px);
    transition: all 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.4);
    z-index: 10;
    border: none;
    box-shadow: none;
    display: block;
}

.logo:hover::after {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 10px 30px -10px rgba(233, 30, 99, 0.5);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -12px rgba(233, 30, 99, 0.7);
    background-position: right center;
}

.btn-outline {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.2);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    perspective: 1000px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: var(--primary);
    top: -20%;
    left: -15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 900px;
    height: 900px;
    background: var(--secondary);
    bottom: -20%;
    right: -15%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
    transform: translateY(-2px);
}

.hero h1 {
    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    text-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero p {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 56px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* --- Sections General --- */
section {
    padding: 140px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-header h2 {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.3rem;
    max-width: 640px;
    margin: 0 auto;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
}

.about-text p {
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-size: 1.3rem;
    line-height: 1.8;
}

/* --- Vision Section (Split) --- */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vision-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.vision-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.vision-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.vision-card:hover .vision-card-bg {
    transform: scale(1.1);
}

.vision-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,16,0.95) 0%, rgba(5,5,16,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    z-index: 2;
}

.vision-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.vision-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.vision-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: #050510;
    padding: 24px 32px;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    max-width: 80%;
    animation: float-bubble 6s ease-in-out infinite;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    line-height: 1.5;
}

.vision-bubble.left {
    top: 15%;
    left: 8%;
    border-radius: 24px 24px 24px 0px;
}

.vision-bubble.right {
    top: 15%;
    right: 8%;
    border-radius: 24px 24px 0px 24px;
    animation-delay: 2s;
}

.vision-bubble-img {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

@keyframes float-bubble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* --- Products Section --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 160px; /* Wider gap for atmospheric feel */
    max-width: 1400px; 
    margin: 0 auto;
    position: relative; /* Container for orbs */
    z-index: 1;
}

#products {
    position: relative;
    /* Clean background, relying on Orbs for color */
    background: var(--bg-main);
    overflow: hidden; /* Contain the orbs */
}

/* Product Orbs */
.product-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.product-orb-studio {
    width: 600px;
    height: 600px;
    background: var(--studio-blue);
    top: 5%;
    left: -10%;
    animation: float 25s infinite ease-in-out;
}

.product-orb-designer {
    width: 700px;
    height: 700px;
    background: var(--primary); /* Designer Pink */
    bottom: 5%;
    right: -10%;
    animation: float 22s infinite ease-in-out reverse;
}

.product-card, .product-card-alt {
    background: transparent;
    border: none;
    padding: 0;
    transition: all 0.5s var(--ease-out);
    position: relative;
    display: grid;
    align-items: center;
    min-height: 600px;
    gap: 80px;
    z-index: 2; /* Ensure content is above orbs */
}

/* PC Specific Grid Layouts */
.product-card {
    /* Image left (2fr), Content right (1fr) */
    grid-template-columns: 2fr 1fr;
}

.product-card-alt {
    /* Content left (1fr), Image right (2fr) */
    grid-template-columns: 1.5fr 2fr;
}

/* Theme Classes for Products */
.theme-studio .btn-primary {
    background: var(--gradient-studio);
    box-shadow: 0 10px 30px -10px rgba(0, 188, 212, 0.5);
}

.theme-studio .btn-primary:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 188, 212, 0.7);
}

.product-card.theme-studio li i {
    color: var(--studio-blue); /* This is correct for studio theme */
}

/* Designer theme bullet points (Fix requested by user) */
.product-card.theme-designer li i {
    color: var(--primary); /* Use Primary Pink to match button */
}

/* Fallback generic */
.product-card li i {
    font-size: 1.2rem;
    margin-right: 12px;
    color: var(--primary); /* Default to primary pink */
}

.theme-studio .audience-tag {
    color: var(--studio-blue);
}

.theme-designer .btn-primary {
    /* Uses default primary gradient */
}

.theme-designer .audience-tag {
    color: var(--primary);
}

.product-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.audience-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.product-card h3, .product-card-alt h3 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: white;
}

.product-card .btn {
    width: fit-content;
    margin-top: 16px;
    padding: 16px 48px;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.25rem; 
    line-height: 1.7;
    position: relative;
    z-index: 1;
    max-width: 540px;
}

.product-card li {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.product-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Safety constraint */
    min-width: 0;
}

.product-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    transition: transform 0.8s ease;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}

.product-card:hover .product-img, .product-card-alt:hover .product-img {
    transform: scale(1.02);
}

/* Mobile Responsive Adjustments for Products */
@media (max-width: 1024px) {
    .product-grid {
        gap: 80px;
    }

    .product-card, .product-card-alt {
        display: flex;
        flex-direction: column;
        text-align: center;
        min-height: auto;
        gap: 0;
        margin-bottom: 0;
        width: 100vw;
        margin-left: -24px;
        margin-right: -24px;
        background: var(--bg-main);
    }

    .product-content {
        padding: 40px 24px;
        order: 1; /* Text first */
        align-items: center;
        max-width: 100%;
    }
    
    .product-card p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .product-card h3, .product-card-alt h3 {
        font-size: 2.5rem;
    }

    .product-img-wrapper {
        height: auto;
        width: 100%;
        margin: 0;
        order: 2; /* Image second */
        display: block;
        overflow: hidden;
    }
    
    .product-img {
        max-height: none;
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        filter: none;
        max-width: 100%;
    }
    
    .product-features {
        display: none; 
    }
}

/* --- Crafts Magazine Grid (Refined) --- */
.craft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    auto-rows: 280px;
}

.craft-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: #111;
}

.craft-item:nth-child(1) { grid-column: span 2; }
.craft-item:nth-child(6) { grid-column: span 2; }
/* Reset item 4 to default span 1 (implicit) */

.craft-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out);
}

/* Default state: AI Image visible, Real Image hidden */
.craft-img.img-ai {
    position: relative; /* Changed from absolute to relative to maintain flow */
    z-index: 1;
    opacity: 1;
    display: block; /* Ensure it behaves as a block */
}

.craft-img.img-real {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0; /* Hidden by default */
    height: 100%; /* Ensure it fills the container */
}

/* Hover state: Reveal Real Image */
.craft-item:hover .craft-img.img-real {
    opacity: 1;
}

.craft-item:hover .craft-img {
    transform: scale(1.05);
}

.craft-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.craft-item:hover .craft-label {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Craft Badges */
.craft-badge {
    position: absolute;
    top: 20px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.15);
    transition: opacity 0.3s ease;
}

.craft-badge.left {
    left: 20px;
    background: rgba(5, 5, 16, 0.8);
    opacity: 1;
}

.craft-badge.right {
    right: 20px;
    background: var(--gradient-main);
    opacity: 0;
}

.craft-item:hover .craft-badge.left {
    opacity: 0;
}

.craft-item:hover .craft-badge.right {
    opacity: 1;
}

.mobile-slider-hint {
    display: none;
}

/* --- Strengths --- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 60px 40px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 32px;
    display: inline-block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(156, 39, 176, 0.4));
}

.feature-item h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 120px 0 60px;
    background: #020205;
    margin-top: 120px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-slogan {
    font-family: 'Caveat', cursive; /* Changed to English handwritten font */
    font-size: 3rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.1;
    transform: rotate(-2deg); /* Slight tilt for handwritten feel */
    display: inline-block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 16px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.footer-col a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--gradient-main);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--text-main);
}

/* --- Mobile Responsive --- */
@media (max-width: 1200px) {

    .container { padding: 0 30px; }
    .hero h1 { font-size: 5rem; }
}

@media (max-width: 1024px) {
    :root { --container-width: 100%; }
    /* Mobile Responsive Adjustments for Products */
    .product-card {
        grid-template-columns: 1fr; /* Stack vertically */
        text-align: center;
        min-height: auto;
        gap: 0; /* Remove gap, handle spacing via padding */
        margin-bottom: 60px; /* Add MORE space between cards to prevent overlap */
        width: 100vw; /* Ensure card takes full viewport width */
        margin-left: -24px; /* Pull out of container padding */
        margin-right: -24px;
        background: var(--bg-main); /* Ensure background covers */
        display: flex; /* Use flexbox for simpler vertical stacking */
        flex-direction: column;
    }

    .product-content {
        padding: 40px 24px; /* Standard padding for text */
        order: 1; /* Text first */
        align-items: center;
        max-width: 100%; /* Reset constraints */
        display: flex;
        flex-direction: column;
    }
    
    .product-card p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
        padding: 0 10px; /* Slight internal padding */
    }
    
    .product-card h3 {
        font-size: 2.5rem;
    }

    .product-img-wrapper {
        height: auto;
        width: 100%; /* Take full width of the card (which is 100vw) */
        margin: 0; /* Reset margins */
        order: 2; /* Image second */
        display: block; /* Remove flex centering */
        overflow: hidden; /* Ensure image doesn't overflow */
        /* FIX: Reset overflow and min-width issues on mobile */
        min-width: 0;
    }
    
    .product-img {
        width: 100%;
        max-height: none;
        height: auto;
        object-fit: cover;
        display: block; /* Remove inline spacing */
        filter: none; /* Remove shadow on mobile for clean edge-to-edge */
        max-width: 100%; /* Ensure max-width is constrained */
    }
    
    .product-features {
        display: none; 
    }
    .craft-grid { grid-template-columns: 1fr 1fr; }
    .craft-item:nth-child(1), .craft-item:nth-child(4) { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links, .btn-outline { display: none; }
    
    .hero { padding-top: 120px; min-height: auto; padding-bottom: 100px; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.2rem; }
    
    .about-grid, .vision-grid, .product-grid, .footer-content { 
        grid-template-columns: 1fr; 
        gap: 60px;
    }

    .craft-grid { 
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    }
    
    .craft-item { 
        flex: 0 0 280px; /* Fixed width card */
        height: 380px; /* Taller to show detail */
        scroll-snap-align: center;
        border-radius: 20px;
    }

    /* Force mobile slider interaction */
    .mobile-slider-hint {
        display: block;
        position: absolute;
        bottom: 80px;
        left: 0;
        width: 100%;
        text-align: center;
        color: rgba(255,255,255,0.7);
        font-size: 0.9rem;
        pointer-events: none;
        z-index: 8;
        animation: fadeHint 2s infinite;
    }

    /* Mobile: Show split view instead of hover */
    .craft-img.img-ai {
        clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    }
    .craft-img.img-real {
        opacity: 1 !important;
        clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    }
    
    /* Mobile badges fixed */
    .craft-badge.left { opacity: 1 !important; font-size: 0.7rem; left: 10px; top: 10px; padding: 4px 8px; }
    .craft-badge.right { opacity: 1 !important; font-size: 0.7rem; right: 10px; top: 10px; background: rgba(5, 5, 16, 0.8); padding: 4px 8px; }

    /* Comparison divider line */
    .craft-item::after {
        content: '';
        position: absolute;
        top: 0; bottom: 0; left: 50%;
        width: 2px;
        background: rgba(255,255,255,0.3);
        z-index: 5;
    }

    .footer-links { flex-direction: column; gap: 40px; justify-content: flex-start; }
    
    .vision-bubble { 
        position: relative; 
        top: auto; left: auto; right: auto; 
        margin: 20px; 
        max-width: 100%;
        border-radius: 16px;
    }
    
    .container { padding: 0 24px; }
}

@keyframes fadeHint {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* --- Animations --- */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stylist Page Studio Theme --- */
.stylist-page-body .orb-1 {
    background: var(--studio-blue); /* Studio Blue */
    left: -10%;
    top: -15%;
}

.stylist-page-body .orb-2 {
    background: var(--studio-purple); /* Studio Purple */
    right: -10%;
    bottom: -15%;
}

.stylist-page-body .text-gradient {
    /* Studio Gradient for Text */
    background: var(--gradient-studio);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stylist-page-body .btn-primary {
    /* Studio Gradient for Buttons */
    background: var(--gradient-studio);
    box-shadow: 0 10px 30px -10px rgba(0, 188, 212, 0.5); /* Blue Shadow */
}

.stylist-page-body .btn-primary:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 188, 212, 0.7);
}

.stylist-page-body .feature-step-badge {
    color: var(--studio-blue);
}

.stylist-page-body .feature-item-modern:hover .feature-step-badge {
    background: var(--studio-blue);
    border-color: var(--studio-blue);
}

.stylist-page-body .feature-item-modern:hover {
    border-color: var(--studio-blue);
}

.stylist-page-body .glass-card:hover {
    border-color: var(--studio-blue);
}

.stylist-page-body .feature-icon {
    /* Icon Gradient */
    background: var(--gradient-studio);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stylist-page-body .navbar .logo::after {
    /* Home Icon color match */
    color: var(--studio-blue);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
}

.stylist-page-body .text-highlight {
    background: var(--gradient-studio);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration-color: var(--studio-blue);
}

.doc-content {
    max-width: 900px;
    margin: 0 auto;
}

.doc-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
}

.doc-meta {
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 30px;
}

.doc-body {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.doc-body h2 {
    color: var(--text-main);
    font-size: 2rem;
    margin-top: 60px;
    margin-bottom: 24px;
    font-weight: 700;
}

.doc-body h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.doc-body p {
    margin-bottom: 24px;
}

.doc-body ul, .doc-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.doc-body li {
    margin-bottom: 12px;
}

.doc-body a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.doc-body a:hover {
    border-color: var(--primary);
}

/* --- Generic Glass Card (Restored for Stylist Page) --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: white;
}

.glass-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Modern Feature List (Grid) */
.feature-list-modern {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-item-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item-modern:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.feature-step-badge {
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--primary);
}

.feature-item-modern:hover .feature-step-badge {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
