/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

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

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

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 125, 255, 0.3);
    font-family: 'Inter', sans-serif;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-family: 'Inter', sans-serif;
}

.logo-text span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAV SWITCHER (Agents | Production) ===== */
.nav-switcher {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    padding: 3px;
    gap: 2px;
}

.nav-switch {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

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

.nav-switch.active {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 125, 255, 0.25);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--gradient-main);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 2px 16px rgba(79, 125, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.nav-cta:hover {
    box-shadow: 0 6px 28px rgba(79, 125, 255, 0.4);
    transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Orchestrated hero load */
.hero-load {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    animation: heroFadeUp 0.9s var(--ease-out-expo) forwards;
}
.hero-load-1 { animation-delay: 0s; }
.hero-load-2 { animation-delay: 0.12s; }
.hero-load-3 { animation-delay: 0.24s; }
.hero-load-4 { animation-delay: 0.38s; }
.hero-load-5 { animation-delay: 0.52s; }
.hero-load-6 { animation-delay: 0.7s; }

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: rgba(79, 125, 255, 0.06);
    border: 1px solid rgba(79, 125, 255, 0.12);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.hero h1 .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 44px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 24px rgba(79, 125, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255,255,255,0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(79, 125, 255, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', sans-serif;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.hero-card-main {
    position: relative;
    width: 440px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: rotateX(2deg) rotateY(-2deg);
    transition: transform 0.35s ease;
}

.hero-card-main:hover {
    transform: rotateX(0) rotateY(0);
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-header-text h3 {
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.card-header-text p {
    font-size: 12px;
    color: var(--text-muted);
}

.card-status {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
}

.card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.metric-box {
    padding: 14px 10px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    text-align: center;
}

.metric-box .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-box .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-progress {
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
}

.progress-header span:first-child { color: var(--text-secondary); }
.progress-header span:last-child { color: var(--accent-blue); font-weight: 600; }

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 87%;
    background: var(--gradient-main);
    border-radius: 3px;
    animation: progressGrow 2s ease-out 1s both;
}

@keyframes progressGrow {
    from { width: 0; }
}

.card-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    max-width: 85%;
    line-height: 1.5;
}

.chat-msg.bot {
    background: rgba(79, 125, 255, 0.08);
    border: 1px solid rgba(79, 125, 255, 0.08);
    align-self: flex-start;
    color: var(--text-primary);
}

.chat-msg.user {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.04);
    align-self: flex-end;
    color: var(--text-secondary);
}

.card-system-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.card-system-status .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

/* Floating mini-cards */
.float-card {
    position: absolute;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.float-card-1 {
    top: 10px;
    right: -20px;
}

.float-card-2 {
    bottom: 50px;
    left: -30px;
}

.float-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.float-icon.green { background: rgba(34, 197, 94, 0.1); }
.float-icon.purple { background: rgba(168, 85, 247, 0.1); }

/* ===== SECTION SHARED ===== */
section { padding: 120px 0; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(79, 125, 255, 0.05);
    border: 1px solid rgba(79, 125, 255, 0.1);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.75;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-desc {
    margin: 0 auto;
}
