:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 30, 0.6);
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --accent-glow: rgba(0, 243, 255, 0.2);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--accent-glow);
}

/* Nav */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
}

.highlight {
    color: var(--accent-cyan);
}

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

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

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    background: rgba(0, 243, 255, 0.05);
}

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

.hero-sub {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

/* Hero Visual & 3D Card */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.card-stack {
    position: relative;
    width: 350px;
    height: 450px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(20,20,30,0.9), rgba(10,10,20,0.9));
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.middle {
    transform: translateZ(-20px) translateY(20px) translateX(20px) rotateY(-5deg);
    opacity: 0.7;
    background: var(--accent-purple);
    z-index: -1;
}

.back {
    transform: translateZ(-40px) translateY(40px) translateX(40px) rotateY(-5deg);
    opacity: 0.4;
    background: var(--accent-cyan);
    z-index: -2;
}

.front {
    transform: rotateY(-5deg);
    z-index: 10;
    overflow: hidden;
    padding: 20px;
}

.code-preview {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #d4d4d4;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

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

pre { margin: 0; }
.keyword { color: #c678dd; }
.string { color: #98c379; }
.func { color: #61afef; }
.var { color: #e06c75; }
.comment { color: #7f848e; font-style: italic; }

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

/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 81px, 0); }
    20% { clip: rect(65px, 9999px, 19px, 0); }
    40% { clip: rect(8px, 9999px, 126px, 0); }
    60% { clip: rect(103px, 9999px, 96px, 0); }
    80% { clip: rect(6px, 9999px, 83px, 0); }
    100% { clip: rect(44px, 9999px, 46px, 0); }
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
}

.cta-btn {
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.primary:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 30px var(--accent-glow);
}

.secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.secondary:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.small {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

.small:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* Features */
.features {
    padding: 8rem 10%;
    background: linear-gradient(0deg, #0a0e17 0%, #050505 100%);
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-left-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
}

/* Call to Action */
.cta-section {
    padding: 8rem 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.waitlist-form {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

input {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 300px;
}

input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

button {
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--accent-purple), #9d00ff);
    border: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.4);
}

/* Footer */
footer {
    padding: 3rem 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
    h1 { font-size: 2.5rem; }
    .cta-group { justify-content: center; }
    .waitlist-form { flex-direction: column; align-items: center; }
    input { width: 100%; }
}
