:root {
    --bg-deep: #06080f;
    --bg-mid: #0c1220;
    --gold: #d4af37;
    --gold-light: #f5e6a3;
    --gold-dim: #8a7020;
    --teal: #1e8a72;
    --teal-glow: rgba(30, 138, 114, 0.35);
    --gold-glow: rgba(212, 175, 55, 0.4);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(212, 175, 55, 0.18);
    --text-primary: #f4f0e6;
    --text-muted: rgba(244, 240, 230, 0.55);
    --font: 'IRANSans(FaNum)', system-ui, sans-serif;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 3rem;
    isolation: isolate;
}

/* ── Background layers ── */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at var(--mouse-x) var(--mouse-y), rgba(212, 175, 55, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(30, 138, 114, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 85% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
        linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #0a1018 100%);
    transition: background 0.15s ease;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.orb--gold {
    width: min(55vw, 420px);
    height: min(55vw, 420px);
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    top: 10%;
    left: 5%;
}

.orb--teal {
    width: min(45vw, 360px);
    height: min(45vw, 360px);
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    bottom: 8%;
    right: 8%;
}

.orb--warm {
    width: min(35vw, 280px);
    height: min(35vw, 280px);
    background: radial-gradient(circle, rgba(180, 120, 40, 0.2) 0%, transparent 70%);
    top: 55%;
    left: 40%;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(6, 8, 15, 0.85), transparent);
    opacity: 0;
    animation: fadeDown 0.8s ease 0.2s forwards;
}

.nav-brand {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--gold-light);
    opacity: 0.85;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.nav-link:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

/* ── Hero card ── */
.hero-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 720px;
    perspective: 1200px;
}

.hero-card {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 5vw, 3.5rem);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    will-change: transform;
    opacity: 0;
    animation: cardReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), transparent 40%, transparent 60%, rgba(30, 138, 114, 0.25));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(212, 175, 55, 0.06) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ── Logo mark ── */
.logo-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.75rem;
    position: relative;
    opacity: 0;
    animation: scaleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    animation: ringPulse 3s ease-in-out infinite;
}

.logo-ring--outer {
    inset: -8px;
    border-color: rgba(212, 175, 55, 0.12);
    animation-delay: 0.5s;
}

.logo-core {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.25), rgba(30, 138, 114, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-light);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

/* ── Typography ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.06);
    opacity: 0;
    animation: fadeUp 0.7s ease 0.75s forwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: dotPulse 2s ease infinite;
}

.title {
    font-size: clamp(2.4rem, 8vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, #b8922a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 20px rgba(212, 175, 55, 0.25));
    opacity: 0;
    animation: fadeUp 0.8s ease 0.85s forwards;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: fadeUp 0.8s ease 1s forwards;
}

.divider {
    width: 60px;
    height: 2px;
    margin: 0 auto 1.75rem;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    animation: expandLine 0.8s ease 1.1s forwards;
}

.location {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-style: normal;
    color: var(--text-primary);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0;
    animation: fadeUp 0.8s ease 1.2s forwards;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.location:hover {
    border-color: rgba(30, 138, 114, 0.35);
    box-shadow: 0 0 20px rgba(30, 138, 114, 0.12);
}

.location-icon {
    width: 20px;
    height: 20px;
    color: var(--teal);
    flex-shrink: 0;
}

/* ── Decorative stats ── */
.stats {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2.5rem);
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    animation: fadeUp 0.8s ease 1.4s forwards;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ── CTA ── */
.cta-wrap {
    margin-top: 2.25rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.55s forwards;
}

.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 2rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg-deep);
    text-decoration: none;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dim) 100%);
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.35s, transform 0.35s;
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.35);
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-btn:hover {
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3.5s ease-in-out infinite;
}

/* ── Floating particles (DOM) ── */
.float-particles {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.float-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: floatUp linear infinite;
}

/* ── Scroll hint ── */
.scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 2s forwards;
}

.scroll-hint span {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollBounce 2s ease infinite;
}

/* ── Footer ── */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(244, 240, 230, 0.25);
    opacity: 0;
    animation: fadeUp 0.8s ease 1.8s forwards;
}

/* ── Cursor glow (desktop) ── */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 4;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body.is-hovering .cursor-glow {
    opacity: 1;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(212, 175, 55, 0);
    }
}

@keyframes expandLine {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 60px;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    40%, 100% {
        left: 150%;
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(0.6);
        opacity: 1;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-card,
    .cursor-glow {
        transform: none !important;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .scroll-hint {
        display: none;
    }

    .cursor-glow {
        display: none;
    }
}
