:root {
    --primary-color: #00f0ff; /* Cyan glow */
    --secondary-color: #7000ff; /* Purple glow */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-dark: #000000;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for the sticky navbar */
}

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

body {
    font-family: 'General Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography elements */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ======== Hero Section ======== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 120px; /* Space below the fixed navbar */
}

/* Base Video Settings */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* Mimics bg-black/50 from Tailwind + some nice gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 50% Black overlay base */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    /* Subtle vertical gradient to help the navbar and bottom stats stand out */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* ======== Navbar ======== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 2rem 4rem;
    width: 100%;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 4rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

/* Logo */
.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    bottom: 8px;
    right: -12px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a:focus-visible::after {
    width: 100%;
}

.nav-links li a:focus-visible {
    color: var(--text-main);
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-connect {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-connect:hover,
.btn-connect:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.mobile-menu-btn {
    display: none;
}

/* ======== Mobile Navigation Drawer ======== */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-links li a {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a:focus-visible {
    color: var(--text-main);
}

/* ======== Hero Main Content ======== */
.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Top Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Typography */
.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.text-gradient {
    /* Beautiful Web3 gradient */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.6s both;
}

/* CTA Area */
.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

/* Stats Footer Area */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease 1.2s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
}

/* ======== Animations ======== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======== Global Section Styles ======== */
.section {
    padding: 8rem 2rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ======== Services Section ======== */
.services-section {
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.03) 0%, transparent 50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.service-icon svg {
    width: 44px;
    height: 44px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.service-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ======== About Section ======== */
.about-section {
    background: linear-gradient(to bottom, transparent, rgba(112, 0, 255, 0.03));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.about-list .check {
    color: var(--primary-color);
    background: rgba(0, 240, 255, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.glass-inner {
    position: relative;
    z-index: 1;
}

/* Paradigm Section */
.paradigm-card {
    text-align: left;
    padding: 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paradigm-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.paradigm-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature:hover,
.feature:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(5px);
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ======== Contact Section ======== */
.contact-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 6rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
}
.contact-details strong {
    color: var(--text-main);
    display: inline-block;
    width: 80px;
}

/* ======== Footer ======== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

/* ======== Responsive ======== */
@media (max-width: 1024px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    
    .navbar.scrolled {
        padding: 1rem 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .btn-connect {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .mobile-nav {
        display: flex;
    }
    
    .mobile-menu-btn .bar {
        width: 28px;
        height: 2px;
        background: var(--text-main);
        transition: all 0.3s;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        width: 40%;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .section {
        padding: 5rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        justify-content: center;
    }
}
