/* ==========================================================================
   Accountic.ir - Ultra-Luxury Dark Futuristic Stylesheet
   Fonts: IranYekanX FaNum & Anjoman FaNum
   ========================================================================== */

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/iranyekanxfanum-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/iranyekanxfanum-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/iranyekanxfanum-demibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/iranyekanxfanum-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/iranyekanxfanum-extrabold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/iranyekanxfanum-black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anjoman';
    src: url('../fonts/anjoman-fanum-extrabold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-main: #070913;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary: #06b6d4;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.4);
    --font-main: 'IranYekanX', Tahoma, sans-serif;
    --font-heading: 'Anjoman', 'IranYekanX', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
    min-height: 100vh;
}

/* Ambient Glowing Background Orbs */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
}
.glow-1 { top: -100px; right: -100px; background: radial-gradient(circle, #6366f1, #4f46e5); }
.glow-2 { top: 40%; left: -150px; background: radial-gradient(circle, #06b6d4, #0891b2); }
.glow-3 { bottom: -100px; right: 20%; background: radial-gradient(circle, #ec4899, #8b5cf6); }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header & Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 19, 0.85);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-main); }
.nav-cta { display: flex; gap: 12px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding: 80px 24px 70px;
    min-height: calc(100vh - 85px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    width: fit-content;
}

.dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 10px #6366f1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 900;
    line-height: 1.35;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8, #38bdf8, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.9;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #38bdf8;
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Floating 3D Cards in Hero */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.floating-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 380px;
}

.glass-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.2);
}

.card-chatgpt { border-right: 4px solid #10b981; }
.card-claude { border-right: 4px solid #f59e0b; }
.card-cursor { border-right: 4px solid #6366f1; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    font-size: 24px;
}

.card-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-price {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

/* Calculator Section */
.calculator-section {
    padding: 70px 0;
    background: rgba(11, 15, 25, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calc-box {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 44px;
    backdrop-filter: blur(20px);
}

.calc-info h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    margin: 16px 0 12px;
}

.calc-info p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.rate-badge {
    margin-top: 24px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 12px 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #67e8f9;
    font-size: 14px;
}

.calc-interactive {
    background: rgba(11, 15, 25, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-breakdown {
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 18px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.breakdown-row.total {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features Grid */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px 24px;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Products Catalog Showcase */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    background: var(--bg-card-hover);
}

/* FAQ Accordion */
.faq-section {
    padding: 70px 24px 90px;
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: rgba(7, 9, 19, 0.9);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Form inputs */
.input-group, .form-group { margin-bottom: 18px; }
.input-group label, .form-group label { display: block; font-size: 13px; font-weight: 600; color: #cbd5e1; margin-bottom: 8px; }
.input-field, .custom-select {
    width: 100%;
    background: #141b2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.input-field:focus, .custom-select:focus { border-color: var(--primary); }

/* Tables */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.custom-table th, .custom-table td {
    padding: 16px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}
.custom-table th {
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-muted);
    font-weight: 700;
}

/* Modals */
.modal-backdrop {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
}
.modal-backdrop.show {
    display: flex !important;
    animation: modalFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.modal-box {
    background: #0d1224;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(99, 102, 241, 0.2);
    position: relative;
    z-index: 100000;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Mobile Rules */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hero {
        grid-template-columns: 1fr;
        padding: 50px 20px 40px;
        text-align: center;
    }
    .hero-content { align-items: center; }
    .hero-title { font-size: 30px; }
    .hero-desc { text-align: center; }
    .hero-buttons { justify-content: center; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { justify-content: center; width: 100%; gap: 18px; }
    .stat-item h3 { font-size: 20px; }
    .stat-item p { font-size: 11px; }
    .hero-visual { margin-top: 20px; width: 100%; }
    .calc-box { grid-template-columns: 1fr; padding: 24px; }
}
