/*
 * ETHRAEON EUDS Premium Design System
 * Global stylesheet for all ETHRAEON web properties
 * Last Updated: December 10, 2025
 */

/* ========================================
   CSS RESET & BASE
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #0a0e27;
    color: #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

/* Google Fonts will be loaded in HTML head:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
*/

.font-sans { font-family: 'Inter', sans-serif; }
.font-serif { font-family: 'Crimson Text', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

h1 { font-size: 3.5rem; color: #f9fafb; }
h2 { font-size: 2.5rem; color: #f3f4f6; }
h3 { font-size: 1.875rem; color: #e5e7eb; }
h4 { font-size: 1.5rem; color: #d1d5db; }
h5 { font-size: 1.25rem; color: #d1d5db; }
h6 { font-size: 1.125rem; color: #9ca3af; }

p {
    margin-bottom: 1rem;
    color: #d1d5db;
}

a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ========================================
   COLOR SYSTEM (EUDS Premium)
   ======================================== */

:root {
    /* Deep Space Backgrounds */
    --eth-ink: #0a0e27;
    --eth-ink-light: #1a1f3a;
    --eth-ink-elevated: #2a2f4a;

    /* Accent Colors */
    --eth-cyan: #00d4ff;
    --eth-cyan-hover: #60a5fa;
    --eth-gold: #ffd700;
    --eth-purple: #b794f6;

    /* Grays */
    --eth-gray-50: #f9fafb;
    --eth-gray-100: #f3f4f6;
    --eth-gray-200: #e5e7eb;
    --eth-gray-300: #d1d5db;
    --eth-gray-400: #9ca3af;
    --eth-gray-500: #6b7280;
    --eth-gray-600: #4b5563;
    --eth-gray-700: #374151;
    --eth-gray-800: #1f2937;
    --eth-gray-900: #111827;

    /* Glass Morphism */
    --eth-glass: rgba(26, 31, 58, 0.7);
    --eth-glass-border: rgba(0, 212, 255, 0.2);
}

/* Color Utilities */
.bg-eth-ink { background-color: var(--eth-ink); }
.bg-eth-ink-light { background-color: var(--eth-ink-light); }
.bg-eth-ink-elevated { background-color: var(--eth-ink-elevated); }
.bg-eth-glass { background-color: var(--eth-glass); }

.text-eth-cyan { color: var(--eth-cyan); }
.text-eth-gold { color: var(--eth-gold); }
.text-eth-purple { color: var(--eth-purple); }

.border-eth-cyan { border-color: var(--eth-cyan); }
.border-eth-glass { border-color: var(--eth-glass-border); }

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   GLASS MORPHISM EFFECTS
   ======================================== */

.glass-card {
    background: var(--eth-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--eth-glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--eth-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.glass-header {
    background: var(--eth-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--eth-glass-border);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background: var(--eth-cyan);
    color: var(--eth-ink);
    border-color: var(--eth-cyan);
}

.btn-primary:hover {
    background: var(--eth-cyan-hover);
    border-color: var(--eth-cyan-hover);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--eth-cyan);
    border-color: var(--eth-cyan);
}

.btn-secondary:hover {
    background: var(--eth-cyan);
    color: var(--eth-ink);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--eth-gray-200);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--eth-ink-light);
    color: var(--eth-cyan);
    text-decoration: none;
}

/* ========================================
   BADGES & STATUS INDICATORS
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid;
}

.badge-live {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: #22c55e;
}

.badge-deployed {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

.badge-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border-color: #eab308;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    display: inline-block;
}

.status-dot.live {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.status-dot.deployed {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

.status-dot.pending {
    background: #eab308;
    box-shadow: 0 0 10px #eab308;
}

/* ========================================
   GRID SYSTEMS
   ======================================== */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--eth-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--eth-glass-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eth-gray-50);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--eth-cyan);
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    font-weight: 500;
    color: var(--eth-gray-300);
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--eth-cyan);
    text-decoration: none;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--eth-ink-light);
    border-top: 1px solid var(--eth-glass-border);
    padding: 3rem 0 2rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--eth-cyan);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--eth-gray-400);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--eth-cyan);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--eth-glass-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--eth-gray-500);
}

.footer-tagline {
    color: var(--eth-gold);
    font-weight: 500;
}

/* ========================================
   SPACING UTILITIES
   ======================================== */

.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 9rem 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .site-nav {
        display: none; /* Will be replaced by mobile menu */
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .section {
        padding: 3rem 0;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-glow { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }

/* ========================================
   COOKIE CONSENT BANNER STYLES
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--eth-ink-light);
    border-top: 2px solid var(--eth-cyan);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--eth-gray-300);
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }
}
