/* =========================
   Fonts
   ========================= */

@font-face {
    font-family: "Tanha";
    src: url("Tanha.woff2") format("woff2"),
         url("Tanha.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Samim";
    src: url("Samim.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Chrome, Edge, Safari */
html::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Firefox */
body {
    scrollbar-width: none;
}

/* IE / Legacy */
body {
    -ms-overflow-style: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Tanha", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background-color: #fafafa;
    color: #222;
    direction: rtl;
}

/* =========================
   Reset & Base
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Tanha", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background-color: #fafafa;
    color: #222;
    direction: rtl;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Containers */

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   Header & Navigation
   ========================= */
:root {
    --header-height-desktop: 64px;
    --header-height-mobile: 52px;
}

/* نوار پیشرفت اسکرول – پایین هدر */
.scroll-progress-bar {
    position: fixed;
    top: var(--header-height-desktop);
    right: 0;
    height: 4px;
    width: 0%;
    background-color: #2f8f7f;
    z-index: 9999;
    transition: width 0.1s linear;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
    padding-left: 2rem;
    padding-right: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* لوگوی جدید کُدبانو */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-family: "Tanha", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2f8f7f; /* هم‌رنگ دکمه‌ی اصلی / رنگ سبز سایت */
}


.brand-logo {
    width: 40px;
    height: 40px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-name {
    font-family: "Samim", "Tanha", system-ui;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #666;
}

/* آیتم‌های منوی اصلی */
.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-size: 0.95rem;
    position: relative;
}

/* خط زیر متن آیتم اصلی */
.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: #2f8f7f;
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* استایل آیتم‌هایی که زیرمنو دارند */
.main-nav .has-submenu > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* فلش کوچک کنار بعضی آیتم‌ها */
.main-nav .has-submenu > a .submenu-arrow {
    font-size: 0.8rem;
    transform: translateY(1px);
}

/* نوار نامرئی بین آیتم و زیرمنو برای جلوگیری از بسته‌شدن لحظه‌ای */
.main-nav .has-submenu::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 100%;
    height: 14px;          /* این فاصله اجازه می‌دهد موس رد شود ولی :hover قطع نشود */
}

/* خود زیرمنو */
.main-nav .submenu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);  /* نزدیک‌تر به آیتم اصلی، بدون فاصله‌ی زیاد */
    list-style: none;
    margin: 0;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    min-width: 220px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1000;
}

.main-nav .submenu.submenu-wide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 0.6rem;
    min-width: 560px;

    padding: 1.2rem 1.6rem; /* فاصله داخلی استاندارد – مهم‌ترین بخش */
}



/* ستون‌های داخل زیرمنو */
.main-nav .submenu .submenu-section h4 {
    font-family: "Samim", "Tanha", system-ui;
    font-size: 0.9rem;
    margin: 0 0 0.4rem;
    color: #111827;
}

.main-nav .submenu .submenu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* فاصله بین آیتم‌های زیرمنو و خوانایی بهتر متن‌ها */
.main-nav .submenu .submenu-section ul li + li {
    margin-top: 0.3rem;
}

.main-nav .submenu .submenu-section ul li a {
    line-height: 1.8;      /* فاصله عمودی بین خطوط متن هر آیتم */
}

/* خط جداکننده‌ی نرم بین ستون‌ها */
.main-nav .submenu.submenu-wide .submenu-section {
    position: relative;
    padding-inline: 0.5rem 1rem; /* کمی فاصله داخلی، سمت راست بیشتر (RTL) */
}

.main-nav .submenu.submenu-wide .submenu-section + .submenu-section::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    bottom: 0.2rem;
    right: 0; /* چون سایت RTL است، خط بین ستون‌ها سمت راست ستون جدید می‌افتد */
    width: 1px;
    background: rgba(148, 163, 184, 0.35); /* خاکستری روشن */
}


/* لینک‌های خود زیرمنو */
.main-nav .submenu a {
    display: block;
    font-size: 0.88rem;
    padding: 0.22rem 0;
    white-space: nowrap;
    color: #374151;
}

/* روی آیتم‌های زیرمنو خط زیر نیاید */
.main-nav .submenu a::after {
    display: none;
}

.main-nav .submenu a:hover {
    color: #111827;
}

/* نمایش زیرمنو در هاور دسکتاپ */
.main-nav .has-submenu:hover > .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* فقط موبایل و تبلت عمودی: زیرمنو نداشته باشند */
@media (max-width: 768px) {
    .main-nav .submenu {
        display: none;
    }
    .main-nav .has-submenu::before {
        display: none;
    }
}


.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease,
        transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn .material-icons {
    font-size: 1.1rem;
}

.btn-primary {
    background: #2f8f7f;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.btn-secondary {
    background: #fff;
    color: #2f8f7f;
    border-color: rgba(47, 143, 127, 0.25);
}

.btn-secondary:hover {
    background: #e8f6f3;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-link-like {
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
    color: #2f8f7f;
    font-weight: 500;
    box-shadow: none;
    position: relative;
}

.btn-link-like::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.1rem;
    width: 100%;
    height: 1px;
    background: #2f8f7f;
}

.btn-link-like:hover {
    transform: none;
    box-shadow: none;
}

/* همبرگر */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem;
}

.nav-toggle-line {
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 999px;
}

/* موبایل منو */

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1200;
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-panel {
    width: min(80%, 320px);
    background: #ffffff;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    background: #e8f6f3;  /* سبز خیلی روشن هم‌خانواده‌ی رنگ اصلی */
    color: #111827;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    font-size: 1rem;
    color: inherit;
}

.mobile-nav-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-close {
    align-self: flex-start;
    padding: 0.15rem;
}

.mobile-close .material-icons {
    font-size: 1.4rem;
}

/* حالت باز */

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav.is-open .mobile-nav-panel {
    transform: translateX(0);
}

/* =========================
   Hero / Terminal
   ========================= */

.hero-section {
    padding: 3.5rem 0 2.5rem;
    background: radial-gradient(circle at 0 0, #c5f1e7 0, transparent 55%),
        radial-gradient(circle at 100% 0, #f8d7ff 0, transparent 55%),
        #f5f5f5;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 2.5rem;
}


.hero-content h1 {
    font-family: "Samim", "Tanha", system-ui;
    font-size: 1.9rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    color: #444;
    line-height: 1.9;
    text-align: justify;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 0.75rem;
}

.hero-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: #555;
    font-size: 0.9rem;
    max-width: 260px;
}

.hero-meta-item .material-icons {
    font-size: 1.1rem;
    color: #2f8f7f;
    margin-top: 0.15rem;
}

/* Terminal */

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terminal-window {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    background: #1e0a35;
    color: #f5f5f5;
    font-family: "Fira Code", "Consolas", "Courier New", monospace;
}


.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #2c001e, #5c1f4b);
    padding: 0.35rem 0.7rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.tb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.tb-close {
    background: #ff5f56;
}

.tb-min {
    background: #ffbd2e;
}

.tb-max {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.75rem;
    opacity: 0.9;
}

.terminal-body {
    margin: 0;
    padding: 1.2rem 1.4rem 1.4rem;
    background: #300a24;
    color: #f7f7f7;
    font-family: "Fira Code", Consolas, Menlo, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    direction: ltr;      /* مهم: متن داخل ترمینال چپ‌چین و LTR */
    text-align: left;    /* مهم: هم‌تراز با LTR شدن */
    white-space: pre-wrap;
    min-height: 9rem;    /* اگر نداری، این را هم بگذار تا ترمینال کوتاه نشود */
}



/* Hero image */

.hero-image-wrapper {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(4px);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   Quick Steps
   ========================= */

.quick-steps {
    padding: 2.5rem 0 1.5rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.quick-step-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.quick-icon {
    font-size: 1.8rem;
    color: #2f8f7f;
    margin-bottom: 0.5rem;
}

.quick-step-card h3 {
    font-family: "Samim", "Tanha";
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.quick-step-card p {
    margin: 0;
    color: #555;
    line-height: 1.9;
    text-align: justify;
}

/* =========================
   Feature Sections
   ========================= */

.feature-section {
    padding: 3rem 0;
}

.feature-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2.4rem;
    align-items: center;
}

.feature-reverse .feature-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
}

.feature-reverse .feature-inner {
    direction: rtl;
}

.feature-image .feature-img {
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
    object-fit: cover;
    max-height: 380px;
}

.section-text p {
    color: #555;
    line-height: 1.9;
    text-align: justify;
}

.section-text ul {
    padding-right: 1.2rem;
    margin: 0.5rem 0 1.2rem;
}

.section-text li {
    margin-bottom: 0.35rem;
}

.feature-text h2 {
    font-family: "Samim", "Tanha";
    margin: 0 0 0.7rem;
}

/* Glass strip */

.glass-strip-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #e1f4ef 0, #f7ecff 100%);
}

.glass-strip {
    border-radius: 22px;
    padding: 2rem 1.8rem;
    background: rgba(33, 80, 73, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 40px rgba(15, 54, 47, 0.28);
    backdrop-filter: blur(18px);
    color: #ffffff;
}

.glass-strip-text h2 {
    font-family: "Samim", "Tanha";
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.glass-strip-text p {
    margin: 0 0 1.3rem;
}

.glass-strip-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.glass-strip-col h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.glass-strip-col p {
    margin: 0;
}

/* =========================
   Testimonials
   ========================= */

   .testimonials {
    padding: 3rem 0 2.5rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-family: "Samim", "Tanha";
    margin-bottom: 0.6rem;
}

.section-heading p {
    margin: 0 auto;
    max-width: 600px;
}

/* دسکتاپ: کاروسل سه‌لایه */

.testimonials-slider {
    position: relative;
    max-width: 900px;
    height: 340px;
    margin: 0 auto 1.5rem;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 640px;

    background: #d1f3eb;
    border-radius: 20px;
    padding: 1.8rem 1.7rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;

    /* موقعیت و اندازه با CSS variableها کنترل می‌شود */
    transform: translateX(calc(-50% + var(--shift, 0px))) scale(var(--scale, 1));
    opacity: var(--opacity, 0);
    z-index: var(--z, 0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-avatar img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.testimonial-role {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

.testimonial-text {
    margin: 0.7rem 0 0.9rem;
    color: #555;
    line-height: 1.9;
    text-align: justify;
}

.testimonial-stars .material-icons {
    font-size: 1.1rem;
    color: #2f8f7f;
}

/* نقطه‌ها */

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}

.testimonial-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ccc;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease;
}

.testimonial-dots .dot.is-active {
    background: #2f8f7f;
    width: 16px;
}

/* ناوبری (فلش‌ها) – در موبایل نمایش داده می‌شود */

.testimonial-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    max-width: 640px;
    margin: 0 auto 0.5rem;
}

.testimonial-nav button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.testimonial-nav .material-icons {
    font-size: 1.3rem;
    color: #2f8f7f;
}

/* --- نسخه موبایل: اسکرول افقی مینیمال --- */

@media (max-width: 768px) {
    .testimonials-slider {
        position: relative;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        padding: 0 0 1rem;
        height: auto;
    }

    .testimonial-card {
        position: relative;
        left: auto;
        top: auto;
        max-width: 85%;
        min-width: 85%;
        transform: none !important;
        opacity: 1 !important;
        z-index: 1 !important;
        pointer-events: auto;
        scroll-snap-align: center;
    }

    .testimonial-nav {
        display: flex; /* فلش‌ها در موبایل دیده شوند */
    }
}


/* =========================
   FAQ
   ========================= */

.faq {
    padding: 3rem 0 2.5rem;
    background: #f7f7f9;
}

.faq-title {
    text-align: center;
    font-family: "Samim", "Tanha";
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2.5rem;
}

.faq-item h3 {
    font-family: "Samim", "Tanha";
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
}

.faq-item p {
    margin: 0;
}

/* =========================
   Support / Contact
   ========================= */

.support-section {
    padding: 3rem 0 3.5rem;
}

.support-header {
    text-align: center;
    margin-bottom: 2rem;
}

.support-header h2 {
    font-family: "Samim", "Tanha";
    margin: 0 0 0.7rem;
}

.support-header p {
    margin: 0 auto;
    max-width: 620px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.support-item {
    background: #fff;
    border-radius: 18px;
    padding: 1.4rem 1.3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    
}

.support-highlight {
    background: #d1f3eb; /* سبز خیلی روشن هماهنگ با رنگ اصلی سایت */
    box-shadow: 0 14px 35px rgba(47, 143, 127, 0.25);
    border-color: rgba(47, 143, 127, 0.4);
}

/* اگر خواستی آیکون و تیترش هم کمی پررنگ‌تر بشن: */
.support-highlight .support-icon {
    color: #27ac96;
}
.support-highlight h3 {
    color: #1f2d3a;
}


.support-icon {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 0.3rem;
}

.support-item h3 {
    margin: 0 0 0.35rem;
    font-family: "Samim", "Tanha";
}

.support-link a {
    color: #2f8f7f;
    font-size: 0.92rem;
}

.support-meta {
    margin: 0.4rem 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* =========================
   Footer
   ========================= */

.site-footer {
    background: #111827;
    color: #e5e7eb;
    margin-top: 1rem;
}

.footer-inner {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2.5rem 0 2rem;
}

.footer-brand {
    flex: 1.2;
}

.footer-brand .brand-logo {
    filter: brightness(1.2);
}

.footer-slogan {
    margin-top: 0.8rem;
    margin-bottom: 0;
    color: #d1d5db;
    line-height: 1.9;
    text-align: justify;
}

.footer-links {
    flex: 1.8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-links h4 {
    font-family: "Samim", "Tanha";
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #d1d5db;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-contact-list .material-icons {
    font-size: 1rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.footer-social {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.social-link img {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
}

/* Bottom */

.footer-bottom {
    border-top: 1px solid rgba(55, 65, 81, 0.8);
    padding: 0.7rem 0;
    font-size: 0.85rem;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #9ca3af;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-legal a.back-to-top {
    margin-right: 1rem; /* کمی فاصله از لینک قبلی */
    color: #ddd;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color .2s ease;
}

.footer-legal a.back-to-top:hover {
    color: #fff;
}
/* =========================
   Animations (Fade-in)
   ========================= */

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Responsive
   ========================= */
/* =========================
   Responsive
   ========================= */

   @media (max-width: 1024px) {
    /* هیرو: در تبلت و پایین‌تر، تک‌ستونه + ترمینال بالاتر از متن */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1; /* ترمینال بالای متن بیاد */
    }

    .feature-inner {
        grid-template-columns: 1fr;
    }

    .feature-reverse .feature-inner {
        direction: rtl;
    }

    .glass-strip-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* فوتر در تبلت: برند بالا، لینک‌ها زیرش در دو ستون */
    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.6rem 0;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* هیرو در موبایل: padding و فاصله‌ها */
    .hero-section {
        padding: 2.5rem 0 1.5rem;
    }

    .hero-grid {
        gap: 2rem;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .glass-strip-cols {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    /* فوتر در موبایل */

    footer {
        padding: 2.5rem 1.5rem; /* فاصله از دیواره‌ها */
    }

    .footer-inner {
        padding: 0 0.5rem 2rem; /* کمی فاصله داخلی برای ستون‌ها */
    }

    /* راهنما و ارتباط با کُدبانو کنار هم */
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2rem;   /* فاصله افقی بین دو ستون */
        row-gap: 1.25rem;   /* فاصله عمودی ردیف‌ها */
    }

    .footer-bottom {
        padding: 0 0.5rem;
        margin-top: 1rem;   /* فاصله حدود یک خط از ستون‌ها */
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* فونت کوچکتر برای متن ترمینال در موبایل کوچک */
    .terminal-body {
        font-size: 0.72rem;
    }

    .glass-strip {
        padding: 1.6rem 1.4rem;
    }
}
@media(max-width: 768px) {
    .scroll-progress-bar {
        top: var(--header-height-mobile);
        height: 3px; /* اسکرول بار کوچک‌تر برای موبایل */
    }
}
/* تبلت و موبایل — فاصله کمتر، هماهنگ با فوتر */
@media (max-width: 768px) {
    .header-inner {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}
