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

body {
    font-family: 'IRANSansX', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    overflow-x: hidden;
}

/* Main Container */
.mimo-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 50%, #faf5ff 100%);
    overflow: hidden;
    position: relative;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    cursor: pointer;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

@media (min-width: 1024px) {
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* Images Section */
.images-section {
    position: relative;
    height: 494px;
    margin-top: 3rem;
}

.desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: block;
    }
    
    .mobile-only {
        display: none;
    }
    
    .images-section.desktop-only {
        order: 2;
    }
    
    .content-section {
        order: 1;
    }
}

/* Decorative Blobs */
.blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(60px);
    opacity: 0.25;
}

.blob-1 {
    top: 25%;
    right: -1rem;
    background: #ddd6fe;
    animation: blob1 6s ease-in-out infinite;
}

.blob-2 {
    bottom: 25%;
    left: -1rem;
    background: #e9d5ff;
    animation: blob2 7s ease-in-out infinite 0.5s;
}

@media (max-width: 1023px) {
    .blob {
        width: 240px;
        height: 240px;
    }
}

@keyframes blob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -15px) scale(1.15);
    }
}

@keyframes blob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-15px, 20px) scale(1.2);
    }
}

/* Images Container */
.images-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Cards */
.image-card {
    position: absolute;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom center;
}

.image-card.main-card {
    z-index: 20;
}

/* Desktop Positions */
@media (min-width: 1024px) {
    .image-card[data-id="far-left"] {
        transform: translateX(-200px) rotate(-25deg) scale(0.7);
        z-index: 11;
    }
    
    .image-card[data-id="left"] {
        transform: translateX(-100px) rotate(-15deg) scale(0.8);
        z-index: 14;
    }
    
    .image-card[data-id="center"] {
        transform: translateX(0) rotate(0deg) scale(1);
        z-index: 20;
    }
    
    .image-card[data-id="right"] {
        transform: translateX(100px) rotate(15deg) scale(0.8);
        z-index: 14;
    }
    
    .image-card[data-id="far-right"] {
        transform: translateX(200px) rotate(25deg) scale(0.7);
        z-index: 11;
    }
}

/* Mobile Positions */
@media (max-width: 1023px) {
    .images-section {
        height: 420px;
        margin: 1.5rem 0;
    }
    
    .image-card[data-id="far-left-mobile"] {
        transform: translateX(-162px) rotate(-25deg) scale(0.7);
        z-index: 11;
    }
    
    .image-card[data-id="left-mobile"] {
        transform: translateX(-90px) rotate(-15deg) scale(0.8);
        z-index: 14;
    }
    
    .image-card[data-id="center-mobile"] {
        transform: translateX(0) rotate(0deg) scale(1);
        z-index: 20;
    }
    
    .image-card[data-id="right-mobile"] {
        transform: translateX(90px) rotate(15deg) scale(0.8);
        z-index: 14;
    }
    
    .image-card[data-id="far-right-mobile"] {
        transform: translateX(162px) rotate(25deg) scale(0.7);
        z-index: 11;
    }
}

/* Active State */
.image-card.active {
    transform: translateX(0) translateY(-30px) rotate(0deg) scale(1) !important;
    z-index: 50 !important;
}

.image-card.inactive {
    opacity: 0.3;
    filter: blur(8px);
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.image-card:not(.main-card) .image-wrapper {
    animation: floatSide 3.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatSide {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.image-wrapper img {
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 25px 50px rgba(139, 92, 246, 0.25));
}

@media (min-width: 1024px) {
    .image-card[data-id="far-left"] img,
    .image-card[data-id="far-right"] img {
        height: 270px;
    }
    
    .image-card[data-id="left"] img,
    .image-card[data-id="right"] img {
        height: 291px;
    }
    
    .image-card[data-id="center"] img {
        height: 374px;
    }
    
    .image-card.active img {
        height: 546px;
        filter: drop-shadow(0 30px 60px rgba(139, 92, 246, 0.3));
    }
    
    .image-card.inactive img {
        height: 250px;
    }
}

@media (max-width: 1023px) {
    .image-card[data-id="far-left-mobile"] img,
    .image-card[data-id="far-right-mobile"] img {
        height: 230px;
    }
    
    .image-card[data-id="left-mobile"] img,
    .image-card[data-id="right-mobile"] img {
        height: 250px;
    }
    
    .image-card[data-id="center-mobile"] img {
        height: 334px;
    }
    
    .image-card.active img {
        height: 546px;
        filter: drop-shadow(0 30px 60px rgba(139, 92, 246, 0.3));
    }
}

/* Badges */
.badge {
    position: absolute;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    animation: badgeFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: scale(0);
}

@keyframes badgeFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.badge:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.badge-top {
    top: -0.75rem;
    right: -0.75rem;
}

.badge-bottom {
    bottom: -0.75rem;
    right: -0.75rem;
}

/* Tighter, inside-corner placement for far-right rotated image */
.image-card[data-id="far-right"] .badge-bottom,
.image-card[data-id="far-right-mobile"] .badge-bottom {
    bottom: 0.5rem;
    left: 0.5rem;
    right: auto;
}

@media (min-width: 1024px) {
    .badge {
        border-radius: 1rem;
    }
    
    .badge-top {
        top: -1rem;
        right: -1rem;
    }
    
    .badge-bottom {
        bottom: -1rem;
        right: -1rem;
    }
    
    .image-card[data-id="far-right"] .badge-bottom {
        bottom: 0.75rem;
        left: 0.75rem;
        right: auto;
    }
    
    .image-card.active .badge-top {
        top: -0.75rem;
        right: -0.75rem;
    }
    
    .image-card.active .badge-bottom {
        bottom: -0.75rem;
        right: -0.75rem;
    }
    
    .image-card.active[data-id="far-right"] .badge-bottom {
        bottom: 0.75rem;
        left: 0.75rem;
        right: auto;
    }
}

/* Badge with Icon */
.badge-icon {
    background: white;
    padding: 0.375rem 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    min-height: fit-content;
    max-width: fit-content;
}

@media (min-width: 1024px) {
    .badge-icon {
        padding: 0.5rem 0.75rem;
    }
}

.badge-icon .badge-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.badge-icon > div {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 1024px) {
    .badge-icon > div {
        gap: 0.125rem;
    }
}

.badge-icon-circle {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .badge-icon-circle {
        width: 0.875rem;
        height: 0.875rem;
    }
}

.badge-icon-circle svg {
    width: 0.5rem;
    height: 0.5rem;
    color: white;
}

@media (min-width: 1024px) {
    .badge-icon-circle svg {
        width: 0.625rem;
        height: 0.625rem;
    }
}

/* Badge Colors */
.badge-teal {
    background: linear-gradient(to bottom right, #14b8a6, #06b6d4);
}

.badge-violet {
    background: linear-gradient(to bottom right, #8b5cf6, #a855f7);
}

.badge-amber {
    background: linear-gradient(to bottom right, #f59e0b, #eab308);
}

.badge-gradient {
    color: white;
    padding: 0.375rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: fit-content;
}

@media (min-width: 1024px) {
    .badge-gradient {
        padding: 0.5rem 0.75rem;
    }
}

.badge-emerald {
    background: linear-gradient(to right, #10b981, #22c55e);
}

.badge-orange {
    background: linear-gradient(to right, #fb923c, #f87171);
}

/* Badge Text */
.badge-text-small {
    font-size: 0.625rem;
    color: #64748b;
}

@media (min-width: 1024px) {
    .badge-text-small {
        font-size: 0.75rem;
    }
}

.badge-gradient .badge-text-small {
    font-size: 0.625rem;
    color: white;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .badge-gradient .badge-text-small {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

.badge-icon .badge-text-small {
    font-size: 0.625rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .badge-icon .badge-text-small {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

.badge-text-large {
    font-size: 0.75rem;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .badge-text-large {
        font-size: 0.875rem;
    }
}

.badge-gradient .badge-text-large {
    font-size: 0.875rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .badge-gradient .badge-text-large {
        font-size: 1rem;
        line-height: 1.2;
    }
}

.badge-icon .badge-text-large {
    font-size: 0.875rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .badge-icon .badge-text-large {
        font-size: 1rem;
        line-height: 1.2;
    }
}

/* Badge Glow */
.badge-glow {
    position: absolute;
    inset: -0.25rem;
    border-radius: 1rem;
    z-index: -10;
    opacity: 0.2;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.badge-teal-glow {
    background: linear-gradient(to right, #14b8a6, #06b6d4);
}

.badge-violet-glow {
    background: linear-gradient(to right, #8b5cf6, #a855f7);
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background: #a78bfa;
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 2.5s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-25px);
        opacity: 0.5;
    }
}

/* Content Section */
.content-section {
    position: relative;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    text-align: right;
}

@media (min-width: 1024px) {
    .content-section {
        padding-right: 2rem;
    }
}

/* Header Badge */
.header-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #8b5cf6, #a855f7, #d946ef);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    font-size: 0.75rem;
    animation: fadeInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.header-badge svg {
    width: 1rem;
    height: 1rem;
}

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

/* Main Heading */
.main-heading {
    padding-top: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}

@media (min-width: 1024px) {
    .main-heading {
        padding-top: 7rem;
    }
}

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

.main-heading h1 {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .main-heading h1 {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .main-heading h1 {
        font-size: 2.25rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, #7c3aed, #9333ea, #c026d3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typewriter Box */
.typewriter-box {
    position: relative;
    max-width: 56rem;
}

.typewriter-glow {
    position: absolute;
    inset: -0.25rem;
    background: linear-gradient(to right, #a78bfa, #c084fc, #e879f9);
    border-radius: 1.5rem;
    opacity: 0.2;
    filter: blur(16px);
    transition: opacity 0.5s;
}

.typewriter-box:hover .typewriter-glow {
    opacity: 0.3;
}

.typewriter-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.typewriter-text {
    font-size: 1.125rem;
    background: linear-gradient(to right, #7c3aed, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #64748b;
}

@media (min-width: 768px) {
    .typewriter-text {
        font-size: 1.25rem;
    }
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.25rem;
    background: #8b5cf6;
    margin-right: 0.25rem;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .features-grid {
        margin-top: 10vh;
    }
}

.feature-card {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.feature-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.feature-icon-violet {
    background: linear-gradient(to bottom right, #8b5cf6, #a855f7);
}

.feature-icon-emerald {
    background: linear-gradient(to bottom right, #10b981, #22c55e);
}

.feature-icon-amber {
    background: linear-gradient(to bottom right, #f59e0b, #f97316);
}

.feature-icon-pink {
    background: linear-gradient(to bottom right, #ec4899, #f43f5e);
}

.feature-text h3 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.feature-text p {
    font-size: 0.75rem;
    color: #64748b;
}

/* CTA Section */
.cta-section {
    padding-top: 1.5rem;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(to right, #7c3aed, #9333ea, #c026d3);
    color: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-button {
        width: auto;
    }
}

.cta-button:hover {
    background: linear-gradient(to right, #6d28d9, #7e22ce, #a21caf);
}

.cta-button svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    transition: transform 0.3s;
}

.cta-button:hover svg {
    transform: translateX(0.25rem);
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .mobile-only {
        display: block;
    }
}
