/* ==========================================================================
   DUNAMU: TWO TREES (3,333 NFT COLLECTION) — ORGANIC FINE ART DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #080b11;
    --bg-card: rgba(14, 20, 31, 0.85);
    --border-card: rgba(245, 158, 11, 0.25);
    --cyan: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.25);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.25);
    --purple: #c084fc;
    --emerald: #34d399;
    --text-primary: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-heading);
    min-height: 100vh;
    line-height: 1.6;
    background-image: 
        linear-gradient(180deg, rgba(8, 11, 17, 0.75) 0%, rgba(8, 11, 17, 0.96) 100%),
        url('assets/banner.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Navigation Bar */
.navbar {
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    background: rgba(8, 11, 17, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 24px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--gold-glow);
    background: #000;
}

.brand-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--gold);
}

.kr-tag {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    margin-left: 4px;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-dim);
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--gold);
}

/* Organic Natural Buttons */
.nav-x-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(29, 155, 240, 0.2), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.nav-x-pill:hover {
    background: linear-gradient(135deg, rgba(29, 155, 240, 0.35), rgba(245, 158, 11, 0.3));
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-x-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(56, 189, 248, 0.2));
    border: 1px solid var(--gold);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 16px 28px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25 ease;
    box-shadow: 0 6px 25px var(--gold-glow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-x-large:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(56, 189, 248, 0.35));
    transform: translateY(-2px);
    box-shadow: 0 10px 35px var(--gold-glow);
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 32px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Hero Story Header Banner */
.hero-story-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 48px 40px;
    background: linear-gradient(180deg, rgba(8, 11, 17, 0.45) 0%, rgba(8, 11, 17, 0.95) 100%),
                url('assets/banner.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-story-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 840px;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    width: max-content;
    letter-spacing: 0.5px;
}

.hero-story-header h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-story-header p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Quick Rarity Stats Bar */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(8, 11, 17, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 20px;
    margin-top: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-val {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-mono);
}

.stat-val.gold { color: var(--gold); }
.stat-val.purple { color: var(--purple); }
.stat-val.cyan { color: var(--cyan); }
.stat-val.white { color: #fff; }

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
}

.hero-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: rgba(8, 11, 17, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 18px;
    padding: 24px 30px;
    margin-top: 8px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   THE FIRST SCROLLS — 10-HOUR ALLOWLIST CLAIM FORM STYLES
   ========================================================================== */

.scroll-claim-card {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-color: rgba(245, 158, 11, 0.4);
    background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.12), transparent 70%), var(--bg-card);
    position: relative;
    overflow: hidden;
}

.scroll-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.scroll-header-title h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-header-title p {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 10-Hour Live Timer Display */
.timer-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(8, 11, 17, 0.9);
    border: 1px solid var(--gold);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 0 20px var(--gold-glow);
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.timer-num {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--gold);
    line-height: 1;
}

.timer-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    margin-top: 2px;
}

.timer-colon {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 10px;
}

/* Claim Form Fields */
.scroll-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-input {
    background: rgba(8, 11, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-heading);
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    background: rgba(8, 11, 17, 0.95);
}

.btn-claim-submit {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000;
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 25px var(--gold-glow);
    transition: all 0.2s ease;
}

.btn-claim-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px var(--gold-glow);
}

.claim-progress-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.claim-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

/* Section Header Titles */
.section-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

/* Upbit & Dunamu Ecosystem Banner */
.upbit-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(56, 189, 248, 0.12), rgba(14, 20, 31, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.upbit-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 840px;
}

.upbit-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    width: max-content;
    letter-spacing: 0.5px;
}

.upbit-info h3 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.upbit-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.upbit-badges-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.upbit-pill-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 10px;
}

/* Lore & Story Section */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.story-step {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.story-title {
    font-size: 20px;
    font-weight: 700;
}

.story-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Sacred Rarity Distribution Section */
.rarity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rarity-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.rarity-card:hover {
    transform: translateY(-4px);
}

.rarity-card.legendary {
    border-color: rgba(245, 158, 11, 0.45);
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 70%), var(--bg-card);
}

.rarity-card.epic {
    border-color: rgba(192, 132, 252, 0.45);
    background: radial-gradient(circle at top right, rgba(192, 132, 252, 0.15), transparent 70%), var(--bg-card);
}

.rarity-card.rare {
    border-color: rgba(56, 189, 248, 0.45);
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 70%), var(--bg-card);
}

.rarity-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rarity-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.rarity-badge.legendary {
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.rarity-badge.epic {
    background: rgba(192, 132, 252, 0.2);
    color: var(--purple);
    border: 1px solid rgba(192, 132, 252, 0.5);
}

.rarity-badge.rare {
    background: rgba(56, 189, 248, 0.2);
    color: var(--cyan);
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.rarity-count {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-mono);
}

.rarity-symbolism {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.rarity-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Gallery Showcase */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
}

.gallery-img-box {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.04);
}

.gallery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g-name {
    font-size: 15px;
    font-weight: 800;
}

.g-rank {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}

.g-rank.legendary {
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.g-rank.epic {
    background: rgba(192, 132, 252, 0.2);
    color: var(--purple);
    border: 1px solid rgba(192, 132, 252, 0.4);
}

.g-rank.rare {
    background: rgba(56, 189, 248, 0.2);
    color: var(--cyan);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Disclaimer Box in Footer */
.disclaimer-box {
    max-width: 900px;
    margin: 18px auto 0 auto;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM OVERHAUL
   ========================================================================== */

/* Tablet & Medium Screens (<= 900px) */
@media (max-width: 900px) {
    .main-container {
        padding: 0 16px;
        margin: 20px auto;
        gap: 32px;
    }

    .hero-story-card {
        padding: 32px 24px;
        gap: 20px;
    }

    .hero-story-header h1 {
        font-size: 32px;
    }

    .quick-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .story-grid, .rarity-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .upbit-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
}

/* Mobile Devices & Smartphones (<= 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .brand {
        justify-content: center;
        text-align: center;
    }

    .brand-sub {
        display: block;
        text-align: center;
    }

    .nav-links {
        display: none; /* Hide top nav links on mobile for clean header */
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .nav-x-pill {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }

    .hero-story-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .hero-story-header h1 {
        font-size: 26px;
    }

    .hero-story-header p {
        font-size: 14px;
    }

    .hero-cta-box {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 16px;
        gap: 16px;
    }

    .btn-x-large {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .quick-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 16px;
    }

    .stat-val {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .upbit-badges-row {
        flex-direction: column;
        gap: 8px;
    }

    .upbit-pill-badge {
        width: 100%;
        text-align: center;
    }
}

/* Small Mobile Phones (<= 480px) */
@media (max-width: 480px) {
    .brand-title {
        font-size: 18px;
    }

    .brand-sub {
        font-size: 10px;
    }

    .hero-story-header h1 {
        font-size: 22px;
    }

    .quick-stats-row {
        grid-template-columns: 1fr;
    }

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

    .story-card, .rarity-card {
        padding: 20px 16px;
    }

    .rarity-count {
        font-size: 26px;
    }

    footer {
        padding: 24px 16px !important;
    }
}
