/**
 * Lilos Dynamics - Grid System & Core Styles
 * Vibrant, modern dark theme with gradients and glow effects
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Colors - Rich Dark Theme */
    --color-bg-primary: #06060a;
    --color-bg-secondary: #0c0c14;
    --color-bg-tertiary: #141420;
    --color-bg-card: #0f0f18;
    --color-bg-hover: #1a1a28;
    
    /* Brand Colors - More Vibrant */
    --color-primary: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-primary-dark: #5b21b6;
    --color-accent: #06d6a0;
    --color-accent-light: #34efc3;
    --color-accent-alt: #f72585;
    --color-accent-yellow: #ffd60a;
    --color-accent-cyan: #00f5ff;
    
    /* Text Colors */
    --color-text-primary: #fafafa;
    --color-text-secondary: #a3a3b3;
    --color-text-muted: #6b6b7b;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Vibrant Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06d6a0 100%);
    --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #f72585 50%, #ffd60a 100%);
    --gradient-accent: linear-gradient(135deg, #f72585 0%, #7c3aed 100%);
    --gradient-cyan: linear-gradient(135deg, #06d6a0 0%, #00f5ff 100%);
    --gradient-subtle: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    --gradient-card: linear-gradient(160deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 214, 160, 0.04) 100%);
    --gradient-card-hover: linear-gradient(160deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 214, 160, 0.08) 100%);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(124, 58, 237, 0.4);
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(6, 214, 160, 0.25);
    --shadow-glow-pink: 0 0 40px rgba(247, 37, 133, 0.25);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Grid */
    --container-max: 1320px;
    --container-padding: var(--space-6);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    min-height: 100vh;
    position: relative;
}

::selection {
    background: rgba(124, 58, 237, 0.4);
    color: white;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ============================================
   CONTAINER & GRID
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 5;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

/* Products Grid - ALWAYS 3 columns for symmetry */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-full { grid-column: 1 / -1; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-24) 0;
    padding-top: calc(var(--space-24) + 100px);
    position: relative;
    background: transparent;
}

.section:first-of-type {
    padding-top: calc(var(--space-24) + 120px);
}

/* Tech/AI Background for content sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        /* Circuit grid pattern */
        linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
        /* Larger overlay grid */
        linear-gradient(90deg, rgba(6, 214, 160, 0.05) 2px, transparent 2px),
        linear-gradient(rgba(6, 214, 160, 0.05) 2px, transparent 2px);
    background-size: 40px 40px, 40px 40px, 120px 120px, 120px 120px;
}

/* Radial glow accents per section - more pronounced */
.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 600px 400px at 0% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 100% 100%, rgba(6, 214, 160, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(247, 37, 133, 0.05) 0%, transparent 70%);
}

.section > * {
    position: relative;
}

/* First section after hero - grid fades in from top */
.section:first-of-type::before {
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 50px, black 200px, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 50px, black 200px, black 100%);
}

.section-sm {
    padding: var(--space-16) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
    font-size: var(--text-lg);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: rgba(15, 15, 24, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card-header {
    margin-bottom: var(--space-4);
}

.card-header .flex {
    justify-content: center;
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.card-description {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.card-body {
    flex: 1;
}

.card-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-align: center;
}

.product-card .product-icon {
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-6);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card .product-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    filter: blur(16px);
    opacity: 0.5;
    z-index: -1;
}

.product-card .product-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* A product that has its own mark shows the mark.
   The previous treatment scaled the logo to 32px and set it on a solid
   brand-colour square. The boukd icon carries its own artwork and the SteiH
   wordmark is gold lettering, so on cyan and on pink respectively neither one
   was readable. A neutral glass pane lets each logo keep its own colour, and
   gives a wordmark the width it needs. */
.product-card .product-logo {
    width: 100%;
    height: 88px;
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.product-card .product-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* An app icon is already a rounded tile in its own artwork, so it is clipped
   to match rather than left as a loose rectangle. A wordmark is not. */
.product-card .product-logo.is-icon img {
    border-radius: 12px;
}

.product-card:hover .product-logo {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background: rgba(124, 58, 237, 0.15);
    color: var(--color-text-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.3);
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%);
    color: var(--color-accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-beta {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-coming-soon {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.2) 0%, rgba(0, 245, 255, 0.1) 100%);
    color: var(--color-accent-cyan);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.badge-development {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
    color: var(--color-primary-light);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ============================================
   NAVIGATION - Clean Pill Style
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(6, 6, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.navbar-brand:hover {
    color: var(--color-text-primary);
}

.navbar-brand img {
    height: 42px;
    width: auto;
    border-radius: 10px;
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    padding: 6px;
}

.navbar-nav li a {
    display: block;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
}

.navbar-nav li a:hover,
.navbar-nav li a.active {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.navbar-actions .btn {
    padding: 10px 24px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: var(--space-2);
}

/* ============================================
   HERO SECTION - With Geometry Nodes Canvas
   ============================================ */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: var(--space-12);
    position: relative;
    overflow: visible;
    background: var(--color-bg-primary);
    margin-bottom: -100px;
    z-index: 6;
}

/* Fade/blend at bottom of hero - simple gradient fade */
.hero-fade {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to bottom, 
        transparent 0%,
        var(--color-bg-primary) 100%
    );
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

/* Geometric Nodes Background Canvas */
#geo-nodes-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 60%);
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(6, 214, 160, 0.15) 0%, transparent 60%);
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    font-weight: 800;
}

.hero p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* The class is kept as a hook so the markup need not change, but the
   heading is plain now. An animated three-colour wash on the one sentence a
   visitor is guaranteed to read was costing legibility. The starfield behind
   it carries the colour instead. */
.hero h1 .gradient-text {
    color: var(--color-text-primary);
}

.hero p {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-10);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-track {
    overflow: hidden;
    position: relative;
    padding: var(--space-8) 0;
}

.partners-track::before,
.partners-track::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-track::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-primary) 0%, transparent 100%);
}

.partners-track::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-primary) 0%, transparent 100%);
}

.partners-scroll {
    display: flex;
    gap: var(--space-12);
    animation: scroll-partners 30s linear infinite;
    width: max-content;
}

.partners-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex-shrink: 0;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
}

.partner-logo:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.partner-placeholder {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.6;
}

.partner-logo:hover .partner-placeholder {
    color: var(--color-primary-light);
    opacity: 1;
}

.mt-16 {
    margin-top: var(--space-16);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(12, 12, 20, 0.85);
    border-top: 1px solid var(--border-color);
    padding: var(--space-20) 0 var(--space-8);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        /* Circuit grid in footer */
        linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
        /* Larger grid */
        linear-gradient(90deg, rgba(6, 214, 160, 0.05) 2px, transparent 2px),
        linear-gradient(rgba(6, 214, 160, 0.05) 2px, transparent 2px),
        /* Tech glow */
        radial-gradient(ellipse 500px 400px at 10% 90%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 500px 400px at 90% 10%, rgba(6, 214, 160, 0.1) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 120px 120px, 120px 120px, 100% 100%, 100% 100%;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .navbar-brand {
    margin-bottom: var(--space-4);
    display: inline-flex;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-heading {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-text-muted);
}

.footer-bottom a:hover {
    color: var(--color-text-primary);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary-light); }
.text-accent { color: var(--color-accent); }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.w-full { width: 100%; }

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-6);
    justify-items: center;
    padding: var(--space-8) 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
    cursor: default;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tech-item:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px currentColor);
}

.tech-icon svg {
    width: 36px;
    height: 36px;
}

.tech-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
    transition: color var(--transition-base);
    position: relative;
    z-index: 1;
}

.tech-item:hover .tech-name {
    color: var(--color-text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-stack-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 { 
        grid-template-columns: 1fr; 
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .hero {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        margin: 0 auto var(--space-6);
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-header {
        text-align: center;
    }
    
    .section-header p {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Center cards and content on mobile */
    .card {
        text-align: center;
    }
    
    .card .flex {
        justify-content: center;
    }
    
    /* Tech stack mobile */
    .tech-stack-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4);
    }
    
    .tech-item {
        padding: var(--space-3);
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
    }
    
    .tech-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .tech-name {
        font-size: 0.7rem;
    }
    
    .navbar-center {
        display: none;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .navbar-actions .btn {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
        text-align: center;
    }
    
    .footer-brand .navbar-brand {
        justify-content: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    /* Center flex items */
    .flex.gap-4,
    .flex.gap-6 {
        justify-content: center;
    }
    
    /* Center text elements */
    .text-center-mobile {
        text-align: center;
    }
    
    /* Center products grid on mobile */
    .products-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Center product card content on mobile */
    .product-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .product-card .product-icon {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
        display: flex;
        align-self: center;
    }
    
    .product-card .card-header,
    .product-card .card-body,
    .product-card .card-footer {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .product-card .card-header .flex {
        justify-content: center;
    }
    
    .product-card .card-footer {
        justify-content: center;
        gap: 1rem;
    }
    
    .products-grid .product-card {
        width: 100%;
        max-width: 400px;
    }
    
    /* Center AI-Ready Architecture section on mobile */
    .grid.grid-cols-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .grid.grid-cols-2 > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .grid.grid-cols-2 ul {
        display: inline-block;
        text-align: left;
    }
    
    /* Modern borders for list items on mobile */
    .grid.grid-cols-2 ul li {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(124, 58, 237, 0.2);
        border-radius: var(--border-radius-md);
        padding: 12px 16px;
        margin-bottom: 10px;
        transition: all var(--transition-base);
    }
    
    .grid.grid-cols-2 ul li:hover {
        border-color: rgba(124, 58, 237, 0.4);
        background: rgba(124, 58, 237, 0.05);
    }
    
    /* Modern borders for What We Build cards on mobile */
    .grid.grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .grid.grid-cols-4 .card {
        border: 1px solid rgba(124, 58, 237, 0.25);
        background: rgba(20, 20, 32, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .grid.grid-cols-4 .card:hover {
        border-color: rgba(124, 58, 237, 0.5);
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    /* "Lilos Dynamics" in full is wider than "Lilos" was, and it shares the
       bar with the logo and the menu button. Shrink the type rather than
       shortening the company name. */
    .navbar-brand {
        font-size: var(--text-base);
    }

    .navbar-brand img {
        height: 34px;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-sm);
    }
    
    /* Even smaller screens - 2 column tech grid */
    .grid.grid-cols-4 .card {
        padding: 1rem;
    }
    
    .grid.grid-cols-2 ul li {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}
