/* Mystrix Detail Page - Creative Purple Theme */

/* Variables */
.mx-detail {
    --mx-bg: #0f0a1a;
    --mx-bg-light: #1a1428;
    --mx-accent: #a855f7;
    --mx-accent-glow: rgba(168, 85, 247, 0.3);
    --mx-accent-secondary: #7c3aed;
    --mx-text: #f5f3f8;
    --mx-text-muted: #a09aad;
    --mx-border: rgba(255,255,255,0.1);
}

.mx-detail {
    background: var(--mx-bg);
    color: var(--mx-text);
    font-family: var(--font-sans);
}

/* Hero */
.mx-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-direction: row;
    justify-content: space-between;
    padding: 4rem;
    gap: 2rem;
}

.mx-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f0a1a 0%, #1e1b4b 50%, #0f0a1a 100%);
}

.mx-hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.mx-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: mx-float 20s ease-in-out infinite;
}

.mx-hero-orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.2);
    top: 10%;
    left: 20%;
}

.mx-hero-orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(124, 58, 237, 0.15);
    bottom: 20%;
    right: 15%;
    animation-delay: -7s;
}

.mx-hero-orb--3 {
    width: 200px;
    height: 200px;
    background: rgba(168, 85, 247, 0.1);
    top: 50%;
    right: 30%;
    animation-delay: -14s;
}

@keyframes mx-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.mx-hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 550px;
    padding: 2rem 0;
}

.mx-hero-image {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 380px;
    max-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.4),
        0 10px 30px rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.mx-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 900px) {
    .mx-hero {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }
    .mx-hero-content {
        text-align: center;
        max-width: 100%;
    }
    .mx-hero-image {
        width: 100%;
        max-width: 320px;
        max-height: 450px;
    }
}

.mx-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--mx-accent);
    color: #0a0e1a;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.mx-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--mx-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mx-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--mx-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.mx-subtitle {
    font-size: 1.125rem;
    color: var(--mx-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.mx-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .mx-hero-cta {
        justify-content: center;
    }
}

/* Buttons */
.mx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.mx-btn--primary {
    background: var(--mx-accent);
    color: #0a0e1a;
    box-shadow: 0 0 30px var(--mx-accent-glow);
}

.mx-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--mx-accent-glow);
}

.mx-btn--ghost {
    background: transparent;
    color: var(--mx-text);
    border: 1px solid var(--mx-border);
}

.mx-btn--ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--mx-accent);
}

.mx-btn--large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Sections */
.mx-section {
    padding: 6rem 2rem;
}

.mx-section--dark {
    background: var(--mx-bg-light);
}

.mx-section--accent {
    background: linear-gradient(180deg, var(--mx-bg) 0%, #1e1b4b 100%);
}

.mx-section--cta {
    background: linear-gradient(135deg, #1e1b4b 0%, var(--mx-bg) 100%);
}

.mx-container {
    max-width: 1200px;
    margin: 0 auto;
}

.mx-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.mx-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mx-accent);
    margin-bottom: 0.75rem;
}

.mx-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

/* Vision Grid */
.mx-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mx-vision-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--mx-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mx-vision-card:hover {
    border-color: var(--mx-accent);
    transform: translateY(-4px);
}

.mx-vision-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mx-vision-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.mx-vision-card p {
    color: var(--mx-text-muted);
    line-height: 1.6;
}

/* Screenshot Row */
.mx-screenshot-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.mx-screenshot-item {
    text-align: center;
}

.mx-screenshot-item img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--mx-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px var(--mx-accent-glow);
    transition: all 0.3s ease;
}

.mx-screenshot-item:hover img {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.5), 0 0 40px var(--mx-accent-glow);
}

.mx-screenshot-label {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--mx-text-muted);
}

@media (max-width: 900px) {
    .mx-screenshot-row {
        grid-template-columns: 1fr;
    }
}

/* Services Grid */
.mx-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mx-service {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--mx-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.mx-service:hover {
    border-color: var(--mx-accent);
    box-shadow: 0 0 30px var(--mx-accent-glow);
}

.mx-service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mx-service-port {
    background: var(--mx-accent);
    color: #0a0e1a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-family: monospace;
}

.mx-service h3 {
    font-size: 1.25rem;
}

.mx-service > p {
    color: var(--mx-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mx-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mx-service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--mx-text-muted);
    border-bottom: 1px solid var(--mx-border);
}

.mx-service-features li:last-child {
    border-bottom: none;
}

.mx-service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mx-accent);
    font-weight: bold;
}

/* Pipeline Steps */
.mx-pipeline {
    max-width: 700px;
    margin: 0 auto;
}

.mx-pipeline-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.mx-pipeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--mx-accent) 0%, transparent 100%);
}

.mx-pipeline-number {
    width: 50px;
    height: 50px;
    background: var(--mx-accent);
    color: #0a0e1a;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 30px var(--mx-accent-glow);
}

.mx-pipeline-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.mx-pipeline-content p {
    color: var(--mx-text-muted);
    line-height: 1.7;
}

/* Studio Grid */
.mx-studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mx-studio-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--mx-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.mx-studio-card:hover {
    border-color: var(--mx-accent);
    transform: translateY(-2px);
}

.mx-studio-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

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

/* Moonshot Grid */
.mx-moonshot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.mx-moonshot-feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.mx-moonshot-feature:hover {
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-4px);
}

.mx-moonshot-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.mx-moonshot-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.mx-moonshot-feature p {
    color: var(--mx-text-muted);
    font-size: 0.9rem;
}

/* Tech Grid */
.mx-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mx-tech-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--mx-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.mx-tech-card h4 {
    color: var(--mx-accent);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.mx-tech-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mx-tech-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--mx-border);
    font-size: 0.9rem;
    color: var(--mx-text-muted);
}

.mx-tech-card li:last-child {
    border-bottom: none;
}

/* Package Grid */
.mx-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.mx-package-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mx-package-item:hover {
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-4px);
}

.mx-package-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.mx-package-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mx-package-item p {
    font-size: 0.875rem;
    color: var(--mx-text-muted);
}

/* CTA Box */
.mx-cta-box {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid var(--mx-accent);
    border-radius: 24px;
    box-shadow: 0 0 60px var(--mx-accent-glow);
}

.mx-cta-box h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--mx-accent);
    margin-bottom: 0.5rem;
}

.mx-cta-box p {
    color: var(--mx-text-muted);
    margin-bottom: 2rem;
}

/* Back */
.mx-back {
    padding: 2rem;
    text-align: center;
}

.mx-back a {
    color: var(--mx-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mx-back a:hover {
    color: var(--mx-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .mx-section {
        padding: 4rem 1.5rem;
    }
    
    .mx-pipeline-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mx-pipeline-step::after {
        display: none;
    }
    
    .mx-services {
        grid-template-columns: 1fr;
    }
}
