/* ============================================
   Cave Wallet Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Gold Palette */
    --gold-100: #FAF6ED;
    --gold-200: #F5E9D3;
    --gold-300: #E8D7B8;
    --gold-400: #D4AF7C;
    --gold-500: #C5A572;
    --gold-600: #B8935A;
    --gold-700: #9C7A45;
    --gold-800: #7D5E33;
    --gold-900: #5A4226;
    
    /* Neutral Palette */
    --neutral-100: #F5F5F7;
    --neutral-200: #E5E5EA;
    --neutral-300: #C7C7CC;
    --neutral-400: #8E8E93;
    --neutral-500: #636366;
    --neutral-600: #48484A;
    --neutral-700: #2C2C2E;
    --neutral-800: #1C1C1E;
    --neutral-900: #0A0A0B;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #C5A572 0%, #9C7A45 100%);
    --gradient-gold-hover: linear-gradient(135deg, #D4AF7C 0%, #B8935A 100%);
    --gradient-dark: linear-gradient(180deg, #1C1C1E 0%, #0A0A0B 100%);
    --gradient-premium: linear-gradient(135deg, rgba(197, 165, 114, 0.2) 0%, rgba(156, 122, 69, 0.1) 100%);
    
    /* Effects */
    --glass-bg: rgba(28, 28, 30, 0.7);
    --glass-border: rgba(197, 165, 114, 0.15);
    --gold-glow: 0 0 60px rgba(197, 165, 114, 0.15);
    
    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--neutral-900);
    color: var(--neutral-100);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Background Animation
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gold-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-500) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-600) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold-700) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(197, 165, 114, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 165, 114, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.05); }
    50% { transform: translate(-30px, 50px) scale(0.95); }
    75% { transform: translate(-50px, -20px) scale(1.02); }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
}

.nav-logo .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-logo .logo-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--neutral-300);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-500);
}

.nav-social svg {
    transition: transform 0.3s ease;
}

.nav-social:hover svg {
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--neutral-100);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 40px 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold-400);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--neutral-400);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--neutral-900);
    box-shadow: 0 4px 20px rgba(197, 165, 114, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 165, 114, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--neutral-100);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(44, 44, 46, 0.8);
    border-color: var(--gold-600);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-600);
    color: var(--gold-400);
}

.btn-outline:hover {
    background: var(--gold-600);
    color: var(--neutral-900);
}

.btn-outline svg {
    width: 18px;
    height: 18px;
}

.btn-large {
    padding: 18px 32px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-icon {
    width: 28px;
    height: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-label {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.btn-title {
    font-size: 15px;
    font-weight: 600;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-400);
}

.stat-label {
    font-size: 13px;
    color: var(--neutral-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--neutral-700);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 60px;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: var(--neutral-800);
    border-radius: 40px;
    padding: 12px;
    border: 3px solid var(--neutral-700);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(197, 165, 114, 0.1);
    position: relative;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--neutral-900);
    border-radius: 30px;
    overflow: hidden;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 165, 114, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

/* Wallet UI inside phone */
.wallet-ui {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-top: 20px;
}

.wallet-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.wallet-header span {
    font-weight: 600;
    font-size: 16px;
}

.wallet-balance {
    text-align: center;
    padding: 30px 0;
    background: var(--gradient-premium);
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.balance-label {
    display: block;
    font-size: 12px;
    color: var(--neutral-500);
    margin-bottom: 8px;
}

.balance-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-100);
}

.balance-value .currency {
    font-size: 14px;
    color: var(--gold-500);
    font-weight: 500;
}

.wallet-actions {
    display: flex;
    justify-content: space-around;
    margin-bottom: 24px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--neutral-300);
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
}

.action-btn svg {
    width: 24px;
    height: 24px;
    padding: 14px;
    box-sizing: content-box;
    background: var(--neutral-800);
    border-radius: 14px;
    border: 1px solid var(--neutral-700);
}

.wallet-tokens {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--neutral-800);
    border-radius: 14px;
    border: 1px solid var(--neutral-700);
}

.token-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.token-icon.gnot {
    background: var(--gradient-gold);
}

.token-icon.grc20 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.token-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.token-name {
    font-size: 14px;
    font-weight: 600;
}

.token-amount {
    font-size: 12px;
    color: var(--neutral-500);
}

.token-usd {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-300);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--section-padding) 40px;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-premium);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-400);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--neutral-400);
    max-width: 540px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-600);
    box-shadow: var(--gold-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 16px;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--neutral-900);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--neutral-400);
    line-height: 1.6;
}

/* ============================================
   Security Section
   ============================================ */
.security {
    padding: var(--section-padding) 40px;
    position: relative;
    z-index: 1;
}

.security-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.security-text {
    flex: 1;
}

.security-list {
    list-style: none;
    margin-top: 32px;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: var(--neutral-300);
    padding: 14px 0;
    border-bottom: 1px solid var(--neutral-800);
}

.security-list li:last-child {
    border-bottom: none;
}

.security-list svg {
    width: 24px;
    height: 24px;
    color: var(--gold-500);
    flex-shrink: 0;
}

.security-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    position: relative;
    width: 300px;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(197, 165, 114, 0.4) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.shield-icon {
    width: 200px;
    height: 240px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(197, 165, 114, 0.3));
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--section-padding) 40px;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-description {
    font-size: 18px;
    color: var(--neutral-400);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 40px 40px;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--neutral-800);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--neutral-800);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--neutral-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-800);
    border-radius: 10px;
    color: var(--neutral-400);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--gold-600);
    color: var(--neutral-900);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-100);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--neutral-500);
    padding: 8px 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--gold-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--neutral-600);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--neutral-500);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--gold-500);
}

/* ============================================
   Animations
   ============================================ */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 24px 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        padding-left: 0;
        padding-top: 60px;
    }
    
    .phone-frame {
        width: 280px;
        height: 560px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-content {
        flex-direction: column;
        text-align: center;
    }
    
    .security-text {
        order: 1;
    }
    
    .security-visual {
        order: 0;
    }
    
    .security-list li {
        justify-content: center;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 48px;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 48px;
        flex-wrap: wrap;
    }
    
    .footer-column {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .cta-content {
        padding: 48px 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
    
    .wallet-balance {
        padding: 20px;
    }
    
    .balance-value {
        font-size: 22px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

