/* Agentive - Sovereign Enterprise Theme (v6 Final Boss) */

:root {
    /* Colors - Sovereign Dark */
    --bg-body: #121212;
    /* Deep Charcoal */
    --bg-card: rgba(44, 62, 80, 0.4);
    /* Matte Slate Glass */
    --bg-glass: rgba(255, 255, 255, 0.03);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --text-accent: #e2e8f0;
    /* "Liquid Mercury" - Bright Silver */
    --text-mono: #a5b4fc;
    /* Code Blue */

    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 255, 255, 0.2);

    /* Glows */
    --glow-primary: 0 0 20px rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Inter Tight', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Formatting */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 2px;
    --radius-md: 8px;
    /* Slightly softer for glass cards */

    /* Animation */
    --transition-fast: 0.2s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

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

.hidden {
    display: none;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

/* Buttons - Liquid Mercury */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: var(--font-heading);
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #e2e8f0;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: #ffffff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: #ffffff;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(44, 62, 80, 0.2), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Node Map Visual (CSS Only) */
.node-map-container {
    position: relative;
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.node-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff;
    z-index: 2;
}

.node-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 1;
}

/* Unit Economics Table */
.unit-table-container {
    overflow-x: auto;
    margin-top: 60px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.unit-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.unit-table th {
    text-align: left;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-mono);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.unit-table td {
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 1rem;
}

.unit-table tr:last-child td {
    border-bottom: none;
}

.unit-table .highlight {
    color: #ffffff;
    font-weight: 600;
}

/* Tech Pillars */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.tech-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    padding: 32px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.tech-card:hover {
    border-color: var(--border-accent);
    background: rgba(255, 255, 255, 0.05);
}

.tech-icon {
    font-family: var(--font-mono);
    color: var(--text-mono);
    margin-bottom: 16px;
    display: block;
    font-size: 0.9rem;
}

/* Pricing Tiers */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--bg-card);
    /* Glass */
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.pricing-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 24px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
}

.pricing-features li {
    margin-bottom: 16px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--text-mono);
    font-family: var(--font-mono);
}

/* Footer Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #000;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 1rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-transform: uppercase;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    .hero-grid,
    .tech-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Simplified mobile handling */
    .mobile-toggle {
        display: block;
    }

    .container {
        padding: 0 20px;
    }
}