:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-green: #22c55e;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Background Grid */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
}

.background-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-signin {
    background: #d946ef;
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-signin:hover {
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 4rem 6rem;
    min-height: 80vh;
    gap: 4rem;
}

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

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.875rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

h1 {
    font-size: 4rem;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text-1 {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-2 {
    background: linear-gradient(90deg, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #22d3ee, #818cf8);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #eab308, #22c55e);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: black;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

/* Code Window */
.hero-visual {
    position: relative;
}

.code-window {
    background: #0f1014;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 2;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.window-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.code-content {
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 15px;
    /* Slightly larger for readability */
}

.line {
    display: flex;
    gap: 1.5rem;
}

.line-num {
    color: #4b5563;
    user-select: none;
    width: 1.5rem;
    text-align: right;
}

/* Syntax Highlighting overrides */
.kwd {
    color: #c084fc;
}

/* purple */
.var {
    color: #60a5fa;
}

/* blue */
.str {
    color: #4ade80;
}

/* green */
.func {
    color: #fcd34d;
}

/* yellow */
.obj {
    color: #22d3ee;
}

/* cyan */
.bool {
    color: #f472b6;
}

/* pink */
.prop {
    color: #94a3b8;
}

.op {
    color: #f87171;
}

.comment {
    color: #64748b;
    font-style: italic;
}

.cursor-flair {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--accent-blue), transparent);
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
}

.floating-shape {
    position: absolute;
    top: -40px;
    right: 40px;
    width: 100px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
    z-index: 1;
    backdrop-filter: blur(2px);
}

/* Features Section */
.features-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.section-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.icon-box svg {
    width: 24px;
    height: 24px;
}

.icon-box.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.icon-box.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.icon-box.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.icon-box.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
}

.icon-box.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.icon-box.pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-pink);
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Demo Section */
.demo-section {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.demo-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.demo-item.reverse {
    flex-direction: row-reverse;
}

.demo-image-container {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    /* Ensure the 3D effect is smooth */
    backface-visibility: hidden;
}

.demo-image-container img {
    width: 100%;
    height: auto;
    display: block;
    /* Smooth scaling for the image inside */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 3D Effect for First Item (Image Left) */
.demo-item:not(.reverse) .demo-image-container {
    transform: perspective(1500px) rotateY(15deg) rotateX(5deg) scale(0.95);
    box-shadow: -20px 20px 40px -10px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 3D Effect for Second Item (Image Right) */
.demo-item.reverse .demo-image-container {
    transform: perspective(1500px) rotateY(-15deg) rotateX(5deg) scale(0.95);
    box-shadow: 20px 20px 40px -10px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Hover States - Bring to front and flatten */
.demo-item:not(.reverse) .demo-image-container:hover {
    transform: perspective(1500px) rotateY(0deg) rotateX(0deg) scale(1.02) translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(59, 130, 246, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.demo-item.reverse .demo-image-container:hover {
    transform: perspective(1500px) rotateY(0deg) rotateX(0deg) scale(1.02) translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(139, 92, 246, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Add a subtle shine effect */
.demo-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.05) 40%, transparent 60%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.demo-image-container:hover::after {
    opacity: 1;
}

.demo-text {
    flex: 0.8;
}

.demo-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.demo-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

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

.mission-text-block p {
    font-size: 1.5rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.about-subsection h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.subsection-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

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

.phase-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.phase-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.phase-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.phase-badge.badg-future {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border-color: rgba(139, 92, 246, 0.2);
}

.phase-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.mission-statement-highlight {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
}

/* Media Queries */
@media (max-width: 1024px) {

    .features-grid,
    .phases-grid {
        grid-template-columns: 1fr;
    }

    .demo-item,
    .demo-item.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .demo-text {
        flex: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 6rem 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .btn-download {
        margin: 1rem auto;
    }

    h1 {
        font-size: 3.5rem;
    }

    .navbar {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        display: none;
        /* simple hiding for mobile for now */
    }
}
/* Prevent anchor jumps from hiding content behind the fixed header */
#home {
  scroll-margin-top: 80px; /* change 80px to your header's height */
}
