/* Global Aesthetic Settings */
:root {
    --bg-dark: #07070b;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --gemini-blue: #4285f4;
    --gemini-purple: #9b72cb;
    --gemini-pink: #d96570;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Glows */
.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--gemini-purple), transparent 70%);
}

.blob-2 {
    bottom: 10%;
    right: -10%;
    background: radial-gradient(circle, var(--gemini-blue), transparent 70%);
    animation-delay: -5s;
}

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

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, #a485ff, var(--gemini-blue), #fb7baf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: black;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Problem Section */
.problem-section {
    max-width: 800px;
    margin-bottom: 4rem;
    text-align: left;
}

.problem-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.problem-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.problem-section p strong {
    color: var(--text-main);
}

/* Custom Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 2.5rem 2rem;
    gap: 0;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 1.5rem 1.5rem;
    border-radius: 12px;
    width: 220px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.arch-node:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.proxy-node {
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.1), rgba(155, 114, 203, 0.1));
    border-color: rgba(66, 133, 244, 0.3);
}

.ai-node {
    background: linear-gradient(90deg, rgba(217, 101, 112, 0.1), rgba(155, 114, 203, 0.1));
    border-color: rgba(155, 114, 203, 0.3);
}

.node-icon {
    font-size: 2rem;
}

.node-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.2rem;
}

.node-content span {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.arch-connector {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 40px;
    position: relative;
    z-index: 1;
    width: 160px;
    margin: 0 -10px; /* pull nodes closer together behind glass */
}

.connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--border-glass) 50%, transparent 50%);
    background-size: 10px 100%;
    opacity: 0.5;
}

.animated-line {
    background: linear-gradient(to right, var(--gemini-purple) 50%, transparent 50%);
    background-size: 10px 100%;
    animation: flowDataRight 1s linear infinite;
    opacity: 0.8;
}

@keyframes flowDataRight {
    from { background-position: 0 0; }
    to { background-position: -20px 0; }
}

.connector-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Code Showcase Grid */
.code-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.code-column {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.code-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.code-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}

.file-name {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
}

pre {
    margin: 0;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.5;
}

code .keyword { color: #c678dd; } /* Purple */
code .string { color: #98c379; }  /* Green */
code .comment { color: #5c6370; font-style: italic; } /* Gray */

/* Footer */
footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive constraints */
@media (max-width: 900px) {
    .code-showcase {
        grid-template-columns: 1fr;
    }
    .tagline {
        font-size: 2.5rem;
    }
    .architecture-diagram {
        flex-direction: column;
    }
    .arch-node {
        width: 100%;
    }
    .arch-connector {
        flex-direction: column;
        width: 100%;
        height: 80px;
    }
    .connector-line, .animated-line {
        width: 2px;
        height: 100%;
        background: linear-gradient(to bottom, var(--border-glass) 50%, transparent 50%);
        background-size: 100% 10px;
    }
    .connector-label {
        top: 50%;
    }
}
