:root {
    --bg-color: #0a0a0b;
    --text-main: #ffffff;
    --accent-blue: #0077ff;
    --status-yellow: #ffcc00;
    --border-color: #222;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden; /* Prevents scrollbars during animations */
}

/* --- BACKGROUNDS --- */
.hero-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Map Fix: Lower opacity gradient + png extension */
    background: 
        linear-gradient(to bottom, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0.4) 50%, rgba(10, 10, 11, 0.9) 100%),
        #0a0a0b url('eu.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.6) contrast(1.2);
}

.grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(to right, #1a1a1a 1px, transparent 1px),
        linear-gradient(to bottom, #1a1a1a 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);

    /* Animation: Flickers on first */
    opacity: 0; 
    animation: flickerIn 1s ease forwards;
    animation-delay: 0.2s; 
}

.logo { font-weight: 800; letter-spacing: 3px; }

.status-badge {
    font-family: monospace;
    color: var(--status-yellow);
    border: 1px solid var(--status-yellow);
    padding: 5px 12px;
    font-size: 0.8rem;
}

.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;

    /* Animation: Slides up */
    opacity: 0;
    animation: slideUpFade 1s ease-out forwards;
    animation-delay: 0.5s;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 1rem 0;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.highlight { color: var(--accent-blue); }

/* TYPING TEXT EFFECT */
.tagline {
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--accent-blue);
    font-family: monospace;
    
    /* Typing setup */
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-blue); /* The cursor */
    width: 0; /* Start invisible */
    
    /* Run typing animation */
    animation: 
        typing 2s steps(40, end) forwards,
        blink-caret 0.75s step-end infinite;
    animation-delay: 1.2s; /* Start after hero appears */
}

.mission-text {
    max-width: 850px;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #eee;
    margin: 1.5rem 0 3rem 0;
}

.sub-narrative {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.primary-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 1.2rem 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    background: white;
    color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.4);
}

.domain-subtext {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #ffffff !important;
    font-weight: bold;
    letter-spacing: 4px;
    text-shadow: 0 0 12px rgba(0, 119, 255, 1), 0 0 5px rgba(0, 0, 0, 1);
    background: rgba(10, 10, 11, 0.4);
    padding: 2px 10px;
}

/* --- MOAT CARDS --- */
.moat-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background-color: var(--border-color);
}

.moat-card {
    background-color: rgba(10, 10, 11, 0.95);
    padding: 4rem 2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    border: 1px solid transparent;

    /* Animation: Staggered entrance */
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
}

/* Stagger delays for cards */
.moat-card:nth-child(1) { animation-delay: 1.5s; }
.moat-card:nth-child(2) { animation-delay: 1.7s; }
.moat-card:nth-child(3) { animation-delay: 1.9s; }

.moat-card:hover {
    transform: scale(1.05);
    z-index: 10;
    background-color: #0a0a0b;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.8), 
        0 0 0 1px var(--accent-blue); 
    cursor: crosshair;
}

.moat-card h3 {
    font-family: monospace;
    color: var(--status-yellow);
    font-size: 1.2rem;
    transition: 0.3s;
}

.moat-card:hover h3 {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 119, 255, 0.5);
}

/* --- MODAL / CONTACT CARD --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #0a0a0b;
    border: 1px solid var(--accent-blue);
    width: 90%;
    max-width: 500px;
    padding: 0;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 119, 255, 0.15);
    transform: scaleY(0); 
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card { transform: scaleY(1); }

.modal-header {
    background: rgba(0, 119, 255, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--accent-blue);
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-blue);
}

.close-btn {
    cursor: pointer;
    font-weight: bold;
    color: var(--status-yellow);
}

.modal-body {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.label {
    font-family: monospace;
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.contact-email {
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.location {
    color: var(--status-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.separator-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 20px 0;
}

.scanning-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent-blue);
    opacity: 0.5;
    animation: scan 2s linear infinite;
    box-shadow: 0 0 10px var(--accent-blue);
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- FOOTER --- */
footer {
    padding: 5rem 5%;
    background-color: var(--bg-color);
    color: #888;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    
    opacity: 0;
    animation: flickerIn 1s ease forwards;
    animation-delay: 2.2s;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes flickerIn {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-blue) }
}