:root {
    --bg-dark: #0a0a0f;
    --bg-panel: rgba(20, 20, 30, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f5;
    --text-muted: #9ba1a6;
    
    /* Neon Accents */
    --cyan: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.3);
    --magenta: #ff00ff;
    --magenta-glow: rgba(255, 0, 255, 0.3);
    --purple: #8a2be2;
}

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

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

h1, h2, h3, .logo-text, .card-title {
    font-family: 'Outfit', sans-serif;
}

/* Background Canvas */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fallback gradient if image fails/loads slow */
.background-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #050508 0%, #0a0a14 50%, #050508 100%);
    z-index: -2;
}

/* Grid overlay for tech vibe */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* Animated glowing orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--cyan);
    top: 10%;
    left: 10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--magenta);
    bottom: 20%;
    right: 5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-badge {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #000;
}

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

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

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

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cyan { color: var(--cyan); }
.magenta { color: var(--magenta); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    color: #fff;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--cyan-glow), 0 0 10px var(--cyan);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Card */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.visual-card {
    width: 350px;
    border-radius: 12px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
}

.card-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.card-title {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-body {
    padding: 1.5rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 1.1rem;
}

.data-row:last-child {
    margin-bottom: 0;
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: bold;
}

.label { color: var(--text-muted); }

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

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 45, 0.6);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* API3 Section */
.api3-section {
    display: flex;
    align-items: center;
}

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

.api3-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.code-window {
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.window-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1.5rem;
    font-family: monospace;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

pre {
    padding: 2rem;
    overflow-x: auto;
}

code {
    font-family: monospace;
    color: var(--cyan);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-panel {
    padding: 4rem 2rem;
    border-radius: 20px;
}

.cta-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-panel p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

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

.info-group {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    min-width: 200px;
}

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

.info-group span {
    font-family: monospace;
    font-size: 1.1rem;
}

.address {
    color: var(--cyan);
    word-break: break-all;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        margin-bottom: 4rem;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .visual-card {
        transform: none;
    }
    
    .visual-card:hover {
        transform: translateY(-10px);
    }
    
    .nav-links { display: none; } /* Simple mobile menu hiding */
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
