/* DiviChain - Emerald Tropical Theme */
:root {
    --color-bg: #064e3b;
    --color-bg-dark: #022c22;
    --color-bg-light: #065f46;
    --color-primary: #10B981;
    --color-secondary: #14B8A6;
    --color-accent: #F59E0B;
    --color-text: #ECFDF5;
    --color-text-muted: #A7F3D0;
    --color-border: rgba(16, 185, 129, 0.3);
    --gradient-primary: linear-gradient(135deg, #10B981 0%, #14B8A6 50%, #F59E0B 100%);
    --gradient-soft: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(20, 184, 166, 0.2) 100%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(0, 50px) scale(0.95); }
    75% { transform: translate(-50px, -25px) scale(1.05); }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    background: rgba(6, 78, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 40px; height: 40px; }
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--color-text); }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
    cursor: pointer;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--color-primary); }

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5); }

.btn-glow-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-glow-large:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(16, 185, 129, 0.6); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}
.badge-dot { width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; animation: pulse 2s infinite; box-shadow: 0 0 10px var(--color-accent); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Floating Shapes */
.floating-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: shape-float 8s ease-in-out infinite;
}
.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--color-primary);
    top: 20%;
    left: 10%;
    filter: blur(60px);
}
.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--color-secondary);
    top: 60%;
    right: 15%;
    filter: blur(40px);
    animation-delay: -3s;
}
.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--color-accent);
    bottom: 20%;
    left: 20%;
    filter: blur(30px);
    animation-delay: -5s;
}
@keyframes shape-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Features */
.features { padding: 100px 0; position: relative; z-index: 1; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}
.feature-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--color-primary); 
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}
.feature-icon {
    width: 56px; height: 56px;
    background: var(--gradient-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}
.feature-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Utility */
.utility { padding: 100px 0; position: relative; z-index: 1; }
.utility-text { max-width: 700px; margin-bottom: 64px; }
.utility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.utility-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 24px 28px 28px 28px;
    transition: all 0.3s;
}
.utility-item:hover { border-color: var(--color-secondary); }
.utility-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: block;
}
.utility-item h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; margin-top: 0; }
.utility-item p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Stats */
.stats { padding: 80px 0; position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-box {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 20px;
}
.stat-number { font-size: 2.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 8px; }

/* CTA */
.cta-section { padding: 60px 0 100px; position: relative; z-index: 1; }
.cta-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: 64px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.cta-card h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.cta-card p { color: var(--color-text-muted); font-size: 1.125rem; margin-bottom: 32px; }

/* Footer */
.footer { padding: 64px 0 32px; position: relative; z-index: 1; }
.footer-content { display: grid; grid-template-columns: 1fr auto; gap: 64px; margin-bottom: 48px; }
.footer-brand { max-width: 300px; }
.footer-tagline { color: var(--color-text-muted); font-size: 0.95rem; margin-top: 16px; }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; color: var(--color-text-muted); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--color-text-muted); font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--color-primary); }
.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s;
}
.social-links a:hover { background: var(--gradient-primary); color: var(--color-bg-dark); border-color: transparent; }
.footer-bottom { padding-top: 32px; border-top: 1px solid var(--color-border); text-align: center; color: var(--color-text-muted); font-size: 0.875rem; }

/* Page Header */
.page-header { position: relative; padding: 160px 0 80px; text-align: center; z-index: 1; }
.page-label { display: inline-block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); margin-bottom: 16px; padding: 8px 16px; background: rgba(16, 185, 129, 0.1); border-radius: 50px; }
.page-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; }
.page-subtitle { font-size: 1.125rem; color: var(--color-text-muted); max-width: 600px; margin: 24px auto 0; }

/* About */
.about-content { padding: 80px 0; position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-lead { font-size: 1.5rem; font-weight: 500; margin-bottom: 32px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-text p { color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; }
.about-quote { margin: 40px 0; padding: 32px; background: rgba(255, 255, 255, 0.05); border-left: 4px solid var(--color-primary); border-radius: 0 16px 16px 0; }
.visual-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-border); border-radius: 24px; padding: 48px; position: sticky; top: 120px; }

/* Whitepaper */
.whitepaper-content { padding: 60px 0 100px; position: relative; z-index: 1; }
.whitepaper-layout { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
.whitepaper-sidebar { position: sticky; top: 120px; height: fit-content; }
.whitepaper-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; background: rgba(255, 255, 255, 0.05); padding: 16px; border-radius: 16px; border: 1px solid var(--color-border); }
.nav-link { padding: 12px 16px; border-radius: 8px; font-size: 0.95rem; color: var(--color-text-muted); transition: all 0.3s; }
.nav-link:hover, .nav-link.active { background: rgba(16, 185, 129, 0.2); color: var(--color-primary); }
.btn-download { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--color-border); border-radius: 12px; color: var(--color-text); font-weight: 500; transition: all 0.3s; width: 100%; cursor: pointer; text-align: center; justify-content: center; }
.wp-section { margin-bottom: 64px; }
.wp-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.highlight-box { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-border); border-radius: 16px; padding: 24px; margin: 32px 0; }

/* App */
.app-navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 24px; }
.app-nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 16px 32px; background: rgba(6, 78, 59, 0.9); backdrop-filter: blur(20px); border: 1px solid var(--color-border); border-radius: 20px; }
.btn-wallet { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--gradient-primary); color: var(--color-bg-dark); font-weight: 700; border-radius: 10px; border: none; cursor: pointer; }
.app-main { padding-top: 100px; min-height: 100vh; }
.app-welcome { display: flex; align-items: center; justify-content: space-between; min-height: calc(100vh - 100px); padding: 60px 80px; gap: 80px; }
.app-welcome-content { flex: 1; max-width: 600px; }
.app-welcome-content h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.app-preview { flex: 0 0 400px; }
.preview-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-border); border-radius: 24px; overflow: hidden; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); }
.modal-content { position: relative; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 24px; padding: 32px; width: 100%; max-width: 420px; z-index: 1; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 64px; position: relative; z-index: 1; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }

/* Responsive */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .whitepaper-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .app-welcome { flex-direction: column; padding: 40px 24px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .footer-content { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}
