/* mm-bento-included
   Bento grid of modular tiles replacing the flat "included" table.
   Top border is uniform-weight across the full tile width and cycles
   through the 8-hue kaleidoscope (same pattern as mm-value-card).
   Desktop (>=992): 4-col grid, hero tile 2x2, wide tiles span 2.
   Tablet  (768-991): 2-col grid, hero/wide span 2.
   Mobile  (<768):   1-col stack. */

/* Fluid-width container override for the section hosting the bento.
   Kills Bootstrap's 970->750 container jump at the 992px breakpoint
   that otherwise makes the whole layout flip within a 3px span. */
@media (max-width: 1199px) {
	.mm-launch-included > .container {
		width: 100% !important;
		max-width: 1170px;
		padding-left: 24px;
		padding-right: 24px;
	}
}

.mm-bento {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-flow: dense;
	gap: 20px;
	grid-auto-rows: minmax(180px, auto);
}

.mm-bento-tile {
	position: relative;
	background: linear-gradient(160deg, #101319 0%, #06070a 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-top-width: 3px;
	animation: mmBentoBorder 12s ease-in-out infinite;
	padding: 32px 28px 26px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow:
		0 20px 40px -20px rgba(0, 0, 0, 0.8),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
	transition: transform 240ms ease, box-shadow 240ms ease;
}

/* Subtle per-tile gradient variations. All stay in the same dark family;
   the only shifts are small changes in angle and highlight opacity so
   neighboring tiles do not feel like identical clones. 2-6% opacity
   deltas, 10deg angle deltas. Barely perceptible, intentionally. */
.mm-bento-tile:nth-of-type(10n+1) { background: linear-gradient(145deg, #1a1f2a 0%, #05060a 100%); }
.mm-bento-tile:nth-of-type(10n+2) { background: linear-gradient(170deg, #171b25 0%, #06070b 100%); }
.mm-bento-tile:nth-of-type(10n+3) { background: linear-gradient(135deg, #1c2130 0%, #04050a 100%); }
.mm-bento-tile:nth-of-type(10n+4) { background: linear-gradient(180deg, #161a23 0%, #05060a 100%); }
.mm-bento-tile:nth-of-type(10n+5) { background: linear-gradient(155deg, #1b202c 0%, #06070b 100%); }
.mm-bento-tile:nth-of-type(10n+6) { background: linear-gradient(125deg, #181d27 0%, #04050a 100%); }
.mm-bento-tile:nth-of-type(10n+7) { background: linear-gradient(165deg, #1a1f2a 0%, #05060a 100%); }
.mm-bento-tile:nth-of-type(10n+8) { background: linear-gradient(140deg, #161a23 0%, #06070b 100%); }
.mm-bento-tile:nth-of-type(10n+9) { background: linear-gradient(175deg, #1c2130 0%, #05060a 100%); }
.mm-bento-tile:nth-of-type(10n)   { background: linear-gradient(130deg, #171b25 0%, #04050a 100%); }

.mm-bento-tile:hover {
	transform: translateY(-2px);
	box-shadow:
		0 28px 52px -24px rgba(0, 0, 0, 0.9),
		0 20px 40px -20px rgba(0, 0, 0, 0.8),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Default: a tile spans 3 cols out of 12 (same as the old 4-col default). */
.mm-bento-tile { grid-column: span 3; }

/* Row 1 anchors */
.mm-bento-tile--hero  { grid-column: span 7; grid-row: span 2; }  /* 7-wide, 2 rows tall */
.mm-bento-tile--r1top { grid-column: span 5; }                     /* top-right of row 1 */
.mm-bento-tile--r1bot { grid-column: span 5; }                     /* bottom-right of row 1 */

/* Row 2: 3 | 3 | 6 */
.mm-bento-tile--r2a { grid-column: span 3; }
.mm-bento-tile--r2b { grid-column: span 3; }
.mm-bento-tile--r2c { grid-column: span 6; }

/* Row 3: 4 | 4 | 4 */
.mm-bento-tile--r3a { grid-column: span 4; }
.mm-bento-tile--r3b { grid-column: span 4; }
.mm-bento-tile--r3c { grid-column: span 4; }

/* Reserved for future rows */
.mm-bento-tile--wide { grid-column: span 6; }
.mm-bento-tile--tall { grid-row: span 2; }

/* Per-tile animation delay so the kaleidoscope cycles out of sync. */
.mm-bento-tile:nth-of-type(1)  { animation-delay: 0s; }
.mm-bento-tile:nth-of-type(2)  { animation-delay: -1s; }
.mm-bento-tile:nth-of-type(3)  { animation-delay: -2s; }
.mm-bento-tile:nth-of-type(4)  { animation-delay: -3s; }
.mm-bento-tile:nth-of-type(5)  { animation-delay: -4s; }
.mm-bento-tile:nth-of-type(6)  { animation-delay: -5s; }
.mm-bento-tile:nth-of-type(7)  { animation-delay: -6s; }
.mm-bento-tile:nth-of-type(8)  { animation-delay: -7s; }
.mm-bento-tile:nth-of-type(9)  { animation-delay: -8s; }
.mm-bento-tile:nth-of-type(10) { animation-delay: -9s; }
.mm-bento-tile:nth-of-type(11) { animation-delay: -10s; }
.mm-bento-tile:nth-of-type(12) { animation-delay: -11s; }

.mm-bento-num {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 22px;
	animation: mmBentoNumColor 12s ease-in-out infinite;
	animation-delay: inherit;
}

.mm-bento-tile:nth-of-type(1)  .mm-bento-num { animation-delay: 0s; }
.mm-bento-tile:nth-of-type(2)  .mm-bento-num { animation-delay: -1s; }
.mm-bento-tile:nth-of-type(3)  .mm-bento-num { animation-delay: -2s; }
.mm-bento-tile:nth-of-type(4)  .mm-bento-num { animation-delay: -3s; }
.mm-bento-tile:nth-of-type(5)  .mm-bento-num { animation-delay: -4s; }
.mm-bento-tile:nth-of-type(6)  .mm-bento-num { animation-delay: -5s; }
.mm-bento-tile:nth-of-type(7)  .mm-bento-num { animation-delay: -6s; }
.mm-bento-tile:nth-of-type(8)  .mm-bento-num { animation-delay: -7s; }
.mm-bento-tile:nth-of-type(9)  .mm-bento-num { animation-delay: -8s; }
.mm-bento-tile:nth-of-type(10) .mm-bento-num { animation-delay: -9s; }
.mm-bento-tile:nth-of-type(11) .mm-bento-num { animation-delay: -10s; }
.mm-bento-tile:nth-of-type(12) .mm-bento-num { animation-delay: -11s; }

.mm-bento-title {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
}

.mm-bento-tile--hero .mm-bento-title {
	font-size: 34px;
	line-height: 1.08;
	margin-bottom: 18px;
}

.mm-bento-body {
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	margin: 0;
	flex: 1;
}

.mm-bento-tile--hero .mm-bento-body {
	font-size: 21px;
	font-weight: 300;
	line-height: 1.55;
}

.mm-bento-foot {
	margin-top: 18px;
	align-self: flex-end;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	font-weight: 600;
}

/* Footnote block below the bento: narrower than container, centered,
   text stays left-aligned inside the block. */
.mm-bento-note {
	margin: 70px auto 0;
	max-width: 1140px;
	padding: 0 24px;
	text-align: left;
}

/* 8-hue kaleidoscope. Same color stops as mm-value-card for brand parity. */
@keyframes mmBentoBorder {
	0%   { border-top-color: rgb(0, 180, 255); }
	14%  { border-top-color: rgb(139, 92, 246); }
	28%  { border-top-color: rgb(236, 72, 153); }
	42%  { border-top-color: rgb(239, 68, 68); }
	57%  { border-top-color: rgb(249, 115, 22); }
	71%  { border-top-color: rgb(234, 179, 8); }
	85%  { border-top-color: rgb(34, 197, 94); }
	100% { border-top-color: rgb(0, 180, 255); }
}

@keyframes mmBentoNumColor {
	0%   { color: rgb(0, 180, 255); }
	14%  { color: rgb(139, 92, 246); }
	28%  { color: rgb(236, 72, 153); }
	42%  { color: rgb(239, 68, 68); }
	57%  { color: rgb(249, 115, 22); }
	71%  { color: rgb(234, 179, 8); }
	85%  { color: rgb(34, 197, 94); }
	100% { color: rgb(0, 180, 255); }
}

@media (prefers-reduced-motion: reduce) {
	.mm-bento-tile,
	.mm-bento-num {
		animation: none;
	}
	.mm-bento-tile { border-top-color: rgba(0, 180, 255, 0.85); }
	.mm-bento-num { color: rgb(0, 180, 255); }
}


/* ============================================================
   TABLET (768-991): 2-col grid, wide/hero span the row.
   ============================================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
	.mm-bento {
		grid-template-columns: repeat(12, 1fr);
		grid-auto-rows: minmax(160px, auto);
		gap: 16px;
	}
	.mm-bento-tile { grid-column: span 6; }
	.mm-bento-tile--hero  { grid-column: span 7; grid-row: span 1; }
	.mm-bento-tile--r1top { grid-column: span 5; }
	.mm-bento-tile--r1bot,
	.mm-bento-tile--r2a,
	.mm-bento-tile--r2b   { grid-column: span 4; }
	.mm-bento-tile--r2c,
	.mm-bento-tile--r3a   { grid-column: span 6; }
	.mm-bento-tile--r3b   { grid-column: span 5; }
	.mm-bento-tile--r3c   { grid-column: span 7; }
	.mm-bento-tile--wide  { grid-column: span 12; }
	.mm-bento-tile--tall  { grid-row: span 1; }
	.mm-bento-tile--hero .mm-bento-title { font-size: 28px; }
}


/* ============================================================
   MOBILE (<768): single column.
   ============================================================ */
/* ============================================================
   SMALL TABLET (575-767): alternating full / half rows.
   Row 1: 01 full. Row 2: 02+03. Row 3: 04 full. Row 4: 05+06.
   Row 5: 07 full. Row 6: 08+09. Row 7: 10 full.
   ============================================================ */
@media (min-width: 575px) and (max-width: 767.98px) {
	.mm-bento {
		grid-template-columns: repeat(12, 1fr);
		grid-auto-rows: minmax(140px, auto);
		gap: 16px;
	}
	/* Row 1 full | Row 2 6+6 | Row 3 full | Row 4 6+6 | Row 5 full | Row 6 6+6 | Row 7 full */
	.mm-bento-tile--hero,  /* 01 */
	.mm-bento-tile--r2a,   /* 04 */
	.mm-bento-tile--r3a,   /* 07 */
	.mm-bento-tile--wide   /* 10 */ { grid-column: span 12; }
	.mm-bento-tile--r1top, /* 02 */
	.mm-bento-tile--r1bot, /* 03 */
	.mm-bento-tile--r2b,   /* 05 */
	.mm-bento-tile--r2c,   /* 06 */
	.mm-bento-tile--r3b,   /* 08 */
	.mm-bento-tile--r3c    /* 09 */ { grid-column: span 6; }
	.mm-bento-tile--hero { grid-row: span 1; }
	.mm-bento-tile--hero .mm-bento-title { font-size: 26px; }
}


/* ============================================================
   MOBILE (<575): single column.
   ============================================================ */
@media (max-width: 574.98px) {
	.mm-bento {
		grid-template-columns: 1fr;
		gap: 16px;
		grid-auto-rows: auto;
	}
	.mm-bento-tile,
	.mm-bento-tile--wide,
	.mm-bento-tile--tall,
	.mm-bento-tile--hero,
	.mm-bento-tile--r1top,
	.mm-bento-tile--r1bot,
	.mm-bento-tile--r2a,
	.mm-bento-tile--r2b,
	.mm-bento-tile--r2c,
	.mm-bento-tile--r3a,
	.mm-bento-tile--r3b,
	.mm-bento-tile--r3c {
		grid-column: span 1;
		grid-row: span 1;
	}
	.mm-bento-tile { padding: 26px 22px 22px; }
	.mm-bento-tile--hero .mm-bento-title { font-size: 24px; }
	.mm-bento-tile--hero .mm-bento-body { font-size: 16px; }
}
