:root {
    --nav-height: 3.75rem;
    --gold: #c9a227;
    --gold-light: #e8d48a;
    --gold-pale: #f7f0dc;
    --ink: #1f2937;
    --ink-muted: #4b5563;
    --cream: #fdfcfa;
    --surface: #ffffff;
    --border: #e8e4dc;
    --text: #374151;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

.gradient-bg,
.hero-light {
    background: linear-gradient(165deg, #ffffff 0%, var(--gold-pale) 45%, #fff9ee 100%);
    position: relative;
}

.gradient-bg::before,
.hero-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 85% 15%, rgba(212, 175, 55, 0.14), transparent 55%);
    pointer-events: none;
}

.gold-gradient {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.18);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.shimmer {
    background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.navbar-gradient {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    padding-top: env(safe-area-inset-top, 0);
}

.page-below-nav {
    padding-top: var(--nav-height);
    box-sizing: border-box;
}

.page-hero.page-below-nav {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-gradient.nav-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.96);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.nav-link-active::after {
    transform: scaleX(1);
}

.feature-icon-wrap {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(249, 242, 149, 0.25));
    color: #b8860b;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.phone-mockup {
    position: relative;
    transform: rotate(-4deg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    max-width: 100%;
    width: 100%;
    object-fit: contain;
    border: 3px solid rgba(212, 175, 55, 0.35);
}

.hero-visual {
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, 90%);
    height: 320px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.avatar-initials {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--ink);
    flex-shrink: 0;
}

.btn-gold {
    background: linear-gradient(135deg, #e6c04a, var(--gold));
    color: #1a1a1a;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.35);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: #8b6914;
    background: var(--surface);
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-outline-gold:hover {
    background: var(--gold-pale);
    color: var(--ink);
    border-color: var(--gold);
}

.store-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--ink);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.12);
}

.section-cream {
    background-color: #f8f6f2;
}

.section-soft-gold {
    background: linear-gradient(180deg, #fffefb 0%, var(--gold-pale) 100%);
}

.stat-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.site-footer {
    background: #f3f1ec;
    border-top: 1px solid var(--border);
    color: var(--ink-muted);
}

.site-footer h4,
.site-footer .brand-title {
    color: var(--ink);
}

.privacy-section {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.privacy-section:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.privacy-toc a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.privacy-toc a:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--ink);
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}

.privacy-table th,
.privacy-table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.privacy-table th {
    background-color: var(--cream);
    font-weight: 600;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--cream);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 1rem;
    max-height: 500px;
}

.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.mobile-cta-bar.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }

    .phone-mockup {
        transform: rotate(0) !important;
        max-width: 72% !important;
        margin: 0 auto !important;
    }

    .app-showcase-image {
        transform: rotate(0) !important;
    }

    .section-padding {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .floating {
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    body.has-mobile-cta {
        padding-bottom: 4.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating,
    .shimmer {
        animation: none !important;
    }

    .card-hover:hover {
        transform: none;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.site-logo {
    height: 2.5rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    display: block;
}

.site-logo-lg {
    height: 3.5rem;
    max-width: 12rem;
}

.site-logo-footer {
    height: 3rem;
    max-width: 10rem;
    margin-bottom: 0.75rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.site-logo-nav {
    height: 2.75rem;
    max-width: min(42vw, 11rem);
}

@media (min-width: 768px) {
    .site-logo-nav {
        height: 4rem;
        max-width: 15rem;
    }
}

.nav-bar .brand-link {
    flex-shrink: 1;
    min-width: 0;
}
