/* ========================================
   CSS Variables & Root Styles
   ======================================== */
:root {
    /* Colors */
    --color-nebula-navy: #0a0b0d;
    --color-deep-black: #000000;
    --color-quantum-blue: #4f91ff;
    --color-cosmic-purple: #8b5cf6;
    --color-neon-emerald: #10b981;
    --color-slate-400: #94a3b8;
    --color-slate-600: #475569;
    --color-slate-800: #1e293b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f91ff 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(180deg, #0a0b0d 0%, #15161a 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(79, 145, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(79, 145, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);

    /* Shadows */
    --shadow-glow: 0 0 20px rgba(79, 145, 255, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(79, 145, 255, 0.4);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-dark);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-nebula-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--color-quantum-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ba3ff;
}

::selection {
    background: rgba(79, 145, 255, 0.3);
    color: white;
}

/* ========================================
   Navigation
   ======================================== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 11, 13, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-slate-400);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary,
.btn-glow {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-outline,
.btn-outline-large {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    color: var(--color-quantum-blue);
    border: 2px solid rgba(79, 145, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover,
.btn-outline-large:hover {
    background: rgba(79, 145, 255, 0.1);
    border-color: var(--color-quantum-blue);
    box-shadow: var(--shadow-glow);
}

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

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    z-index: 1;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(79, 145, 255, 0.1);
    border: 1px solid rgba(79, 145, 255, 0.3);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-neon-emerald);
    animation: pulse 2s infinite;
}

.badge-text {
    color: var(--color-quantum-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
    display: block;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-slate-400);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta .btn-glow,
.hero-cta .btn-outline {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero-trust-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-slate-400);
    font-size: 0.9rem;
}

.trust-icon {
    color: var(--color-neon-emerald);
    font-weight: 700;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 1s ease-out 1s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-slate-600);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-slate-400);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

/* ========================================
   Section Styles
   ======================================== */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-slate-400);
}

/* ========================================
   Glass Card
   ======================================== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 145, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(79, 145, 255, 0.3);
}

.glass-card:hover::before {
    opacity: 1;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    background: rgba(0, 0, 0, 0.2);
}

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

/* Detailed Features Grid (10 cards) */
.features-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-detail-card {
    padding: 2.5rem;
    position: relative;
    overflow: visible;
}

.feature-number {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
}

.feature-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: white;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-detail-description {
    color: var(--color-slate-400);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(79, 145, 255, 0.1);
    border: 1px solid rgba(79, 145, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-quantum-blue);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(79, 145, 255, 0.2);
    border-color: var(--color-quantum-blue);
    transform: translateY(-2px);
}

/* Original feature card styles */
.feature-card {
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.feature-description {
    color: var(--color-slate-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    color: var(--color-slate-400);
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-quantum-blue);
}

/* ========================================
   Detection Section
   ======================================== */
.detection-section {
    background: var(--gradient-mesh);
}

.detection-block {
    margin-bottom: 5rem;
}

.detection-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.detection-block.reverse .detection-content {
    direction: rtl;
}

.detection-block.reverse .detection-text,
.detection-block.reverse .detection-visual {
    direction: ltr;
}

.detection-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detection-description {
    color: var(--color-slate-400);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.detection-feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.feature-badge {
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.feature-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.detection-feature p {
    color: var(--color-slate-400);
    line-height: 1.7;
}

/* Visual Cards */
.visual-card {
    padding: 2rem;
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.visual-icon {
    font-size: 1.5rem;
}

.metric-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--color-slate-400);
    font-size: 0.95rem;
}

.metric-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.metric-status {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-good {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-neon-emerald);
}

/* Artifact Visualization */
.artifact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.artifact-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.artifact-name {
    color: var(--color-slate-400);
    font-size: 0.95rem;
}

.artifact-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.artifact-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.artifact-score {
    font-weight: 700;
    color: var(--color-quantum-blue);
    min-width: 50px;
    text-align: right;
}

/* ========================================
   Architecture Section
   ======================================== */
.architecture-section {
    background: rgba(0, 0, 0, 0.2);
}

.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-card {
    padding: 1.5rem;
    min-width: 200px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.9rem;
    color: var(--color-slate-400);
    line-height: 1.5;
}

.step-arrow {
    font-size: 2rem;
    color: var(--color-quantum-blue);
}

/* Tech Stack */
.tech-stack {
    margin-top: 4rem;
}

.tech-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

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

.tech-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.tech-icon {
    font-size: 2.5rem;
}

.tech-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.tech-desc {
    font-size: 0.9rem;
    color: var(--color-slate-400);
}

/* ========================================
   Statistics Section
   ======================================== */
.stats-section {
    background: var(--gradient-mesh);
}

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

.stat-card {
    padding: 3rem 2rem;
    text-align: center;
}

.stat-value {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-quantum-blue);
    display: inline-block;
    margin-left: 0.25rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--color-slate-400);
    margin-top: 0.5rem;
}

/* ========================================
   Demo Section
   ======================================== */
.demo-section {
    background: rgba(0, 0, 0, 0.3);
}

.demo-card {
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-description {
    font-size: 1.2rem;
    color: var(--color-slate-400);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.demo-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.demo-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.demo-btn .btn-icon {
    font-size: 2rem;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.demo-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-slate-400);
}

.info-icon {
    font-size: 1.2rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    padding: 3rem 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--color-slate-400);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--color-slate-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-quantum-blue);
}

.footer-text {
    color: var(--color-slate-400);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright,
.footer-version {
    color: var(--color-slate-400);
    font-size: 0.9rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(16px);
        opacity: 0;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .detection-content {
        grid-template-columns: 1fr;
    }

    .detection-block.reverse .detection-content {
        direction: ltr;
    }

    .workflow-diagram {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section-container {
        padding: 3rem 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .demo-buttons {
        flex-direction: column;
    }

    .demo-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 3rem;
    }

    .stat-unit {
        font-size: 1.5rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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