/* ==========================================================================
   کافینا — Landing page styles
   Warm espresso theme, RTL, Vazirmatn
   ========================================================================== */

:root {
    --bg: #140d07;
    --bg-2: #1c130a;
    --surface: #241a0f;
    --surface-2: #2e2114;
    --line: rgba(224, 176, 108, 0.14);
    --text: #f6ede0;
    --muted: #c7b49b;
    --gold: #e0a458;
    --gold-2: #c98a3c;
    --caramel: #b5793a;
    --cream: #f3e4cf;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.7);
    --maxw: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }

h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }

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

.grad {
    background: linear-gradient(120deg, var(--gold), #f0c987 60%, var(--caramel));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    white-space: nowrap;
}
.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn--primary {
    background: linear-gradient(120deg, var(--gold), var(--gold-2));
    color: #241407;
    box-shadow: 0 12px 28px -10px rgba(224, 164, 88, 0.6);
}
.btn--primary:hover {
    transform: translateY(-3px);
    color: #241407;
    box-shadow: 0 18px 36px -10px rgba(224, 164, 88, 0.75);
}
.btn--ghost {
    background: transparent;
    color: var(--cream);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); transform: translateY(-3px); }

/* ---------- Notice bar ---------- */
.notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    flex-wrap: wrap;
    padding: .7rem 3rem .7rem 1rem;
    background: linear-gradient(90deg, var(--surface-2), var(--surface));
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    position: relative;
    text-align: center;
}
.notice.is-hidden { display: none; }
.notice__text strong { color: var(--gold); }
.notice__btn {
    background: var(--gold);
    color: #241407;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
}
.notice__btn:hover { background: var(--cream); color: #241407; }
.notice__close {
    position: absolute;
    inset-inline-end: .8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.notice__close:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: .9rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(20, 13, 7, 0.55);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.site-header.is-scrolled {
    background: rgba(20, 13, 7, 0.92);
    border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 800; }
.brand__mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--caramel));
    color: #241407;
}
.brand__name { font-size: 1.25rem; letter-spacing: .3px; }
.nav {
    display: flex;
    gap: 1.4rem;
    margin-inline-start: auto;
    font-size: .95rem;
}
.nav a { color: var(--muted); position: relative; }
.nav a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -4px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(4rem, 12vw, 8rem) clamp(1rem, 5vw, 2.5rem) clamp(3rem, 8vw, 6rem);
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% -10%, rgba(224, 164, 88, 0.18), transparent 55%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.bean {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 60% 60% 60% 60% / 65% 65% 55% 55%;
    background: radial-gradient(circle at 35% 30%, rgba(224, 164, 88, 0.28), rgba(181, 121, 58, 0.05));
    filter: blur(6px);
    opacity: .5;
    animation: float 12s ease-in-out infinite;
}
.bean--1 { top: 12%; inset-inline-start: 8%; }
.bean--2 { top: 55%; inset-inline-end: 10%; width: 180px; height: 180px; animation-delay: -3s; }
.bean--3 { top: 20%; inset-inline-end: 22%; width: 80px; height: 80px; animation-delay: -6s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-26px) rotate(8deg); }
}
.hero__inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero__eyebrow {
    display: inline-block;
    padding: .35rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold);
    font-size: .85rem;
    margin-bottom: 1.4rem;
}
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; margin-bottom: 1rem; }
.hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__stats {
    display: flex;
    gap: clamp(1.5rem, 6vw, 3.5rem);
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.hero__stats dt { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.hero__stats dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 5vw, 2.5rem); max-width: var(--maxw); margin: 0 auto; }
.section--alt {
    max-width: none;
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
    border-block: 1px solid var(--line);
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section__head p { color: var(--muted); }
.kicker {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .5px;
    margin-bottom: .6rem;
}

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}
.card {
    background: linear-gradient(160deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(224, 164, 88, 0.4);
    box-shadow: var(--shadow);
}
.card__icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(224, 164, 88, 0.12);
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Why ---------- */
.why {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    max-width: var(--maxw);
    margin: 0 auto;
}
.why__media { display: grid; place-items: center; min-height: 260px; }
.why__text ul { padding: 0; margin: 1.4rem 0 2rem; list-style: none; }
.ticks li { position: relative; padding-inline-start: 2rem; margin-bottom: .8rem; color: var(--cream); }
.ticks li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 1.4rem; height: 1.4rem;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--caramel));
    color: #241407;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 800;
}

/* Steaming cup */
.cup {
    position: relative;
    width: 150px; height: 130px;
    border: 6px solid var(--gold);
    border-radius: 0 0 60px 60px;
    background: linear-gradient(180deg, #3a2814, #241a0f);
}
.cup::after {
    content: "";
    position: absolute;
    inset-inline-end: -46px;
    top: 24px;
    width: 44px; height: 54px;
    border: 6px solid var(--gold);
    border-inline-start: none;
    border-radius: 0 30px 30px 0;
}
.cup .steam {
    position: absolute;
    top: -46px;
    width: 8px; height: 44px;
    background: linear-gradient(var(--cream), transparent);
    border-radius: 999px;
    opacity: 0;
    filter: blur(2px);
    animation: steam 3.5s ease-out infinite;
}
.cup .steam:nth-child(1) { inset-inline-start: 38px; animation-delay: 0s; }
.cup .steam:nth-child(2) { inset-inline-start: 70px; animation-delay: 1.1s; }
.cup .steam:nth-child(3) { inset-inline-start: 102px; animation-delay: 2.2s; }
@keyframes steam {
    0% { opacity: 0; transform: translateY(0) scaleX(1); }
    40% { opacity: .7; }
    100% { opacity: 0; transform: translateY(-40px) scaleX(1.6); }
}

/* ---------- CTA banner ---------- */
.cta-banner {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 0%, rgba(224, 164, 88, 0.2), transparent 60%),
        linear-gradient(160deg, var(--surface-2), var(--bg-2));
    border: 1px solid rgba(224, 164, 88, 0.3);
}
.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-banner p { color: var(--muted); max-width: 560px; margin: 0 auto 2rem; }
.cta-banner strong { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .3rem 1.4rem;
    transition: border-color .3s;
}
.faq details[open] { border-color: rgba(224, 164, 88, 0.35); }
.faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--gold);
    font-size: 1.4rem;
    transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 1rem; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding: 3rem clamp(1rem, 5vw, 2.5rem);
}
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.brand--footer { justify-content: center; margin-bottom: 1rem; }
.site-footer__note { color: var(--muted); margin: 0 0 .6rem; }
.site-footer__copy { color: var(--muted); font-size: .85rem; opacity: .7; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
    .nav { display: none; }
    .why { grid-template-columns: 1fr; text-align: center; }
    .why__text ul { display: inline-block; text-align: right; }
    .ticks li { text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
