/* ========================================
   EXTENTIENT - Web3 Glassmorphic Design
   ======================================== */

/* === CSS Variables === */
:root {
    /* Colors */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --gradient-accent: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cyan: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Effects */
    --blur: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* === Animated Background === */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #0a0a0f 0%, #000000 100%);
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* === Glass Card Effect === */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo {
    height: auto;
    width: 90%;
    max-width: 400px;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    transition: var(--transition);
}

.logo:hover {
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo {
        max-width: 300px;
        max-height: 60px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(120px + var(--spacing-xl)) 0 var(--spacing-xl);
    position: relative;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-text-inline {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.subheadline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.05em;
}

.hero-body {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    padding: var(--spacing-lg);
    text-align: left;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
}

.hero-body p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.emphasis-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.manifesto {
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.signature {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.highlight {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

/* === CTA Buttons === */
.cta-container {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

.cta-button.secondary {
    padding: 1rem 2rem;
}

.gradient-bg {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.gradient-border {
    background: var(--glass-bg);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* === Floating Elements === */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    width: 200px;
    height: 200px;
    animation: float-random 15s infinite ease-in-out;
}

.float-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-card:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.float-card:nth-child(3) {
    bottom: 20%;
    left: 70%;
    animation-delay: -10s;
}

@keyframes float-random {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* === Platform Section === */
.platform {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.platform-card {
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-8px);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.platform-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
}

.platform-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* === Story Section === */
.story {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.story-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.story-content p {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.story-content a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.story-content .cta-button {
    margin-top: var(--spacing-md);
}

/* === Footer === */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    height: auto;
    width: 100%;
    max-width: 400px;
    max-height: 70px;
    object-fit: contain;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
    transition: var(--transition);
}

.footer-column a:hover {
    color: rgba(255, 255, 255, 1);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.easter-egg {
    font-style: italic;
    opacity: 0.7;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: calc(100% - 2rem);
    padding: var(--spacing-lg);
    z-index: 2001;
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.modal-content > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

/* === Form === */
.access-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.glass-input {
    resize: vertical;
    min-height: 100px;
}

/* === Responsive === */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .hero {
        padding: 140px 0 var(--spacing-lg);
        min-height: auto;
    }
    
    .nav-container {
        min-height: 60px;
    }
    
    .hero-body {
        padding: var(--spacing-md);
    }
    
    .cta-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .gradient-orb {
        filter: blur(80px);
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 2.5rem;
    }
    
    .subheadline {
        font-size: 1.25rem;
    }
    
    .hero-body p {
        font-size: 1rem;
    }
    
    .platform-card {
        padding: var(--spacing-md);
    }
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
