@font-face {
    font-family: 'Vazir';
    src: url('/assets/vazir/Vazir.woff2') format('woff2'),
         url('/assets/vazir/Vazir.woff') format('woff'),
         url('/assets/vazir/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    --navy: #0f172a;
    --indigo-50: #eef2ff;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-900: #0f172a;
    --white: #ffffff;
    --red: #ef4444;
    --green: #22c55e;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    direction: rtl;
    lang: fa;
    scroll-behavior: smooth;
}
body {
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.6;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    animation: fadeIn 0.4s ease-out;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--navy);
    font-weight: 800;
    font-size: 1.5rem;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--indigo-600);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: var(--indigo-600);
}
.hero {
    padding: 5rem 0;
    text-align: center;
    background: radial-gradient(circle at top right, var(--indigo-50), transparent);
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.25rem;
    color: var(--slate-600);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}
.btn-primary {
    background: var(--indigo-600);
    color: white;
}
.btn-primary:hover {
    background: var(--indigo-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--slate-200);
    color: var(--slate-900);
}
.btn-outline:hover {
    border-color: var(--indigo-600);
    color: var(--indigo-600);
}
.card-premium {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--slate-200);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.domains-section {
    margin-top: -2.25rem;
    margin-bottom: 1.5rem;
}
.domains-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
}
.domains-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.domains-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.domains-subtitle {
    color: var(--slate-600);
    font-size: 0.95rem;
}
.domains-pill {
    background: var(--indigo-50);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--slate-600);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.domains-pill span {
    color: var(--indigo-700);
    font-weight: 800;
}
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}
.domain-item {
    display: block;
    text-decoration: none;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    color: inherit;
}
.domain-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
}
.domain-item.is-current {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.10);
}
.domain-host {
    font-weight: 900;
    letter-spacing: 0.2px;
    color: var(--navy);
    margin-bottom: 0.55rem;
    direction: ltr;
    text-align: left;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.95rem;
}
.domain-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.domain-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.18rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(79, 70, 229, 0.10);
    color: var(--indigo-700);
    border: 1px solid rgba(79, 70, 229, 0.18);
}
.domain-badge-ghost {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.25);
    color: var(--slate-600);
}
.domain-badge-current {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.25);
    color: #166534;
}

.stats-section {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.stats-showcase {
    position: relative;
    border-radius: calc(var(--radius-lg) + 4px);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.45),
        rgba(14, 165, 233, 0.35),
        rgba(168, 85, 247, 0.4)
    );
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}
.stats-showcase__inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.stats-showcase__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}
.stats-showcase__title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}
.stats-showcase__lead {
    color: var(--slate-600);
    font-size: 0.95rem;
    max-width: 36rem;
    line-height: 1.65;
}
.stats-showcase__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--indigo-700);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.22);
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    white-space: nowrap;
}
.stats-showcase__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: statsPulse 2.4s ease-in-out infinite;
}
@keyframes statsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.92); }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.stat-tile {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.stat-tile::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-start-start-radius: 4px;
    border-end-start-radius: 4px;
    opacity: 0.9;
}
.stat-tile--visits::before {
    background: linear-gradient(180deg, #6366f1, #818cf8);
}
.stat-tile--created::before {
    background: linear-gradient(180deg, #0ea5e9, #38bdf8);
}
.stat-tile--opened::before {
    background: linear-gradient(180deg, #a855f7, #c084fc);
}
.stat-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -15px rgba(15, 23, 42, 0.18);
    border-color: rgba(99, 102, 241, 0.25);
}
.stat-tile__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
}
.stat-tile--visits .stat-tile__icon {
    background: linear-gradient(145deg, #4f46e5, #6366f1);
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.55);
}
.stat-tile--created .stat-tile__icon {
    background: linear-gradient(145deg, #0284c7, #0ea5e9);
    box-shadow: 0 10px 20px -8px rgba(14, 165, 233, 0.5);
}
.stat-tile--opened .stat-tile__icon {
    background: linear-gradient(145deg, #9333ea, #a855f7);
    box-shadow: 0 10px 20px -8px rgba(147, 51, 234, 0.45);
}
.stat-tile__body {
    min-width: 0;
}
.stat-tile__label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--slate-600);
    margin-bottom: 0.35rem;
}
.stat-tile__value {
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 0.35rem;
}
.stat-tile__hint {
    font-size: 0.78rem;
    color: var(--slate-400);
    line-height: 1.5;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--slate-900);
}
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}
.input-field:focus {
    outline: none;
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
textarea.input-field {
    min-height: 150px;
    resize: vertical;
}
.code-display {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    color: var(--indigo-600);
    letter-spacing: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--indigo-50);
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px dashed var(--indigo-200);
}
footer {
    margin-top: auto;
    background: var(--navy);
    color: var(--slate-400);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}
.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--indigo-500);
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--navy);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    font-weight: 600;
    white-space: nowrap;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
}
.hero-ad {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.ad-slot-wrap {
    display: flex;
    justify-content: center;
    padding: 0 0 1.5rem;
}
.ad-slot-wrap--page-top {
    padding: 0 0 1.25rem;
    margin-top: -0.5rem;
}
.ad-slot {
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
    line-height: 0;
}
.ad-slot__link {
    display: inline-block;
    line-height: 0;
    border-radius: var(--radius-md);
    transition: opacity 0.2s, box-shadow 0.2s;
}
.ad-slot__link:hover {
    opacity: 0.92;
    box-shadow: var(--shadow-soft);
}
.ad-slot__img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    background: var(--white);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .card-premium { padding: 1.5rem; }
    .domains-head { flex-direction: column; align-items: stretch; }
    .domains-pill { width: fit-content; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-showcase__inner { padding: 1.35rem 1.1rem 1.2rem; }
    .stats-showcase__head { flex-direction: column; align-items: stretch; }
}

