:root {
    --bg-dark: #050508;
    --bg-panel: rgba(20, 20, 30, 0.4);
    --bg-panel-hover: rgba(30, 30, 45, 0.6);
    --text-main: #f0f0f5;
    --text-muted: #9aa0a6;
    --primary-cyan: #00f0ff;
    --primary-purple: #8a2be2;
    --primary-blue: #0047ff;
    --gradient-glow: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    --border-glass: rgba(255, 255, 255, 0.08);
}

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

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

h1, h2, h3, h4, .logo span {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Background blob animations */
.blob-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(138,43,226,0.15) 0%, rgba(0,240,255,0.05) 40%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: float 20s ease-in-out infinite alternate;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
}

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

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

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-glow);
    border-radius: 6px;
    box-shadow: 0 0 15px var(--primary-cyan);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--gradient-glow);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--primary-purple);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 0.5s;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, var(--bg-dark) 100%);
    pointer-events: none;
}

/* Sections */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 32px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-panel-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-cyan {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
}

.icon-purple {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-purple);
}

.icon-blue {
    background: rgba(0, 71, 255, 0.1);
    color: var(--primary-blue);
}

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

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

/* How It Works */
.alt-bg {
    position: relative;
}
.alt-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(20,20,30,0.5), transparent);
    z-index: -1;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit';
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    min-width: 80px;
}

.step-content {
    flex: 1;
    padding: 32px;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--primary-cyan);
}

.step-content p {
    color: var(--text-muted);
}

/* Entities */
.entity-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.entity-card {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.entity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.entity-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.entity-hover {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(138, 43, 226, 0.2) 0%, transparent 100%);
    transition: bottom 0.4s ease;
    z-index: 1;
}

.entity-card:hover .entity-hover {
    bottom: 0;
}

/* CTA Section */
.cta-box {
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(20,20,30,0.8), rgba(30,30,45,0.6));
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 150px; height: 150px;
    background: var(--primary-cyan);
    filter: blur(100px);
    opacity: 0.3;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.input-glass {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.input-glass:focus {
    border-color: var(--primary-cyan);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
}

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

.link-group h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .entity-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .step-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .entity-cards {
        grid-template-columns: 1fr;
    }
}
