/* === PLATFORM SECTION === */
#platform {
	background: #0e1322;
	position: relative;
	overflow: hidden;
}

.platform-container {
	display: grid;
	grid-template-columns: 1fr 450px;
	gap: 60px;
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
}

.platform-content {
	padding-right: 20px;
}

.platform-description {
	font-size: var(--text-base, 1.05rem);
	line-height: var(--leading-relaxed, 1.7);
	color: #a0aec0;
	margin-bottom: 48px;
	max-width: 100%;
}

/* === PLATFORM GRID === */
.platform-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.platform-card {
	background: #11162a;
	padding: 28px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: all 0.3s ease;
}

	.platform-card:hover {
		transform: translateY(-4px);
		border-color: rgba(91, 124, 255, 0.4);
		box-shadow: 0 8px 30px rgba(91, 124, 255, 0.15);
	}

.card-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	color: #5b7cff;
}

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

.platform-card h4 {
	font-size: var(--text-base, 1.1rem);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px;
	line-height: 1.4;
}

.platform-card p {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #94a3b8;
	margin: 0;
}

/* === FLOW DIAGRAM === */
.platform-visual {
	position: sticky;
	top: 100px;
	background: linear-gradient(135deg, rgba(91, 124, 255, 0.05) 0%, rgba(91, 124, 255, 0.02) 100%);
	border-radius: 20px;
	padding: 40px 30px;
	border: 1px solid rgba(91, 124, 255, 0.15);
}

.flow-diagram {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.flow-level {
	width: 100%;
	display: flex;
	justify-content: center;
	animation: fadeInUp 0.6s ease-out;
}

.flow-node {
	padding: 16px 24px;
	border-radius: 12px;
	text-align: center;
	transition: all 0.3s ease;
}

	.flow-node:hover {
		transform: scale(1.02);
	}

/* Level 1: Business Data */
.data-node {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	color: white;
	box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

	.data-node .node-icon {
		width: 40px;
		height: 40px;
		margin: 0 auto 8px;
	}

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

/* Level 2: Self-Hosted */
.self-hosted-node {
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	color: white;
	border: 2px solid #475569;
}

.node-badge {
	display: inline-block;
	background: #5b7cff;
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

/* Level 3: Platform */
.platform-node {
	background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
	color: white;
	padding: 24px;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
	border: 2px solid rgba(91, 124, 255, 0.5);
	width: 100%;
}

.platform-logo {
	width: 60px;
	height: 60px;
	margin: 0 auto 12px;
}

	.platform-logo svg {
		width: 100%;
		height: 100%;
	}

.node-title {
	font-size: 1.4rem;
	font-weight: 800;
	margin: 0 0 4px;
	letter-spacing: -0.02em;
}

.node-subtitle {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 1px;
	opacity: 0.9;
	margin-bottom: 16px;
}

.platform-features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.feature-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.15);
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 500;
}

	.feature-tag svg {
		width: 16px;
		height: 16px;
	}

/* Level 4: Solutions */
.solutions-row {
	display: flex;
	gap: 12px;
	width: 100%;
	justify-content: center;
}

.solution-item {
	flex: 1;
	background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
	padding: 14px 12px;
	border-radius: 10px;
	text-align: center;
	color: white;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.solution-icon {
	width: 32px;
	height: 32px;
	margin: 0 auto 6px;
}

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

/* Level 5: Results */
.results-row {
	display: flex;
	gap: 12px;
	width: 100%;
	justify-content: center;
}

.result-item {
	flex: 1;
	background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
	padding: 14px 12px;
	border-radius: 10px;
	text-align: center;
	color: white;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.result-icon {
	width: 32px;
	height: 32px;
	margin: 0 auto 6px;
}

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

/* Arrows */
.flow-arrow {
	width: 32px;
	height: 32px;
	color: #64748b;
	animation: bounce 2s infinite;
}

	.flow-arrow svg {
		width: 100%;
		height: 100%;
	}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

	40% {
		transform: translateY(6px);
	}

	60% {
		transform: translateY(3px);
	}
}

/* Stagger animations for levels */
.flow-level:nth-child(1) {
	animation-delay: 0.1s;
}

.flow-level:nth-child(3) {
	animation-delay: 0.3s;
}

.flow-level:nth-child(5) {
	animation-delay: 0.5s;
}

.flow-level:nth-child(7) {
	animation-delay: 0.7s;
}

.flow-level:nth-child(9) {
	animation-delay: 0.9s;
}


/* === RESPONSIVE === */
@media (max-width: 1200px) {
	.platform-container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.platform-visual {
		position: relative;
		top: 0;
		max-width: 500px;
		margin: 0 auto;
	}

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

@media (max-width: 768px) {
	.platform-container {
		gap: 32px;
	}

	.platform-description {
		font-size: var(--text-base, 1rem);
		margin-bottom: 32px;
	}

	.platform-grid {
		gap: 16px;
	}

	.platform-card {
		padding: 24px;
	}

	.platform-visual {
		padding: 30px 20px;
	}

	.flow-node {
		padding: 12px 16px;
	}

	.platform-node {
		padding: 20px 16px;
	}

	.node-title {
		font-size: 1.2rem;
	}


	.solutions-row,
	.results-row {
		flex-direction: column;
		gap: 10px;
		justify-content: space-between;
		align-items: stretch;
	}

	.solution-item,
	.result-item {
		display: flex;
		align-items: center;
		gap: 12px;
		text-align: left;
		padding: 14px 16px;
		flex: 1; 
		min-height: 60px; 
	}

	.solution-icon,
	.result-icon {
		width: 32px;
		height: 32px;
		flex-shrink: 0; 
	}

		.solution-icon svg,
		.result-icon svg {
			width: 100%;
			height: 100%;
		}

	.flow-arrow {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 480px) {
	.platform-card h4 {
		font-size: 1rem;
	}

	.platform-card p {
		font-size: 0.9rem;
	}

	.feature-tag {
		font-size: 0.75rem;
		padding: 4px 10px;
	}

	.platform-features {
		gap: 6px;
	}

	.solution-item,
	.result-item {
		padding: 12px 14px;
		min-height: 56px;
		position: relative;
	}
		.result-item span, 
		.solution-item span {
			position: absolute;
			right: 25px;
			font-size: 1.3em;
		}
	.solution-icon,
	.result-icon {
		position: absolute;
		width: 28px;
		height: 28px;
	}
}