/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors - Dark & Premium */
    --bg-body: #050507;
    --bg-surface: #0f111a;
    --bg-card: #161822;
    /* Slightly lighter for cards */

    --color-primary: #00F4C0;
    /* Electric Teal/Cyan */
    --color-primary-hover: #00b398;
    --color-secondary: #5b21b6;
    /* Deep Purple/Indigo as accent */

    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #475569;

    --border-color: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-main: 'Satoshi', sans-serif;
    --font-heading: 'Space Mono', monospace;

    /* Spacing */
    --spacing-container: 1200px;
    --spacing-section: 80px;

    /* Effects */
    --shadow-glow: 0 0 20px rgba(0, 224, 191, 0.15);
    --glass-bg: rgba(15, 17, 26, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: -0.03em;
}

h4,
h5,
h6 {
    font-family: var(--font-main);
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* =========================================
   2. UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 24px;
}

.section-py {
    padding: var(--spacing-section) 0;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 224, 191, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 224, 191, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   3. COMPONENTS
   ========================================= */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo img {
    height: 32px;
    /* Adjust based on actual logo */
    width: auto;
}

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

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for header */
}

/* Simple background glow effect */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 224, 191, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 224, 191, 0.1);
    color: var(--color-primary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 224, 191, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

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

/* Features/About Grid */
.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 224, 191, 0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 224, 191, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

/* Unique Section (Side by side) */
.unique-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.unique-content {
    flex: 1;
}

.unique-image {
    flex: 1;
    position: relative;
}

.unique-image img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: var(--glass-border);
}

/* Case Studies */
.case-study-card {
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    border: var(--glass-border);
    background: var(--bg-card);
}

.case-study-img {
    width: 100%;
    height: 240px;
    background: #2a2d3d;
    /* Placeholder */
    object-fit: cover;
}

.case-study-content {
    padding: 32px;
}

.case-study-metric {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* Footer */
.footer {
    border-top: var(--glass-border);
    padding: 80px 0 40px;
    background: var(--bg-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    margin-top: 16px;
}

.footer-links h4 {
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--color-primary);
}

.copyright {
    text-align: center;
    color: var(--text-dim);
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .unique-container {
        flex-direction: column;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: var(--glass-border);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header .btn-primary {
        display: none;
    }
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: var(--glass-border);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 224, 191, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.agent-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.agent-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.agent-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.agent-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.agent-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Unified P&L Engine Banner */
.pl-engine-banner {
    background: linear-gradient(90deg, rgba(8, 12, 28, 0.9) 0%, rgba(91, 33, 182, 0.2) 100%);
    border: 1px solid rgba(91, 33, 182, 0.3);
    padding: 24px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
}

.pl-icon {
    color: #4ade80;
    /* Green for money */
    font-weight: 700;
}

/* Process Flow (Use Case) */
.process-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.process-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-step.impact .process-header {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.1);
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tag-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.5;
}

@media (max-width: 900px) {
    .process-container {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }
}

/* Hierarchy (Impact Section) */
.hierarchy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-agent-card {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.4) 0%, rgba(8, 12, 28, 0.8) 100%);
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(91, 33, 182, 0.3);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hierarchy-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.hierarchy-card {
    flex: 1;
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 24px;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

/* Connecting Lines */
.connector-line-vertical {
    width: 2px;
    height: 40px;
    background-image: linear-gradient(to bottom, var(--color-primary) 50%, transparent 50%);
    background-size: 2px 10px;
    margin-top: -20px;
    margin-bottom: -20px;
    z-index: 1;
}

.hierarchy-card h4 {
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hierarchy-card ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: left;
}

@media (max-width: 768px) {
    .hierarchy-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Copilot Chat UI (Replaces Image) */
/* Copilot Chat UI (Replaces Image) */
.copilot-section-grid {
    display: block;
    max-width: 900px;
    margin: 60px auto 0;
}

.copilot-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.copilot-feature {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 32px;
    /* Increased padding */
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
    /* Center content */
}

.copilot-feature p {
    font-size: 1rem;
}

.copilot-feature:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    /* Move up instead of right */
}

.chat-interface {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(0, 224, 191, 0.15);
    overflow: hidden;
    position: relative;
}

.chat-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: pulse 2s infinite;
}

.chat-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat-message {
    padding: 16px 20px;
    border-radius: 12px;
    max-width: 90%;
    font-size: 0.95rem;
    position: relative;
    line-height: 1.5;
}

.chat-message.user {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: var(--text-muted);
}

.chat-message.ai {
    background: rgba(0, 224, 191, 0.1);
    border: 1px solid rgba(0, 224, 191, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-action-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.chat-action-btn {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Alternative Use Case: Paper/Text Style */
.case-study-paper {
    background: #0b0d14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    margin-top: 60px;
}

.paper-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.paper-content h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.paper-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 1rem;
}

.paper-meta {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 32px;
}

.paper-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.paper-stat-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.paper-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.paper-stat-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    color: #fff;
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .copilot-feature-list {
        grid-template-columns: 1fr;
    }

    .paper-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 2x2 Balanced Grid */
.grid-cols-2-balanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .grid-cols-2-balanced {
        grid-template-columns: 1fr;
    }
}