:root {
    /* G.Media Inspired Palette */
    --bg-root: #050505;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #111111;
    
    /* Legacy variables for compatibility */
    --bg: #050505;
    --text: #FFFFFF;
    
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;
    
    /* G.Media Brand Colors */
    --accent: #8B5CF6; /* G.Media Purple */
    --accent-secondary: #EC4899; /* Pink/Magenta */
    --accent-telegram: #3390EC; /* Functional Blue */
    --accent-success: #33D37F;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --grad-glow-text: linear-gradient(90deg, #A78BFA, #F472B6);
    --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.3); /* Purple tint hover */
    
    /* Dimensions */
    --header-height: 72px;
    --radius: 24px;
    --container-width: 1280px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

/* Scroll Reveal Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent) 0%, #EC4899 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}


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

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 800; /* Bolder */
    letter-spacing: -0.04em; /* Tighter */
    line-height: 1.1;
}

p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Text Reveal Animation Classes */
.word-reveal {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.word-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    opacity: 0;
}

.word-reveal.visible span {
    transform: translateY(0);
    opacity: 1;
}

/* --- Header --- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.brand-logo .icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover .icon {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.brand-logo span:last-child {
    background: var(--grad-glow-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.btn-header {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.08);
    padding: 10px 20px;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.btn-header:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-header:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.15);
}

/* --- Hero Section --- */
.hero-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 160px 24px 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-tag:hover::before {
    opacity: 1;
}

.hero-tag:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.gid-acronym-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gid-acronym-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.gid-acronym-badge:hover::before {
    transform: translateX(100%);
}

.gid-acronym-badge:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
    transform: scale(1.05);
}

.gid-acronym-badge strong {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.gid-acronym-badge:hover strong {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.gid-acronym-badge span {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.gid-acronym-badge:hover span {
    color: var(--text-primary);
}


.hero-title {
    font-size: 72px;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 20px; 
    margin-bottom: 48px;
    max-width: 520px;
    line-height: 1.6;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #FFFFFF 0%, #F3F4F6 100%);
    color: #000;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

.btn-primary .icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover .icon {
    transform: rotate(15deg) scale(1.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 40px rgba(255, 255, 255, 0.25),
        0 0 0 2px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    padding: 16px 32px;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.btn-secondary::after {
    content: '→';
    margin-left: 4px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.btn-secondary:hover::after {
    transform: translateX(6px);
    animation: arrowBounce 0.6s ease-in-out;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(6px); }
    50% { transform: translateX(10px); }
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

/* --- Hero Metrics Grid (New) --- */
.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.metric-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(236, 72, 153, 0.03) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.metric-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.05) 100%);
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

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

.metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 100px;
    font-weight: 700;
    position: relative;
}

.metric-trend.up {
    color: var(--accent-success);
    background: rgba(51, 211, 127, 0.1);
    animation: pulseTrend 2s ease-in-out infinite;
}

.metric-trend.up::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(51, 211, 127, 0.2);
    opacity: 0;
    animation: pingTrend 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.metric-trend.neutral {
    color: var(--text-tertiary);
    background: rgba(107, 114, 128, 0.1);
}

@keyframes pulseTrend {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pingTrend {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(1.3); opacity: 0; }
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover .metric-value {
    transform: scale(1.05);
    color: var(--accent);
}

/* CSS Sparkline */
.sparkline {
    height: 24px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 4px;
}

.sparkline::before {
    content: '';
    flex: 1;
    height: var(--h1);
    background: var(--accent);
    opacity: 0.3;
    border-radius: 2px;
}
.sparkline::after { /* Cheat for multiple bars using box-shadow or gradient would be complex, simplified for now: using multiple divs via JS would be better, but css gradient is easiest for 'fake' look */
    content: '';
    display: none; 
}

/* Real CSS Bar Chart using gradient */
.sparkline {
    background: 
        linear-gradient(to top, var(--accent) var(--h1), transparent var(--h1)) 0% 100% / 12% 100% no-repeat,
        linear-gradient(to top, var(--accent) var(--h2), transparent var(--h2)) 20% 100% / 12% 100% no-repeat,
        linear-gradient(to top, var(--accent) var(--h3), transparent var(--h3)) 40% 100% / 12% 100% no-repeat,
        linear-gradient(to top, var(--accent) var(--h4), transparent var(--h4)) 60% 100% / 12% 100% no-repeat,
        linear-gradient(to top, var(--accent) var(--h5), transparent var(--h5)) 80% 100% / 12% 100% no-repeat,
        linear-gradient(to top, var(--accent) var(--h6), transparent var(--h6)) 100% 100% / 12% 100% no-repeat;
    opacity: 0.5;
}

.sparkline.flat {
    background: linear-gradient(to top, var(--text-tertiary) 2px, transparent 2px) 0 100% / 100% 100% no-repeat;
}

/* --- Feed Window (G.Media Style) --- */
.feed-container {
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.95) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    height: 640px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.feed-container:hover {
    transform: translateY(-4px);
    box-shadow:
        0 50px 120px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feed-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-header:hover {
    background: rgba(15, 15, 15, 0.9);
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

.feed-avatar {
    width: 40px;
    height: 40px;
    background: var(--grad-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #FFF;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feed-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.feed-header:hover .feed-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.feed-header:hover .feed-avatar::before {
    transform: translateX(100%) rotate(45deg);
}

.feed-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.feed-header-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s;
}

.feed-header-info span {
    font-size: 13px;
    color: var(--text-tertiary);
    transition: color 0.3s;
}

.feed-header:hover .feed-header-info h4 {
    color: var(--accent);
}

.feed-header:hover .feed-header-info span {
    color: var(--text-secondary);
}

.channel-feed-content {
    padding: 24px;
    overflow-y: auto;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: none;
}

/* --- Agent Showcase Section --- */
.agents-section {
    padding: 120px 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.agents-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.agent-card {
    position: relative;
    padding: 32px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.agent-card:hover::before {
    transform: scaleX(1);
}

.agent-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.agent-card:hover .agent-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
}

.agent-card.featured {
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.1) 0%,
        rgba(217, 119, 6, 0.05) 100%
    );
    border-color: rgba(245, 158, 11, 0.3);
    position: relative;
}

.agent-card.featured::after {
    content: 'Featured';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.agent-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.agent-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--grad-glow-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agent-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.agent-stats {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.agent-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.agent-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.agent-cta:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.agent-cta:active {
    transform: translateX(2px) scale(0.97);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.agents-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    padding: 16px 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-secondary-large:hover::before {
    opacity: 1;
}

.btn-secondary-large:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.2);
}

.btn-secondary-large:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.15);
}

/* --- Bento Grid --- */
.bento-section {
    padding: 120px 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.bento-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 20px;
}

.bento-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.bento-card:hover::before {
    transform: scaleX(1);
}

/* G.Media Hover Effect */
.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bento-card:hover .bento-icon {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.bento-card.large {
    grid-column: span 2;
}

.bento-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.bento-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Ecosystem Section --- */
.ecosystem-section {
    padding: 120px 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.ecosystem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.ecosystem-section .section-title {
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 20px;
}

.ecosystem-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ecosystem-card {
    position: relative;
    padding: 40px 32px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.ecosystem-card:hover::before {
    transform: scaleX(1);
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.ecosystem-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ecosystem-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ecosystem-badge:hover::before {
    opacity: 1;
}

.ecosystem-card:hover .ecosystem-badge {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.ecosystem-card h4 {
    font-size: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.ecosystem-card h4 .icon {
    color: var(--accent);
}

.ecosystem-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 24px 40px;
    background: linear-gradient(180deg, #020202 0%, #000000 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
}

.footer-brand span {
    color: var(--text-tertiary);
    font-weight: 400;
    font-size: 14px;
    margin-left: 12px;
}

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

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

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

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

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

/* Utilities */
.icon { width: 24px; height: 24px; fill: currentColor; }
.icon-lg { width: 28px; height: 28px; }

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-menu-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-root);
    z-index: 999;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border);
}

.mobile-menu-container.open {
    transform: translateX(0);
}

.mobile-menu-container a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-container a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 140px 24px 80px 24px;
    }
    .hero-content { align-items: center; margin: 0 auto; }
    .hero-badge-wrapper { justify-content: center; }
    .hero-title { font-size: 48px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.large { grid-column: span 1; }
    .feed-container { height: 500px; max-width: 600px; margin: 0 auto; }
    .hero-metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }
    .nav-links { display: none; }
    .agents-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .agents-section, .bento-section, .ecosystem-section {
        padding: 80px 24px;
    }
    .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .agents-grid {
        grid-template-columns: 1fr;
    }
    .agent-card {
        padding: 24px;
    }
    .section-header {
        margin-bottom: 48px;
    }
    .section-subtitle {
        font-size: 16px;
    }
}