/* ================= RESET & BASE ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy-900: #0A1F44;
    --navy-800: #0F2A5C;
    --navy-700: #173B7A;
    --gold-500: #C9A227;
    --gold-400: #DDB43A;
    --gold-300: #E8C766;
    --gold-soft: rgba(201, 162, 39, 0.12);
    --emerald: #059669;
    --emerald-500: #10B981;
    --emerald-soft: rgba(5, 150, 105, 0.1);
    --red-500: #DC2626;
    --red-soft: rgba(220, 38, 38, 0.1);
    --blue-500: #3B82F6;
    --blue-soft: rgba(59, 130, 246, 0.1);
    --purple-500: #8B5CF6;
    --purple-soft: rgba(139, 92, 246, 0.1);
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-cream: #FDFCF9;
    --text-dark: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --border-light: rgba(255,255,255,0.1);
    --shadow-sm: 0 4px 16px rgba(10, 31, 68, 0.06);
    --shadow-md: 0 12px 32px rgba(10, 31, 68, 0.10);
    --shadow-lg: 0 24px 60px rgba(10, 31, 68, 0.16);
    --shadow-gold: 0 12px 30px rgba(201, 162, 39, 0.35);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: var(--navy-900);
    color: var(--text-body);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--gold-500); color: var(--navy-900); }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ================= BACKGROUND ================= */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
}
.bg-decor::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.22), transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    animation: float-slow 15s ease-in-out infinite;
}
.bg-decor::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(30, 75, 148, 0.5), transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    animation: float-slow 18s ease-in-out infinite reverse;
}
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ================= FLOATING EMOJIS ================= */
.floating-emoji {
    position: absolute;
    font-size: 32px;
    opacity: 0.15;
    animation: float-emoji 20s linear infinite;
    pointer-events: none;
    user-select: none;
}
.floating-emoji.e1 { top: 15%; left: 8%; animation-delay: 0s; }
.floating-emoji.e2 { top: 70%; left: 12%; animation-delay: 3s; font-size: 40px; }
.floating-emoji.e3 { top: 25%; right: 10%; animation-delay: 6s; font-size: 36px; }
.floating-emoji.e4 { top: 80%; right: 15%; animation-delay: 9s; }
.floating-emoji.e5 { top: 45%; left: 5%; animation-delay: 12s; font-size: 28px; }
.floating-emoji.e6 { top: 55%; right: 5%; animation-delay: 15s; font-size: 34px; }

@keyframes float-emoji {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(30px) rotate(270deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* ================= HEADER ================= */
.header {
    position: fixed; top: 16px; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1240px;
    z-index: 1000;
    background: rgba(10, 31, 68, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(10, 31, 68, 0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    top: 8px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    border-radius: 11px;
    font-size: 19px;
    box-shadow: var(--shadow-gold);
}
.logo-text .accent { color: var(--gold-400); }

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.back-home:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: var(--gold-500);
}
.back-home i { font-size: 13px; }

/* ================= MAIN CONTAINER ================= */
.container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ================= BADGE ================= */
.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-soft);
    color: var(--gold-400);
    border: 1px solid rgba(201, 162, 39, 0.35);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 32px;
    animation: pulse-badge 2.5s ease-in-out infinite;
}
.top-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-500);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald-500);
    animation: pulse 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ================= ILLUSTRATION ================= */
.illustration {
    position: relative;
    margin-bottom: 40px;
    animation: bounce-in 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounce-in {
    0% { opacity: 0; transform: scale(0.5) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.illustration-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    border: 2px dashed rgba(201, 162, 39, 0.4);
    border-radius: 50%;
    position: relative;
    animation: rotate-slow 30s linear infinite;
}
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.illustration-emoji {
    font-size: 80px;
    animation: rotate-slow-reverse 30s linear infinite;
}
@keyframes rotate-slow-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.illustration .hammer-1,
.illustration .hammer-2 {
    position: absolute;
    font-size: 36px;
    animation: hammer-bounce 3s ease-in-out infinite;
}
.illustration .hammer-1 {
    top: 0;
    right: 0;
    transform: rotate(-25deg);
}
.illustration .hammer-2 {
    bottom: 0;
    left: 0;
    transform: rotate(155deg);
    animation-delay: 1.5s;
}
@keyframes hammer-bounce {
    0%, 100% { transform: rotate(-25deg) translateY(0); }
    50% { transform: rotate(-25deg) translateY(-10px); }
}

/* ================= TITLE ================= */
.main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.main-title .accent {
    color: var(--gold-400);
    position: relative;
    display: inline-block;
}
.main-title .accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 0;
    left: 0;
    height: 10px;
    background: rgba(201, 162, 39, 0.25);
    z-index: -1;
    border-radius: 5px;
}

/* ================= SUBTITLE ================= */
.subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,0.75);
    line-height: 2;
    max-width: 640px;
    margin: 0 auto 40px;
}
.subtitle strong {
    color: var(--gold-400);
    font-weight: 800;
}

/* ================= FUN CARDS ================= */
.fun-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 780px;
    margin-bottom: 48px;
}
.fun-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.fun-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.fun-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.fun-card:hover::before { opacity: 1; }

.fun-card-emoji {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    animation: wiggle 3s ease-in-out infinite;
}
.fun-card:nth-child(2) .fun-card-emoji { animation-delay: 0.5s; }
.fun-card:nth-child(3) .fun-card-emoji { animation-delay: 1s; }
@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

.fun-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.fun-card-text {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* ================= FUN QUOTE ================= */
.fun-quote {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-width: 680px;
    width: 100%;
    margin-bottom: 48px;
    position: relative;
}
.fun-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 24px;
    font-size: 80px;
    color: var(--gold-500);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}
.fun-quote-text {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: rgba(255,255,255,0.9);
    line-height: 2;
    font-weight: 600;
    font-style: italic;
}
.fun-quote-author {
    margin-top: 12px;
    font-size: 13px;
    color: var(--gold-400);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* ================= CTA BUTTONS ================= */
.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(201, 162, 39, 0.55);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--gold-500);
    color: var(--gold-400);
    transform: translateY(-3px);
}

/* ================= PROGRESS ================= */
.progress-section {
    max-width: 500px;
    width: 100%;
    margin-bottom: 32px;
}
.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.progress-label .percent {
    color: var(--gold-400);
    font-size: 15px;
}
.progress-track {
    height: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-300));
    border-radius: 100px;
    width: 0%;
    transition: width 2s ease-out;
    position: relative;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 2s infinite;
}
@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.progress-hint {
    margin-top: 12px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    font-style: italic;
}

/* ================= FOOTER ================= */
.mini-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 24px 40px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
.mini-footer a {
    color: var(--gold-400);
    font-weight: 700;
    transition: var(--transition);
}
.mini-footer a:hover { color: var(--gold-300); }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .container { padding: 120px 18px 60px; }
    .fun-cards { grid-template-columns: 1fr; max-width: 400px; }
    .illustration-circle { width: 140px; height: 140px; }
    .illustration-emoji { font-size: 60px; }
    .illustration .hammer-1,
    .illustration .hammer-2 { font-size: 28px; }
    .fun-quote { padding: 22px 24px; }
    .fun-quote::before { font-size: 60px; top: -5px; right: 16px; }
    .back-home span { display: none; }
    .back-home { padding: 10px; }
    .cta-row { flex-direction: column; width: 100%; max-width: 340px; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    .floating-emoji { display: none; }
}

@media (max-width: 480px) {
    .main-title { font-size: 1.5rem; }
    .subtitle { font-size: 0.95rem; }
    .fun-card { padding: 20px 16px; }
    .fun-card-emoji { font-size: 34px; }
    .top-badge { font-size: 12px; padding: 6px 14px; }
}

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