@font-face {
    font-family: "IranSansX";
    src: url("iransanse_font.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #007aff;
    --blue-dark: #005fd1;
    --blue-soft: #eef6ff;
    --indigo: #5856d6;
    --green: #34c759;
    --text: #111827;
    --text-soft: #667085;
    --line: rgba(17, 24, 39, 0.08);
    --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
    --shadow-soft: 0 10px 28px rgba(16, 24, 40, 0.06);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IranSansX", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 0%, rgba(0, 122, 255, 0.10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 900;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

.nav a {
    transition: color 160ms ease;
}

.nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 12px 26px rgba(0, 122, 255, 0.22);
}

.btn-secondary {
    color: var(--text);
    background: #ffffff;
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}

.btn-ghost {
    color: var(--text-soft);
    background: transparent;
    border-color: var(--line);
}

.hero {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    padding: 96px 0 56px;
    background:
        radial-gradient(circle at top right, rgba(0, 122, 255, 0.12), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 48px;
}

.hero-copy {
    max-width: 680px;
    text-align: right;
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 122, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.08);
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.hero-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.hero-title span {
    display: block;
    color: var(--blue);
}

.hero-subtitle {
    max-width: 620px;
    margin: 20px 0 0;
    color: #475467;
    font-size: 17px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-stats {
    max-width: 660px;
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    padding: 16px;
    border: 1px solid #edf0f5;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
}

.stat-card strong {
    display: block;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
}

.hero-tags,
.compact-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    max-width: 720px;
    margin-top: 22px;
}

.tag {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-card {
    width: min(100%, 470px);
    padding: 22px;
    border: 1px solid rgba(0, 122, 255, 0.12);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 30px 80px rgba(16, 24, 40, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.varnak-lottie {
    width: min(360px, 100%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#aiLottie {
    width: 100%;
    height: 100%;
}

.ai-card-content {
    padding: 6px 8px 4px;
    text-align: center;
}

.ai-label {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.ai-card-content h2 {
    margin: 12px 0 8px;
    color: var(--text);
    font-size: 22px;
}

.ai-card-content p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.9;
}

.floating-summary {
    position: absolute;
    right: 0;
    bottom: 42px;
    width: 280px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    border: 1px solid #edf0f5;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

.floating-summary div {
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
}

.floating-summary strong {
    display: block;
    color: var(--text);
    font-size: 20px;
}

.floating-summary span {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 12px;
}

.section {
    padding: 72px 0;
}

.section-head {
    max-width: 780px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 14px 0 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 2;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.value-card,
.feature-card,
.showcase-card,
.persona-card,
.download-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.value-card {
    padding: 20px;
    border-radius: 22px;
    text-align: center;
}

.value-card strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.value-card span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.85;
}

.compact-features {
    margin-top: 18px;
    justify-content: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 22px;
    border-radius: 24px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 122, 255, 0.18);
}

.feature-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
}

.feature-card p {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 2;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: stretch;
}

.showcase-card {
    padding: 26px;
    border-radius: 28px;
}

.showcase-card h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.showcase-card p {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 2.05;
}

.list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-soft);
    line-height: 1.9;
    font-size: 14px;
}

.list-dot {
    width: 9px;
    height: 9px;
    margin-top: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.persona-grid {
    display: grid;
    gap: 12px;
}

.persona-card {
    padding: 20px;
    border-radius: 22px;
}

.persona-card strong {
    display: block;
    font-size: 19px;
}

.persona-card span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.9;
}

.download-card {
    padding: 32px;
    border-radius: 30px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(0, 122, 255, 0.12), transparent 34%),
        #ffffff;
}

.download-card h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.download-card p {
    max-width: 760px;
    margin: 12px auto 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 2;
}

.download-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer {
    padding: 24px 0 34px;
    color: var(--text-soft);
}

.footer-inner {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 72px 0 44px;
    }

    .hero-shell,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
        text-align: center;
    }

    .hero-title,
    .hero-subtitle,
    .hero-stats,
    .hero-tags {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge,
    .hero-actions,
    .hero-tags {
        margin-inline: auto;
        justify-content: center;
    }

    .hero-visual {
        min-height: auto;
    }

    .floating-summary {
        position: static;
        width: min(100%, 420px);
        margin: -18px auto 0;
    }

    .value-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nav {
        display: none;
    }

    .header-actions .btn-ghost {
        display: none;
    }

    .hero {
        padding: 56px 0 32px;
    }

    .hero-stats,
    .value-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(var(--container), calc(100% - 22px));
    }

    .brand span {
        display: none;
    }

    .btn {
        width: 100%;
    }

    .header-actions .btn-primary {
        width: auto;
        min-height: 42px;
        padding: 0 14px;
    }

    .hero-actions,
    .download-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-title {
        font-size: clamp(31px, 10vw, 46px);
    }

    .ai-card {
        padding: 16px;
        border-radius: 28px;
    }

    .floating-summary {
        width: 100%;
    }
}
