/* ===============================
   styles.css (نهایی) — Combined
   Dark, minimal & responsive
   Includes modal + form + page styles
   =============================== */

/* =============================
   Variables (color system)
   ============================= */
:root{
    --bg: #0b0b0c;
    --surface: #111214;
    --surface-2: #131516;
    --muted: #9aa0a6;
    --text: #e6eef6;
    --border: rgba(255,255,255,0.04);
    --shadow: rgba(0,0,0,0.6);
    --accent-solid: #6C5CE7;           /* رنگ اصلی هایلایت */
    --accent-muted: #6b7280;           /* هایلایت خنثی */
    --accent-gradient: linear-gradient(90deg,#6C5CE7,#7C6CF0);
    --glass: rgba(255,255,255,0.02);
    --white: #ffffff;
    --black: #000000;
    --error: #ef4444;
}

/* =============================
   Global resets & base
   ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
    background: linear-gradient(180deg, var(--black) 0%, #0e0e0e 100%);
    color: var(--text);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    padding-top: 72px; /* space for fixed navbar */
}

/* Apply font to everything including buttons & inputs */
button, input, textarea, a { font-family: 'Vazirmatn', Tahoma, sans-serif; }

/* =============================
   NAVBAR
   ============================= */
.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: rgba(10,10,11,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    box-shadow: 0 6px 22px var(--shadow);
    border-bottom: 1px solid var(--border);
}
.nav-links{
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    list-style: none;
}
.nav-links a{
    color: var(--muted);
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    font-size: 0.98rem;
    font-weight: 600;
    position: relative;
    border-radius: 8px;
}
.nav-links a:hover{
    color: var(--text);
    background: rgba(255,255,255,0.02);
    transform: translateY(-3px);
}
.nav-links a::before{
    content: '';
    position: absolute;
    bottom: 6px;
    right: 10px;
    width: 0;
    height: 2px;
    background: var(--accent-solid);
    border-radius: 2px;
    transition: width 0.28s ease;
    opacity: 0.95;
}
.nav-links a:hover::before{ width: calc(100% - 20px); }

/* =============================
   HERO
   ============================= */
.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content { max-width: 900px; margin: auto; z-index: 2; }
.hero h1 {
    font-size: 3.4rem;
    line-height: 1.03;
    margin-bottom: 0.6rem;
    color: var(--text);
    font-weight: 800;
}
.hero h1 .accent {
    background: linear-gradient(90deg,#8B80FF,#6C5CE7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    color: rgba(230,238,246,0.9);
    font-size: 1.15rem;
    margin-bottom: 1.6rem;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}
.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.buy-btn {
    padding: 0.95rem 1.6rem;
    border-radius: 12px;
    font-weight: 800;
    background: var(--accent-solid);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(108,92,231,0.12);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.buy-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(108,92,231,0.14); }

/* buy-ghost: بردر شبیه اما شفاف/گِست */
.buy-btn.buy-ghost {
    background: transparent;
    color: var(--accent-solid);
    border: 1px solid var(--accent-solid);
    box-shadow: none;
    padding: 0.78rem 1.4rem;
}
.buy-btn.buy-ghost:hover { background: rgba(108,92,231,0.06); color: #fff; border-color: var(--accent-solid); }

/* floating blob */
.blob{
    position: absolute;
    width: 520px;
    height: 520px;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    animation: blobMove 30s ease-in-out infinite;
    filter: blur(36px);
    opacity: 0.12;
    z-index: 0;
}

/* =============================
   PRICING
   ============================= */
.pricing{
    padding: 5rem 8%;
    background: transparent;
}
.section-title{
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}
.section-title h2{
    font-size: 2rem;
    color: var(--text);
    display: inline-block;
}
.section-title::after{
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 3px;
    background: rgba(255,255,255,0.03);
    border-radius: 2px;
}
.pricing-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.pricing-card{
    background: var(--surface);
    border-radius: 12px;
    padding: 1.8rem 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}
.pricing-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 22px 46px rgba(0,0,0,0.65);
    border-color: rgba(255,255,255,0.06);
}
.pricing-card.popular{
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 18px 46px rgba(0,0,0,0.68);
}
.popular-tag{
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.pricing-card h3{
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--muted);
}
.price{
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text);
}
.price span{
    font-size: 0.9rem;
    color: var(--muted);
}
.features{
    list-style: none;
    margin: 1rem 0 1.2rem;
    padding: 0;
    color: var(--muted);
    text-align: right;
}
.features li{
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    font-size: 0.95rem;
}
.features li:last-child{ border-bottom: none; }
.buy-plan {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 999px;
    display: inline-block;
    margin-top: 0.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

/* =============================
   FEATURES & WHAT CARD
   ============================= */
.features-section{
    padding: 4.5rem 8%;
    background: transparent;
}
.features-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.feature-card{
    background: var(--surface-2);
    padding: 1.4rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 26px rgba(0,0,0,0.55);
}
.feature-card h3{
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.feature-card h3 svg{
    width: 22px;
    height: 22px;
    fill: var(--muted);
    flex-shrink: 0;
}
.feature-card p{
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* what-card: کارت سلف چیست (کوچکتر و انیمیشنی) */
.what-section { padding: 3.5rem 8%; }
.what-wrapper { max-width: 860px; margin: 0 auto; }
.what-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
    padding: 16px;                /* کوچکتر شده */
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 36px rgba(0,0,0,0.55);
    opacity: 0;
    transform: translateY(14px) scale(.995); /* مخفی اولیه */
    transition: opacity .6s cubic-bezier(.2,.9,.25,1), transform .6s cubic-bezier(.2,.9,.25,1);
}
.what-card.reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.what-card h3 { font-size:1.12rem; color:var(--text); margin-bottom:8px; }
.what-features { list-style: none; margin-top:12px; padding-right:0; color:var(--muted); }
.what-features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.02); }
.what-features li:last-child { border-bottom: none; }

/* =============================
   SUPPORT CENTRAL (متمرکز)
   ============================= */
.support-main .support-card{
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 24px;
    border-radius: 12px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border);
}
.support-main h2{ margin-bottom: 8px; color: var(--text); }
.support-main p{ color: var(--muted); }

/* =============================
   FOOTER
   ============================= */
footer{
    padding: 2.2rem 1rem;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* =============================
   BLOB ANIMATION
   ============================= */
@keyframes blobMove{
    0%,100%{ transform: translateY(-50%) rotate(0deg) scale(1); }
    50%{ transform: translateY(-55%) rotate(140deg) scale(1.05); }
}

/* =============================
   MODAL (backdrop, blur, animation)
   ============================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    background: rgba(6,6,8,0.45);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
    width: 100%;
    max-width: 640px;
    margin: 20px;
    background: linear-gradient(180deg, #0e0e0e, #121212);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: translateY(24px) scale(.98);
    opacity: 0;
    transition: all .26s cubic-bezier(.2,.9,.25,1);
}
.modal-backdrop.open .modal { transform: none; opacity: 1; }
.modal header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.modal h2{ color: var(--text); font-size:1.15rem; margin: 0; }
.modal .close-btn{ background: transparent; border: 0; color: rgba(255,255,255,0.75); font-size: 26px; cursor: pointer; }

/* =============================
   FORM (container + inputs + buttons)
   ============================= */
.container {
    background: linear-gradient(180deg, #0e0e0e 0%, var(--surface) 100%);
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.02);
    width: 100%;
    text-align: right;
    position: relative;
    overflow: hidden;
}
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border-radius: 14px 14px 0 0;
}
h2 { font-weight: 700; color: var(--white); }
.plan-info { background: rgba(255,255,255,0.03); padding: 12px; border-radius: 12px; margin-bottom: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.03); }
.plan-info p { margin: 6px 0; color: var(--white); font-weight: 600; }
.price { font-size: 16px; font-weight: 800; color: var(--white); }

form { display: flex; flex-direction: column; }
.input-group { margin-bottom: 12px; position: relative; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    font-size: 15px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.02);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
input:focus, textarea:focus { border-color: rgba(255,255,255,0.18); box-shadow: 0 0 0 6px rgba(255,255,255,0.03); }
.error-message { color: var(--error); font-size: 13px; margin-top: 6px; display: none; font-weight: 600; }
textarea { resize: vertical; min-height: 90px; }

/* submit */
.submit-btn {
    position: relative;
    padding: 10px 0;
    height: 44px;
    width: 100%;
    background: var(--accent-solid);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all .18s ease;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.submit-btn.loading { opacity: 0.85; transform: translateY(0); }
.btn-text { z-index: 2; }
.spinner {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%,-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    opacity: 0;
    animation: spin .8s linear infinite;
    transition: opacity .15s ease;
}
.submit-btn.loading .spinner { opacity: 1; }
@keyframes spin { to { transform: translate(50%,-50%) rotate(360deg); } }

/* input error animation */
.input-error { border-color: var(--error) !important; animation: shake .36s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%,90%{ transform: translateX(-2px); } 20%,80%{ transform: translateX(4px); } 30%,50%,70%{ transform: translateX(-6px); } 40%,60%{ transform: translateX(6px); } }

/* =============================
   Responsive tweaks
   ============================= */
@media (max-width: 1024px){
    .hero{ padding: 3rem 6%; min-height: calc(100vh - 64px); }
    .hero h1{ font-size: 2.8rem; }
    .blob{ width: 420px; height: 420px; right: -120px; opacity: 0.10; filter: blur(32px); }
    .pricing{ padding: 4.5rem 6%; }
    .features-section{ padding: 3.5rem 6%; }
    .what-wrapper { padding: 0 12px; }
}
@media (max-width: 768px){
    .nav-links{ gap: 1rem; }
    .hero{ padding: 2.5rem 5%; min-height: 70vh; align-items: flex-start; padding-top: 6.5rem; }
    .hero h1{ font-size: 2.2rem; }
    .hero p{ font-size: 1rem; }
    .pricing{ padding: 3rem 5%; }
    .pricing-cards{ gap: 1rem; }
    .pricing-card{ padding: 1.25rem; border-radius: 10px; }
    .features-grid{ gap: 1rem; }
    .blob{ right: -160px; width: 300px; height: 300px; opacity: 0.08; filter: blur(28px); }
}
@media (max-width: 480px){
    .nav-links{ gap: 0.6rem; }
    .nav-links a{ font-size: 0.86rem; padding: 0.28rem 0.5rem; }
    .hero{ padding: 2rem 4%; min-height: 62vh; padding-top: 6.2rem; }
    .hero h1{ font-size: 1.8rem; line-height: 1.05; }
    .hero p{ font-size: 0.98rem; }
    .pricing{ padding: 2rem 4%; }
    .pricing-card{ padding: 0.95rem; }
    .price{ font-size: 1.6rem; }
    .features-section{ padding: 2rem 4%; }
    .support-info{ gap: 8px; }
    .bot-image{ max-width: 240px; margin: 18px auto 8px; }
    .blob{ display: none; }
    .what-card { padding: 14px; }
}
@media (max-width: 360px){
    .hero h1{ font-size: 1.6rem; }
    .price{ font-size: 1.4rem; }
    .nav-links{ gap: 0.5rem; }
}

/* =============================
   Utility & small helpers
   ============================= */
.hidden { display:none !important; }
.center { display:flex; align-items:center; justify-content:center; }

/* =============================
   End of file
   ============================= */
