@font-face {
    font-family: Vazirmatn;
    src: url('./vazirmatn.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #100e0d;
    --muted: #4d5153;
    --accent: #db4804;
    --accent-icon: #e75008;
    --accent-dark: #9d2c06;
    --border: #efc8b3;
    --paper: #fbefe8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 400 1rem/1.6 Vazirmatn, Tahoma, sans-serif;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #783513; outline-offset: 4px; }
[id] { scroll-margin-block-start: 1.5rem; }

.page {
    position: relative;
    isolation: isolate;
    overflow: clip;
    min-height: 100vh;
    padding-bottom: 37px;
    background:
        url('./mountains-left.webp') bottom left / min(40vw, 481px) auto no-repeat,
        url('./mountains-right.webp') bottom right / min(29vw, 348px) auto no-repeat,
        radial-gradient(ellipse at 2% 2%, #fcdfcd 0%, transparent 36%),
        radial-gradient(ellipse at 93% 5%, #fae7dc 0%, transparent 36%),
        radial-gradient(ellipse at 25% 35%, #fbe5da 0%, transparent 34%),
        #fbefe8;
}
.frame { width: min(calc(100% - 64px), 1036px); margin-inline: auto; }
.content-frame { width: min(calc(100% - 64px), 1004px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; inset-block-start: .5rem; inset-inline-start: .5rem; padding: 8px 14px; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.icon {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    background: currentColor;
    mask: var(--icon) center / contain no-repeat;
}

.site-header {
    min-height: 72px;
    display: grid;
    grid-template-columns: 200px 1fr 208px;
    align-items: center;
    gap: 20px;
}
.header-actions, .site-nav, .hero-actions { display: flex; align-items: center; }
.header-actions { gap: 17px; }
.site-nav { justify-content: center; gap: clamp(18px, 3.2vw, 40px); white-space: nowrap; }
.site-nav a, .site-nav button {
    border: 0;
    padding: 6px 0;
    background: none;
    font-weight: 550;
}
.site-nav :is(a, button):hover { color: var(--accent-dark); }
.brand {
    display: inline-flex;
    width: fit-content;
    justify-self: end;
    align-items: center;
    font-size: 37px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.045em;
}

.brand span::first-letter { color: var(--accent); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 24px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    transition: background-color .18s, border-color .18s, color .18s;
}
.button-primary {
    background: var(--accent);
    border-color: #fa9b68;
    color: #fffaf6;
    box-shadow: inset 0 0 14px #f86a232a;
}
.button-primary:hover { background-color: #ba3700; }
.button-outline { border-color: #aa7f69; background: #fff8f13b; }
.button-outline:hover { background-color: #ffe0cc; }
.header-actions .button-primary { padding-inline: 26px; }
.header-actions .button-outline { color: #952b0a; }
.button .icon { font-size: 22px; }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    min-height: 374px;
    padding-inline-start: 28px;
}
.hero-copy { position: relative; z-index: 1; transform: translateY(-5px); }
.hero h1 { font-size: clamp(33px, 4.25vw, 51px); font-weight: 900; line-height: 1.2; letter-spacing: -.025em; }
.hero h1 > span {
    display: block;
    margin-top: 6px;
    text-align: right;
    font-size: clamp(47px, 5vw, 61px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.055em;
    white-space: nowrap;
}
.hero-mark { position: relative; display: inline-block; }
.hero-mark::after {
    content: "";
    position: absolute;
    inset: auto -1% -14px;
    height: 20px;
    background: url('./underline.webp') center / 100% 100% no-repeat;
}
.hero-copy > p { margin-top: 23px; color: var(--muted); font-size: 20px; font-weight: 480; line-height: 1.5; }
.hero-actions { gap: 18px; margin-top: 28px; }
.hero-actions .button { min-height: 49px; padding-inline: 26px; }
.hero-actions .button-primary { padding-inline: 22px 30px; }
.hero-art { position: relative; align-self: stretch; pointer-events: none; }
.terminal {
    position: absolute;
    top: 50%;
    right: 17px;
    transform: translateY(-51%);
    width: min(112%, 628px);
    container-type: inline-size;
}
.terminal img { display: block; width: 100%; height: auto; }
.terminal-copy {
    position: absolute;
    display: flex;
    align-items: center;
    padding-inline-start: .8cqw;
    color: #fff;
    background: #1c1c1c;
    box-shadow: 0 0 .45cqw .13cqw #1c1c1c;
    font-size: 3cqw;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.terminal-session {
    inset: 22.05% auto auto 35.19%;
    width: 20.38%;
    height: 6.56%;
    background: #323232;
    box-shadow: 0 0 .45cqw .13cqw #323232;
    font-size: 2.7cqw;
}
.terminal-command {
    inset: 37% auto auto 28.18%;
    width: 25.96%;
    height: 7.87%;
    color: #ff8e52;
    font-size: 4.3cqw;
    font-weight: 700;
}
.terminal-connected { inset: 50.39% auto auto 33.28%; width: 16.72%; height: 6.82%; }
.terminal-usage { inset: 60.37% auto auto 32.96%; width: 15.45%; height: 7.35%; }
.terminal-ready { inset: 70.34% auto auto 33.12%; width: 22.93%; height: 7.87%; }

.features { display: grid; grid-template-columns: 23% 25% 25% 27%; text-align: center; }
.feature { position: relative; min-width: 0; padding: 0 8px; }
.feature + .feature::before {
    content: "";
    position: absolute;
    inset: 9px 0 2px auto;
    width: 1px;
    background: linear-gradient(transparent, #eac6b4bb, transparent);
}
.feature-icon {
    display: grid;
    place-items: center;
    margin: 0 auto 4px;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    color: var(--accent-icon);
    background: #fff7f0a8;
    font-size: 39px;
}
.feature h2 { font-size: 20px; font-weight: 850; }
.feature p { margin-top: 2px; color: var(--muted); font-size: 15px; font-weight: 480; }

.pricing { width: min(calc(100% - 64px), 828px); margin: 37px auto 0; }
.section-heading { text-align: center; }
.section-label {
    display: inline-block;
    padding: 3px 14px 2px;
    border-radius: 14px;
    background: #ffd3ba;
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 750;
}
.section-heading h2 { margin-top: 6px; font-size: clamp(27px, 3.05vw, 36px); font-weight: 900; line-height: 1.4; }
.section-heading p { margin-top: 5px; color: var(--muted); font-size: 18px; font-weight: 480; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 14px 25px 23px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(150deg, #fff4eb28, #ffe2cc54);
}
.plan-featured {
    margin: -4px 0 -1px 0;
    padding: 17px 26px 23px;
    background: linear-gradient(153deg, #d74e13 2%, #ae360c 58%, #9d2e09 100%);
    border-color: #ff9554;
    color: #fff8f1;
    box-shadow: inset 0 0 16px #fc7926a8, 0 0 0 1px #fff3e7;
}
.plan-badge {
    position: absolute;
    top: -15px;
    left: 28px;
    padding: 4px 14px 3px;
    border-radius: 13px;
    background: #ffad71;
    color: #1c1007;
    font-size: 15px;
    font-weight: 850;
}
.plan h3 { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; line-height: 1.2; }
.plan h3 .icon { font-size: 37px; color: var(--accent-icon); }
.plan-featured h3 .icon, .plan-featured .plan-benefits .icon { color: #fff8ed; }
.plan-description { margin-top: 4px; font-size: 15px; font-weight: 520; }
.plan :is(h3, .plan-description, .plan-benefits) { padding-inline: 11px; }
.plan-price {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 64px;
    margin-top: 17px;
    padding: 2px 14px;
    border-radius: 13px;
    background: #f9dac9b8;
    font-weight: 650;
}
.plan-price strong { font-size: 43px; font-weight: 900; line-height: 1; letter-spacing: -.025em; }
.plan-featured .plan-price { background: #ff9a5763; box-shadow: inset 0 0 0 1px #ffb6775c; }
.plan-benefits { display: grid; gap: 5px; margin: 13px 0 22px; list-style: none; font-size: 15px; font-weight: 510; }
.plan-benefits li { display: flex; align-items: center; gap: 10px; }
.plan-benefits .icon { color: var(--accent-icon); font-size: 23px; }
.plan-button { width: 100%; margin-top: auto; border-color: #a76e54; background: #fff4eb39; font-size: 17px; font-weight: 850; }
.plan-button:hover { background: #ffe0cc; }
.plan-featured .plan-button { min-height: 49px; color: #922b07; background: #ffe4d1; border-color: #fff8ef; }
.plan-featured .plan-button:hover { background: #fff2e6; }
.plan-featured .plan-button:focus-visible { outline-color: white; }

.faq {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.65fr);
    gap: clamp(32px, 6vw, 78px);
    margin-block: clamp(54px, 8vw, 96px) 28px;
    align-items: start;
}
.faq-heading h2 {
    font-size: clamp(29px, 3.8vw, 44px);
    font-weight: 900;
    line-height: 1.25;
}
.faq-heading p {
    margin-block-start: 10px;
    max-width: 24ch;
    color: var(--muted);
    font-size: 1.03rem;
}
.faq-list { border-block-start: 1px solid var(--border); }
.faq-list details { border-block-end: 1px solid var(--border); }
.faq-list summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    min-height: 62px;
    list-style: none;
    cursor: pointer;
    font-size: clamp(1rem, 1.8vw, 1.13rem);
    font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-dark); }
.faq-list summary::after {
    content: "";
    place-self: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--accent-dark);
    background:
        linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat,
        #fbe0d0;
}
.faq-list details[open] summary::after {
    background-size: 12px 1.5px, 0 0, auto;
}
.faq-list details p {
    padding: 0 0 17px;
    padding-inline-end: 44px;
    color: var(--muted);
    line-height: 1.85;
}
.faq-list p a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: .22em;
}

.site-footer {
    padding-block: 36px 14px;
    border-block-start: 1px solid #e8cdbd;
    background: #fae9dd;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 40px);
}
.footer-brand .brand { margin: 0; font-size: 30px; }
.footer-brand p { margin-block-start: 10px; color: var(--muted); font-size: .94rem; }
.footer-grid nav { display: grid; align-content: start; gap: 5px; }
.footer-grid nav h2 { margin-block-end: 4px; font-size: 1.05rem; font-weight: 850; }
.footer-grid nav a { width: fit-content; padding-block: 2px; color: var(--muted); font-size: .93rem; }
.site-footer a:hover { color: var(--accent-dark); }
.footer-end {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-block-start: 26px;
    padding-block-start: 12px;
    border-block-start: 1px solid #eacbb9;
    color: var(--muted);
}
.footer-end a { display: inline-flex; align-items: center; gap: 6px; font-size: .93rem; }

.info-dialog {
    width: min(calc(100% - 32px), 440px);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff5ee;
    color: var(--ink);
    box-shadow: 0 20px 70px #48220d4d;
}
.info-dialog::backdrop { background: #351b10a6; }
.info-dialog h2 { margin-inline-end: 44px; margin-bottom: 13px; font-size: 25px; }
.info-dialog p, .info-dialog ol { margin: 0 0 12px; color: var(--muted); }
.info-dialog p:last-child { margin-bottom: 0; }
.info-dialog ol { padding-inline-start: 20px; }
.info-dialog ol li + li { margin-top: 5px; }
.dialog-close { position: absolute; inset-block-start: 15px; inset-inline-end: 15px; }
.icon-button { display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: transparent; width: 40px; height: 40px; font-size: 23px; }
.icon-button:hover { background: #ffe4d2; }
.plan-summary { display: grid; gap: 8px; padding: 14px; background: #ffe5d4; border-radius: 12px; }
.plan-summary div { display: flex; justify-content: space-between; gap: 10px; }
.plan-summary dd { margin: 0; font-weight: 750; }

@media (min-width: 1300px) {
    .page { padding-top: 6px; }
}
@media (max-width: 1000px) {
    .site-header { grid-template-columns: auto 1fr auto; }
    .site-nav { gap: 20px; }
    .hero { grid-template-columns: 46% 54%; padding-inline-start: 0; min-height: 340px; }
    .terminal { right: -8px; width: 110%; }
    .hero-actions { gap: 10px; }
    .hero-actions .button { padding-inline: 14px; }
    .hero-copy > p { font-size: 18px; }
    .hero-break { display: none; }
}
@media (max-width: 820px) {
    .site-header { grid-template-columns: 1fr auto; gap: 6px 12px; padding-block: 10px 0; }
    .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; column-gap: clamp(16px, 5vw, 32px); row-gap: 0; }
    .header-actions { gap: 8px; }
    .header-actions .button { padding-inline: 13px; min-height: 40px; font-size: 14px; }
    .brand { margin: 0; font-size: 28.5px; }
}
@media (max-width: 760px) {
    .frame, .content-frame, .pricing { width: min(calc(100% - 40px), 570px); }
    .hero { grid-template-columns: 1fr; gap: 6px; min-height: auto; padding-top: 30px; text-align: center; }
    .hero h1 { font-size: clamp(31px, 7vw, 46px); }
    .hero h1 > span { font-size: clamp(44px, 10.1vw, 62px); text-align: center; }
    .hero-copy > p { margin-inline: auto; max-width: 400px; }
    .hero-actions { justify-content: center; margin-top: 20px; }
    .terminal { position: relative; inset: auto; transform: none; width: min(106%, 530px); margin-inline: auto; }
    .features { grid-template-columns: repeat(2, 1fr); gap: 19px 0; }
    .feature:nth-child(odd)::before { display: none; }
    .feature h2 { font-size: 18px; }
    .feature p { font-size: 14px; }
    .pricing { margin-top: 35px; }
    .section-heading p { font-size: 16px; }
    .plans { grid-template-columns: 1fr; gap: 27px; margin-top: 25px; }
    .plan-featured { margin: 0; }
    .faq { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .faq-heading p { max-width: none; }
    .faq-list details p { padding-inline-end: 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page {
        background-image:
            radial-gradient(ellipse at center bottom, #fbefe8 26%, transparent 70%),
            url('./mountains-left.webp'),
            url('./mountains-right.webp'),
            radial-gradient(ellipse at 2% 2%, #fcdfcd 0%, transparent 25%),
            radial-gradient(ellipse at 93% 5%, #fae7dc 0%, transparent 24%);
        background-size: 100% 130px, 56vw auto, 45vw auto, auto, auto;
        background-position: bottom center, bottom left, bottom right, center, center;
        background-repeat: no-repeat;
    }
}
@media (max-width: 370px) {
    .frame, .content-frame, .pricing { width: calc(100% - 28px); }
    .brand { font-size: 24.5px; }
    .hero-actions { gap: 8px; }
    .hero-actions .button { gap: 5px; padding-inline: 6px; font-size: 13px; }
    .hero-actions .icon { font-size: 19px; }
    .plan { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

