/* Dubi News Showcase
 * // Design by OKMultimedia.com //
 */

:root {
	--ink: #1d262f;
	--muted: #4a5563;
	--blue: #155bea;
	--bg: #f5f6f8;
	--line: #e6e8ec;
	--dot: #c9ced6;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.sc-wrap {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.sc-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.sc-header .sc-wrap {
	display: flex;
	align-items: center;
	height: 84px;
}

.sc-logo img {
	display: block;
	width: auto;
	height: 40px;
}

.sc-hero-logo {
	display: block;
	width: auto;
	height: 120px;
	margin: 0 auto 40px;
}

/* Demo selector */
.sc-demos {
	position: relative;
	padding: 96px 0 120px;
	background: var(--bg);
	overflow: hidden;
}

/* Soft dot pattern that fades in towards the bottom */
.sc-demos::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(to bottom, transparent 35%, #000 100%);
	mask-image: linear-gradient(to bottom, transparent 35%, #000 100%);
	opacity: .7;
	pointer-events: none;
}

.sc-demos .sc-wrap { position: relative; }

.sc-title {
	margin: 0;
	text-align: center;
	font-size: clamp(2.25rem, 4.5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.1;
}

.sc-subtitle {
	max-width: 620px;
	margin: 20px auto 0;
	text-align: center;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--muted);
}

.sc-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 48px 32px;
	margin: 72px 0 0;
	padding: 0;
	list-style: none;
}

.sc-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.sc-name {
	display: block;
	margin-bottom: 14px;
	text-align: center;
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: color .25s ease;
}

/* Browser-like preview frame */
.sc-frame {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 6px rgba(29, 38, 47, .06), 0 18px 40px -12px rgba(29, 38, 47, .18);
	transition: transform .35s ease, box-shadow .35s ease;
}

/* Screenshot as background: long captures scroll down slowly on hover */
.sc-frame[style] {
	background-repeat: no-repeat;
	background-size: 100% auto;
	background-position: center top;
	transition: transform .35s ease, box-shadow .35s ease, background-position 4s ease;
}

/* Placeholder until the screenshot exists */
.sc-frame.is-empty {
	background:
		linear-gradient(var(--line), var(--line)) 11.4% 10% / 30% 6% no-repeat,
		linear-gradient(var(--line), var(--line)) 50% 30% / 84% 24% no-repeat,
		linear-gradient(var(--line), var(--line)) 12.5% 68% / 40% 20% no-repeat,
		linear-gradient(var(--line), var(--line)) 87.5% 68% / 40% 20% no-repeat,
		linear-gradient(var(--line), var(--line)) 50% 90% / 84% 5% no-repeat,
		#fff;
}

@media (hover: hover) {
	.sc-card a:hover .sc-frame {
		transform: translateY(-6px);
		box-shadow: 0 4px 10px rgba(29, 38, 47, .08), 0 28px 50px -14px rgba(21, 91, 234, .28);
	}

	.sc-card a:hover .sc-name { color: var(--blue); }

	.sc-card a:hover .sc-frame[style] { background-position: center bottom; }
}

.sc-card a:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 6px;
}

@media (max-width: 1279px) {
	.sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
	.sc-demos { padding: 64px 0 80px; }
	.sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; margin-top: 48px; }
}

@media (max-width: 559px) {
	.sc-wrap { padding: 0 16px; }
	.sc-header .sc-wrap { height: 68px; }
	.sc-logo img { height: 32px; }
	.sc-hero-logo { height: 84px; margin-bottom: 28px; }
	.sc-subtitle { font-size: 1rem; }
	.sc-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.sc-frame,
	.sc-frame[style] { transition: none; }
}

.sc-footer {
	border-top: 1px solid var(--line);
	padding: 28px 0;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 500;
	color: #8a929e;
}

.sc-footer a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.sc-footer a:hover { color: var(--blue); }
