@font-face {
    font-family: "iranyekan";
    src: url("./assets/IRANYekanX-Regular.woff2")
}

:root {
    --bg: #050816;
    --card: rgba(255, 255, 255, 0.07);
    --card-strong: rgba(255, 255, 255, 0.11);
    --border: rgba(255, 255, 255, 0.13);
    --text: #f7f7ff;
    --muted: #aab0d5;
    --primary: #7c3aed;
    --secondary: #06b6d4;
    --pink: #ec4899;
    --green: #22c55e;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    font-family: "iranyekan", Tahoma, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    
    background: radial-gradient(circle at top, #10183a 0%, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(124, 58, 237, 0.22), transparent 28%),
        radial-gradient(circle at 82% 15%, rgba(6, 182, 212, 0.18), transparent 25%),
        radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.13), transparent 30%);
    pointer-events: none;
    z-index: -3;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

#code-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    opacity: 0.38;
}

.mouse-glow {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.23), rgba(124, 58, 237, 0.11), transparent 65%);
    filter: blur(12px);
    transform: translate(-50%, -50%);
    z-index: 999;
    mix-blend-mode: screen;
    transition: width 0.2s ease, height 0.2s ease;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 22, 0.68);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
    direction: ltr;
}

.header-btn {
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
    transition: 0.25s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.hero {
    padding: 94px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 46px;
    align-items: center;
}

.badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #dce7ff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}

.badge span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: 1.16;
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #fff, #b4d9ff, #d8b4fe);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 2.15;
    max-width: 670px;
    margin: 24px 0 0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.primary-btn,
.secondary-btn {
    padding: 15px 22px;
    border-radius: 16px;
    transition: 0.25s ease;
    font-weight: 800;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 45px rgba(124, 58, 237, 0.35);
}

.secondary-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.07);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-stats div {
    min-width: 130px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.hero-stats strong {
    display: block;
    font-size: 1.15rem;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-card {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.preview-window {
    width: min(100%, 520px);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    transform: rotate(-2deg);
    animation: floatWindow 5s ease-in-out infinite;
}

@keyframes floatWindow {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

.window-top {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.22);
    direction: ltr;
}

.window-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-top span:nth-child(1) { background: #ef4444; }
.window-top span:nth-child(2) { background: #f59e0b; }
.window-top span:nth-child(3) { background: #22c55e; }

.preview-body {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 24px;
    min-height: 310px;
}

.preview-sidebar {
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.12)),
        rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.preview-main {
    padding: 8px 0;
}

.line {
    height: 18px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.18);
}

.w-90 { width: 90%; }
.w-70 { width: 70%; }

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.mini-grid div {
    height: 88px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(6,182,212,0.18));
    border: 1px solid rgba(255,255,255,0.13);
}

.preview-button {
    width: 150px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--primary));
}

.floating-code {
    position: absolute;
    direction: ltr;
    padding: 12px 15px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255,255,255,0.16);
    color: #c4f1ff;
    font-family: Consolas, monospace;
    box-shadow: 0 18px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    z-index: 3;
}

.code-one {
    top: 58px;
    right: 20px;
    animation: floatSmall 4s ease-in-out infinite;
}

.code-two {
    left: 0;
    top: 210px;
    animation: floatSmall 5s ease-in-out infinite reverse;
}

.code-three {
    bottom: 65px;
    right: 80px;
    animation: floatSmall 4.6s ease-in-out infinite;
}

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

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    z-index: -1;
}

.orb-one {
    width: 230px;
    height: 230px;
    background: rgba(124, 58, 237, 0.36);
    top: 60px;
    left: 50px;
}

.orb-two {
    width: 210px;
    height: 210px;
    background: rgba(6, 182, 212, 0.25);
    bottom: 50px;
    right: 20px;
}

.steps {
    padding: 60px 0 80px;
}

.section-head {
    text-align: center;
    margin-bottom: 34px;
}

.section-head.align-right {
    text-align: right;
}

.section-head span {
    color: #8be9ff;
    font-weight: 900;
}

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -1px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    position: relative;
    padding: 26px;
    min-height: 250px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045));
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.28s ease;
}

.step-card::before {
    content: "";
    position: absolute;
    inset: auto -60px -70px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(124,58,237,0.22);
    filter: blur(10px);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 233, 255, 0.45);
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
}

.step-number {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 900;
    direction: ltr;
}

.step-card h3 {
    margin: 22px 0 10px;
    font-size: 1.25rem;
}

.step-card p {
    color: var(--muted);
    line-height: 2;
    margin: 0;
}

.challenge-section {
    padding: 70px 0 100px;
}

.challenge-box {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 26px;
    padding: 28px;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.115), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.challenge-info {
    padding: 18px;
}

.challenge-description {
    color: #dfe4ff;
    line-height: 2.25;
    font-size: 1.04rem;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 22px;
}

.challenge-preview {
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.12);
}

.challenge-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.challenge-preview:hover img {
    transform: scale(1.04);
}

.placeholder-preview {
    height: 100%;
    min-height: 420px;
        display: grid;
    place-items: center;
    text-align: center;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(124,58,237,0.20), rgba(6,182,212,0.13)),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.04) 0,
            rgba(255,255,255,0.04) 1px,
            transparent 1px,
            transparent 14px
        );
}

.placeholder-preview span {
    display: block;
    direction: ltr;
    font-family: Consolas, monospace;
    color: #8be9ff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.placeholder-preview p {
    color: var(--muted);
    line-height: 2;
    margin: 0;
}

.countdown-wrap {
    margin-top: 26px;
}

.countdown-wrap p {
    color: var(--muted);
    margin-bottom: 14px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    direction: ltr;
}

.time-card {
    position: relative;
    overflow: hidden;
    padding: 18px 10px;
    text-align: center;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(124,58,237,0.23), rgba(6,182,212,0.10)),
        rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.035);
}

.time-card::before {
    content: "";
        position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.25), transparent 60%);
    opacity: 0.25;
}

.time-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.time-card span {
    font-size: 0.8rem;
    color: var(--muted);
}

.deadline-ended {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,0,80,0.12);
    border: 1px solid rgba(255,0,80,0.25);
    display: none;
}

.empty-state {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
    text-align: center;
    padding: 26px 0;
    color: var(--muted);
}

/* responsive */

@media (max-width: 1000px) {

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

.challenge-box {
grid-template-columns: 1fr;
}

.steps-grid {
grid-template-columns: repeat(2,1fr);
}

}

@media (max-width: 600px) {

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

.countdown {
grid-template-columns: repeat(2,1fr);
}

}
