@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(60px) saturate(180%);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-btn:hover {
    opacity: 0.7;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    transition: opacity 0.3s;
}

.login-btn:hover {
    opacity: 0.7;
}

.cta-btn {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: rgba(0, 0, 0, 1);
    transform: translateY(-2px);
}

.hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.app-icon {
    margin: 0 auto 32px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

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

.app-icon img {
    width: 100px;
    height: 100px;
}

.hero-title {
    font-size: 96px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -4px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 48px;
    opacity: 0.88;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.primary-cta {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.primary-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.primary-cta:hover::before {
    left: 100%;
}

.primary-cta:hover {
    background: rgba(0, 0, 0, 1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(60px) saturate(180%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 40px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.demo-window {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(60px) saturate(180%);
    transition: transform 0.3s;
}

.demo-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.window-header {
    background: rgba(30, 30, 30, 0.5);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
}

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

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.repo-path {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

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

.action-btn {
    background: rgba(20, 20, 40, 0.6);
    color: white;
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
}

.action-btn.commit {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.window-content {
    display: flex;
    min-height: 300px;
}

.sidebar {
    width: 200px;
    background: rgba(15, 15, 15, 0.3);
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.sidebar-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.code-editor {
    flex: 1;
    padding: 24px;
}

.prompt-box {
    background: rgba(20, 20, 40, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    backdrop-filter: blur(40px) saturate(180%);
}

.changes-panel {
    background: rgba(15, 15, 15, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
}

.changes-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.changes-count {
    color: white;
    font-weight: 600;
}

.additions {
    color: #27c93f;
}

.deletions {
    color: #ff5f56;
}

.file-change {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 12px;
}

.file-path {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
}

.change-stats {
    color: rgba(255, 255, 255, 0.5);
}

.close-btn, .check-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff5f56;
}

.check-btn:hover {
    color: #27c93f;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(60px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    transition: all 0.3s;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Features Section with Stacking Cards */
.features-section {
    position: relative;
    z-index: 1;
}

.features-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    animation: starShine 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes starShine {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 20% 80%, 70% 30%, 40% 90%;
        opacity: 0.6;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 80% 20%, 20% 80%, 70% 30%, 40% 90%, 90% 10%;
        opacity: 0.9;
    }
}

.feature-card {
    max-width: 1000px;
    margin: 0 auto 100px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    padding: 56px;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 0 80px rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 100px;
    opacity: 0;
    transform: translateY(80px) scale(0.96);
    transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderShine 3s ease-in-out infinite;
}

@keyframes borderShine {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.traffic-lights {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.traffic-lights .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.traffic-lights .dot.red {
    background: #ff5f56;
    box-shadow: 0 0 10px rgba(255, 95, 86, 0.6);
}

.traffic-lights .dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 10px rgba(255, 189, 46, 0.6);
}

.traffic-lights .dot.green {
    background: #27c93f;
    box-shadow: 0 0 10px rgba(39, 201, 63, 0.6);
}

.feature-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    color: rgba(255, 255, 255, 1);
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.feature-list li img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: clamp(40px, 10vw, 56px); letter-spacing: -2px; }
    .hero-subtitle { font-size: 16px; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .primary-cta, .secondary-cta { width: 100%; max-width: 320px; padding: 16px 32px; font-size: 15px; }
    .window-content { flex-direction: column; height: auto; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .feature-card {
        padding: 28px 24px;
        margin-bottom: 40px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        position: static;
        transform: none;
        opacity: 1;
        border-radius: 20px;
    }
    .feature-content h2 { font-size: 26px; }
    .feature-list li { font-size: 15px; padding: 12px 0; }
}
@media (max-width: 480px) {
    .nav-container { padding: 14px 20px; }
    .hero-title { font-size: clamp(32px, 9vw, 40px); }
    .hero-subtitle { font-size: 15px; }
    .app-icon { width: 100px; height: 100px; }
    .app-icon img { width: 72px; height: 72px; }
    .feature-card { padding: 22px 18px; }
    .feature-content h2 { font-size: 22px; }
}
