/* ============================================
   JUZ40 PAGE - Professional Modern Design
   Заманауи, жүйелі, профессионал дизайн
   ============================================ */

/* === CSS Variables === */
.juz40 {
    --juz40-accent: #0ea5e9;
    --juz40-accent-rgb: 14, 165, 233;
    --juz40-accent-dark: #0284c7;
    --juz40-gold: #f59e0b;
    --juz40-success: #10b981;
    --juz40-bg: #ffffff;
    --juz40-bg-alt: #f8fafc;
    --juz40-text: #0f172a;
    --juz40-text-muted: #64748b;
    --juz40-border: #e2e8f0;
    --juz40-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --juz40-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* === Base Container === */
.juz40 {
    background: var(--juz40-bg);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Ensure footer sticks to bottom if content is short, but also removes extra space below */
.juz40-footer {
    margin-top: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.juz40-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: center;
}

.juz40-hero-content {
    max-width: 560px;
}

.juz40-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(var(--juz40-accent-rgb), 0.08), rgba(var(--juz40-accent-rgb), 0.04));
    border: 1px solid rgba(var(--juz40-accent-rgb), 0.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--juz40-accent-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.juz40-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--juz40-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.juz40-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--juz40-text);
    margin: 24px 0 20px;
}

.juz40-title span {
    background: linear-gradient(135deg, var(--juz40-accent) 0%, var(--juz40-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.juz40-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--juz40-text-muted);
    margin-bottom: 32px;
}

.juz40-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.juz40-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--juz40-text);
}

.juz40-highlights li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: var(--juz40-success);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.juz40-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--juz40-text);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.juz40-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #1e293b;
}

.juz40-cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.juz40-cta:hover::after {
    transform: translateX(4px);
}

.juz40-contact {
    margin-top: 20px;
    font-size: 14px;
    color: var(--juz40-text-muted);
}

.juz40-contact a {
    color: var(--juz40-accent);
    text-decoration: none;
    font-weight: 500;
}

/* Hero Visual - Stats Cards */
.juz40-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.juz40-hero-card {
    background: var(--juz40-bg);
    border: 1px solid var(--juz40-border);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: var(--juz40-card-shadow);
    transition: all 0.3s ease;
}

.juz40-hero-card:hover {
    box-shadow: var(--juz40-card-shadow-hover);
    transform: translateY(-2px);
    border-color: rgba(var(--juz40-accent-rgb), 0.3);
}

.juz40-hero-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--juz40-text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.juz40-hero-label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--juz40-text-muted);
    font-weight: 500;
}

/* ============================================
   STATS SECTION
   ============================================ */
.juz40-stats {
    background: var(--juz40-bg-alt);
    padding: 64px 24px;
    border-top: 1px solid var(--juz40-border);
    border-bottom: none !important;
}

.juz40-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.juz40-stat {
    text-align: center;
    padding: 24px;
}

.juz40-stat h3 {
    font-size: 42px;
    font-weight: 800;
    color: var(--juz40-text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1;
}

.juz40-stat p {
    font-size: 14px;
    color: var(--juz40-text-muted);
    line-height: 1.5;
}

/* ============================================
   SECTION BASE
   ============================================ */
.juz40-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.juz40-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--juz40-text);
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    text-align: center;
}

.juz40-section-subtitle {
    font-size: 16px;
    color: var(--juz40-text-muted);
    text-align: center;
    max-width: 600px;
    margin: -32px auto 48px;
    line-height: 1.6;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.juz40-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.juz40-card {
    background: var(--juz40-bg);
    border: 1px solid var(--juz40-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.juz40-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--juz40-accent), var(--juz40-accent-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.juz40-card:hover {
    box-shadow: var(--juz40-card-shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.juz40-card:hover::before {
    opacity: 1;
}

.juz40-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(var(--juz40-accent-rgb), 0.1), rgba(var(--juz40-accent-rgb), 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--juz40-accent);
}

.juz40-card-icon svg {
    width: 24px;
    height: 24px;
}

.juz40-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--juz40-text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.juz40-card p {
    font-size: 15px;
    color: var(--juz40-text-muted);
    line-height: 1.6;
}

/* ============================================
   PLATFORM SECTION
   ============================================ */
.juz40-platform {
    background: var(--juz40-text);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.juz40-platform::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--juz40-accent-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.juz40-platform-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.juz40-platform-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.juz40-platform-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.juz40-platform-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.juz40-point {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.juz40-point svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.juz40-point:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.juz40-point:hover svg {
    opacity: 1;
}

/* ============================================
   TIMER SECTION
   ============================================ */
.juz40-timer {
    padding: 80px 24px;
    background: linear-gradient(135deg, rgba(var(--juz40-accent-rgb), 0.04) 0%, var(--juz40-bg) 100%);
    margin-bottom: 0 !important;
    padding-bottom: 80px;
    /* Keep padding but ensure no margin push */
}

.juz40-timer-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--juz40-bg);
    border: 1px solid var(--juz40-border);
    border-radius: 24px;
    box-shadow: var(--juz40-card-shadow);
}

.juz40-timer-card p:first-child {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--juz40-text-muted);
    margin-bottom: 24px;
}

/* Countdown Timer */
.juz40-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.juz40-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.juz40-countdown-number {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--juz40-text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: all 0.15s ease;
}

.juz40-countdown-number.juz40-countdown-flip {
    transform: scale(1.1);
    color: var(--juz40-accent);
}

.juz40-countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--juz40-text-muted);
    margin-top: 8px;
    font-weight: 500;
}

.juz40-countdown-separator {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    color: var(--juz40-text-muted);
    opacity: 0.4;
    margin-bottom: 20px;
}

.juz40-timer-card>span {
    display: block;
    font-size: 15px;
    color: var(--juz40-text-muted);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.juz40-testimonial {
    padding: 80px 24px;
}

.juz40-testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--juz40-bg);
    border: 1px solid var(--juz40-border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--juz40-card-shadow);
    position: relative;
}

.juz40-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 32px;
    left: 40px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--juz40-accent);
    opacity: 0.15;
    line-height: 1;
}

.juz40-testimonial-card h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--juz40-text-muted);
    margin-bottom: 8px;
}

.juz40-testimonial-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--juz40-text);
    margin-bottom: 24px;
}

.juz40-testimonial-card h3 span {
    color: var(--juz40-accent);
}

.juz40-testimonial-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--juz40-text-muted);
    margin-bottom: 12px;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.juz40-grid-pricing {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    padding-top: 24px;
}

.juz40-grid-pricing .juz40-card {
    text-align: center;
    padding: 40px 32px;
    overflow: visible;
}

/* Featured карточкадағы үстіңгі сызықты өшіру */
.juz40-grid-pricing .juz40-card.featured::before {
    display: none;
}

.juz40-grid-pricing .juz40-card.featured {
    border: 2px solid var(--juz40-accent);
    position: relative;
}

.juz40-grid-pricing .juz40-card.featured::after {
    content: 'ТОП';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--juz40-accent);
    color: #fff;
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    z-index: 10;
}

.juz40-grid-pricing .juz40-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.juz40-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--juz40-text);
    margin: 20px 0;
    line-height: 1.2;
}

.juz40-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--juz40-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.juz40-footer {
    background: var(--juz40-bg-alt);
    padding: 48px 24px;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

.juz40-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    border: none !important;
}

.juz40-footer::before,
.juz40-footer::after {
    display: none !important;
}

.juz40-footer h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--juz40-text);
    margin-bottom: 8px;
}

.juz40-footer p {
    font-size: 14px;
    color: var(--juz40-text-muted);
    line-height: 1.6;
}

.juz40-footer a,
.juz40-contact a {
    color: var(--juz40-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.juz40-footer a:hover,
.juz40-contact a:hover {
    color: var(--juz40-accent-dark);
    text-decoration: underline;
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] .juz40 {
    --juz40-bg: #0f172a;
    --juz40-bg-alt: #1e293b;
    --juz40-text: #f1f5f9;
    --juz40-text-muted: #94a3b8;
    --juz40-border: #334155;
    --juz40-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    --juz40-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .juz40-badge {
    color: var(--juz40-accent);
}

[data-theme="dark"] .juz40-cta {
    background: var(--juz40-accent);
}

[data-theme="dark"] .juz40-cta:hover {
    background: var(--juz40-accent-dark);
}

[data-theme="dark"] .juz40-platform {
    background: #1e293b;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .juz40-hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 60px 24px 48px;
    }

    .juz40-hero-visual {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .juz40-hero-card {
        flex: 1;
        min-width: 140px;
    }

    .juz40-stats-inner,
    .juz40-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .juz40-grid-pricing {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .juz40-platform-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .juz40-hero {
        padding: 48px 20px 40px;
    }

    .juz40-title {
        font-size: 32px;
    }

    .juz40-stats-inner {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .juz40-stat h3 {
        font-size: 28px;
    }

    .juz40-section {
        padding: 56px 20px;
    }

    .juz40-section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .juz40-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .juz40-card {
        padding: 24px;
    }

    .juz40-platform {
        padding: 56px 20px;
    }

    .juz40-platform-text h2 {
        font-size: 28px;
    }

    .juz40-platform-points {
        grid-template-columns: 1fr;
    }

    .juz40-timer {
        padding: 56px 20px;
    }

    .juz40-timer-card {
        padding: 32px 24px;
    }

    .juz40-countdown {
        gap: 4px;
    }

    .juz40-countdown-item {
        min-width: 60px;
    }

    .juz40-countdown-number {
        font-size: 28px;
    }

    .juz40-countdown-label {
        font-size: 10px;
    }

    .juz40-countdown-separator {
        font-size: 24px;
    }

    .juz40-testimonial-card {
        padding: 32px 24px;
    }

    .juz40-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.juz40-hero-content,
.juz40-hero-visual,
.juz40-stat,
.juz40-card {
    animation: fadeInUp 0.6s ease-out both;
}

.juz40-hero-content {
    animation-delay: 0.1s;
}

.juz40-hero-visual {
    animation-delay: 0.2s;
}

.juz40-stat:nth-child(1) {
    animation-delay: 0.1s;
}

.juz40-stat:nth-child(2) {
    animation-delay: 0.15s;
}

.juz40-stat:nth-child(3) {
    animation-delay: 0.2s;
}

.juz40-stat:nth-child(4) {
    animation-delay: 0.25s;
}