/* ============================================
   DLT - Distributed Ledger Technologies
   Main Stylesheet
   ============================================ */

/* Font Face - Ethnocentric for DLT logo only */
@font-face {
    font-family: 'Ethnocentric';
    src: url('../fonts/ethnocentric.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --neon-blue: #00d4ff;
    --neon-blue-bright: #00e5ff;
    --neon-blue-dim: rgba(0, 212, 255, 0.3);
    --neon-blue-glow: rgba(0, 212, 255, 0.15);
    --neon-blue-subtle: rgba(0, 212, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-dim: #606070;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --success: #00d4aa;
    --warning: #f7931a;
    --danger: #ef4444;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* Selection */
::selection {
    background: var(--neon-blue-dim);
    color: var(--text-primary);
}

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

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 56px;
    height: 56px;
}

.logo-text {
    font-family: 'Ethnocentric', -apple-system, sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue-dim);
}

/* DLT text in headings */
h2 .logo-text {
    font-family: 'Ethnocentric', -apple-system, sans-serif;
    font-size: inherit;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--neon-blue-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--neon-blue-subtle);
    border: 1px solid var(--neon-blue-dim);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--neon-blue);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .highlight {
    color: var(--neon-blue);
    text-shadow: 0 0 40px var(--neon-blue-dim);
}

.hero-tagline {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-description {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: var(--neon-blue);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--neon-blue-bright);
    box-shadow: 0 0 30px var(--neon-blue-dim);
    transform: translateY(-2px);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

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

.btn-outline:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: var(--neon-blue-subtle);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header h2 .highlight {
    color: var(--neon-blue);
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Products Section
   ============================================ */
.products {
    background: var(--bg-secondary);
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    border-color: var(--neon-blue-dim);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.product-card.featured {
    border-color: var(--neon-blue-dim);
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.03));
}

.product-card.featured::before {
    opacity: 1;
}

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-icon {
    width: 56px;
    height: 56px;
    background: var(--neon-blue-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    background: var(--neon-blue-dim);
    transform: scale(1.05);
}

.product-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--neon-blue);
    fill: none;
    stroke-width: 2;
}

.product-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background: rgba(0, 212, 170, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.status-coming {
    background: rgba(247, 147, 26, 0.15);
    color: var(--warning);
    border: 1px solid rgba(247, 147, 26, 0.3);
}

.product-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-card > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.product-link:hover {
    gap: 10px;
}

.product-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.product-link.github {
    color: var(--text-secondary);
}

.product-link.github:hover {
    color: var(--text-primary);
}

/* ============================================
   Technology Section
   ============================================ */
.technology {
    background: var(--bg-primary);
}

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

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

.tech-card:hover {
    border-color: var(--neon-blue-dim);
    transform: translateY(-4px);
}

.tech-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--neon-blue-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--neon-blue);
    fill: none;
    stroke-width: 2;
}

.tech-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tech-card p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.about-text h2 .highlight {
    color: var(--neon-blue);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.stat-card:hover {
    border-color: var(--neon-blue-dim);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-dim);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-primary);
}

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

.contact-email {
    font-size: 22px;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin: 32px 0;
    transition: all 0.3s ease;
}

.contact-email:hover {
    text-shadow: 0 0 20px var(--neon-blue-dim);
    transform: scale(1.02);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    border-color: var(--neon-blue);
    background: var(--neon-blue-glow);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--neon-blue);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo svg {
    width: 28px;
    height: 28px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: var(--text-dim);
    font-size: 14px;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 14px 0;
    }
    
    .logo-icon {
        width: 44px;
        height: 44px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .hero-tagline {
        font-size: 18px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .product-card {
        padding: 24px;
    }
    
    .product-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}
    
