:root {
    --gold-champagne: #F7E7CE;
    --bronze: #CD7F32;
    --dark-bg: #0A0A0A;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(247, 231, 206, 0.2);
    --text-muted: #B0B0B0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    background-color: var(--dark-bg);
    color: white;
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; /* Behind everything */
    pointer-events: auto; /* Allow mouse interaction */
}

/* Mobile Wrapper */
.mobile-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: #000;
    min-height: 100vh;
    position: relative;
    z-index: 10; /* Above canvas */
    box-shadow: 0 0 100px rgba(247, 231, 206, 0.1); /* Subtle gold glow */
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

/* Header */
.header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 40px; }
.btn-gold-outline {
    background: transparent;
    border: 1px solid var(--gold-champagne);
    color: var(--gold-champagne);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-body);
}
.btn-gold-outline:hover {
    background: rgba(247, 231, 206, 0.1);
}

/* SPA View Management */
.view {
    display: block;
    width: 100%;
    min-height: 100vh;
    animation: fadeIn 0.4s ease-out;
}
.view.hidden {
    display: none;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation for Sale View */
.sale-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--glass-border);
}
.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-body);
}
.btn-text:hover { color: white; }
.network-badge {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}
.status-dot.on { width: 6px; height: 6px; border-radius: 50%; background: #00ff88; }

/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    /* Background image removed in favor of video, but kept as fallback if needed */
    /* background-size: cover; */
    /* background-position: center; */
    display: flex;
    align-items: flex-end;
    padding: 40px 20px;
    overflow: hidden;
}
.hero-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay-gradient {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, #000, transparent);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}
.tagline {
    color: var(--gold-champagne);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 700;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 0.9;
    background: linear-gradient(to right, #fff, var(--gold-champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.hero-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Sections */
.section { padding: 50px 20px; }
.text-center { text-align: center; }
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-champagne);
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 25px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-gold {
    background: linear-gradient(45deg, var(--bronze), var(--gold-champagne));
    color: #000;
    border-radius: 30px;
}
.btn-gold:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(247, 231, 206, 0.3);
}
.btn-block { width: 100%; padding: 15px; font-size: 1rem; }
.btn-lg { padding: 15px 40px; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

/* Bio Section */
.bio-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Visual Carousel */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
    -ms-overflow-style: none; /* Hide scrollbar */
    scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    border: 1px solid var(--glass-border);
}
.carousel-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s;
}
.card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.card-overlay span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: white;
}

/* Utility Section */
.utility-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}
.utility-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s;
}
.utility-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--gold-champagne);
    background: rgba(255,255,255,0.08);
}
.utility-card .icon {
    font-size: 2.2rem;
    color: var(--gold-champagne);
    margin-bottom: 15px;
    background: -webkit-linear-gradient(var(--gold-champagne), var(--bronze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.utility-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}
.utility-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Sale View Container */
.sale-container {
    padding: 20px;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.sale-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
}
.glass-container {
    position: relative;
    z-index: 2;
    background: rgba(20,20,20,0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

/* Wallet Panel */
.wallet-panel { text-align: center; margin-bottom: 25px; }
.btn-connect-full {
    width: 100%;
    background: #512da8;
    color: white;
    padding: 14px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(81, 45, 168, 0.4);
    transition: 0.3s;
}
.btn-connect-full:hover { transform: translateY(-2px); }
.btn-connect-full.connected {
    background: #1a1a1a;
    border: 1px solid var(--gold-champagne);
    color: var(--gold-champagne);
    box-shadow: none;
}
.status-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.divider { height: 1px; background: rgba(255,255,255,0.1); margin: 25px 0; }

/* Sale Form */
.input-group { margin-bottom: 15px; }
.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.input-box {
    position: relative;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: 0.3s;
}
.input-box:focus-within { border-color: var(--gold-champagne); }
.input-box input {
    width: 100%;
    padding: 15px 60px 15px 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-body);
}
.input-box .suffix {
    position: absolute;
    right: 15px; top: 50%; transform: translateY(-50%);
    color: var(--gold-champagne);
    font-weight: 700;
    font-size: 0.9rem;
}
.read-only { background: rgba(255,255,255,0.05); }
.read-only input { color: var(--gold-champagne); }

.balance-hint {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}
.balance-hint.hidden { display: none; }

.exchange-rate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 10px 0 20px;
}

.lockup-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(205, 127, 50, 0.1);
    border: 1px solid rgba(205, 127, 50, 0.3);
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--bronze);
}

/* Claim Area */
.claim-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255,255,255,0.1);
}
.claim-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.claim-header .balance { color: var(--gold-champagne); font-weight: 700; }
.btn-outline {
    background: transparent;
    border: 1px solid #444;
    color: #666;
    border-radius: 10px;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Footer */
.footer {
    padding: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: #444;
    border-top: 1px solid #111;
}

/* Community */
.social-links { display: flex; gap: 15px; }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-champagne);
    text-decoration: none;
    transition: 0.3s;
}
.social-btn:hover { background: var(--gold-champagne); color: #000; }
