/**
 * TASI-GPT - Complete Version with Comparison
 * /css/tasi-gpt.css
 */

:root {
    --tg-dark: #030014;
    --tg-primary: #070078;
    --tg-accent: #10b981;
    --tg-accent-light: #34d399;
    --tg-accent-glow: rgba(16, 185, 129, 0.4);
    --tg-red: #ef4444;
    --tg-gold: #f59e0b;
    --tg-text: #e2e8f0;
    --tg-text-muted: #94a3b8;
    --tg-border: rgba(255, 255, 255, 0.1);
    --tg-card: rgba(255, 255, 255, 0.03);
    --tg-card-hover: rgba(255, 255, 255, 0.06);
}

.tg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tg-gradient {
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== SPLIT HERO ========== */
.tg-hero-split {
    position: relative;
    background: linear-gradient(135deg, var(--tg-dark) 0%, #0a0a2e 50%, #0f172a 100%);
    padding: 3rem 0 4rem;
    overflow: hidden;
}
.tg-hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(7, 0, 120, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.tg-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Content */
.tg-hero-content {
    padding-right: 1rem;
}

.tg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--tg-accent-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.tg-badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--tg-accent);
    border-radius: 50%;
    animation: tgPulse 2s infinite;
}

@keyframes tgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.tg-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tg-subtitle {
    font-size: 1.1rem;
    color: var(--tg-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Quick Stats */
.tg-quick-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tg-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--tg-card);
    border: 1px solid var(--tg-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.tg-stat-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-primary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.tg-stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.tg-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--tg-text-muted);
    margin-top: 0.15rem;
}

/* Hero CTA */
.tg-hero-cta {
    display: flex;
    gap: 1rem;
}

.tg-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, var(--tg-accent), #059669);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 0 25px var(--tg-accent-glow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--tg-accent-glow);
    color: #fff;
}

.tg-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: 1px solid var(--tg-border);
    color: var(--tg-text);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tg-btn-ghost:hover {
    background: var(--tg-card);
    border-color: var(--tg-accent);
    color: #fff;
}

/* Right Demo */
.tg-hero-demo {
    position: relative;
}

.tg-demo-wrapper {
    position: relative;
}

.tg-demo-live-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--tg-red);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.tg-live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: tgPulse 1s infinite;
}

/* Chat Box */
.tg-chat {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.tg-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--tg-primary), #0a0a7f);
}

.tg-chat-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    position: relative;
    flex-shrink: 0;
}

.tg-avatar-pulse {
    position: absolute;
    inset: -3px;
    border: 2px solid var(--tg-accent);
    border-radius: 50%;
    animation: tgPulse 2s infinite;
}

.tg-chat-title h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.15rem;
}

.tg-chat-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.tg-status-dot {
    width: 6px;
    height: 6px;
    background: var(--tg-accent);
    border-radius: 50%;
}

.tg-chat-indicators {
    margin-left: auto;
    display: flex;
    gap: 0.4rem;
}

.tg-indicator {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.tg-indicator.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--tg-accent);
}

/* Chat Messages */
.tg-chat-messages {
    height: 320px;
    overflow-y: auto;
    padding: 1.25rem;
    background: #f8fafc;
}

.tg-msg {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.tg-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.tg-msg.user {
    justify-content: flex-end;
}

.tg-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--tg-primary), var(--tg-accent));
    color: #fff;
}

.tg-msg-bubble {
    max-width: 80%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.55;
}

.tg-msg.user .tg-msg-bubble {
    background: var(--tg-primary);
    color: #fff;
    border-radius: 12px 12px 0 12px;
}

.tg-msg.bot .tg-msg-bubble {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Typing Indicator */
.tg-typing .tg-msg-bubble {
    padding: 1rem 1.25rem;
}

.tg-typing-dots {
    display: flex;
    gap: 4px;
}

.tg-typing-dots span {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: tgTypingBounce 1.4s infinite;
}

.tg-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.tg-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tgTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Chat Input */
.tg-chat-input {
    padding: 0.85rem 1.25rem 1rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.tg-input-wrapper {
    display: flex;
    gap: 0.6rem;
}

.tg-input-wrapper input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
}

.tg-input-wrapper input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.tg-input-wrapper button {
    width: 44px;
    height: 44px;
    background: var(--tg-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.tg-input-wrapper button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.tg-input-hint {
    text-align: center;
    margin: 0.6rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.tg-input-hint a {
    color: var(--tg-primary);
    font-weight: 600;
}

/* Data Feed */
.tg-data-feed {
    margin-top: 1rem;
    background: var(--tg-card);
    border: 1px solid var(--tg-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.tg-feed-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--tg-text-muted);
}

.tg-feed-item i {
    font-size: 0.5rem;
    color: #64748b;
}

.tg-feed-item i.active {
    color: var(--tg-accent);
    animation: tgPulse 1s infinite;
}

/* ========== COMPARISON SECTION ========== */
.tg-comparison-section {
    background: linear-gradient(180deg, #0f172a 0%, var(--tg-dark) 100%);
    padding: 5rem 0;
}

.tg-comparison {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 2rem;
    align-items: stretch;
}

.tg-compare-card {
    background: var(--tg-card);
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tg-compare-card.tg-regular {
    opacity: 0.7;
}

.tg-compare-card.tg-powered {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 40px var(--tg-accent-glow);
}

.tg-compare-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--tg-border);
}

.tg-compare-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tg-compare-icon.bad {
    background: rgba(239, 68, 68, 0.15);
    color: var(--tg-red);
}

.tg-compare-icon.good {
    background: rgba(16, 185, 129, 0.15);
    color: var(--tg-accent);
}

.tg-compare-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
}

.tg-compare-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.tg-compare-tag.bad {
    background: rgba(239, 68, 68, 0.15);
    color: var(--tg-red);
}

.tg-compare-tag.good {
    background: rgba(16, 185, 129, 0.15);
    color: var(--tg-accent);
}

/* Brain Visual */
.tg-compare-brain {
    margin-bottom: 2rem;
}

.tg-brain-visual {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tg-brain-core {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 2rem;
    position: relative;
}

.tg-brain-visual.limited .tg-brain-core {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.tg-brain-visual.powered .tg-brain-core {
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-primary));
    color: #fff;
}

.tg-brain-rings {
    position: absolute;
    inset: 0;
}

.tg-brain-core.active .tg-brain-rings span {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--tg-accent);
    border-radius: 50%;
    opacity: 0;
    animation: tgRingPulse 2s infinite;
}

.tg-brain-core.active .tg-brain-rings span:nth-child(2) { animation-delay: 0.5s; }
.tg-brain-core.active .tg-brain-rings span:nth-child(3) { animation-delay: 1s; }

@keyframes tgRingPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.tg-brain-label {
    font-size: 0.85rem;
    color: var(--tg-text-muted);
    font-weight: 500;
}

/* Data Streams */
.tg-data-streams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tg-stream-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.tg-stream-item.disconnected {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--tg-red);
}

.tg-stream-item.connected {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--tg-accent);
}

.tg-stream-flow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    animation: tgStreamFlow 2s infinite;
}

.tg-stream-item:nth-child(1) .tg-stream-flow { animation-delay: 0s; }
.tg-stream-item:nth-child(2) .tg-stream-flow { animation-delay: 0.3s; }
.tg-stream-item:nth-child(3) .tg-stream-flow { animation-delay: 0.6s; }
.tg-stream-item:nth-child(4) .tg-stream-flow { animation-delay: 0.9s; }

@keyframes tgStreamFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Sample Output */
.tg-sample-output {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
}

.tg-sample-q {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--tg-text);
}

.tg-sample-q i {
    width: 28px;
    height: 28px;
    background: var(--tg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.tg-sample-a {
    display: flex;
    gap: 0.75rem;
}

.tg-sample-a i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.tg-sample-output.bad .tg-sample-a i {
    background: rgba(100, 116, 139, 0.3);
    color: #64748b;
}

.tg-sample-output.good .tg-sample-a i {
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-primary));
    color: #fff;
}

.tg-sample-a p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--tg-text-muted);
    margin: 0;
}

.tg-sample-output.good .tg-sample-a p {
    color: var(--tg-text);
}

.tg-live {
    color: var(--tg-accent);
    font-weight: 700;
}

.tg-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.tg-change.up {
    background: rgba(16, 185, 129, 0.2);
    color: var(--tg-accent);
}

/* VS Divider */
.tg-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-vs span {
    width: 60px;
    height: 60px;
    background: var(--tg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 0 30px rgba(7, 0, 120, 0.5);
}

/* ========== SECTION HEADER ========== */
.tg-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tg-section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.tg-section-header p {
    font-size: 1.1rem;
    color: var(--tg-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.tg-section-header.light h2 {
    color: #0f172a;
}

.tg-section-header.light p {
    color: #64748b;
}

/* ========== FUSION SECTION ========== */
.tg-fusion {
    background: linear-gradient(180deg, var(--tg-dark) 0%, #0a0a2e 100%);
    padding: 5rem 0;
    overflow: hidden;
}

.tg-fusion-visual {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    gap: 2rem;
    align-items: center;
}

.tg-sources {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tg-source {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--tg-card);
    border: 1px solid var(--tg-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.tg-source:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: var(--tg-card-hover);
}

.tg-source-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-primary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.tg-source-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.1rem;
}

.tg-source-info span {
    font-size: 0.7rem;
    color: var(--tg-text-muted);
}

.tg-source-beam {
    position: absolute;
    right: -2rem;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--tg-accent), transparent);
    animation: tgBeamPulse 1.5s infinite;
}

@keyframes tgBeamPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Central Brain */
.tg-brain-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.tg-brain-outer {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(7, 0, 120, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tgBrainGlow 3s ease-in-out infinite;
}

@keyframes tgBrainGlow {
    0%, 100% { box-shadow: 0 0 30px var(--tg-accent-glow); }
    50% { box-shadow: 0 0 60px var(--tg-accent-glow), 0 0 100px rgba(7, 0, 120, 0.3); }
}

.tg-brain-middle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(7, 0, 120, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-brain-inner {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tg-brain-inner i {
    font-size: 1.75rem;
    margin-bottom: 0.2rem;
}

.tg-brain-inner span {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tg-brain-stats {
    text-align: center;
}

.tg-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tg-accent);
}

/* Output */
.tg-output-card {
    background: var(--tg-card);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 0 40px var(--tg-accent-glow);
}

.tg-output-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--tg-border);
    color: var(--tg-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.tg-output-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tg-output-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--tg-text);
}

.tg-output-feature i {
    color: var(--tg-accent);
    font-size: 0.7rem;
}

/* ========== KNOWLEDGE SECTION ========== */
.tg-knowledge {
    background: #fff;
    padding: 5rem 0;
}

.tg-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.tg-knowledge-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tg-knowledge-card:hover {
    border-color: var(--tg-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.tg-k-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-primary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    color: #fff;
    font-size: 1.1rem;
}

.tg-k-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.tg-k-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.tg-k-desc {
    font-size: 0.7rem;
    color: #64748b;
}

/* Capabilities */
.tg-capabilities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.tg-cap-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}

.tg-cap-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.tg-cap-header i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-primary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.tg-cap-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.tg-cap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tg-cap-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: #475569;
}

.tg-cap-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    background: var(--tg-accent);
    border-radius: 50%;
}

/* ========== CTA SECTION ========== */
.tg-cta {
    background: linear-gradient(135deg, var(--tg-dark), #0a0a2e);
    padding: 5rem 0;
}

.tg-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.tg-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--tg-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tg-cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.tg-cta-content > p {
    font-size: 1.1rem;
    color: var(--tg-text-muted);
    margin-bottom: 2rem;
}

.tg-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tg-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--tg-border);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tg-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.tg-cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tg-cta-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--tg-text-muted);
}

.tg-cta-features i {
    color: var(--tg-accent);
}

/* ========== OVERLAY ========== */
.tg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tg-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tg-overlay-box {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 420px;
    margin: 2rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.tg-overlay.active .tg-overlay-box {
    transform: scale(1);
}

.tg-overlay-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 1.5rem;
}

.tg-overlay-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.tg-overlay-box > p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tg-overlay-close {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.7rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tg-overlay-close:hover {
    background: #f8fafc;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .tg-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .tg-hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .tg-quick-stats {
        justify-content: center;
    }
    
    .tg-hero-cta {
        justify-content: center;
    }
    
    .tg-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tg-vs {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .tg-fusion-visual {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tg-source-beam {
        display: none;
    }
    
    .tg-knowledge-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tg-capabilities {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tg-hero-split {
        padding: 1.5rem 0 2.5rem;
        min-height: auto;
    }
    
    .tg-container {
        padding: 0 1rem;
    }
    
    .tg-quick-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .tg-stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    .tg-hero-cta {
        flex-direction: column;
    }
    
    .tg-btn-primary, .tg-btn-ghost {
        width: 100%;
        justify-content: center;
    }
    
    .tg-chat-messages {
        height: 280px;
    }
    
    .tg-knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tg-capabilities {
        grid-template-columns: 1fr;
    }
    
    .tg-cta-buttons {
        flex-direction: column;
    }
    
    .tg-cta-features {
        flex-direction: column;
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .tg-knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .tg-chat-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tg-chat-indicators {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* ========== RICH CHAT MESSAGE STYLES ========== */

/* Sector Cards */
.tg-sector {
    margin: 0.5rem 0;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid;
}

.tg-sector.green {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10b981;
}

.tg-sector.red {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
}

.tg-sector-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.tg-sector-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.tg-perf {
    font-weight: 700;
    font-size: 0.9rem;
}

.tg-perf.up { color: #10b981; }
.tg-perf.down { color: #ef4444; }

/* Tables in chat */
.tg-table {
    width: 100%;
    margin: 0.75rem 0;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.tg-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.tg-table td {
    padding: 0.4rem 0.5rem;
}

.tg-table td:first-child {
    font-weight: 600;
    color: #334155;
}

.tg-table .up { color: #10b981; font-weight: 600; }
.tg-table .down { color: #ef4444; font-weight: 600; }

/* Info Box */
.tg-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

/* Stock Cards */
.tg-stock-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.tg-stock-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tg-badge-change {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.tg-badge-change.up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.tg-badge-change.down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.tg-stock-card p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

/* Analysis Sections */
.tg-analysis-section {
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-left: 3px solid #070078;
}

.tg-analysis-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #070078;
    margin: 0 0 0.5rem 0;
}

.tg-analysis-section ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8rem;
}

.tg-analysis-section ul li {
    margin-bottom: 0.25rem;
    color: #334155;
}

/* Summary Box */
.tg-summary-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 0.85rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Make sure messages scroll properly */
.tg-chat-messages {
    scroll-behavior: smooth;
}

/* Ensure chat has minimum content height */
.tg-chat-messages:empty::before {
    content: '';
    display: block;
    min-height: 200px;
}

/* ========== LARGER CHAT BOX FOR TASI-GPT PAGE ========== */
.tg-hero-demo .tg-demo-wrapper {
    max-width: 520px;
}

.tg-hero-demo .tg-chat {
    min-width: 460px;
}

.tg-hero-demo .tg-chat-messages {
    height: 380px;
    padding: 1.25rem;
}

.tg-hero-demo .tg-chat-header {
    padding: 1.1rem 1.5rem;
}

.tg-hero-demo .tg-chat-input {
    padding: 1rem 1.5rem 1.1rem;
}

.tg-hero-demo .tg-msg-bubble {
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
}

/* Responsive - don't force min-width on mobile */
@media (max-width: 768px) {
    .tg-hero-demo .tg-chat {
        min-width: auto;
    }
    
    .tg-hero-demo .tg-chat-messages {
        height: 320px;
    }
}