/**
Theme Name: Dastyar Wordpress
Theme URI: https://www.dastyarwordpress.ir/
Author: Dastyar Wordpress
Author URI: https://dastyarwordpress.ir/
Description: The DatsyarWordpress website theme.
Version: 1.1
Requires at least: 5.3
Tested up to: 6.5
Requires PHP: 7.2
Text Domain: dastyarwordpress
Domain Path: /languages
 */

/* =========================================
   CSS RESET
========================================= */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent; }
body { line-height:1; }
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display:block; }
nav ul { list-style:none; }
blockquote, q { quotes:none; }
blockquote:before, blockquote:after, q:before, q:after { content:''; content:none; }
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
ins { text-decoration:none; }
mark { background: var(--second-color); color: #FFF; padding: 1px 5px; font-size: 10px; font-style: normal; font-weight: 400; display: inline-block; border-radius: 4px; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
table { border-collapse:collapse; border-spacing:0; }
hr { display:block; height:1px; border:0; border-top:1px solid #cccccc; margin:1em 0; padding:0; }
input, select { vertical-align:middle; }

/* =========================================
   VARIABLES & GLOBALS
========================================= */
:root {
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary-color: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Estedad', Tahoma, sans-serif; }
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    background-image:
            radial-gradient(at 0% 0%, hsla(253,16%,7%,0.04) 0, transparent 50%),
            radial-gradient(at 100% 0%, hsla(339,49%,30%,0.04) 0, transparent 50%);
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 6rem 0; }
.text-center { text-align: center; }

/* =========================================
   BUTTONS
========================================= */
.btn {
    padding: 0.8rem 1.8rem; border-radius: 12px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--primary-gradient); color: white; border: none; box-shadow: 0 8px 15px -3px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.4); }
.btn-secondary { background: white; color: var(--text-main); border: 1px solid #cbd5e1; }
.btn-secondary:hover { background: #f1f5f9; border-color: #94a3b8; }

/* =========================================
   HEADER & NAVIGATION
========================================= */
header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 1000; transition: var(--transition);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: var(--transition); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-color); }

/* Mobile Menu Elements (Hidden on Desktop) */
.menu-toggle-checkbox { display: none; }
.menu-toggle-label { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.menu-toggle-label span { width: 25px; height: 3px; background: var(--text-main); border-radius: 3px; transition: var(--transition); }
.mobile-only-btn { display: none; }

/* =========================================
   HERO SECTION
========================================= */
.hero { display: flex; align-items: center; min-height: 100vh; gap: 4rem; padding-top: 6rem; padding-bottom: 3rem; }
.hero-content { flex: 1.1; }
.badge { display: inline-block; padding: 0.5rem 1rem; background: rgba(79, 70, 229, 0.1); color: #4f46e5; border-radius: 50px; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3.5rem; line-height: 1.3; font-weight: 900; margin-bottom: 1.5rem; color: #0f172a; }
.hero h1 span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 90%; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { flex: 0.9; position: relative; }

/* Chat Mockup */
.glass-panel {
    background: var(--card-bg); backdrop-filter: blur(16px); border: 1px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); position: relative; z-index: 10;
}
.chat-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.chat-bubble { padding: 1rem 1.5rem; border-radius: var(--radius-md); font-size: 0.9rem; max-width: 85%; line-height: 1.7; }
.chat-user { background: #eef2ff; color: #3730a3; border-bottom-right-radius: 4px; margin-right: auto; font-weight: 500; }
.chat-ai { background: white; color: var(--text-main); border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; margin-left: auto; box-shadow: var(--shadow-sm); }
.blob { position: absolute; filter: blur(70px); z-index: 1; border-radius: 50%; opacity: 0.6; }
.blob-1 { top: -40px; right: -40px; width: 280px; height: 280px; background: #c084fc; }
.blob-2 { bottom: -40px; left: -40px; width: 320px; height: 320px; background: #818cf8; }

/* =========================================
   INTEGRATIONS
========================================= */
.integrations { border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 2.5rem 0; background: var(--bg-white); }
.integrations p { text-align: center; color: #94a3b8; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: 0.5px; }
.logo-strip { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; align-items: center; opacity: 0.7; filter: grayscale(100%); transition: var(--transition); }
.logo-strip:hover { opacity: 1; filter: grayscale(0%); }
.logo-item { font-size: 1.2rem; font-weight: bold; display: flex; align-items: center; gap: 8px; color: #475569; }

/* =========================================
   GLOBAL SECTIONS
========================================= */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; color: #0f172a; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* =========================================
   FEATURES (BENTO GRID)
========================================= */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.bento-card {
    background: var(--bg-white); border: 1px solid #e2e8f0; border-radius: var(--radius-lg);
    padding: 2.5rem; transition: var(--transition); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.bento-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.highlight-card { border-color: #a5b4fc; box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08); background: linear-gradient(to bottom right, #ffffff, #fafaff); }
.icon-wrapper {
    width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; border: 1px solid #c7d2fe; color: var(--primary-color);
}
.bento-card h3 { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 800; color: #1e293b; }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* =========================================
   HOW IT WORKS
========================================= */
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; text-align: center; }
.step-card { padding: 2rem; position: relative; }
.step-num {
    width: 65px; height: 65px; background: var(--primary-gradient); color: white; font-size: 1.5rem; font-weight: 800;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; box-shadow: var(--shadow-md);
}
.step-card h3 { margin-bottom: 1rem; font-size: 1.3rem; font-weight: 800; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   FAQ SECTION
========================================= */
.faq-bg { background: var(--bg-white); border-radius: var(--radius-lg); padding: 3rem 4rem; box-shadow: var(--shadow-md); border: 1px solid #e2e8f0; }
.faq-item { border-bottom: 1px solid #f1f5f9; padding: 1.8rem 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item details { cursor: pointer; }
.faq-item summary { font-size: 1.15rem; font-weight: 700; color: #1e293b; list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none; transition: var(--transition); }
.faq-item summary:hover { color: var(--primary-color); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: #94a3b8; transition: var(--transition); font-weight: 400; }
.faq-item details[open] summary::after { transform: rotate(45deg); color: var(--primary-color); }
.faq-answer { padding-top: 1.2rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; animation: slideDown 0.3s ease-out forwards; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   BOTTOM CTA
========================================= */
.cta-section { background: var(--primary-gradient); border-radius: var(--radius-lg); padding: 5rem 2rem; text-align: center; color: white; margin: 4rem 0 6rem; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 900; }
.cta-section p { font-size: 1.15rem; margin-bottom: 2.5rem; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.cta-btn { background: white; color: var(--primary-color); padding: 1rem 3rem; border-radius: 50px; font-size: 1.1rem; font-weight: 800; text-decoration: none; display: inline-block; transition: var(--transition); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.cta-btn:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 15px 25px rgba(0,0,0,0.2); }

/* =========================================
   FOOTER
========================================= */
footer { background: #0f172a; color: #94a3b8; padding: 5rem 0 2rem 0; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo { font-size: 1.8rem; font-weight: 900; color: white; display: inline-block; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; transition: var(--transition); font-size: 0.95rem; }
.footer-col ul li a:hover { color: white; padding-right: 5px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 2rem; text-align: center; font-size: 0.9rem; }
.footer-bottom strong { color: white; }

/* =========================================
   SINGLE
========================================= */
.main{
    padding: 100px 0 50px;
}
.page-title{
    font-size: 1.8em;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
}
/* =========================================
   RESPONSIVE (MEDIA QUERIES)
========================================= */
@media (max-width: 992px) {
    /* Layout */
    .hero { flex-direction: column; text-align: center; padding-top: 7rem; gap: 3rem; }
    .hero-content { flex: none; width: 100%; }
    .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { width: 100%; max-width: 600px; margin: 0 auto; }

    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-col p { margin-left: auto; margin-right: auto; }
    .faq-bg { padding: 2rem; }

    /* Typography */
    .hero h1 { font-size: 2.6rem; }
    .section-header h2 { font-size: 2rem; }
    .cta-section h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    /* Mobile Menu CSS Hack */
    .menu-toggle-label { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.98);
        flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); transform: translateY(-150%);
        opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
    }
    .menu-toggle-checkbox:checked ~ .nav-links { transform: translateY(0); opacity: 1; visibility: visible; }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(2) { opacity: 0; }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .desktop-only-btn { display: none; }
    .mobile-only-btn { display: inline-flex; width: 100%; }

    /* Grid Adjustments */
    .bento-grid { grid-template-columns: 1fr; }
    .logo-strip { gap: 1.5rem; }
    .logo-item { font-size: 1rem; }

    /* Typography */
    .hero h1 { font-size: 2.2rem; }
    .glass-panel { padding: 1.5rem; }
    .chat-bubble { font-size: 0.85rem; max-width: 90%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .faq-item summary { font-size: 1rem; }
    .cta-section { padding: 3rem 1.5rem; }
    .cta-section h2 { font-size: 1.7rem; }
}
