/* FDFE.IR Public Styles — Jade Green #00A86B | Khaki Yellow #C9A227 */

:root {
    --primary: #00A86B;
    --primary-dark: #008f5a;
    --primary-light: #00c47d;
    --secondary: #C9A227;
    --secondary-dark: #a8861f;
    --bg: #f0f4f8;
    --bg-alt: #e8edf3;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-border: rgba(255, 255, 255, 0.45);
    --text: #1a1a2e;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --glass-blur: 20px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --dock-height: 72px;
    --font-sans: 'Inter', 'Vazirmatn', system-ui, sans-serif;
}

[data-theme="dark"] {
    --bg: #0f1419;
    --bg-alt: #1a1f2e;
    --surface: rgba(30, 35, 50, 0.75);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

[dir="rtl"] body { font-family: 'Vazirmatn', 'Inter', system-ui, sans-serif; }

/* Ambient background */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 20s ease-in-out infinite;
}

.ambient-orb--1 {
    width: 400px; height: 400px;
    background: var(--primary);
    top: -10%; right: -5%;
    animation-delay: 0s;
}

.ambient-orb--2 {
    width: 300px; height: 300px;
    background: var(--secondary);
    bottom: 10%; left: -5%;
    animation-delay: -7s;
}

.ambient-orb--3 {
    width: 250px; height: 250px;
    background: var(--primary-light);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Glass panel */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px var(--shadow);
}

/* Main content */
.main-content {
    position: relative;
    z-index: 1;
    padding-bottom: calc(var(--dock-height) + 80px);
}

.page-inner .main-content {
    padding-top: 80px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Top bar (inner pages) */
.top-bar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
    width: min(600px, calc(100% - 2rem));
    border-radius: var(--radius-full);
}

.top-bar__logo, .auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
}

.logo-dot { color: var(--primary); }

.top-bar__actions, .auth-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 168, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.4);
}

.btn-glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    color: var(--text);
}

.btn-glass:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem calc(var(--dock-height) + 2rem);
    gap: 3rem;
    position: relative;
}

.hero__content {
    text-align: center;
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero__stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero mockup */
.hero__visual { position: relative; width: 100%; max-width: 480px; }

.hero-mockup {
    padding: 0;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition);
}

.hero-mockup:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--surface-border);
}

[data-theme="dark"] .mockup-bar { background: rgba(0,0,0,0.2); }

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot--red { background: #ff5f57; }
.mockup-dot--yellow { background: #febc2e; }
.mockup-dot--green { background: #28c840; }

.mockup-url {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.mockup-url em { color: var(--primary); font-style: normal; }

.mockup-body { padding: 1.5rem; }

.mockup-line {
    height: 10px;
    background: var(--bg-alt);
    border-radius: 4px;
    margin-bottom: 10px;
}

.mockup-line--long { width: 80%; }
.mockup-line--medium { width: 60%; }
.mockup-line--short { width: 40%; }

.mockup-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.mockup-block {
    height: 60px;
    background: linear-gradient(135deg, rgba(0,168,107,0.15), rgba(201,162,39,0.15));
    border-radius: 8px;
}

.hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(0,168,107,0.15) 0%, transparent 70%);
    z-index: -1;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Page sections */
.page-section { padding: 2rem 0 4rem; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.feature-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Pricing */
.pricing-grid {
    display: flex;
    justify-content: center;
}

.pricing-card {
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    text-align: center;
}

.pricing-card--featured {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 48px rgba(0, 168, 107, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-plan {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price { margin-bottom: 2rem; }

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    text-align: start;
    margin-bottom: 2rem;
}

[dir="rtl"] .pricing-features { text-align: right; }

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-features svg { color: var(--primary); flex-shrink: 0; }

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item[open] { box-shadow: 0 8px 24px var(--shadow); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    gap: 1rem;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
    transition: transform var(--transition);
    flex-shrink: 0;
    color: var(--text-muted);
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Legal pages */
.legal-content {
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--primary);
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-content ul {
    padding-inline-start: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }

/* Floating dock navigation */
.dock-nav {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
}

.dock-nav__glass {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px var(--shadow-lg);
}

.dock-item svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
    stroke: currentColor;
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
    font-family: inherit;
}

.dock-item:hover,
.dock-item.active {
    background: rgba(0, 168, 107, 0.12);
    color: var(--primary);
    transform: translateY(-4px) scale(1.1);
}

.dock-item--cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
}

.dock-item--cta:hover {
    box-shadow: 0 4px 16px rgba(0, 168, 107, 0.4);
}

.dock-item--accent { color: var(--secondary); }

.dock-divider {
    width: 1px;
    height: 28px;
    background: var(--surface-border);
    margin: 0 0.25rem;
}

.dock-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--text);
    color: var(--bg);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
}

.dock-item:hover[data-tooltip]::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.lang-label { font-size: 0.75rem; font-weight: 700; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

/* Responsive */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: start;
        padding: 2rem 3rem calc(var(--dock-height) + 2rem);
        gap: 4rem;
    }

    .hero__content { text-align: start; flex: 1; }

    .hero__subtitle { margin-left: 0; margin-right: 0; }

    .hero__actions { justify-content: flex-start; }

    .hero__stats { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .dock-item { width: 42px; height: 42px; }
    .dock-nav__glass { padding: 0.4rem 0.5rem; gap: 0.1rem; }
    .hero__stats { flex-direction: column; align-items: center; }
    .stat-item { width: 100%; max-width: 200px; }
}