/**
 * SOLVUH Design System - Landing Page
 * ====================================
 * Styles for the public landing page (index.html)
 * Navbar, Hero, Features, Pipeline, Stats, CTA, Footer
 */

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed, 300);
    padding: 0.75rem 0;
    transition: all var(--transition-base, 200ms ease);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-800, #27272a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--surface-100, #f4f4f5);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500, #22c55e), var(--primary-600, #16a34a));
    color: white;
    font-weight: 800;
    font-size: 1.125rem;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--surface-400, #a1a1aa);
    text-decoration: none;
    border-radius: var(--radius-md, 8px);
    transition: all var(--transition-fast, 150ms ease);
}

.nav-link:hover {
    color: var(--surface-100, #f4f4f5);
    background: var(--surface-800, #27272a);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--surface-700, #3f3f46);
    border-radius: var(--radius-md, 8px);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--surface-400, #a1a1aa);
    transition: all var(--transition-fast, 150ms ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--surface-100, #f4f4f5);
    border-color: var(--surface-600, #52525b);
    background: var(--surface-800, #27272a);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--surface-700, #3f3f46);
    border-radius: var(--radius-md, 8px);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--surface-400, #a1a1aa);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.12), transparent 70%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.08), transparent 60%),
                linear-gradient(180deg, var(--surface-950, #09090b) 0%, var(--surface-925, #121214) 100%);
    z-index: -2;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 70%);
}

.hero-content {
    max-width: 56rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-400, #4ade80);
    margin-bottom: 1.5rem;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-500, #22c55e);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--surface-100, #f4f4f5);
    margin-bottom: 1.25rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-400, #4ade80), var(--primary-300, #86efac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--surface-400, #a1a1aa);
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

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

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-400, #4ade80);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--surface-100, #f4f4f5);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--surface-400, #a1a1aa);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   FEATURES GRID
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--surface-900, #18181b);
    border: 1px solid var(--surface-800, #27272a);
    border-radius: var(--radius-lg, 12px);
    padding: 1.5rem;
    transition: all var(--transition-base, 200ms ease);
}

.feature-card:hover {
    border-color: var(--surface-700, #3f3f46);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 10px 15px rgba(0,0,0,0.5));
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md, 8px);
    margin-bottom: 1rem;
    color: var(--primary-400, #4ade80);
}

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

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--surface-100, #f4f4f5);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--surface-400, #a1a1aa);
    margin: 0;
}

/* ========================================
   PIPELINE / ARCHITECTURE
   ======================================== */
.pipeline-section {
    background: var(--surface-925, #121214);
    border-top: 1px solid var(--surface-800, #27272a);
    border-bottom: 1px solid var(--surface-800, #27272a);
}

.pipeline-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.pipeline-stage {
    text-align: center;
    min-width: 120px;
}

.stage-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg, 12px);
    margin: 0 auto 0.75rem;
    border: 1px solid var(--surface-700, #3f3f46);
    transition: all var(--transition-base, 200ms ease);
}

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

.stage-icon.orchestrator {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--agent-orchestrator, #3b82f6);
}

.stage-icon.architect {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--agent-architect, #8b5cf6);
}

.stage-icon.implementation {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--agent-implementation, #22c55e);
}

.stage-icon.evaluator {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--agent-evaluator, #f59e0b);
}

.stage-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--surface-200, #e4e4e7);
    margin-bottom: 0.25rem;
}

.stage-desc {
    font-size: 0.75rem;
    color: var(--surface-500, #71717a);
}

.pipeline-arrow {
    font-size: 1.5rem;
    color: var(--surface-600, #52525b);
    font-weight: 300;
}

/* ========================================
   STATS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 40rem;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 1.25rem;
    background: var(--surface-900, #18181b);
    border: 1px solid var(--surface-800, #27272a);
    border-radius: var(--radius-lg, 12px);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-400, #4ade80);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--surface-400, #a1a1aa);
    margin-top: 0.25rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    text-align: center;
    padding: 5rem 1.5rem;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(34, 197, 94, 0.06), transparent 70%);
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--surface-100, #f4f4f5);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1rem;
    color: var(--surface-400, #a1a1aa);
    margin-bottom: 2rem;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    border-top: 1px solid var(--surface-800, #27272a);
    padding: 2rem 1.5rem;
    background: var(--surface-950, #09090b);
}

.footer-container {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--surface-200, #e4e4e7);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.footer-link {
    font-size: 0.8125rem;
    color: var(--surface-400, #a1a1aa);
    text-decoration: none;
    transition: color var(--transition-fast, 150ms ease);
}

.footer-link:hover {
    color: var(--surface-100, #f4f4f5);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--surface-500, #71717a);
    text-align: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding-top: 5rem;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .pipeline-diagram {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   LIGHT MODE OVERRIDES
   ======================================== */
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: #e4e4e7;
}

[data-theme="light"] .hero-bg {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.08), transparent 70%),
                linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero h1 {
    color: #18181b;
}

[data-theme="light"] .pipeline-section {
    background: #f9fafb;
    border-color: #e4e4e7;
}

[data-theme="light"] .footer {
    background: #ffffff;
    border-color: #e4e4e7;
}

[data-theme="light"] .feature-card {
    background: #ffffff;
    border-color: #e4e4e7;
}

[data-theme="light"] .stat-card {
    background: #ffffff;
    border-color: #e4e4e7;
}
