/* ═══════════════════════════════════════════════
   DUSTON ROLEPLAY — Ana Website Stilleri
   Premium Western Theme · 1899
   ═══════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --gold: #d4a853;
    --gold-light: #e8c97a;
    --gold-dark: #a37b2c;
    --red: #c0392b;
    --red-light: #e74c3c;
    --bg-dark: #0a0806;
    --bg-card: rgba(15, 12, 8, 0.75);
    --bg-glass: rgba(20, 16, 10, 0.6);
    --text: #e8e0d4;
    --text-dim: #9a8e7d;
    --text-bright: #ffffff;
    --border: rgba(212, 168, 83, 0.2);
    --border-bright: rgba(212, 168, 83, 0.5);
    --section-pad: clamp(80px, 12vh, 140px);
    --container-max: 1200px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 20px 60px rgba(0,0,0,0.5);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: transparent;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--gold);
    color: var(--bg-dark);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── Video Background ─── */
#videoBg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.35;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 8, 6, 0.5) 70%, rgba(10, 8, 6, 0.85) 100%),
        linear-gradient(180deg, rgba(10, 8, 6, 0.3) 0%, transparent 30%, transparent 70%, rgba(10, 8, 6, 0.6) 100%);
}

/* ─── Music Controls ─── */
.music-controls {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10001; /* Must be above credits-modal (10000) */
    display: flex;
    align-items: center;
    gap: 0;
}

#musicToggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 8, 6, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#musicToggle:hover {
    background: rgba(212, 168, 83, 0.15);
    border-color: var(--gold);
    transform: scale(1.1);
}

#musicToggle.playing {
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.2);
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(212, 168, 83, 0.15); }
    50% { box-shadow: 0 0 20px rgba(212, 168, 83, 0.35); }
}

.volume-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 8, 6, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 0 14px 0 10px;
    height: 38px;
    margin-left: -6px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-controls:hover .volume-slider-wrap {
    max-width: 180px;
    opacity: 1;
    margin-left: 8px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--border) 100%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(212, 168, 83, 0.4);
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
}

.volume-value {
    font-size: 0.7rem;
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    min-width: 30px;
    text-align: center;
    white-space: nowrap;
}

/* ─── Navigation ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 16px 40px;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 10px 40px;
    background: rgba(10, 8, 6, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: 1;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: contain;
    transition: var(--transition);
}

.nav-brand:hover .nav-logo { transform: rotate(10deg) scale(1.1); }

.nav-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 0 0 auto;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 165px;
    white-space: nowrap;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    padding: 10px 16px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
}

/* Navbar CTA Button Group */
.nav-cta-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
}

.nav-cta-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-cta-discord:hover {
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.nav-cta-discord svg {
    fill: #ffffff;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 8, 6, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    z-index: 998;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.mobile-menu.open { display: flex; }

.mobile-link {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text);
    padding: 8px;
    transition: color 0.3s;
}

.mobile-link:hover { color: var(--gold); }

/* ─── Hero Section ─── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(212, 168, 83, 0.25));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-title-line {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 12px;
    color: var(--gold);
    text-shadow: 0 0 40px rgba(212, 168, 83, 0.3);
    line-height: 1;
}

.hero-title-sub {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 18px;
    color: var(--text-dim);
    margin-top: 8px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 30px 0;
}

.divider-star {
    color: var(--gold);
    font-size: 0.9rem;
    opacity: 0.7;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-year {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 5px;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--border-bright);
}

.btn-secondary:hover {
    background: rgba(212, 168, 83, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 0.95rem;
}

/* Discord Button */
.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(88, 101, 242, 0.45);
}

.btn-discord svg {
    fill: #ffffff;
}

/* Navbar Discord Icon */
.nav-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
    transition: var(--transition);
    margin-right: 12px;
}

.nav-discord:hover {
    background: #5865F2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.nav-discord svg {
    fill: currentColor;
}

/* Mobile Discord Link */
.discord-mobile {
    color: #5865F2 !important;
    border-top: 1px solid rgba(88, 101, 242, 0.2);
    padding-top: 15px;
    margin-top: 5px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.6;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ─── Sections ─── */
.section {
    position: relative;
    padding: var(--section-pad) 0;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
}

.about-bg { background-image: url('assets/about_bg.png'); }
.apply-bg { background-image: url('assets/apply_bg.png'); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 3px;
}

.section-desc {
    max-width: 600px;
    margin: 20px auto 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ─── About Section ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-bright);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-dim);
    line-height: 1.8;
}

.about-text em {
    color: var(--gold);
    font-style: italic;
}

.about-text strong {
    color: var(--gold-light);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.about-image-frame {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--border);
    border-radius: calc(var(--radius-lg) + 4px);
    pointer-events: none;
}

/* ─── Features Section ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-bright);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid var(--border);
    color: var(--gold);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(212, 168, 83, 0.15);
    transform: scale(1.1);
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ─── Timeline Promo ─── */
.timeline-promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.timeline-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.timeline-promo-text {
    color: var(--text-dim);
    line-height: 1.8;
    margin: 20px 0 30px;
}

.timeline-preview {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
}

.preview-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    transform: translateY(-50%);
}

.preview-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: calc(var(--i) * 22% + 5%);
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.4);
    animation: dotPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.3s);
}

@keyframes dotPulse {
    0%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 15px rgba(212, 168, 83, 0.4); }
    50% { transform: translateY(-50%) scale(1.3); box-shadow: 0 0 25px rgba(212, 168, 83, 0.6); }
}

.preview-label-start,
.preview-label-end {
    position: absolute;
    bottom: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.preview-label-start { left: 5%; }
.preview-label-end { right: 5%; }

/* ─── Step Indicators ─── */
.step-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 8, 6, 0.6);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.step-indicator span {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.3s;
    white-space: nowrap;
}

.step-indicator.active .step-num,
.step-indicator.completed .step-num {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
}

.step-indicator.active span { color: var(--gold); }
.step-indicator.completed span { color: var(--gold-light); }

.step-indicator.completed .step-num::after {
    content: '✓';
    font-size: 1rem;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 26px;
    transition: background 0.5s;
    max-width: 100px;
}

.step-connector.active {
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

/* ─── Application Form ─── */
.app-form {
    max-width: 750px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

/* Step visibility */
.form-step {
    display: none;
    animation: stepFadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 1px;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.form-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 32px 0 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(10, 8, 6, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(154, 142, 125, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 6px;
    opacity: 0.7;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-dim);
    cursor: pointer;
}

/* Success Message */
.success-msg {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
}

.success-msg.hidden { display: none; }

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #2ecc71;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-msg h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #2ecc71;
    margin-bottom: 12px;
}

.success-msg p {
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ─── Footer ─── */
#footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    background: rgba(10, 8, 6, 0.8);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 0;
    object-fit: contain;
}

.footer-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ─── Scroll Reveal Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Discord OAuth2 Gate ─── */
.discord-hidden {
    display: none !important;
}

.discord-gate {
    max-width: 560px;
    margin: 0 auto;
}

.discord-gate-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(212, 168, 83, 0.08);
}

.discord-gate-lock {
    color: var(--gold);
    margin-bottom: 24px;
    animation: lockPulse 2.5s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.discord-gate-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--text-bright);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.discord-gate-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.btn-discord-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
    text-decoration: none;
}

.btn-discord-login:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.btn-discord-login:active {
    transform: translateY(0);
}

.discord-gate-note {
    color: var(--text-dim);
    font-size: 0.78rem;
    margin-top: 20px;
    opacity: 0.6;
}

/* ─── Discord Auto-Fill Card ─── */
.discord-autofill-card {
    background: rgba(88, 101, 242, 0.06);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.discord-autofill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #7289da;
    font-weight: 600;
    font-size: 0.9rem;
}

.autofill-badge {
    margin-left: auto;
    background: rgba(88, 101, 242, 0.12);
    color: #7289da;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ─── Locked Form Fields ─── */
.form-group-locked {
    position: relative;
}

.form-group-locked input {
    background: rgba(88, 101, 242, 0.06) !important;
    border-color: rgba(88, 101, 242, 0.2) !important;
    color: #7289da !important;
    cursor: not-allowed;
    font-weight: 500;
    padding-right: 40px;
}

.form-group-locked input:focus {
    box-shadow: none !important;
    border-color: rgba(88, 101, 242, 0.2) !important;
}

.form-group-locked label {
    color: #7289da;
}

.form-group-locked::after {
    content: '🔒';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(20%);
    font-size: 0.85rem;
    opacity: 0.5;
    pointer-events: none;
}

/* ─── Credits Modal (Emeği Geçenler) ─── */
.credits-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #030201;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.credits-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Stars background */
.credits-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.credits-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: creditStarTwinkle linear infinite;
}

@keyframes creditStarTwinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.credits-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, #030201 0%, transparent 18%, transparent 82%, #030201 100%),
        radial-gradient(ellipse at center, transparent 40%, rgba(3, 2, 1, 0.7) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Close button */
.credits-close {
    position: absolute;
    top: 28px;
    right: 32px;
    z-index: 10;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
}

.credits-close:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: var(--gold);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(212, 168, 83, 0.3);
}

/* Credits — center-start scroll system */
.credits-scroll-container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.credits-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 680px;
    text-align: center;
    /* Push the logo down to ~center of viewport */
    padding-top: 35vh;
    padding-bottom: 100vh;
    opacity: 0;
    animation: creditsFadeIn 2s ease forwards;
}

@keyframes creditsFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.credits-intro-block {
    margin-bottom: 40px; /* Normal gap below intro */
    opacity: 0; /* Hidden initially, fades in via JS */
}

.credits-content.scrolling {
    animation: creditsScroll var(--scroll-duration, 50s) linear forwards;
    opacity: 1;
}

@keyframes creditsScroll {
    0% { transform: translate(-50%, 0); }
    100% { transform: translate(-50%, var(--scroll-end, -3000px)); }
}

/* Credit sections */
.credits-section {
    margin-bottom: 55px;
    opacity: 0; /* Hidden initially, faded in via JS */
}

.credits-content > .credits-divider {
    opacity: 0; /* Hidden initially */
}

.credits-final {
    opacity: 0; /* Hidden initially */
}

/* Tribute Section (Lausbub) */
.tribute-container {
    margin: 10px 0 30px 0;
}

.tribute-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.tribute-rose {
    font-size: 1.1rem;
    /* Golden-vintage dark red to match the aesthetic */
    filter: grayscale(0.2) sepia(0.8) hue-rotate(-20deg) saturate(1.8) brightness(0.8);
    animation: gentlePulse 4s infinite ease-in-out;
}

.tribute-name {
    margin-bottom: 0 !important;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(212, 168, 83, 0.8),
        0 0 20px rgba(212, 168, 83, 0.5),
        0 0 40px rgba(212, 168, 83, 0.3) !important;
}

.tribute-underline {
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.6), transparent);
    margin: 10px auto 12px auto;
}

.tribute-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.credits-logo-area {
    margin-bottom: 20px;
}


/* Logo at top */
.credits-logo-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(212, 168, 83, 0.4));
    animation: creditsLogoGlow 3s ease-in-out infinite;
}

@keyframes creditsLogoGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(212, 168, 83, 0.3)); }
    50% { filter: drop-shadow(0 0 60px rgba(212, 168, 83, 0.6)); }
}

/* Main title */
.credits-main-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 10px;
    color: var(--gold);
    text-shadow:
        0 0 20px rgba(212, 168, 83, 0.5),
        0 0 60px rgba(212, 168, 83, 0.2);
    margin-bottom: 20px;
}

/* Dividers */

.credits-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.credits-div-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.credits-div-star {
    color: var(--gold);
    font-size: 1rem;
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(212, 168, 83, 0.5);
}

/* Credit role titles */
.credits-role {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 22px;
    opacity: 0.8;
}

/* Names with glow */
.credits-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 3px;
    animation: nameGlowPulse 3s ease-in-out infinite;
}

.credits-name.glow-gold {
    color: var(--gold-light);
    text-shadow:
        0 0 10px rgba(212, 168, 83, 0.6),
        0 0 30px rgba(212, 168, 83, 0.3),
        0 0 60px rgba(212, 168, 83, 0.15);
}

.credits-name.glow-blue {
    color: #7eb8f0;
    text-shadow:
        0 0 10px rgba(126, 184, 240, 0.6),
        0 0 30px rgba(126, 184, 240, 0.3),
        0 0 60px rgba(126, 184, 240, 0.15);
}

.credits-name.glow-silver {
    color: #c8d6e5;
    text-shadow:
        0 0 10px rgba(200, 214, 229, 0.6),
        0 0 30px rgba(200, 214, 229, 0.3),
        0 0 60px rgba(200, 214, 229, 0.15);
}

.credits-name.glow-purple {
    color: #c39bd3;
    text-shadow:
        0 0 10px rgba(195, 155, 211, 0.6),
        0 0 30px rgba(195, 155, 211, 0.3),
        0 0 60px rgba(195, 155, 211, 0.15);
}

@keyframes nameGlowPulse {
    0%, 100% { opacity: 0.85; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.15); }
}

/* Thanks text under names */
.credits-thanks {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    opacity: 0.7;
    line-height: 1.6;
}

/* Final logo area */
.credits-final-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(212, 168, 83, 0.4));
    opacity: 0.8;
}

.credits-final-text {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212, 168, 83, 0.4);
    margin-bottom: 8px;
}

.credits-final-year {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--text-dim);
    letter-spacing: 6px;
    opacity: 0.6;
}

/* Body lock + hide music when credits open */
body.credits-open {
    overflow: hidden;
}




/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-promo { grid-template-columns: 1fr; padding: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
    #navbar { padding: 12px 20px; }
    .nav-links, .nav-cta, .nav-cta-group { display: none !important; }
    .mobile-menu-btn { display: flex; }
    .hero-logo { width: 140px; height: 140px; }
    .hero-title-line { letter-spacing: 8px; }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-logo { width: 120px; height: 120px; }
    .hero-title-line { letter-spacing: 6px; }
    .about-stats { flex-wrap: wrap; gap: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .app-form { padding: 30px 20px; }
    .timeline-promo { padding: 30px 20px; }
    .footer-inner { grid-template-columns: 1fr; }
    #musicToggle { bottom: 20px; left: 20px; width: 42px; height: 42px; }
    .discord-gate-inner { padding: 36px 24px; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .btn-discord-login { width: 100%; justify-content: center; }
}
