:root {
    --bg: #050505;
    --text-main: #f4f4f4;
    --text-muted: #666666;
    --accent: #d4af37;
    --font-fa: 'Vazirmatn', sans-serif;
    --font-en: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-fa);
    overflow-x: hidden;
    cursor: none;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--text-main);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        height 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cursor.hovering {
    width: 80px;
    height: 80px;
    background-color: var(--accent);
    mix-blend-mode: normal;
    opacity: 0.8;
}

/* --- بافت نویز برای حس سینمایی --- */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- لایه‌های پارالاکس پس‌زمینه --- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(50px);
}

/* --- ساختار اصلی --- */
main {
    position: relative;
    z-index: 10;
}

section {
    min-height: 100vh;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 15rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.hero-title .line {
    overflow: hidden;
    display: block;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-style: italic;
    color: var(--text-muted);
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
}

.content-section {
    align-items: center;
    text-align: center;
    min-height: 80vh;
}

.manifesto {
    max-width: 800px;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
}

.manifesto span {
    color: var(--accent);
    font-weight: 700;
}

.portal-form {
    position: relative;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
}

.portal-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-muted);
    color: var(--text-main);
    font-family: var(--font-fa);
    font-size: 1.5rem;
    padding: 1rem 0;
    text-align: center;
    outline: none;
    transition: border-color 0.4s ease;
    direction: ltr;
}

.portal-form input::placeholder {
    color: #333;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.portal-form input:focus {
    border-bottom-color: var(--accent);
}

.portal-form button {
    margin-top: 2rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 1rem 3rem;
    font-family: var(--font-fa);
    font-size: 1rem;
    font-weight: 700;
    cursor: none;
    /* ماوس سفارشی */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portal-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.portal-form button:hover {
    border-color: var(--accent);
    color: #000;
}

.portal-form button:hover::before {
    transform: scaleY(1);
}

.status-msg {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--accent);
    min-height: 1.5rem;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 10;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    cursor: none;
}

.socials a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .hero-subtitle {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}