/* AutoMinds 'Operator' Theme - Titanium & Glass */

:root {
    /* Monochrome Palette */
    --bg-main: #000000;
    --bg-surface: #0A0A0A;
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    /* Zinc 400 */
    --text-muted: #52525B;
    /* Zinc 600 */

    /* Accents */
    --accent: #FFFFFF;
    /* Electric White */
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.3);

    /* Spacing & Layout */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    /* "Apple-like" tightness but with Jakarta's distinct character */
    letter-spacing: -0.03em;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

p {
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0;
    /* Neutral, not tight */
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Utilities */
.container {
    max-width: 1400px;
    /* Wider, industrial layout */
    margin: 0 auto;
    padding: 0 2rem;
}

/* ... Buttons ... */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-main);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Pushes logic: Brand (Left) --- Menu (Right) */
}

.brand {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    /* Technical spacing */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Roboto Mono', monospace;
}

.brand-icon {
    width: 32px;
    /* Increased slightly for the new split circle */
    height: 32px;
    background: url('logo_white.svg') no-repeat center;
    background-size: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    /* Force push to right just in case */
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
    /* Offset fixed nav */
}

/* Subtle Grid Background - Replaces Orbs */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-Eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Capabilities (Services) - Bento Grid */
.capabilities {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    border-color: var(--border-hover);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Special Spans for Bento */
.span-2 {
    grid-column: span 2;
}

.span-vertical {
    grid-row: span 2;
}

/* Doctrine Section */
.doctrine {
    padding: var(--space-xl) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.doctrine-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.doctrine-text {
    flex: 1;
}

.blockquote {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Footer */
footer {
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        /* Slightly reduced horizontal padding to give content room */
    }

    /* Stack the grid */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        /* More space between cards */
    }

    .span-2,
    .span-vertical {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 100px;
        /* More room for nav */
        height: auto;
        /* Allow content to flow */
        min-height: 90vh;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.75rem;
        /* Prevent wrapping overflow */
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        /* Stack buttons on mobile */
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        /* Full width buttons */
    }

    .bento-card {
        padding: 1.5rem;
        /* Less internal padding */
    }

    /* Nav adjustments */
    .nav-wrapper {
        padding: 0 1rem;
    }

    .brand {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 1.25rem;
        /* Tighter gap */
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}