@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazirmatn.woff2') format('woff2-variations'),
        url('fonts/vazirmatn.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --cream: #FBF3DF;
    --cream-card: #FFFBF2;
    --ink: #3A2116;
    --ink-soft: #7A6650;
    --saffron: #E8A33D;
    --saffron-deep: #C97F1E;
    --paprika: #C1440E;
    --herb: #6E8F4E;
    --line: rgba(58, 33, 22, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
.display {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.num {
    font-family: 'Vazirmatn', sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

a {
    color: inherit;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

/* texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(58, 33, 22, 0.05) 1px, transparent 0);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 243, 222, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    max-width: 1120px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: conic-gradient(from 220deg, var(--saffron), var(--paprika), var(--saffron));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--paprika);
    color: #FFF7EC;
    box-shadow: 0 8px 20px rgba(193, 68, 14, 0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
    padding: 11px 20px;
}

.btn-small {
    padding: 9px 16px;
    font-size: 13.5px;
}

section {
    position: relative;
    z-index: 1;
}

/* HERO */
.hero {
    padding: 76px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--paprika);
    background: rgba(193, 68, 14, 0.09);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.eyebrow::before {
    content: "●";
    font-size: 8px;
    color: var(--saffron);
}

.hero h1 {
    font-size: clamp(32px, 4.2vw, 50px);
    line-height: 1.28;
}

.hero h1 .hl {
    color: var(--paprika);
}

.hero p.lead {
    margin-top: 20px;
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 46ch;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* SIGNATURE: recipe scaler */
.scaler {
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px rgba(58, 33, 22, 0.10);
}

.scaler-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.scaler-head h3 {
    font-size: 19px;
}

.scaler-head span {
    font-size: 13px;
    color: var(--ink-soft);
}

.slider-row {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.slider-label b {
    color: var(--ink);
    font-family: 'Vazirmatn';
    font-weight: 700;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--saffron), var(--paprika));
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFF7EC;
    border: 3px solid var(--paprika);
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(58, 33, 22, 0.3);
}

input[type=range]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFF7EC;
    border: 3px solid var(--paprika);
    cursor: pointer;
}

.ing-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.ing .name {
    font-size: 14.5px;
    color: var(--ink-soft);
}

.ing .amt {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.ing .amt .unit {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-right: 4px;
}

.serves {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--herb);
    font-weight: 600;
}

/* FEATURES */
.features {
    padding: 88px 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.section-head .eyebrow {
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.35;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feat-card {
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px 24px;
}

.feat-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feat-icon.a {
    background: rgba(232, 163, 61, 0.18);
}

.feat-icon.b {
    background: rgba(193, 68, 14, 0.12);
}

.feat-icon.c {
    background: rgba(110, 143, 78, 0.15);
}

.feat-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feat-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

/* HOW IT WORKS */
.how {
    padding: 20px 0 88px;
}

.how-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.how-list::before {
    content: "";
    position: absolute;
    top: 26px;
    right: 16.5%;
    left: 16.5%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}

.how-item {
    padding: 0 18px;
    position: relative;
}

.how-num {
    font-family: 'Vazirmatn';
    font-weight: 900;
    font-size: 15px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.how-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.how-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

/* SCREENS */
.screens {
    padding: 20px 0 96px;
}

.phones {
    display: flex;
    gap: 26px;
    justify-content: center;
    flex-wrap: wrap;
}

.phone {
    width: 230px;
    height: 460px;
    border-radius: 34px;
    background: var(--ink);
    padding: 10px;
    box-shadow: 0 30px 60px rgba(58, 33, 22, 0.22);
    flex-shrink: 0;
}

/* .phone .screen {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    background: var(--cream-card);
    overflow: hidden;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
} */

.phone .bar {
    height: 6px;
    width: 40%;
    background: var(--line);
    border-radius: 99px;
    margin: 0 auto 4px;
}

.mini-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}

.mini-title {
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mini-line {
    height: 8px;
    background: var(--line);
    border-radius: 4px;
    margin-bottom: 6px;
}

.mini-line.short {
    width: 60%;
}

.mini-pill {
    display: inline-block;
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(232, 163, 61, 0.22);
    color: var(--saffron-deep);
    font-weight: 700;
}

.phone-cap {
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-top: 14px;
}

.phone .screen {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    background: var(--cream-card);
    overflow: hidden;
    padding: 0;
    /* بجای padding قبلی */
    display: block;
    /* بجای flex قبلی */
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* عکس رو بدون کش‌اومدن پر می‌کنه */
    display: block;
}

/* CTA */
.cta {
    padding: 20px 0 100px;
}

.cta-box {
    background: linear-gradient(135deg, var(--paprika), #9c360b);
    border-radius: 28px;
    padding: 56px 40px;
    text-align: center;
    color: #FFF3E4;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -140px;
    left: -100px;
}

.cta-box h2 {
    font-size: clamp(24px, 3vw, 32px);
    color: #FFF7EC;
    position: relative;
}

.cta-box p {
    color: rgba(255, 243, 228, 0.85);
    margin-top: 12px;
    font-size: 15.5px;
    position: relative;
}

.cta-box .btn-primary {
    background: #FFF3E4;
    color: var(--paprika);
    margin-top: 26px;
    position: relative;
}

.cta-box .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
}

.foot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.foot-row .logo {
    font-size: 16px;
}

footer p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
}

@media (max-width: 880px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .feat-grid {
        grid-template-columns: 1fr;
    }

    .how-list {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .how-list::before {
        display: none;
    }

    .nav .btn-ghost {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }
}