/* =========================
   Fonts
========================= */
@font-face {
    font-family: 'IRANSansWeb';
    src: url('fonts/IRANSansWeb(FaNum).eot');
    src: url('fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
         url('fonts/IRANSansWeb(FaNum).woff') format('woff'),
         url('fonts/IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* =========================
   Root
========================= */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --dark-bg: #161616;
    --dark-bg-2: #222;
    --light-bg: #f7f8fb;
    --white: #ffffff;
    --text-dark: #2f2f2f;
    --text-muted: #666;
    --text-light: #f3f3f3;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 18px 35px rgba(0, 0, 0, 0.12);
    --hero-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --transition: all 0.3s ease;
}

/* =========================
   Base
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 2;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 90px 0;
}

/* =========================
   Header
========================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: var(--text-dark);
    font-size: 0.98rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-order-btn {
    padding: 10px 20px !important;
    color: #fff !important;
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(211, 47, 47, 0.35);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: #fff;
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* =========================
   Hero
========================= */
.hero {
    background:
        radial-gradient(circle at top left, rgba(211, 47, 47, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 25%),
        linear-gradient(135deg, var(--dark-bg), var(--dark-bg-2));
    color: var(--text-light);
    padding: 150px 0 110px;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(211, 47, 47, 0.14);
    border: 1px solid rgba(211, 47, 47, 0.3);
    color: #ffd7d7;
    font-size: 0.92rem;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text h1 span {
    color: #ff6b6b;
}

.hero-text p {
    font-size: 1.08rem;
    opacity: 0.95;
    margin-bottom: 30px;
    text-align: justify;
    max-width: 95%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-features span {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #f0f0f0;
}

.hero-video {
    flex: 1;
    background: #000;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--hero-shadow);
    border: 4px solid rgba(255, 255, 255, 0.08);
}

.hero-video video {
    width: 100%;
    display: block;
}

/* =========================
   Titles
========================= */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 18px;
    color: var(--dark-bg);
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 86px;
    height: 5px;
    margin: 16px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-color), #ff7a7a);
}

.section-subtitle {
    max-width: 860px;
    margin: 0 auto 45px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 2;
}

/* =========================
   Info Grid
========================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 38px 32px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.card p {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.card ul {
    list-style: none;
    margin-top: 14px;
}

.card ul li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 12px;
}

.card ul li::before {
    content: "✔";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* =========================
   Chapters
========================= */
.chapters {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 22px;
}

.chapter-card {
    position: relative;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(211, 47, 47, 0.08);
    border-right: 5px solid var(--primary-color);
    padding: 26px 22px 22px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
    transition: var(--transition);
    overflow: hidden;
}

.chapter-card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(211,47,47,0.08), transparent 70%);
}

.chapter-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.09);
    border-right-color: #ff5b5b;
}

.chapter-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #ff6f61);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 10px 18px rgba(211,47,47,0.22);
}

.chapter-card h4 {
    font-size: 1.08rem;
    color: var(--dark-bg);
    margin-bottom: 12px;
    line-height: 1.9;
}

.chapter-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 2;
    text-align: justify;
}

/* =========================
   Testimonials
========================= */
.testimonials {
    background: var(--light-bg);
}

.test-card {
    position: relative;
    background: #fff;
    padding: 32px 30px;
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.test-card::before {
    content: '"';
    position: absolute;
    top: -8px;
    right: 20px;
    font-size: 4.4rem;
    color: rgba(211, 47, 47, 0.09);
    line-height: 1;
}

.test-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 16px;
    text-align: justify;
}

.test-card h5 {
    color: var(--primary-color);
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.test-card span {
    font-size: 0.9rem;
    color: #777;
}

/* =========================
   Order
========================= */
.order {
    background: #fff;
}

.order-box {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fff, #fbfbfb);
    padding: 50px 34px;
    border-radius: 24px;
    border: 2px dashed rgba(211, 47, 47, 0.35);
    text-align: center;
    box-shadow: var(--card-shadow);
}

.price-box {
    margin: 30px 0;
    font-size: 1.14rem;
    color: var(--text-dark);
    line-height: 2.2;
}

.total-price {
    display: block;
    margin-top: 10px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.account-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    font-size: 1.08rem;
    line-height: 2.2;
    border: 1px solid rgba(0,0,0,0.04);
}

.highlight {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.phone-highlight {
    color: var(--primary-color);
    font-weight: 800;
}

/* =========================
   Footer
========================= */
footer {
    background: #101010;
    color: #aaa;
    text-align: center;
    padding: 28px 0;
}

footer p {
    font-size: 0.95rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }

    .hero-text,
    .hero-video {
        width: 100%;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .nav {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero {
        padding: 170px 0 90px;
        clip-path: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .order-box {
        padding: 35px 20px;
    }

    .total-price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .card,
    .chapter-card,
    .test-card {
        padding: 22px 18px;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-badge {
        font-size: 0.82rem;
    }

    .highlight {
        font-size: 1.08rem;
    }
}
