/* ============================================
   Nivonex — Dark Theme Stylesheet
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --text-muted: #555566;
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #06b6d4;
    --gradient-1: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-2: linear-gradient(135deg, #6366f1, #06b6d4);
    --border: #1e1e2e;
    --border-hover: #2e2e44;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ============================================
   Typography
   ============================================ */

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.lang-toggle:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.lang-toggle.active {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-img {
    display: block;
    height: 58px;
    width: auto;
    transition: opacity 0.3s;
}
.logo-img:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 0;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================================
   Sections
   ============================================ */

section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ============================================
   About Section
   ============================================ */

.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    padding: 40px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.card-icon {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.about-card h3 {
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Strategies Section
   ============================================ */

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.strategy-card {
    padding: 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.strategy-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.strategy-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.strategy-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-3);
}

.strategy-card h3 {
    margin-bottom: 12px;
}

.strategy-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.strategy-metrics {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.strategy-metrics span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-3);
}

/* ============================================
   Research Section
   ============================================ */

.research {
    background: var(--bg-secondary);
}

.research-pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.pipeline-step {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pipeline-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.pipeline-step h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.pipeline-step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.pipeline-arrow {
    display: flex;
    align-items: center;
    padding: 32px 12px 0;
    font-size: 1.5rem;
    color: var(--accent-1);
    font-weight: 300;
    flex-shrink: 0;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 2px;
}

.footer-brand .logo-img {
    height: 37px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

.footer-copy p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   Animations
   ============================================ */

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

.hero-content,
.about-grid,
.strategies-grid,
.research-pipeline {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .research-pipeline {
        flex-direction: column;
        gap: 16px;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        padding: 0;
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 32px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    section {
        padding: 80px 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Updates Section — What's New Carousel
   ============================================ */

.updates {
    background: var(--bg-secondary);
}

.updates-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    min-height: 120px;
}

.update-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

.update-card.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

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

.update-date {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.update-marker {
    font-size: 0.9rem;
    color: var(--accent-1);
    font-family: var(--font-mono);
    line-height: 1;
}

.update-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.updates-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.updates-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
    transition: all 0.3s ease;
    cursor: default;
}

.updates-dots .dot.active {
    opacity: 1;
    width: 20px;
    border-radius: 3px;
    background: var(--accent-1);
}

@media (max-width: 768px) {
    .updates-carousel {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   Ethos Section — Evidence Before Capital
   ============================================ */

.ethos {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.ethos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-1), transparent);
    opacity: 0.15;
}

.ethos-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ethos-icon {
    font-size: 2rem;
    color: var(--accent-1);
    font-family: var(--font-mono);
    margin-bottom: 20px;
    opacity: 0.6;
    letter-spacing: 4px;
}

.ethos-content h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.ethos-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 40px;
}

.ethos-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.ethos-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ethos-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ethos-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .ethos-stats {
        gap: 24px;
        flex-direction: column;
    }
}

/* ============================================
   Journal Section — Nivonex Journal
   ============================================ */

.journal {
    background: var(--bg-secondary);
}

.journal-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
}

.journal-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.journal-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.journal-status {
    font-size: 0.9rem;
    line-height: 1.4;
    flex-shrink: 0;
    margin-top: 2px;
}

.status-green { color: #22c55e; }
.status-yellow { color: #eab308; }
.status-red { color: #ef4444; }
.status-blue { color: #3b82f6; }
.status-purple { color: #a855f7; }

.journal-body {
    flex: 1;
    min-width: 0;
}

.journal-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    margin-bottom: 6px;
}

.journal-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.journal-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
}

.journal-meta {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.journal-footer {
    text-align: center;
    margin-top: 32px;
}

/* ============================================
   Lab Section — Coming Soon
   ============================================ */

.lab {
    background: var(--bg-primary);
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lab-card {
    padding: 32px 24px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.lab-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.lab-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--accent-1);
    opacity: 0.6;
}

.lab-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.lab-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.lab-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

@media (max-width: 968px) {
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Roadmap Section
   ============================================ */

.roadmap {
    background: var(--bg-secondary);
}

.roadmap-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
    opacity: 0.3;
}

.roadmap-item {
    display: flex;
    gap: 24px;
    padding-bottom: 40px;
    position: relative;
}

.roadmap-item:last-child {
    padding-bottom: 0;
}

.roadmap-dot {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-hover);
    position: relative;
    z-index: 1;
}

.roadmap-dot.current {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.roadmap-dot.current::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-1);
}

.roadmap-content {
    flex: 1;
    padding-top: 4px;
}

.roadmap-phase {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-1);
    font-family: var(--font-mono);
}

.roadmap-content h3 {
    font-size: 1.2rem;
    margin: 4px 0 8px;
}

.roadmap-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.roadmap-date {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}
