/* Antimony Labs - Native CSS */

:root {
    --bg-primary: #050507;
    --bg-secondary: #0a0a0d;
    --bg-tertiary: #0f0f14;
    --bg-card: #0c0c10;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --accent: #00e87b;
    --accent-soft: rgba(0, 232, 123, 0.08);
    --accent-glow: rgba(0, 232, 123, 0.25);
    --accent-secondary: #00b4d8;
    --border: #1d1d21;
    --border-subtle: #151518;
    --border-bright: #2a2a30;

    --font-sans: 'Syne', system-ui, sans-serif;
    --font-mono: 'DM Mono', monospace;
    --font-serif: 'Instrument Serif', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    text-wrap: balance;
}

p {
    line-height: 1.9;
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.container-sm {
    max-width: 700px;
}

.container-lg {
    max-width: 1200px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

/* Canvas Background */
#neural-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.6;
    cursor: crosshair;
    touch-action: none;
}

/* Game Score UI */
.game-score {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 50;
    text-align: right;
    pointer-events: none;
    user-select: none;
}

.score-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.score-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eaten-count {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #ff5050;
}

.eaten-icon {
    font-size: 0.8rem;
}

/* Bug legend */
.game-legend {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.firefly { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.legend-dot.beetle { background: var(--accent-secondary); }
.legend-dot.moth { background: #c8c8d2; }
.legend-dot.dragonfly { background: linear-gradient(135deg, var(--accent), #b464ff); }

/* Content backdrop - makes text readable over game */
.content-backdrop {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-subtle);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--bg-primary);
    font-weight: 500;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.logo-text span:last-child {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.nav-cta:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 2rem;
    padding: 3rem 2rem;
    border: 1px solid var(--border-subtle);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent-soft), rgba(0, 180, 216, 0.08));
    border: 1px solid rgba(0, 232, 123, 0.2);
    margin-bottom: 2rem;
}

.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

.hero-badge span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.hero-description strong {
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.hero-clients {
    margin-bottom: 3rem;
}

.hero-clients-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-clients-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-clients-logos span {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s;
}

.hero-clients-logos span:hover {
    color: var(--text-secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Sections */
section {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
}

section > .container,
section > .container-sm {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-subtle);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 232, 123, 0.2);
    background: var(--accent-soft);
    margin-bottom: 1.5rem;
}

.section-badge-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--accent);
}

.section-badge span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.section-badge.orange {
    border-color: rgba(249, 115, 22, 0.2);
    background: rgba(249, 115, 22, 0.08);
}

.section-badge.orange .section-badge-dot {
    background: #f97316;
}

.section-badge.orange span {
    color: #fb923c;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 40rem;
    margin: 0 auto 3rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.5s;
}

.card:hover {
    border-color: var(--border-bright);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero-stats {
        gap: 2rem;
    }
}

/* Why Now Section */
.why-now {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.stat-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 50rem;
    margin: 4rem auto 0;
    text-align: center;
}

/* Services Section */
.services-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.category-pill.ai {
    color: var(--accent);
}

.category-pill.hardware {
    color: var(--accent-secondary);
}

.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 232, 123, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.service-icon.secondary {
    border-color: rgba(0, 180, 216, 0.2);
    color: var(--accent-secondary);
}

.service-category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.service-category.secondary {
    color: var(--accent-secondary);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tag {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Clients Section */
.clients {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.case-study-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.case-study-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.case-study-logo.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.case-study-result {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.case-study-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* About Section */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 50rem;
    margin: 0 auto 3rem;
}

.location-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.3s;
}

.location-card:hover {
    border-color: var(--accent);
}

.location-city {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.location-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.principle-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.principle-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--accent-soft);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.principle-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.principle-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 232, 123, 0.05), transparent, rgba(0, 180, 216, 0.05));
}

.contact-card > * {
    position: relative;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 28rem;
    margin: 0 auto 2rem;
}

.contact-response {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.contact-alt {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-alt a {
    color: var(--accent);
}

.contact-alt a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    position: relative;
    z-index: 10;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 24rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-links-group h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links-group a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.animate-in {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 640px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-clients-logos {
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}
