/* HERO SPECIFIC STYLES */
.hero-section {
    background-color: #fcfdfe; position: relative; overflow: hidden; 
    min-height: 850px; display: flex; align-items: center; padding: 100px 0 60px 0;
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(26, 99, 73, 0.1) 1.5px, transparent 1.5px);
    background-size: 32px 32px; z-index: 0; opacity: 0.5;
}
.hero-glow {
    position: absolute; left: -10%; top: 40%; transform: translateY(-50%);
    width: 80%; height: 130%;
    background: radial-gradient(circle at 25% 50%, rgba(26, 115, 232, 0.4) 0%, rgba(26, 99, 73, 0.3) 45%, transparent 75%);
    z-index: 1; pointer-events: none; filter: blur(80px);
}
.headline-lift {
	text-shadow: 0 0 30px rgba(255, 255, 255, 1);
	line-height: 1.05;
}


/* Hub Container */
.project-hub {
	width: 100%; max-width: 720px; margin-left: auto; position: relative; z-index: 10;
	background: #ffffff; border-radius: 8px; border: 1px solid #E8EAE5;
	box-shadow: 0 30px 60px -15px rgba(10, 39, 28, 0.15), 0 0 0 1px rgba(0,0,0,0.02);
	display: flex; flex-direction: column; overflow: hidden; height: 600px;
}
.hub-header {
	border-bottom: 1px solid #E8EAE5; padding: 20px 24px; background: #ffffff;
	display: flex; justify-content: space-between; align-items: flex-start; z-index: 20;
}
.project-meta { font-size: 10px; text-transform: uppercase; font-weight: 700; color: #64748b; margin-bottom: 4px; letter-spacing: 0.05em; font-family: ui-monospace, SFMono-Regular, monospace; }
.project-title { font-size: 18px; font-weight: 800; color: #0A271C; }

.status-badge { 
	font-size: 10px; font-weight: 800; background: #EAF2EB; color: #1A6349; 
	padding: 4px 10px; border-radius: 4px; border: 1px solid #ACD1B8; 
	text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 4px; 
}
.pulse-dot { width: 6px; height: 6px; background: #1A6349; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hub-body {
	padding: 24px; flex-grow: 1; display: flex; flex-direction: column; gap: 28px;
	overflow-y: auto; position: relative; scroll-behavior: smooth; background: #ffffff;
}
.hub-body::-webkit-scrollbar { width: 6px; }
.hub-body::-webkit-scrollbar-track { background: transparent; }
.hub-body::-webkit-scrollbar-thumb { background: #ACD1B8; border-radius: 4px; }

/* Messages (FLUSH LEFT - NO INDENTS) */
.update-block { 
	display: none; flex-direction: column; gap: 12px; position: relative;
	animation: fadeIn 0.4s ease-out forwards; width: 100%;
	border-bottom: 1px solid #f1f5f9; padding-bottom: 28px;
}
.update-block:last-child { border-bottom: none; padding-bottom: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.author-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 6px; color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; background: #0A271C; flex-shrink: 0; }
.bg-ce { background: #1a73e8; }
.bg-del { background: #1A6349; }
.bg-tech { background: #E57373; }
.bg-ops { background: #0A271C; }

.author-info { display: flex; flex-direction: column; }
.author-name { font-size: 15px; font-weight: 800; color: #0A271C; }
.author-dept { font-size: 11px; color: #555555; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.update-text { font-size: 14.5px; color: #555555; line-height: 1.6; font-weight: 500; }

/* Reactions */
.reactions-row { display: flex; gap: 6px; margin-top: 4px; width: 100%; flex-wrap: wrap; }
.reaction { display: flex; align-items: center; gap: 4px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 16px; font-size: 12px; color: #475569; font-weight: 600; cursor: default; }
.reaction.active { background: #e8f0fe; border-color: #cce0fd; color: #1a73e8; }

/* Time Jump */
.time-jump { display: flex; align-items: center; text-align: center; margin: 10px 0; animation: fadeIn 0.5s forwards; width: 100%; }
.tj-line { flex: 1; border-bottom: 1px solid #E8EAE5; }
.tj-text { font-size: 11px; font-weight: 800; color: #1A6349; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 16px; background: #EAF2EB; padding: 6px 16px; border-radius: 4px; border: 1px solid #ACD1B8; }

/* Widgets */
.data-widget {
	margin-top: 8px; border: 1px solid #E8EAE5; border-radius: 8px; 
	overflow: hidden; background: #ffffff; box-shadow: 0 4px 12px rgba(10, 39, 28, 0.04); 
	width: 100%; max-width: 580px; 
}
.widget-header { 
	background: #EAF2EB; padding: 12px 16px; border-bottom: 1px solid #E8EAE5; 
	font-size: 11px; font-weight: 800; color: #0A271C; display: flex; align-items: center; justify-content: space-between;
	text-transform: uppercase; letter-spacing: 0.05em; 
}

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; text-align: left; }
.data-table th { background: #ffffff; color: #555555; font-weight: 700; padding: 10px 16px; border-bottom: 1px solid #E8EAE5; }
.data-table td { padding: 10px 16px; border-bottom: 1px solid #EAF2EB; color: #0A271C; font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.val-bad { color: #ea4335; }
.val-good { color: #1e8e3e; }
.val-neutral { color: #555555; font-weight: normal; }

/* Code Blocks */
.mini-code { background: #0A271C; color: #e2e8f0; border: none; padding: 16px; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; line-height: 1.6; }
.code-hl { color: #38bdf8; } .code-str { color: #a7f3d0; } .code-com { color: #64748b; }

/* Architecture Trees (Responsive Flexbox) */
.tree-node { border: 1px solid #cbd5e1; background: white; padding: 10px 16px; border-radius: 6px; font-size: 11px; font-weight: bold; text-align: center; width: 100%; box-shadow: 0 2px 4px rgba(0,0,0,0.02); z-index: 2; position: relative; white-space: normal;}
.node-green { border-color: #1e8e3e; color: #1e8e3e; border-width: 2px; }
.node-blue { border-color: #1a73e8; color: #1a73e8; border-width: 2px; }
.node-red { border-color: #ea4335; color: #ea4335; background: #fce8e6; border-width: 2px; }
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; margin-top: 16px; position: relative; }
.arch-grid::before { content:''; position: absolute; top: -16px; left: 25%; right: 25%; height: 1px; background: #cbd5e1; }
.arch-grid::after { content:''; position: absolute; top: -16px; left: 50%; height: 16px; width: 1px; background: #cbd5e1; }
.arch-col { display: flex; flex-direction: column; gap: 12px; position: relative; }
.arch-col::before { content:''; position: absolute; top: -16px; left: 50%; height: 16px; width: 1px; background: #cbd5e1; }

/* SVG Charts */
.w-chart-container { padding: 20px; position: relative; background: #f8fafc; display: flex; flex-direction: column; }
.chart-svg { width: 100%; height: 160px; overflow: visible; display: block; margin-top: 16px; }
.chart-grid { stroke: #cbd5e1; stroke-width: 1; stroke-dasharray: 4 4; }
.chart-axis-text { font-size: 10px; fill: #64748b; font-family: 'Questrial', sans-serif; font-weight: bold; }
.path-anim { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.revealed .path-anim { transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1); stroke-dashoffset: 0; }
.chart-legend { display: flex; gap: 16px; font-size: 11px; font-weight: bold; margin-bottom: 10px; z-index: 10; position: relative; }
.leg-item { display: flex; align-items: center; gap: 6px; color: #0f172a; }
.leg-dot { width: 10px; height: 10px; border-radius: 2px; }

/* Typing Indicator Overlay */
.typing-container {
	display: none; align-items: center; gap: 8px; padding: 16px 24px; background: #ffffff;
	border-top: 1px solid #E8EAE5; font-size: 14px; color: #0A271C; z-index: 30;
}
.typing-container.active { display: flex; }
.dot-pulse { display: flex; gap: 4px; margin-top: 2px; margin-left: 4px;}
.dot-pulse span { width: 5px; height: 5px; background: #1A6349; border-radius: 50%; animation: typePulse 1.4s infinite; }
.dot-pulse span:nth-child(1) { animation-delay: 0s; }
.dot-pulse span:nth-child(2) { animation-delay: 0.2s; }
.dot-pulse span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typePulse { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }


/* Calculator Pulse */
@keyframes badge-pulse { 
	0% { transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.1); } 
	50% { transform: scale(1.05); box-shadow: 0 10px 15px rgba(26,99,73,0.3); } 
	100% { transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.1); } 
}
.animate-badge-pulse { animation: badge-pulse 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* Celebrations */
.celebration-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; display: none; }
.celebration-overlay.active { display: block; }
.celeb-confetti { position: absolute; top: -50px; font-size: 24px; opacity: 1; animation: fallDown 2.5s ease-in forwards; }
.celeb-rocket { position: absolute; bottom: -50px; font-size: 40px; opacity: 1; animation: shootUp 1.5s ease-out forwards; }
.celeb-trophy { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); font-size: 100px; filter: drop-shadow(0 10px 20px rgba(251,188,4,0.4)); animation: megaPop 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.celeb-cash { position: absolute; top: -50px; font-size: 24px; opacity: 1; animation: fallDown 2.5s ease-in forwards; }
.celeb-handshake { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); font-size: 100px; animation: popPulse 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.celeb-bullseye { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); font-size: 100px; animation: bullseyePop 2s ease-out forwards; }

@keyframes fallDown { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(800px) rotate(720deg); opacity: 0; } }
@keyframes shootUp { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-800px) scale(1.5); opacity: 0; } }
@keyframes megaPop { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 25% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 80% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
@keyframes popPulse { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 80% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
@keyframes bullseyePop { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; } 25% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 80% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2); opacity: 0; } }

/* Team Sync Join Animation */
@keyframes avatarPopIn {
	0% { transform: scale(0); opacity: 0; }
	70% { transform: scale(1.15); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}
.animate-avatar-pop {
	animation: avatarPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
	opacity: 0; 
	transform: scale(0);
}


/* DASHBOARD UI */
.audit-window {
	width: 100%; max-width: 800px; background: white; border-radius: 12px;
	border: 1px solid #e2e8f0; box-shadow: 0 40px 100px -20px rgba(10, 39, 28, 0.15);
	display: flex; flex-direction: column; position: relative;
	transform: perspective(1500px) rotateY(-3deg) rotateX(2deg);
	z-index: 5; margin-left: auto; height: 500px;
}
.audit-header {
	border-bottom: 1px solid #e2e8f0; padding: 24px 32px;
	display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
	background: white; position: relative; z-index: 40; border-radius: 12px 12px 0 0;
}
.metric-box { display: flex; flex-direction: column; }
.metric-value { font-family: monospace; font-weight: 800; font-size: 1.6rem; display: inline-block; transition: color 0.1s; }
.metric-label { font-size: 0.7rem; color: #5f6368; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 2px; }

/* CHART AREA */
#process-hero-wrapper .chart-area { position: relative; flex-grow: 1; width: 100%; background: #fff; overflow: hidden; padding: 0; border-radius: 0 0 12px 12px; }
#process-hero-wrapper .chart-svg { overflow: visible; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
#process-hero-wrapper .line-spend { stroke: #1a73e8; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#process-hero-wrapper .line-revenue { stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

#layer-flat { position: absolute; inset: 0; z-index: 10; border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; overflow: hidden; }
#layer-growth-mask { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: white; overflow: hidden; z-index: 20; border-bottom-left-radius: inherit; }
#layer-overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
#scanner-line { position: absolute; top: 0; bottom: 0; left: 0%; width: 2px; background: #30FFB2; box-shadow: 0 0 15px 3px rgba(48, 255, 178, 0.7); opacity: 0; z-index: 31; }

/* DATA POINTS & TROPHY */
.data-point { position: absolute; width: 14px; height: 14px; background: #1e8e3e; border: 3px solid white; border-radius: 50%; transform: translate(-50%, -50%) scale(0); box-shadow: 0 2px 6px rgba(0,0,0,0.25); z-index: 35; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.data-point.visible { transform: translate(-50%, -50%) scale(1); }
.trophy-point { position: absolute; width: 34px; height: 34px; background: #fbbc04; border: 3px solid white; border-radius: 50%; transform: translate(-50%, -50%) scale(0); box-shadow: 0 4px 12px rgba(251, 188, 4, 0.5); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; justify-content: center; z-index: 38; }
.trophy-point.visible { transform: translate(-50%, -50%) scale(1); animation: gold-pulse 2s infinite; }
.trophy-point i { color: white; font-size: 14px; line-height: 0; transform: translateY(-1px); }

@keyframes gold-pulse { 0% { box-shadow: 0 0 0 0 rgba(251, 188, 4, 0.6); } 70% { box-shadow: 0 0 0 15px rgba(251, 188, 4, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 188, 4, 0); } }

/* TOOLTIPS */
.audit-tooltip { position: absolute; background: #0A271C; color: white; font-size: 0.75rem; padding: 10px 16px; border-radius: 8px; font-weight: 600; box-shadow: 0 10px 25px rgba(10, 39, 28, 0.35); white-space: nowrap; z-index: 40; opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.audit-tooltip::after { content: ''; position: absolute; border-style: solid; }

/* COORDINATES */
#pt-1 { left: 10%; top: 70%; } 
#tt-1 { left: 10%; top: 70%; transform: translate(calc(-50% + 20px), 10px) scale(0.95); }
#tt-1.visible { opacity: 1; transform: translate(calc(-50% + 20px), 15px) scale(1); }
#tt-1::after { bottom: 100%; left: calc(50% - 20px); transform: translateX(-50%); border-width: 0 7px 7px 7px; border-color: transparent transparent #0A271C transparent; }

#pt-2 { left: 40%; top: 53.33%; } 
#tt-2 { left: 40%; top: 53.33%; transform: translate(-50%, -10px) scale(0.95); margin-top: -15px; }
#tt-2.visible { opacity: 1; transform: translate(-50%, -100%) scale(1); margin-top: -15px; }
#tt-2::after { top: 100%; left: 50%; transform: translateX(-50%); border-width: 7px 7px 0 7px; border-color: #0A271C transparent transparent transparent; }

#pt-3 { left: 70%; top: 33.33%; } 
#tt-3 { left: 70%; top: 33.33%; transform: translate(-50%, 10px) scale(0.95); }
#tt-3.visible { opacity: 1; transform: translate(-50%, 15px) scale(1); }
#tt-3::after { bottom: 100%; left: 50%; transform: translateX(-50%); border-width: 0 7px 7px 7px; border-color: transparent transparent #0A271C transparent; }

#pt-4 { left: 90%; top: 10%; }
#tt-4 { left: 90%; top: 10%; transform: translate(calc(-50% - 40px), 10px) scale(0.95); }
#tt-4.visible { opacity: 1; transform: translate(calc(-50% - 40px), 25px) scale(1); } 
#tt-4::after { bottom: 100%; left: calc(50% + 40px); transform: translateX(-50%); border-width: 0 7px 7px 7px; border-color: transparent transparent #0A271C transparent; }

/* RANGE SLIDER CSS */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 32px; width: 32px; border-radius: 50%; background: #1A6349; cursor: pointer; margin-top: -12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: 3px solid white; transition: transform 0.1s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: #e2e8f0; border-radius: 4px; }
input[type=range]:focus { outline: none; }

@keyframes badge-pulse { 0% { transform: scale(1); background-color: #1A6349; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } 50% { transform: scale(1.05); background-color: #1e8e3e; box-shadow: 0 10px 15px rgba(30,142,62,0.3); } 100% { transform: scale(1); background-color: #1A6349; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } }
.animate-badge-pulse { animation: badge-pulse 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* MOBILE OVERRIDES */
@media (max-width: 1023px) {
	.hero-section { min-height: auto; flex-direction: column; align-items: flex-start; padding: 60px 0; }
	.audit-window { transform: none; height: 420px; margin-top: 40px; }
	.project-hub { margin-top: 40px; height: 500px; }
	.data-table { font-size: 10px; }
	.data-table th, .data-table td { padding: 8px 10px; }
}

@media (max-width: 640px) {

	/* Hide Point 3 on mobile to prevent overlap with the trophy */
	#pt-3, #tt-3 { display: none; } 

	/* 2x2 Grid for Mobile KPIs */
	.audit-header { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 16px 20px; }
	.audit-header .metric-box { display: flex; flex-direction: column; align-items: flex-start; }
	.audit-header .metric-box:nth-child(even) { align-items: flex-end; text-align: right; }
	
	/* Pin the first tooltip to the left edge of the dot to prevent clipping */
	#tt-1 { transform: translate(0, 10px) scale(0.95) !important; }
	#tt-1.visible { transform: translate(0, 15px) scale(1) !important; }
	#tt-1::after { left: 15px !important; transform: none !important; }

	.hide-mobile { display: none; }
	/* THIS KILLS THE SQUISHED BADGE ON MOBILE */
	.status-badge { display: none !important; }

	.hub-header { padding: 16px; }
	.hub-body { padding: 16px; }
	.update-block { padding-left: 0 !important; }
	.update-block::before { display: none !important; }
	.update-block.reply { margin-left: 0 !important; width: 100% !important; }
	.arch-grid { grid-template-columns: 1fr; gap: 8px; }
	.arch-grid::before, .arch-grid::after, .arch-col::before { display: none; }

}
