/* Lattice Homepage - Shared Styles */

:root {
    --accent: #cba6f7;
    --accent-dim: #9d7cd8;
    --accent-glow: rgba(203, 166, 247, 0.4);
    --neon-pink: #f38ba8;
    --neon-cyan: #89dceb;
    --neon-green: #a6e3a1;
    --neon-orange: #fab387;
    --neon-yellow: #f9e2af;
    --fg: #cdd6f4;
    --fg-dim: #a6adc8;
    --bg-1: #11111b;
    --bg-2: #1e1e2e;
    --bg-3: #181825;
    --border: #313244;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto Mono', monospace;
    color: var(--fg);
    background: var(--bg-1);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1400px 900px at 30% 20%, rgba(203, 166, 247, 0.06), transparent 60%),
        radial-gradient(1200px 800px at 80% 80%, rgba(137, 220, 235, 0.04), transparent 60%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
}

.grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(203, 166, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(203, 166, 247, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: grid-pan 30s linear infinite;
}

@keyframes grid-pan {
    to {
        background-position: 200px 200px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(24, 24, 37, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 32px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav a {
    color: var(--fg-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav a:hover {
    color: var(--fg);
    background: rgba(203, 166, 247, 0.1);
}

.nav a.active {
    color: var(--accent);
    background: rgba(203, 166, 247, 0.15);
}

.header-cta {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: var(--bg-1);
    box-shadow: 0 4px 20px rgba(203, 166, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(203, 166, 247, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(203, 166, 247, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-3);
    border-top: 1px solid var(--border);
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

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

.footer-brand img {
    height: 28px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--fg-dim);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 13px;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--fg-dim);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--fg-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .footer-links {
        gap: 30px;
    }
}