:root {
    color-scheme: light;
    /* Roz Gallery: deep navy, warm gold and ivory. */
    --neutral-0: #ffffff;
    --neutral-50: #faf8f3;
    --neutral-100: #f2ede4;
    --neutral-300: #ddd4c5;
    --neutral-600: #586675;
    --neutral-900: #063263;
    --brass-500: #d2ac67;
    --brass-700: #80602f;
    --color-ink: var(--neutral-900);
    --color-muted: var(--neutral-600);
    --color-surface: var(--neutral-0);
    --color-soft: var(--neutral-50);
    --color-line: var(--neutral-300);
    --color-gold: var(--brass-500);
    --color-gold-dark: var(--brass-700);
    --color-success: #18785a;
    --shadow-soft: 0 24px 70px rgb(6 50 99 / 8%);
    --space-section: clamp(56px, 7vw, 104px);
    --space-section-compact: clamp(30px, 4vw, 60px);
    --text-heading-1: clamp(1.4rem, 3vw, 2.25rem);
    --text-heading-2: clamp(1.25rem, 2.4vw, 1.85rem);
    --text-heading-3: clamp(1.1rem, 2vw, 1.5rem);
    --text-heading-4: clamp(1rem, 1.5vw, 1.2rem);
    --text-display: clamp(1.65rem, 3.5vw, 2.65rem);
    --text-section: clamp(1.3rem, 2.4vw, 2rem);
    --duration-fast: 180ms;
    --duration-slow: 600ms;
    --ease-luxury: cubic-bezier(.22, 1, .36, 1);
    font-family: 'IRANYekanX', Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    color: var(--color-ink);
    background: var(--color-surface);
    line-height: 1.85;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -.02em;
}

h1 { font-size: var(--text-heading-1); }
h2 { font-size: var(--text-heading-2); }
h3 { font-size: var(--text-heading-3); }
h4 { font-size: var(--text-heading-4); }
h5 { font-size: 1rem; }
h6 { font-size: .92rem; }

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

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

button,
a,
input,
select,
textarea {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

body.has-modal {
    overflow: hidden;
    width: 100%;
}

.shell-container {
    width: min(1320px, calc(100% - clamp(32px, 6vw, 96px)));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 8px 14px;
    color: white;
    background: var(--color-ink);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    z-index: 30;
    inset-block-start: 0;
    overflow: visible;
    border-bottom: 1px solid rgb(216 210 200 / 65%);
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.brand,
.header-actions,
.main-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 600;
    letter-spacing: .025em;
}

.brand-logo {
    width: 120px;
    object-fit: contain;
}

.main-nav {
    justify-content: center;
    gap: 36px;
    color: var(--color-muted);
}

.main-nav a,
.action-link {
    position: relative;
    transition: color var(--duration-fast) ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-end: -8px;
    height: 1px;
    background: currentcolor;
    transform: scaleX(0);
    transition: transform var(--duration-fast) ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

.main-nav a:hover,
.main-nav a:focus-visible,
.action-link:hover,
.action-link:focus-visible {
    color: var(--color-gold-dark);
}

.header-actions {
    gap: 14px;
    font-size: 0.9rem;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    color: var(--color-ink);
    border: 1px solid var(--color-ink);
    background: transparent;
    border-radius: 0;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    color: var(--color-ink);
    color: var(--color-surface);
    background: var(--color-ink);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

#main-content {
    flex: 1;
    outline: none;
}

.ready-page {
    position: relative;
    min-height: calc(100vh - 156px);
    display: grid;
    align-items: center;
    padding-block: 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgb(213 179 100 / 18%), transparent 32%),
        linear-gradient(145deg, #fffdf8 0%, #f7f0e2 100%);
}

.ready-page::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    inset-block-end: -280px;
    inset-inline-end: -100px;
    border: 1px solid rgb(138 106 40 / 20%);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgb(138 106 40 / 4%), 0 0 0 140px rgb(138 106 40 / 3%);
}

.ready-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
}

.status-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    color: var(--color-success);
    background: rgb(24 120 90 / 9%);
    border: 1px solid rgb(24 120 90 / 18%);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgb(24 120 90 / 10%);
}

.ready-copy h1 {
    max-width: 700px;
    margin: 22px 0 16px;
    font-size: var(--text-heading-1);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ready-copy p {
    max-width: 650px;
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.ready-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.primary-button,
.secondary-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 20px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button {
    color: white;
    background: var(--color-gold-dark);
    box-shadow: 0 14px 32px rgb(99 72 19 / 20%);
}

.secondary-button {
    border: 1px solid var(--color-line);
    background: rgb(255 255 255 / 55%);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.stack-card {
    padding: 22px;
    border: 1px solid rgb(138 106 40 / 20%);
    background: rgb(255 253 248 / 78%);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.stack-card-header,
.stack-card li,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stack-card-header {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-code {
    color: var(--color-success);
}

.stack-card ul {
    margin: 0;
    padding: 8px 0 0;
    list-style: none;
}

.stack-card li {
    min-height: 58px;
    border-bottom: 1px solid rgb(229 220 201 / 70%);
    font-weight: 700;
}

.stack-card li:last-child {
    border-bottom: 0;
}

.check-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--color-success);
    background: rgb(24 120 90 / 10%);
    border-radius: 50%;
}

.site-footer {
    padding-block: 20px;
    color: #cfcac2;
    background: var(--color-ink);
    font-size: 0.85rem;
}

.footer-inner {
    gap: 24px;
}

.footer-inner p {
    margin: 0;
}

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .main-nav {
        display: none;
    }

    .ready-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .shell-container {
        width: min(100% - 24px, 1320px);
    }

    .brand span,
    .action-link {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .ready-page {
        min-height: auto;
        padding-block: 48px;
    }

    .ready-copy h1 {
        font-size: var(--text-heading-1);
    }

    .ready-actions,
    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
