:root {
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --accent: #ff0055;
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Removed cursor: none to fix usability issues */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: default;
    /* Restore default cursor */
}

/* Custom Cursor - Now acts as a visual highlighter only */
.cursor-dot,
.cursor-outline {
    display: none;
    /* Hidden by default for mobile/touch, enabled via JS for desktop if needed */
}

@media (pointer: fine) {
    body {
        cursor: none;
        /* Only hide cursor on devices with a mouse */
    }

    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .highlight {
    color: var(--primary);
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero p {
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.primary-btn {
    padding: 1rem 2rem;
    background: var(--text-white);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.secondary-btn {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    transition: background 0.3s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Visual & Code Window */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.code-window {
    width: 500px;
    background: #0d0d12;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.02);
}

.window-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.code-content {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #abb2bf;
    line-height: 1.5;
}

.keyword {
    color: #c678dd;
}

.variable {
    color: #e5c07b;
}

.string {
    color: #98c379;
}

.function {
    color: #61afef;
}

.comment {
    color: #5c6370;
    font-style: italic;
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    background: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ORBS */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(purple, var(--primary));
    top: -50px;
    right: -50px;
    opacity: 0.4;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: -50px;
    left: 50px;
    opacity: 0.3;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 30px);
    }
}

/* Features Section */
.features {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    background: linear-gradient(to right, white, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.feature-card p {
    color: var(--text-gray);
}

/* Interactive Demo */
.interactive-demo {
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
}

.demo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1), transparent 70%);
    z-index: 0;
}

.demo-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.demo-content h2,
.demo-content p {
    text-align: center;
    margin-bottom: 2rem;
}

.api-console {
    background: #0d0d12;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.console-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    position: relative;
    font-family: var(--font-body);
}

.tab.active {
    color: var(--text-white);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.console-body {
    padding: 2rem;
    position: relative;
}

.console-output {
    background: #050507;
    padding: 1rem;
    margin: 0 2rem 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #98c379;
}

.status-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.success {
    color: #27c93f;
}

.time {
    color: var(--text-gray);
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Footer - Advanced */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 6rem 5% 2rem;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0) 0%, rgba(0, 243, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-family: var(--font-heading);
    background: linear-gradient(45deg, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Newsletter Input */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
}

.newsletter-form:focus-within {
    border-color: var(--primary);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    flex: 1;
    font-family: var(--font-body);
    outline: none;
}

.newsletter-form button {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-white);
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Utilities */
.glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    opacity: 0.4;
}

/* Scroll reveal class (added dynamically by script but good to have base) */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .code-window {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        background: none;
        text-align: center;
    }
}