:root {
    --ink: #0b0f0d;
    --ink-2: #141a17;
    --ink-3: #1d2420;
    --lime: #b7f52a;
    --lime-soft: #d7ff79;
    --paper: #f4f6f2;
    --white: #ffffff;
    --text: #232925;
    --muted: #69736b;
    --line: #dce2dd;
    --radius: 24px;
    --radius-sm: 16px;
    --max: 1200px;
    --shadow: 0 24px 80px rgba(11, 15, 13, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
    line-height: 1.85;
    text-rendering: optimizeLegibility;
}

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

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

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

::selection {
    color: var(--ink);
    background: var(--lime);
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 14px;
    right: -999px;
    z-index: 1000;
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--ink);
    background: var(--lime);
    font-size: 0.8rem;
    font-weight: 900;
}

.skip-link:focus {
    right: 14px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 15, 13, 0.9);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.035em;
    direction: ltr;
}

.brand-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 7px rgba(183, 245, 42, 0.1);
}

.main-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    margin-right: auto;
    color: #c6cec8;
    font-size: 0.76rem;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    padding: 26px 0;
    transition: color 160ms ease;
    white-space: nowrap;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--lime);
    content: "";
    transition: width 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--white);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.menu-toggle,
.menu-button {
    display: none;
}

.btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 22px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.btn-lime {
    color: var(--ink);
    background: var(--lime);
    box-shadow: 0 12px 34px rgba(183, 245, 42, 0.14);
}

.btn-lime:hover {
    background: #c6ff3c;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    background: rgba(255, 255, 255, 0.045);
}

.btn-ghost:hover {
    border-color: var(--lime);
}

.btn-small {
    min-height: 42px;
    padding-inline: 17px;
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100svh - 76px);
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 12% 20%, rgba(183, 245, 42, 0.16), transparent 27%),
        radial-gradient(circle at 88% 80%, rgba(125, 168, 255, 0.08), transparent 25%),
        var(--ink);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: calc(100svh - 76px);
    align-items: center;
    padding-block: clamp(70px, 10vw, 130px);
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.72fr);
    gap: clamp(42px, 7vw, 92px);
}

.hero-copy {
    max-width: 760px;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #aab4ad;
    font-family: Arial, sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    direction: ltr;
}

.hero .eyebrow span {
    width: 30px;
    height: 2px;
    background: var(--lime);
}

.hero h1 {
    max-width: 850px;
    margin: 22px 0 24px;
    color: var(--white);
    font-size: clamp(3rem, 7.2vw, 6.7rem);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.075em;
}

.hero h1 strong {
    display: block;
    color: var(--lime);
    font-weight: inherit;
}

.hero-lead {
    max-width: 720px;
    margin: 0;
    color: #e1e7e2;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.95;
}

.hero-sub {
    max-width: 700px;
    margin: 16px 0 0;
    color: #9fa9a2;
    font-size: 0.88rem;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.hero-proof {
    display: grid;
    max-width: 720px;
    margin-top: 46px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    padding-top: 23px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hero-proof strong,
.hero-proof span {
    display: block;
}

.hero-proof strong {
    color: var(--lime);
    font-family: Arial, sans-serif;
    font-size: 1.15rem;
    direction: ltr;
}

.hero-proof span {
    margin-top: 3px;
    color: #8f9992;
    font-size: 0.64rem;
    line-height: 1.7;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius);
    padding: 22px;
    background: rgba(20, 26, 23, 0.82);
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.panel-top {
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding-bottom: 17px;
    color: #9ca69f;
    font-family: Arial, sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    direction: ltr;
}

.panel-id {
    margin-left: auto;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(183, 245, 42, 0.09);
}

.panel-kpi {
    padding: 28px 4px 22px;
}

.panel-label {
    color: #8e9891;
    font-size: 0.65rem;
}

.panel-kpi strong {
    display: block;
    margin: 10px 0 13px;
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
    direction: ltr;
}

.panel-kpi p {
    margin: 0;
    color: #99a49d;
    font-size: 0.73rem;
    line-height: 1.9;
}

.signal-list {
    display: grid;
    gap: 7px;
}

.signal-list > div {
    display: grid;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    padding: 11px 12px;
    color: #dfe5e0;
    background: rgba(255, 255, 255, 0.025);
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    direction: ltr;
}

.signal-list span,
.signal-list i {
    color: #77817a;
    font-family: Arial, sans-serif;
    font-size: 0.57rem;
    font-style: normal;
}

.signal-list b {
    font-family: Arial, sans-serif;
    font-size: 0.69rem;
}

/* Dynamic content */
.about-section {
    background: var(--white);
}

.about-grid {
    align-items: stretch;
}

.about-visual,
.about-copy {
    border-radius: var(--radius);
}

.about-visual {
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(12px, 3vw, 34px);
}

.about-copy h2 {
    max-width: 760px;
    letter-spacing: -0.055em;
}

.about-copy p {
    max-width: 760px;
    white-space: normal;
}

.about-copy blockquote {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-right: 4px solid var(--lime);
    background: var(--paper);
}

.about-copy blockquote::after {
    position: absolute;
    top: -28px;
    left: 15px;
    color: rgba(11, 15, 13, 0.055);
    content: "“";
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;
}

.section-note {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 0 13px;
    color: var(--muted);
    background: var(--white);
    font-size: 0.68rem;
    font-weight: 850;
}

.insight-card {
    position: relative;
    overflow: hidden;
    border-color: var(--line);
    box-shadow: 0 15px 46px rgba(11, 15, 13, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.insight-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--lime);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.insight-card:hover {
    border-color: #cbd4c7;
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.insight-card:hover::before {
    transform: scaleX(1);
}

.insight-card h3 {
    letter-spacing: -0.035em;
}

.insight-card p {
    line-height: 1.95;
}

.insight-card a,
.insight-link-muted {
    display: inline-block;
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.72rem;
    font-weight: 900;
}

.insight-card a:hover {
    color: #668c08;
}

.insight-link-muted {
    color: #99a29b;
}

.insight-empty {
    grid-column: 1 / -1;
    border: 1px dashed #cbd3c8;
    border-radius: var(--radius);
    padding: clamp(36px, 7vw, 72px);
    text-align: center;
    background: rgba(255, 255, 255, 0.65);
}

.insight-empty > span {
    color: #88928b;
    font-family: Arial, sans-serif;
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.insight-empty h3 {
    margin: 10px 0 5px;
    font-size: 1.4rem;
}

.insight-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.contact-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(183, 245, 42, 0.12), transparent 27%),
        var(--ink-2);
}

.contact-section::before {
    position: absolute;
    right: -130px;
    bottom: -190px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(183, 245, 42, 0.1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.contact-grid {
    position: relative;
    z-index: 1;
}

.contact-copy h2 {
    letter-spacing: -0.065em;
}

.lead-form {
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.25);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: var(--lime-dark, #8fc511);
    box-shadow: 0 0 0 4px rgba(183, 245, 42, 0.16);
}

.form-alert {
    line-height: 1.8;
}

.form-alert.success {
    border-color: #9ed119;
}

.fade-up {
    opacity: 1;
    transform: none;
}

.js .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.js .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.js .fade-delay-1 {
    transition-delay: 100ms;
}

.js .fade-delay-2 {
    transition-delay: 200ms;
}

.chat-widget {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 90;
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(11, 15, 13, 0.12);
    border-radius: 99px;
    padding: 0 17px 0 13px;
    color: var(--ink);
    background: var(--lime);
    box-shadow: 0 18px 55px rgba(11, 15, 13, 0.28);
    font-size: 0.75rem;
    font-weight: 900;
    transition: transform 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.chat-widget:hover {
    background: #c7ff42;
    box-shadow: 0 22px 65px rgba(11, 15, 13, 0.34);
    transform: translateY(-4px);
}

.chat-widget svg {
    width: 27px;
    height: 27px;
}

/* Footer */
.site-footer {
    color: #d9dfda;
    background: var(--ink);
}

.footer-top {
    display: grid;
    padding-block: 58px 46px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
}

.footer-brand {
    width: max-content;
}

.footer-top > div:first-child > p {
    max-width: 460px;
    margin: 17px 0 0;
    color: #939e96;
    font-size: 0.82rem;
    line-height: 2;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 50px;
}

.footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links b {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 0.76rem;
}

.footer-links a {
    color: #909a93;
    font-size: 0.7rem;
    transition: color 150ms ease, transform 150ms ease;
}

.footer-links a:hover {
    color: var(--lime);
    transform: translateX(-2px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-block: 19px;
    color: #707a73;
    font-family: Arial, "Vazirmatn", sans-serif;
    font-size: 0.59rem;
    letter-spacing: 0.06em;
    direction: ltr;
}

@media (max-width: 1020px) {
    .desktop-cta {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 880px;
    }

    .hero-panel {
        max-width: 680px;
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        position: relative;
        justify-content: space-between;
    }

    .menu-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .menu-button {
        display: grid;
        width: 42px;
        height: 42px;
        place-content: center;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        cursor: pointer;
        gap: 5px;
    }

    .menu-button span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 99px;
        background: var(--white);
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 18px 18px;
        padding: 10px 20px 18px;
        background: rgba(11, 15, 13, 0.98);
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 12px 4px;
    }

    .main-nav a::after {
        display: none;
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .hero {
        min-height: auto;
    }

    .hero-layout {
        min-height: auto;
        padding-block: 80px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 5rem);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .about-copy {
        padding: 8px 0 0;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, var(--max));
    }

    .brand-name {
        font-size: 0.88rem;
    }

    .hero-layout {
        padding-block: 62px;
    }

    .hero h1 {
        margin-top: 18px;
        font-size: clamp(2.55rem, 15vw, 4rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-proof {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 17px;
    }

    .signal-list > div {
        grid-template-columns: 24px 1fr;
    }

    .signal-list i {
        display: none;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-widget {
        bottom: 14px;
        left: 14px;
        width: 54px;
        height: 54px;
        min-height: 54px;
        justify-content: center;
        padding: 0;
    }

    .chat-widget-label {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Rich content and single insight */
.rich-content {
    color: var(--text);
    font-size: 1rem;
    line-height: 2.05;
}

.rich-content > :first-child {
    margin-top: 0;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content h2,
.rich-content h3 {
    margin: 2em 0 0.65em;
    color: var(--ink);
    line-height: 1.55;
    letter-spacing: -0.035em;
}

.rich-content h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.rich-content h3 {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote,
.rich-content pre {
    margin: 0 0 1.25em;
}

.rich-content ul,
.rich-content ol {
    padding-right: 1.4em;
}

.rich-content a {
    color: #527000;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--lime);
    text-underline-offset: 4px;
}

.rich-content blockquote {
    border-right: 4px solid var(--lime);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    background: #edf1eb;
}

.rich-content pre,
.rich-content code {
    direction: ltr;
    font-family: Consolas, Monaco, monospace;
}

.rich-content pre {
    overflow-x: auto;
    border-radius: 14px;
    padding: 18px;
    color: #e9f0eb;
    background: var(--ink-2);
}

.about-rich-content {
    max-width: 760px;
}

.single-insight-page {
    background: #eef1ed;
}

.single-header .nav-wrap {
    justify-content: space-between;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--ink);
    background: var(--lime);
    font-size: 0.72rem;
}

.single-back-link {
    color: #d7ded9;
    font-size: 0.76rem;
    font-weight: 800;
}

.single-back-link:hover {
    color: var(--lime);
}

.single-insight-main {
    min-height: calc(100vh - 180px);
    padding: clamp(56px, 9vw, 110px) 0;
}

.single-insight-container {
    max-width: 900px;
}

.single-article,
.single-empty {
    border: 1px solid var(--line);
    border-radius: clamp(20px, 4vw, 34px);
    padding: clamp(24px, 6vw, 72px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.single-article-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: clamp(28px, 5vw, 52px);
    padding-bottom: clamp(24px, 4vw, 42px);
}

.single-article-header h1,
.single-empty h1 {
    max-width: 800px;
    margin: 16px 0;
    color: var(--ink);
    font-size: clamp(2rem, 6vw, 4.4rem);
    line-height: 1.25;
    letter-spacing: -0.06em;
}

.single-article-lead {
    max-width: 740px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.single-footer {
    padding: 28px 0;
    color: #aeb8b1;
    background: var(--ink);
    font-size: 0.76rem;
}

.single-footer p {
    margin: 0;
}

@media (max-width: 560px) {
    .single-header .brand-name {
        display: none;
    }

    .single-insight-main {
        padding-block: 28px;
    }
}
