/* ==========================================================================
   DUSK INK — Luxury Anime & Ink Aesthetics
   ========================================================================== */

:root {
    --bg-dark: #07050C;
    --bg-card: rgba(18, 14, 28, 0.75);
    --bg-card-hover: rgba(26, 20, 40, 0.9);
    --border-card: rgba(157, 78, 221, 0.22);
    --border-hover: rgba(199, 125, 255, 0.55);
    
    --purple-main: #7B2CBF;
    --purple-bright: #9D4EDD;
    --purple-neon: #C77DFF;
    --purple-glow: rgba(157, 78, 221, 0.4);
    
    --text-white: #FFFFFF;
    --text-light: #C8C2D8;
    --text-muted: #7E7694;
    
    --font-head: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a, button, iframe, input {
    cursor: none !important;
}

/* ==========================================================================
   1. INK DRAWING CANVAS & BRUSH CURSOR
   ========================================================================== */
#inkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;
}

.brush-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-4px, -32px);
    transition: transform 0.02s linear;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.7));
}

.brush-tip-dot {
    animation: tipBlink 1.4s ease-in-out infinite alternate;
}

@keyframes tipBlink {
    from { r: 2; fill: #C77DFF; }
    to { r: 3.5; fill: #E0AAFF; filter: drop-shadow(0 0 6px #E0AAFF); }
}

/* ==========================================================================
   2. MINIMALIST PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #050308;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.preloader-brand {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #FFF;
    margin-bottom: 4px;
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
}

.preloader-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--purple-neon);
    margin-bottom: 24px;
}

.progress-bar-wrap {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7B2CBF, #C77DFF);
    box-shadow: 0 0 10px #C77DFF;
    transition: width 0.04s linear;
}

.preloader-counter {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   3. AMBIENT GLOWS
   ========================================================================== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

.glow-top {
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 450px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.25) 0%, transparent 70%);
}

.glow-bottom {
    bottom: -150px;
    right: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
}

/* ==========================================================================
   4. GLASSMORPHISM NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 840px;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(14, 10, 22, 0.7);
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 8px 18px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #FFF;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--purple-neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--purple-neon);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--purple-neon);
}

.nav-btn-apply {
    background: linear-gradient(135deg, #7B2CBF, #9D4EDD);
    color: #FFF;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 12px rgba(157, 78, 221, 0.5);
    transition: all 0.2s ease;
}

.nav-btn-apply:hover {
    background: linear-gradient(135deg, #9D4EDD, #C77DFF);
    box-shadow: 0 0 18px rgba(199, 125, 255, 0.7);
    transform: translateY(-1px);
}

@media (max-width: 580px) {
    .nav-links .nav-link { display: none; }
}

/* ==========================================================================
   5. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   6. CONTAINER & EXPANDED BANNER
   ========================================================================== */
.container {
    position: relative;
    z-index: 10;
    max-width: 840px;
    margin: 0 auto;
    padding: 85px 16px 80px;
}

.banner-container {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(123, 44, 191, 0.25);
    background: #000;
}

.banner-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(7, 5, 12, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

/* ==========================================================================
   7. HERO SECTION (2X LARGER PFP + STANDALONE BUTTON)
   ========================================================================== */
.hero-section {
    text-align: center;
    margin-top: -95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 56px;
}

/* 2X Bigger Avatar (180px) */
.avatar-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 35px rgba(157, 78, 221, 0.6);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid var(--purple-bright);
    background: #08060D;
    display: block;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 44, 191, 0.16);
    border: 1px solid rgba(157, 78, 221, 0.35);
    padding: 6px 16px;
    border-radius: 25px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--purple-neon);
    margin-bottom: 14px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #C77DFF;
    border-radius: 50%;
    box-shadow: 0 0 8px #C77DFF;
    animation: dotPulse 1.5s infinite alternate;
}

@keyframes dotPulse {
    from { opacity: 0.4; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.3); }
}

.project-title {
    font-family: var(--font-head);
    font-size: 2.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #FFF;
    margin-bottom: 8px;
    text-shadow: 0 0 25px rgba(157, 78, 221, 0.5);
    background: linear-gradient(180deg, #FFFFFF 40%, #D4B2F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-desc {
    font-size: 1.08rem;
    color: var(--text-light);
    max-width: 560px;
    margin-bottom: 6px;
}

.launch-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.text-blue { color: #2081E2; font-weight: 700; }
.text-purple { color: var(--purple-neon); font-weight: 700; }

/* STANDALONE CENTERED FILL FORM BUTTON */
.main-cta-wrap {
    margin-bottom: 18px;
}

.btn-fill-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #7B2CBF 0%, #9D4EDD 100%);
    color: #FFF;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 35px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.7);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-fill-form:hover {
    background: linear-gradient(135deg, #9D4EDD 0%, #C77DFF 100%);
    box-shadow: 0 0 45px rgba(199, 125, 255, 0.9);
    transform: translateY(-3px) scale(1.02);
}

.btn-arrow {
    font-size: 1.2rem;
    animation: arrowBounce 1.4s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Social link */
.social-row {
    margin-bottom: 28px;
}

.btn-twitter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: #FFF;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-twitter:hover {
    background: var(--purple-main);
    border-color: var(--purple-bright);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-num {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFF;
}

.stat-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ==========================================================================
   8. SECTIONS GENERAL
   ========================================================================== */
.section {
    margin-bottom: 64px;
    scroll-margin-top: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 26px;
}

.section-label {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--purple-neon);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
}

.section-heading {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #FFF;
}

.section-subtext {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.divider-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #9D4EDD, transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   9. LORE SECTION
   ========================================================================== */
.lore-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 34px 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.lore-decor {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 7rem;
    font-family: var(--font-head);
    color: rgba(157, 78, 221, 0.08);
    pointer-events: none;
    user-select: none;
}

.lore-lead {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--purple-neon);
    margin-bottom: 16px;
    text-align: center;
}

.lore-body {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.7;
}

.lore-body p {
    margin-bottom: 12px;
}

.lore-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   10. SNEAK PEEKS (2X2 GRID: 2 REVEALED + 2 SEALED)
   ========================================================================== */
.peeks-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(157, 78, 221, 0.3);
}

.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.03);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(123, 44, 191, 0.85);
    color: #FFF;
    border: 1px solid #C77DFF;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.8px;
}

/* Sealed Card */
.media-sealed {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #120c22 0%, #08050e 100%);
}

.sealed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sealed-lock-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.7));
}

.sealed-label {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--purple-neon);
    background: rgba(123, 44, 191, 0.25);
    border: 1px dashed rgba(199, 125, 255, 0.45);
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.card-body {
    padding: 16px 18px 18px;
}

.card-id {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--purple-neon);
    margin-bottom: 2px;
}

.card-title {
    font-family: var(--font-head);
    font-size: 1.18rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 3px;
}

.card-caption {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   11. NATIVE DARK ALLOWLIST FORM CARD
   ========================================================================== */
.dark-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 22px;
    padding: 36px 32px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(123, 44, 191, 0.25);
    max-width: 640px;
    margin: 0 auto;
}

.dark-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.req-star { color: #E63946; font-weight: 700; }
.req-optional { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    color: var(--purple-neon);
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
}

.dark-input {
    width: 100%;
    background: rgba(8, 6, 14, 0.8);
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.95rem;
    color: #FFF;
    font-family: var(--font-body);
    transition: all 0.25s ease;
    outline: none;
}

.dark-input.with-prefix {
    padding-left: 36px;
}

.dark-input:focus {
    border-color: var(--purple-neon);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    background: rgba(12, 8, 22, 0.95);
}

.dark-input::placeholder {
    color: var(--text-muted);
}

/* Checklist */
.checklist-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(157, 78, 221, 0.15);
    padding: 14px 16px;
    border-radius: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-light);
    user-select: none;
}

.custom-checkbox a {
    color: var(--purple-neon);
    text-decoration: underline;
}

.custom-checkbox input {
    accent-color: var(--purple-bright);
    width: 16px;
    height: 16px;
}

/* Submit button */
.btn-submit-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #7B2CBF, #9D4EDD);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 15px;
    border-radius: 30px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.6);
    transition: all 0.25s ease;
    margin-top: 4px;
}

.btn-submit-form:hover {
    background: linear-gradient(135deg, #9D4EDD, #C77DFF);
    box-shadow: 0 0 35px rgba(199, 125, 255, 0.8);
    transform: translateY(-2px);
}

.btn-submit-form:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.form-direct-link {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.form-direct-link a {
    color: var(--purple-neon);
    text-decoration: none;
    margin-left: 4px;
}

.form-direct-link a:hover {
    text-decoration: underline;
}

/* Success message */
.form-success-box {
    text-align: center;
    padding: 30px 10px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.success-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #FFFFFF, #C77DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 440px;
    margin: 0 auto 24px;
}

.btn-twitter-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-card);
    color: #FFF;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-twitter-share:hover {
    background: var(--purple-main);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(157, 78, 221, 0.15);
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-brand {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--purple-neon);
}

.footer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 650px) {
    .container {
        padding-top: 75px;
    }

    .hero-section {
        margin-top: -60px;
    }

    .avatar-wrap {
        width: 140px;
        height: 140px;
    }

    .project-title {
        font-size: 2.2rem;
    }

    .peeks-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-fill-form {
        width: 100%;
    }

    .dark-form-card {
        padding: 24px 18px;
    }

    html { cursor: auto; }
    .brush-cursor { display: none; }
}
