:root {
    --google-blue: #1a73e8;
    --google-blue-dark: #1557b0;
    --text-primary: #1f1f1f;
    --text-secondary: #444746;
    --surface: #ffffff;
    --surface-variant: #f0f4f8;
    --outline: #747775;
    
    /* Gemini Gradients */
    --gemini-gradient: linear-gradient(90deg, #4285F4, #9B72CB, #D96570);
    --gemini-bg-gradient: radial-gradient(circle at 50% 50%, rgba(66, 133, 244, 0.08), rgba(255, 255, 255, 0) 70%);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --easing: cubic-bezier(0.2, 0.0, 0, 1.0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--surface);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Neural Canvas --- */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.5px;
}

.logo-gemini {
    background: var(--gemini-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--google-blue);
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--easing);
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--google-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.btn-primary:hover {
    background: var(--google-blue-dark);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.3);
    transform: translateY(-1px);
}

.btn-text {
    background: transparent;
    color: var(--google-blue);
    margin-left: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--text-primary);
    margin-top: 1.5rem;
}

.btn-outline:hover {
    background: rgba(0,0,0,0.05);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    padding: 2rem;
}

/* Gemini Star Icon CSS representation */
.gemini-star {
    width: 60px;
    height: 60px;
    background: var(--gemini-gradient);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L14.5 9.5L24 12L14.5 14.5L12 24L9.5 14.5L0 12L9.5 9.5L12 0Z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L14.5 9.5L24 12L14.5 14.5L12 24L9.5 14.5L0 12L9.5 9.5L12 0Z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    margin: 0 auto 1.5rem auto;
    opacity: 0; /* Animated in */
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.subheading {
    display: block;
    background: var(--gemini-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
}

/* Floating Blobs */
.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.blob-1 { top: 20%; left: 10%; width: 400px; height: 400px; background: #D96570; }
.blob-2 { bottom: 20%; right: 10%; width: 500px; height: 500px; background: #4285F4; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* --- Feature Sections --- */
.feature-block {
    padding: 8rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.feature-block.reverse .grid-layout {
    direction: rtl; /* Simple way to swap columns */
}
.feature-block.reverse .grid-layout > * {
    direction: ltr; /* Reset content direction */
}

.section-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list li {
    list-style: none;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--google-blue);
    border-radius: 50%;
    margin-right: 12px;
}

/* --- UI Mockups --- */
.ui-mockup {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0; /* Animation start state */
    transition: transform 0.8s var(--easing), opacity 0.8s var(--easing);
    border: 1px solid rgba(0,0,0,0.05);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

.ui-header {
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.ui-body { padding: 2rem; min-height: 300px; display: flex; flex-direction: column; gap: 1.5rem; }

.chat-bubble {
    padding: 1rem 1.5rem;
    border-radius: 18px;
    max-width: 85%;
    font-size: 0.95rem;
}

.chat-bubble.user {
    align-self: flex-end;
    background: #f0f4f8;
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    align-self: flex-start;
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    position: relative;
}

.chat-bubble.ai::before {
    content: '✦'; /* Sparkle icon */
    position: absolute;
    left: -25px;
    top: 0;
    color: #4285F4; /* Simple blue for the sparkle */
    font-size: 1.2rem;
}

.attachment-preview {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    border: 1px solid #eee;
}

/* Coding UI */
.ui-mockup.dark-mode {
    background: #1e1e1e;
    color: #d4d4d4;
}

.code-editor {
    display: flex;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    padding: 2rem;
}

.line-numbers {
    color: #505050;
    padding-right: 1.5rem;
    text-align: right;
}
.line-numbers span { display: block; }

.keyword { color: #569cd6; }
.function { color: #dcdcaa; }
.variable { color: #9cdcfe; }
.comment { color: #6a9955; }

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: white;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Stats Grid --- */
.stats-grid {
    display: flex;
    gap: 2rem;
}
.stat-card {
    background: var(--surface-variant);
    padding: 2rem;
    border-radius: 16px;
    flex: 1;
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--google-blue);
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.google-footer {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}
.footer-logo { font-size: 1.5rem; font-weight: 500; color: #444; }
.footer-links a { color: #666; text-decoration: none; margin: 0 1rem; font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 3rem; }
    .feature-block.reverse .grid-layout { direction: ltr; }
    .feature-block.reverse .grid-layout > * { direction: ltr; }
    /* Reorder visuals to top on mobile */
    .feature-block .visual-content { order: -1; }
}