:root {
    /* Colors */
    --primary-color: #A0A0A0;    /* Gray */
    --secondary-color: #E11D2E;  /* Red Accent */
    --bg-color: #0B0D10;         /* Dark Base */
    --bg-card: #12151B;          /* Card Base */
    --text-color: #A0A0A0;       /* Standard Text */
    --heading-color: #D7D7D7;    /* Heading White-ish */
    --accent-blue: #2AA6B6;      /* HUD/Tech Accent */
    --border-color: #232833;
    
    /* Layout */
    --header-height: 70px;
    --container-width: 1200px;
    
    /* Typography */
    --font-main: 'Outfit', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

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

.section {
    padding: 80px 0;
    position: relative;
    scroll-margin-top: var(--header-height);
}

.u-underline {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px 0 0 0;
}

/* Typography Details */
h1, h2, h3, h4 {
    color: var(--heading-color);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(11, 13, 16, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    height: 40px; /* Adjust based on asset */
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item:hover {
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: transparent;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    transition: 0.3s;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
}

.btn-primary:hover {
    background-color: #ff2d40;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 29, 46, 0.4);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--heading-color);
    padding: 11px 23px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--border-color);
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: rgba(255,255,255,0.05);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11,13,16,0.5) 0%, rgba(11,13,16,0.9) 100%);
    /* Dotted texture overlay for dossier feel */
    background-image: radial-gradient(rgba(0,0,0,0.3) 1px, transparent 1px);
    background-size: 4px 4px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.dossier-stamp {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    display: inline-block;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 1.2rem;
    transform: rotate(-3deg);
    margin-bottom: 20px;
    opacity: 0.9;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
    color: var(--primary-color);
    line-height: 1.5;
    background: rgba(0,0,0,0.4);
    display: inline-block;
    padding: 10px;
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--accent-blue);
}

.hero-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Feature: Typewriter Cursor */
.typewriter-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--secondary-color);
}

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

/* Contract Box */
.contract-box {
    margin-top: 20px;
    background: rgba(18, 21, 27, 0.8);
    border: 1px solid var(--border-color);
    padding: 15px;
    display: inline-block;
    border-radius: 4px;
    position: relative;
}

.contract-label {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-blue);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contract-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#contract-address {
    font-family: 'Courier New', monospace;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    color: var(--primary-color);
    padding: 4px;
    transition: color 0.2s;
}

.copy-btn:hover:not(:disabled) {
    color: var(--markup-color);
}

.copy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-feedback {
    position: absolute;
    right: -10px;
    top: -25px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-top: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.mission-specs {
    margin-top: 30px;
    background: var(--bg-card);
    padding: 20px;
    border: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
    color: var(--accent-blue);
}

.holo-card {
    background: var(--bg-card);
    height: 300px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.holo-content {
    text-align: center;
    border: 2px solid var(--secondary-color);
    padding: 20px;
    transform: rotate(5deg);
    opacity: 0.3;
}

/* Squad Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-blue);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #fff;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--primary-color);
}

/* How to Buy / Deployment */
.deployment-section {
    background: linear-gradient(to top, #0f1116, #0B0D10);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.step-item {
    background: var(--bg-card);
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    position: relative;
}

.step-index {
    font-size: 3rem;
    color: rgba(255,255,255,0.05);
    font-weight: 800;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.deployment-action {
    text-align: center;
}

/* Footer */
.footer-section {
    border-top: 1px solid var(--border-color);
    background: #080a0d;
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.footer-brand .footer-logo-text {
    color: #fff;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.6;
    max-width: 400px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: rotate(5deg);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* Animations & Effects */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-card);
        flex-direction: column;
        padding: 40px 20px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
