/* =========================================
   1. CORE FOUNDATION & VARIABLES
   ========================================= */

@font-face {
    font-family: 'Kook';
    src: url('font/Kook-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* (Assume other weights are loaded similarly) */

:root {
    /* --- COLORS --- */
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #d97706;
    --telegram: #229ED9;

    /* --- BACKGROUNDS --- */
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    /* Darkened slightly for better contrast vs white */
    --bg-dark: #0f172a;

    /* --- TEXT --- */
    --text-main: #0f172a;
    --text-muted: #64748b;

    /* --- SPACING (Improved Box Model) --- */
    --container-max: 1200px;
    --section-spacing: 120px;
    /* Increased breathing room */
    --radius: 20px;

    /* --- SHADOWS --- */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Kook', 'Vazirmatn', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    padding-bottom: 80px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Alternating Section Colors (Visual Hierarchy) */
.section {
    padding: var(--section-spacing) 0;
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-subtitle {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   2. HEADER & NAV
   ========================================= */
.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    transition: 0.3s;
    display: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.desktop-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text .name {
    font-weight: 800;
    font-size: 1rem;
}

.logo-text .role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.telegram-btn {
    background: var(--telegram);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.telegram-btn:hover {
    background: #1e8bbd;
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    .desktop-header {
        display: block;
    }
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    gap: 4px;
}

.m-nav-item i {
    font-size: 1.5rem;
}

.m-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.m-nav-item.highlight {
    color: var(--telegram);
    font-weight: 700;
}

@media (min-width: 992px) {
    .mobile-nav {
        display: none;
    }
}

/* =========================================
   3. HERO & VISUAL COMPONENTS
   ========================================= */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, #f1f5f9 0%, #ffffff 70%);
}

.hero-grid {
    display: grid;
    gap: 4rem;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        text-align: right;
        align-items: center;
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #059669;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid #d1fae5;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .hero-desc {
        margin-inline: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--bg-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--bg-light);
}

/* --- REUSABLE VISUAL COMPONENT --- */
.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-visual {
        justify-content: flex-end;
    }
}

.image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

@media (min-width: 992px) {
    .image-wrapper {
        width: 450px;
        height: 450px;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    border: 8px solid white;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
}

.visual-card {
    position: absolute;
    background: white;
    padding: 12px 24px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    font-size: 0.9rem;
    animation: float 6s infinite ease-in-out;
}

.card-flutter {
    top: 40px;
    left: -30px;
    color: #02569b;
    animation-delay: 0s;
}

.card-web {
    bottom: 60px;
    right: -30px;
    color: #e34c26;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* =========================================
   4. SECTIONS
   ========================================= */

/* Story */
.story-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr 0.8fr;
        align-items: center;
    }
}

.story-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.s-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.s-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.s-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: justify;
}

/* Timeline */
.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-right: 2px solid var(--bg-light);
    padding-right: 24px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.tl-marker {
    position: absolute;
    right: -33px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg-light);
    z-index: 2;
}

.tl-content {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.timeline-item:hover .tl-content {
    transform: translateX(-8px);
    box-shadow: var(--shadow-card);
}

.tl-date {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.tl-company {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* FAQ */
.faq-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
}

.faq-question h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    padding: 0 24px;
    color: var(--text-muted);
}

.faq-item.active {
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-light);
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
    max-height: 200px;
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.fp-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.fp-role {
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.fp-bio {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.fp-socials {
    display: flex;
    gap: 12px;
}

.fp-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    transition: 0.3s;
}

.fp-socials a:hover {
    background: var(--primary);
}

.footer-links-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 576px) {
    .footer-links-area {
        flex-direction: row;
        justify-content: space-between;
    }
}

.fl-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.fl-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.fl-column a:hover {
    color: white;
}

.highlight-link {
    color: var(--telegram) !important;
    font-weight: 700;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}