/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(26, 26, 37, 0.6);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.4);
    
    --clive-color: #f59e0b;
    --aegis-color: #6366f1;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Effects */
    --glass-bg: rgba(26, 26, 37, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utilities ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header.centered .section-subtitle {
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 24px;
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 28px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.nav-cta:hover {
    border-color: var(--accent-primary);
}

.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(--text-primary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-tertiary);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
}

.token-orbit {
    position: relative;
    width: 100%;
    height: 100%;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: rotate 20s linear infinite;
}

.ring-2 {
    width: 320px;
    height: 320px;
    animation: rotate 30s linear infinite reverse;
}

.ring-3 {
    width: 440px;
    height: 440px;
    animation: rotate 40s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.center-token {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 0 60px var(--accent-glow);
}

/* ===== Problem Section ===== */
.problem-section {
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
}

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

.problem-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== Solution Section ===== */
.solution-content {
    max-width: 800px;
}

.solution-text {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.solution-text strong {
    color: var(--text-primary);
}

.solution-principles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.principle {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.principle-icon {
    color: var(--accent-primary);
    font-size: 24px;
}

.principle h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.principle p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== Tokens Section ===== */
.tokens-section {
    background: var(--bg-secondary);
}

.tokens-relationship {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 60px;
}

.token-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition);
}

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

.clive-card {
    border-color: rgba(245, 158, 11, 0.3);
}

.clive-card:hover {
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.1);
}

.aegis-card {
    border-color: rgba(99, 102, 241, 0.3);
}

.aegis-card:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

.token-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.token-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.clive-icon {
    background: linear-gradient(135deg, var(--clive-color), #d97706);
    color: white;
}

.aegis-icon {
    background: linear-gradient(135deg, var(--aegis-color), var(--accent-secondary));
    color: white;
}

.token-phase {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
}

.token-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.token-tagline {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.token-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.token-features {
    margin-bottom: 24px;
}

.token-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.token-features .check {
    color: var(--success);
    font-weight: 600;
}

.token-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 100px;
    font-size: 14px;
    color: var(--clive-color);
}

.token-status.building {
    background: rgba(99, 102, 241, 0.1);
    color: var(--aegis-color);
}

.token-status .status-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
}

.tokens-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.arrow-line {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--clive-color), var(--aegis-color));
    opacity: 0.5;
}

.arrow-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.arrow-head {
    font-size: 24px;
    color: var(--aegis-color);
}

.token-flow {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.token-flow h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.flow-step p {
    color: var(--text-secondary);
    font-size: 14px;
}

.flow-connector {
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

/* ===== AEGIS Section ===== */
.aegis-section {
    background: var(--bg-primary);
}

.aegis-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.feature-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
}

.feature-block:hover {
    border-color: var(--border-glow);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.feature-icon {
    font-size: 28px;
}

.feature-header h3 {
    font-size: 18px;
}

.feature-block > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.feature-detail {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
}

.feature-detail code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.aegis-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.aegis-quote blockquote {
    font-size: 24px;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    padding: 0 40px;
}

.aegis-quote blockquote::before,
.aegis-quote blockquote::after {
    content: '"';
    position: absolute;
    font-size: 60px;
    color: var(--accent-primary);
    opacity: 0.3;
    font-style: normal;
}

.aegis-quote blockquote::before {
    top: -20px;
    left: 0;
}

.aegis-quote blockquote::after {
    bottom: -40px;
    right: 0;
}

/* ===== Why Section ===== */
.why-section {
    background: var(--bg-secondary);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 17px;
}

.why-text strong {
    color: var(--accent-primary);
}

.why-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Roadmap Section ===== */
.roadmap-section {
    background: var(--bg-primary);
}

.roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.roadmap-item {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.roadmap-item:hover {
    border-color: var(--border-glow);
}

.roadmap-item.active {
    border-color: var(--accent-primary);
}

.roadmap-marker {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    border-radius: 50%;
    margin-bottom: 20px;
}

.roadmap-item.active .roadmap-marker {
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.roadmap-phase {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 100px;
    font-size: 12px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.roadmap-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.roadmap-content > p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.roadmap-content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roadmap-content li {
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.roadmap-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-content > p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-note {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-icon {
    font-size: 32px;
}

.footer-brand .logo-text {
    font-size: 28px;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 12px !important;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Name Section (XCLIEVE) ===== */
.name-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 80px 0;
}

.name-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.name-explanation {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cleave-duality {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cleave-meaning {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.cleave-meaning .meaning-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.cleave-meaning h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cleave-meaning p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cleave-connector {
    font-size: 2rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.name-conclusion {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.name-conclusion strong {
    color: var(--accent-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
    
    .why-content {
        grid-template-columns: 1fr;
    }
    
    .why-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .tokens-relationship {
        flex-direction: column;
    }
    
    .tokens-arrow {
        flex-direction: row;
        min-width: auto;
        padding: 20px 0;
    }
    
    .arrow-line {
        width: 100px;
        height: 2px;
    }
    
    .arrow-label {
        flex-direction: row;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-connector {
        display: none;
    }
    
    .aegis-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .why-stats {
        flex-direction: column;
    }
    
    .stat {
        min-width: auto;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
