/* ============================================
   The Fleet — 55Rush AI Agent Team
   Designed & built by Echo (TopazGate)
   ============================================ */

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

:root {
    /* Background */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;

    /* Text */
    --text-primary: #e8e8ed;
    --text-secondary: #9898a8;
    --text-muted: #5a5a6e;

    /* Agent Colors */
    --lilu: #ff6b6b;
    --lilu-glow: rgba(255, 107, 107, 0.15);
    --caprica: #4ecdc4;
    --caprica-glow: rgba(78, 205, 196, 0.15);
    --looper: #a78bfa;
    --looper-glow: rgba(167, 139, 250, 0.15);
    --echo: #f59e0b;
    --echo-glow: rgba(245, 158, 11, 0.15);
    --chatbridge: #10b981;
    --chatbridge-glow: rgba(16, 185, 129, 0.15);
    --asana: #38bdf8;
    --asana-glow: rgba(56, 189, 248, 0.15);

    /* Accent */
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.2);

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Sizing */
    --container-max: 1200px;
    --nav-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--lilu);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--caprica);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(10px, 30px) scale(1.02); }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-bracket {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

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

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
}

.nav-mobile.open {
    display: flex;
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
}

/* --- Hero --- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #818cf8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 30%, #f59e0b 60%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    animation: bounce 2s ease-in-out infinite;
}

.hero-cta:hover {
    color: var(--text-primary);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Human Section --- */
.human-section {
    position: relative;
    z-index: 1;
    padding: 40px 0 80px;
}

.human-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 800px;
    margin: 0 auto;
}

.human-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.human-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.human-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .human-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Agents Section --- */
.agents-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.agent-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agent-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.agent-card:hover::before {
    opacity: 1;
}

/* Agent-specific top bar colors */
.agent-lilu::before { background: var(--lilu); }
.agent-caprica::before { background: var(--caprica); }
.agent-looper::before { background: var(--looper); }
.agent-echo::before { background: var(--echo); }
.agent-chatbridge::before { background: var(--chatbridge); }
.agent-asana::before { background: var(--asana); }

.agent-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.agent-lilu:hover .agent-card-glow { opacity: 1; background: radial-gradient(circle at 50% 0%, var(--lilu-glow), transparent 60%); }
.agent-caprica:hover .agent-card-glow { opacity: 1; background: radial-gradient(circle at 50% 0%, var(--caprica-glow), transparent 60%); }
.agent-looper:hover .agent-card-glow { opacity: 1; background: radial-gradient(circle at 50% 0%, var(--looper-glow), transparent 60%); }
.agent-echo:hover .agent-card-glow { opacity: 1; background: radial-gradient(circle at 50% 0%, var(--echo-glow), transparent 60%); }
.agent-chatbridge:hover .agent-card-glow { opacity: 1; background: radial-gradient(circle at 50% 0%, var(--chatbridge-glow), transparent 60%); }
.agent-asana:hover .agent-card-glow { opacity: 1; background: radial-gradient(circle at 50% 0%, var(--asana-glow), transparent 60%); }

.agent-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.agent-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-lilu .agent-avatar { background: var(--lilu-glow); }
.agent-caprica .agent-avatar { background: var(--caprica-glow); }
.agent-looper .agent-avatar { background: var(--looper-glow); }
.agent-echo .agent-avatar { background: var(--echo-glow); }
.agent-chatbridge .agent-avatar { background: var(--chatbridge-glow); }
.agent-asana .agent-avatar { background: var(--asana-glow); }

.agent-initial {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.agent-lilu .agent-initial { color: var(--lilu); }
.agent-caprica .agent-initial { color: var(--caprica); }
.agent-looper .agent-initial { color: var(--looper); }
.agent-echo .agent-initial { color: var(--echo); }
.agent-chatbridge .agent-initial { color: var(--chatbridge); }
.agent-asana .agent-initial { color: var(--asana); }

.agent-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.agent-status.online {
    background: #22c55e;
}

.agent-status.always-on {
    background: #22c55e;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.agent-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.agent-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agent-origin {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.agent-desc {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.agent-skills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.skill-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.agent-lilu .skill-tag:hover { border-color: var(--lilu); color: var(--lilu); }
.agent-caprica .skill-tag:hover { border-color: var(--caprica); color: var(--caprica); }
.agent-looper .skill-tag:hover { border-color: var(--looper); color: var(--looper); }
.agent-echo .skill-tag:hover { border-color: var(--echo); color: var(--echo); }
.agent-chatbridge .skill-tag:hover { border-color: var(--chatbridge); color: var(--chatbridge); }
.agent-asana .skill-tag:hover { border-color: var(--asana); color: var(--asana); }

.agent-chat-tip {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.agent-chat-tip code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* --- Capabilities Section --- */
.capabilities-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--bg-secondary);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.capability-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.capability-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.capability-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--accent);
}

.capability-icon svg {
    width: 100%;
    height: 100%;
}

.capability-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.capability-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.capability-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.capability-commands code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 3px 10px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: #818cf8;
}

/* --- Chat Highlights Section --- */
.chat-highlights-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.chat-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.chat-highlight-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chat-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--chatbridge);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-highlight-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.chat-highlight-card:hover::before {
    opacity: 1;
}

.chat-highlight-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--chatbridge);
}

.chat-highlight-icon svg {
    width: 100%;
    height: 100%;
}

.chat-highlight-room {
    display: inline-block;
    padding: 3px 10px;
    background: var(--chatbridge-glow);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--chatbridge);
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.chat-highlight-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.chat-highlight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Interact Section --- */
.interact-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.interact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.interact-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

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

.interact-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 12px;
}

.interact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.interact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.interact-card code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--text-primary);
}

.interact-tips {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.interact-tips h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.interact-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interact-tips li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    padding-left: 20px;
    position: relative;
}

.interact-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.interact-tips li strong {
    color: var(--text-primary);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

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

.footer-brand {
    font-weight: 700;
    font-size: 1rem;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

.footer-meta {
    text-align: right;
}

.footer-meta p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-date {
    margin-top: 4px;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .footer-meta { text-align: center; }
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .agents-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .interact-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .agent-card {
        padding: 24px;
    }

    .capability-card {
        padding: 24px;
    }

    .interact-card {
        padding: 24px;
    }

    .interact-tips {
        padding: 24px;
    }
}

/* --- Selection --- */
::selection {
    background: var(--accent);
    color: white;
}
