:root {
    --bg-main: #000000;
    --bg-secondary: #050505;
    --primary: #b026ff;
    --primary-hover: #9c0fd6;
    --secondary: #111111;
    --secondary-hover: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --accent: #df00fe;
    --success: #10b981;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

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

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

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    animation: float 20s infinite alternate;
    will-change: transform;
}

.orb-1 {
    top: 20%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #ff00ff, transparent 70%);
    animation-delay: -10s;
}

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

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, #e879f9, #b026ff, #df00fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
    font-size: 1.75rem;
}

.nav-logo-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    flex-shrink: 0;
    mix-blend-mode: screen;
}

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

.nav-links a:not(.btn-primary-sm) {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary-sm:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

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

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

.btn-secondary span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

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

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(147, 51, 234, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.other-platforms {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.other-platforms p {
    margin: 0;
    font-size: 0.875rem;
}

.platform-links {
    display: flex;
    gap: 1rem;
}

.platform-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.platform-links a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Glass Panel Visual */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-panel:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

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

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4b5563;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #10b981; }

.panel-header .title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: auto;
}

.panel-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(147, 51, 234, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-info h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.stat-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.stat-bar .fill {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    box-shadow: 0 0 10px var(--primary);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.text-success {
    color: var(--success);
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, #000000);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(176, 38, 255, 0.15);
    border-color: rgba(176, 38, 255, 0.6);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.2), rgba(223, 0, 254, 0.2));
    color: #e879f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(176, 38, 255, 0.4);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.3);
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    padding: 4rem 0 2rem;
    background: #000000;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Architecture Page Styles */
.architecture-hero {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.architecture-header {
    text-align: center;
    margin-bottom: 4rem;
}

.architecture-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.architecture-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 3D Stack Container */
.arch-3d-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6rem 0;
    perspective: 1500px;
}

.layer-stack {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 350px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-40deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.layer-stack:hover {
    transform: rotateX(55deg) rotateZ(-30deg) scale(1.05);
}

.arch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Base positions (Isometric stack) */
.layer-top {
    transform: translateZ(120px);
    border-color: rgba(255, 255, 255, 0.2);
}
.layer-middle {
    transform: translateZ(40px);
    border-color: rgba(176, 38, 255, 0.4);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.15) inset, 0 20px 50px rgba(0,0,0,0.6);
}
.layer-bottom {
    transform: translateZ(-40px);
    border-color: rgba(223, 0, 254, 0.4);
    box-shadow: 0 0 30px rgba(223, 0, 254, 0.15) inset, 0 20px 50px rgba(0,0,0,0.6);
}

/* Hover separation effect */
.layer-stack:hover .layer-top {
    transform: translateZ(180px);
}
.layer-stack:hover .layer-middle {
    transform: translateZ(70px);
}
.layer-stack:hover .layer-bottom {
    transform: translateZ(-40px);
}

.layer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.layer-top .layer-title { color: #ffffff; }
.layer-middle .layer-title { color: var(--primary); }
.layer-bottom .layer-title { color: var(--accent); }

.layer-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.arch-box {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.box-safe { border-left: 4px solid #10b981; }
.box-danger { border-left: 4px solid #ef4444; }
.box-action { border-left: 4px solid var(--primary); background: rgba(176,38,255,0.1); }
.box-block { border-left: 4px solid var(--accent); background: rgba(223,0,254,0.1); }

/* Explanation Cards */
.arch-explanation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.arch-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.arch-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.arch-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.arch-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Markdown Documentation Section */
.documentation-section {
    padding: 60px 0;
    margin-top: 40px;
}

.markdown-body {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.05rem;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.markdown-body h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.markdown-body h2 {
    font-size: 2rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.markdown-body h3 {
    font-size: 1.5rem;
    color: var(--accent);
}

.markdown-body p, .markdown-body ul, .markdown-body ol {
    margin-bottom: 1.5rem;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 2rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.markdown-body a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.markdown-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #ffd700;
}

.markdown-body pre {
    background: #0d0d0d;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.markdown-body pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.markdown-body th, .markdown-body td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    text-align: left;
}

.markdown-body th {
    background: rgba(176, 38, 255, 0.15);
    color: #fff;
}

.markdown-body tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.markdown-body hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .other-platforms {
        justify-content: center;
    }
    
    .glass-panel {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }

    .glass-panel:hover {
        transform: none;
    }
    
    .markdown-body {
        padding: 2rem 1.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .arch-explanation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a:not(.btn-primary-sm) {
        display: none;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .cta-group .btn {
        width: 100%;
    }
    
    .other-platforms {
        flex-direction: column;
        gap: 1rem;
    }
    
    .release-version {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .release-card {
        padding: 1.5rem;
    }

    .layer-stack {
        height: 250px;
        transform: rotateX(60deg) rotateZ(-40deg) scale(0.8);
    }
    
    .layer-stack:hover {
        transform: rotateX(55deg) rotateZ(-30deg) scale(0.85);
    }
    
    .arch-layer {
        padding: 1.5rem;
    }
    
    .layer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .arch-box {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .markdown-body {
        padding: 1.5rem 1rem;
    }
}
