/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Deep Purple Theme */
    --bg-dark: #1a1b4b;
    --bg-light: #2e1065;
    --primary-color: #00F0FF;
    --secondary-color: #7000FF;
    --accent-color: #00FF9D;

    --text-primary: #FFFFFF;
    --text-secondary: #B4B4C8;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-bg: linear-gradient(135deg, #131438 0%, #240d52 100%);
    --gradient-text: linear-gradient(90deg, #00F0FF, #00FF9D);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--gradient-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 3D Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    transition: 0.3s ease;
}

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

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: 0.3s ease;
}

header.scrolled {
    background: rgba(19, 20, 56, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.logo-link {
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu-btn.open {
    color: var(--primary-color);
}

.logo {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

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

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    justify-content: center;
}

/* Floating Widgets */
.hero-visuals {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 200px;
    perspective: 1000px;
}

.floating-widget {
    position: absolute;
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.widget-attack {
    top: 0;
    left: 10%;
    width: 260px;
    transform: rotateY(10deg);
}

.widget-latency {
    top: 40px;
    right: 10%;
    width: 280px;
    animation-delay: 1s;
    transform: rotateY(-10deg);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.icon-success {
    color: var(--accent-color);
}

.icon-primary {
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    width: 98.5%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.widget-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.latency-graph {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.bar {
    flex: 1;
    background: rgba(0, 240, 255, 0.3);
    border-radius: 2px;
}

.bar:nth-child(odd) {
    background: var(--primary-color);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-15px) rotateX(2deg);
    }
}

/* Features Grid */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
}

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

.glass-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: 0.3s ease;
    backdrop-filter: blur(5px);
}

.glass-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About */
.about-section .section-header p {
    max-width: 640px;
    margin: 0 auto;
}

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

.about-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--glass-border);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 255, 157, 0.1));
    color: var(--primary-color);
    font-size: 3rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.about-image img:not([src]),
.about-image img[src=""],
.about-image img[src*="undefined"] {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 255, 157, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card:hover .about-image img {
    transform: scale(1.05);
}

.about-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.about-head h3 {
    margin-bottom: 0.2rem;
}

.role {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-link {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.about-link:hover {
    color: var(--accent-color);
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-tags {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-tags span {
    color: var(--text-primary);
    font-weight: 600;
}

.about-cta {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.about-cta h4 {
    margin-bottom: 0.4rem;
    font-size: 1.3rem;
}

.about-cta p {
    margin: 0;
    color: var(--text-secondary);
}

/* Investors */
.investor-metrics {
    margin: 0 auto 3rem;
    max-width: 960px;
    width: 100%;
}

.metric-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (max-width: 900px) {
    .investor-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .investor-metrics {
        grid-template-columns: 1fr;
    }
}

.metric-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.metric-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.investor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.card-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.investor-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 255, 157, 0.1));
    opacity: 0;
    transition: 0.3s ease;
    z-index: -1;
}

.investor-card:hover::after {
    opacity: 1;
}

.investor-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.card-subtext {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.insight-list span {
    color: var(--text-primary);
    font-weight: 600;
    display: inline-block;
    margin-right: 0.4rem;
}

.investor-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.investor-cta h4 {
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
}

.investor-cta p {
    color: var(--text-secondary);
    margin: 0;
}

/* Stats */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.investor-metrics.glass-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

@media (max-width: 900px) {
    .investor-metrics.glass-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .investor-metrics.glass-panel {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 250px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

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

/* Mobile */
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        gap: 0;
        width: 100%;
    }

    .logo-link {
        margin-right: auto;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-visuals {
        height: auto;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .floating-widget {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        transform: none !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(19, 20, 56, 0.95);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 1.5rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: auto;
        min-width: 220px;
        max-width: 260px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        display: flex;
    }

    .investor-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}