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

:root {
    /* Colors */
    --primary: #30D5C8;
    --primary-light: rgba(48, 213, 200, 0.1);
    --primary-lighter: rgba(48, 213, 200, 0.05);
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-light: #6B7280;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ==================== Base Styles ==================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-container {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, var(--white), var(--primary-lighter), var(--primary-light));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 3s ease-in-out infinite;
}

.blob-1 {
    top: 25%;
    right: 25%;
    width: 500px;
    height: 500px;
    background: var(--primary-light);
}

.blob-2 {
    bottom: 25%;
    left: 25%;
    width: 400px;
    height: 400px;
    background: rgba(48, 213, 200, 0.15);
    animation-delay: 1s;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-md);
    text-align: center;
}

.hero-label {
    margin-bottom: var(--spacing-lg);
}

.hero-label span {
    font-size: 1.875rem;
    color: var(--primary);
    font-weight: 500;
}

.hero-title {
    font-size: 3.75rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
    font-weight: 700;
}

.title-gradient {
    display: block;
    background: linear-gradient(to left, #111827, #374151, #111827);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--primary);
}

/* ==================== Dividers ==================== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.divider-thick {
    margin-top: var(--spacing-lg);
}

.line {
    height: 2px;
    width: 4rem;
}

.line-thick {
    height: 4px;
    width: 6rem;
    border-radius: var(--radius-full);
}

.line-right {
    background: linear-gradient(to right, transparent, var(--primary));
}

.line-left {
    background: linear-gradient(to left, transparent, var(--primary));
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
}

.dot-lg {
    width: 0.75rem;
    height: 0.75rem;
}

.dot-sm {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
}

/* ==================== About Section ==================== */
.about {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    background: linear-gradient(to bottom, var(--primary-lighter), transparent);
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 10;
}

/* ==================== Section Header ==================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 700;
}

/* ==================== Content Card ==================== */
.content-wrapper {
    max-width: 1024px;
    margin: 0 auto var(--spacing-3xl);
    text-align: center;
}

.content-card {
    position: relative;
    display: inline-block;
    width: 100%;
}

.corner {
    position: absolute;
    width: 4rem;
    height: 4rem;
}

.corner-tr {
    top: -1rem;
    right: -1rem;
    border-top: 4px solid rgba(48, 213, 200, 0.3);
    border-right: 4px solid rgba(48, 213, 200, 0.3);
    border-top-right-radius: var(--radius-md);
}

.corner-bl {
    bottom: -1rem;
    left: -1rem;
    border-bottom: 4px solid rgba(48, 213, 200, 0.3);
    border-left: 4px solid rgba(48, 213, 200, 0.3);
    border-bottom-left-radius: var(--radius-md);
}

.content-box {
    background: linear-gradient(to bottom right, var(--primary-lighter), var(--white), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 2px solid rgba(48, 213, 200, 0.2);
    box-shadow: var(--shadow-2xl);
    position: relative;
}

.sparkle-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.sparkle-icon svg {
    display: block;
}

.content-text {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.75;
}

.content-text p {
    margin-bottom: var(--spacing-lg);
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.text-accent {
    color: var(--primary);
    font-weight: 500;
}

.text-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: var(--spacing-lg) 0;
}

.line-sm {
    height: 1px;
    width: 5rem;
}

.line-sm.line-right {
    background: linear-gradient(to right, transparent, rgba(48, 213, 200, 0.5), transparent);
}

.line-sm.line-left {
    background: linear-gradient(to left, transparent, rgba(48, 213, 200, 0.5), transparent);
}

/* ==================== Features Section ==================== */
.features {
    position: relative;
    margin-top: var(--spacing-3xl);
}

.features-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.features-title {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    font-weight: 700;
}

.features-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.line-horizontal {
    height: 2px;
    width: 6rem;
    border-radius: var(--radius-full);
    background: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl) var(--spacing-lg);
    max-width: 1152px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    transition: transform var(--transition-base);
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.feature-icon {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.feature-icon svg {
    color: white;
}

.icon-glow {
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: var(--radius-md);
    filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(3deg);
}

.feature-item:hover .icon-glow {
    opacity: 0.4;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== CTA Section ==================== */
.cta {
    margin-top: var(--spacing-3xl);
    text-align: center;
}

.cta-wrapper {
    display: inline-block;
    position: relative;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: var(--primary);
    filter: blur(30px);
    opacity: 0.4;
    transition: opacity var(--transition-base);
    border-radius: var(--radius-md);
}

.cta-btn {
    position: relative;
    padding: 1.25rem 3rem;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.cta-wrapper:hover .cta-glow {
    opacity: 0.6;
}

.cta-text {
    margin-top: var(--spacing-lg);
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ==================== Responsive Design ==================== */

/* Tablets (640px and up) */
@media (min-width: 640px) {
    .hero-label span {
        font-size: 1.875rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 5.25rem;
    }
    
    .section-title {
        font-size: 3.75rem;
    }
    
    .content-box {
        padding: 3.5rem;
    }
    
    .content-text {
        font-size: 1.25rem;
    }
    
    .features-title {
        font-size: 3rem;
    }
}

/* Large Desktop (1024px and up) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 4.5rem;
    }
    
    .content-box {
        padding: 4rem;
    }
    
    .content-text {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-title {
        font-size: 3.75rem;
    }
}

/* Extra Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 7rem;
    }
}

/* Mobile Optimization (below 640px) */
@media (max-width: 639px) {
    .hero-content {
        padding: 4rem 1rem;
    }
    
    .hero-label span {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-box {
        padding: 2rem;
    }
    
    .content-text {
        font-size: 1rem;
    }
    
    .features-title {
        font-size: 1.75rem;
    }
    
    .feature-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .corner {
        width: 3rem;
        height: 3rem;
    }
}

/* ==================== Animation Utilities ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ==================== Print Styles ==================== */
@media print {
    .hero-bg,
    .blob,
    .about-decoration {
        display: none;
    }
    
    body {
        background: white;
    }
}
