/* ═══════════════════════════════════════════════════════════
   NOCTARIM — "From darkness, we bring light"
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: #141420;
    --bg-card-hover: #1a1a2e;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --gold: #d4a853;
    --gold-light: #f0d080;
    --gold-dark: #a07830;
    --purple: #7b5ea7;
    --purple-light: #9b7ec7;
    --green: #4ecdc4;
    --border: #1e1e30;
    --glow-gold: rgba(212, 168, 83, 0.15);
    --glow-purple: rgba(123, 94, 167, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ── Typography ──────────────────────────────────────────── */

.gradient-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navigation ──────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

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

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

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ── Hero Section ────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

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

.hero-subtitle strong {
    color: var(--gold);
    font-weight: 700;
}

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

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* ── Hero Stats ──────────────────────────────────────────── */

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ── Hero Scroll ─────────────────────────────────────────── */

.hero-scroll {
    position: absolute;
    bottom: 32px;
    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(--gold), transparent);
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 60px; }
}

/* ── Sections ────────────────────────────────────────────── */

.section {
    padding: 100px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

/* ── About Grid ──────────────────────────────────────────── */

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

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(212, 168, 83, 0.2);
    transform: translateY(-4px);
}

.about-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.about-card em {
    color: var(--gold);
    font-style: italic;
}

/* ── Flow / How It Works ─────────────────────────────────── */

.flow-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    transition: var(--transition);
}

.flow-step:hover {
    border-color: rgba(212, 168, 83, 0.2);
}

.flow-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    flex-shrink: 0;
    min-width: 50px;
}

.flow-green {
    color: var(--green);
}

.flow-gold {
    color: var(--gold);
}

.flow-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

.flow-arrow {
    color: var(--text-muted);
    padding: 8px;
}

.flow-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.flow-step-small {
    padding: 24px;
}

/* ── Transparency ────────────────────────────────────────── */

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

.transparency-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.transparency-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(212, 168, 83, 0.2);
    transform: translateY(-4px);
}

.transparency-icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.transparency-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

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

.transparency-card code {
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ── Token Table ─────────────────────────────────────────── */

.token-table-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.token-table {
    width: 100%;
    border-collapse: collapse;
}

.token-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.token-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.token-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

.token-table tr:last-child td:last-child {
    color: var(--green);
}

/* ── Roadmap ─────────────────────────────────────────────── */

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

.roadmap::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.roadmap-item {
    position: relative;
    margin-bottom: 40px;
}

.roadmap-marker {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--text-muted);
    z-index: 1;
}

.roadmap-item.completed .roadmap-marker {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.4);
}

.roadmap-item.active .roadmap-marker {
    background: var(--purple);
    border-color: var(--purple-light);
    box-shadow: 0 0 12px rgba(123, 94, 167, 0.4);
    animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {
    0%, 100% { box-shadow: 0 0 12px rgba(123, 94, 167, 0.4); }
    50% { box-shadow: 0 0 24px rgba(123, 94, 167, 0.6); }
}

.roadmap-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.roadmap-item.active .roadmap-content {
    border-color: rgba(123, 94, 167, 0.3);
}

.roadmap-item.completed .roadmap-content {
    border-color: rgba(212, 168, 83, 0.2);
}

.roadmap-phase {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.roadmap-item.completed .roadmap-phase { color: var(--gold); }
.roadmap-item.active .roadmap-phase { color: var(--purple-light); }

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

.roadmap-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roadmap-content li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 24px;
    position: relative;
}

.roadmap-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
}

.roadmap-content li.done::before {
    background: var(--gold);
    border-color: var(--gold);
}

/* ── CTA Section ─────────────────────────────────────────── */

.section-cta {
    background: var(--bg-secondary);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ── Footer ──────────────────────────────────────────────── */

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

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

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

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-social a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--gold);
}

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

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

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

    .mobile-menu {
        display: flex;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .flow-split {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ── Animations ──────────────────────────────────────────── */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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