/* APKLand — Modern (dark) */

.style-modern {
	--apkland-font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
	--apkland-font-body: "Inter", system-ui, sans-serif;
	--apkland-text: #f1f1f1;
	--apkland-muted: rgba(241, 241, 241, 0.65);
	--apkland-bg: #0d0d0d;
	--stats-bg: rgba(255, 255, 255, 0.04);
	--stat-label-color: var(--apkland-muted);
	background: var(--apkland-bg);
	color: var(--apkland-text);
	font-family: var(--apkland-font-body);
}

.style-modern .apkland-main {
	background: var(--apkland-bg);
}

.style-modern .apkland-content-wrap {
	background: rgba(255, 255, 255, 0.02);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.style-modern .apkland-hero {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.style-modern .hero-inner {
	display: flex;
	flex-direction: column;
	padding: 20px 16px;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.style-modern .hero-visual {
	display: none;
}

.style-modern .modern-hero-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.style-modern .app-identity {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.style-modern .app-icon-wrap img {
	border-radius: 18px;
	box-shadow: 0 0 32px var(--primary-glow);
}

.style-modern .app-title {
	font-family: var(--apkland-font-heading);
	font-size: clamp(1.6rem, 5vw, 2.4rem);
	font-weight: 800;
	margin: 0 0 0.35rem;
	line-height: 1.15;
}

.style-modern .app-tagline {
	margin: 0 0 0.75rem;
	color: var(--apkland-muted);
}

.style-modern .app-details .app-developer-line {
	margin-bottom: 0.5rem;
}

.style-modern .app-details .app-meta-badges {
	margin-top: 0.75rem;
}

.style-modern .app-meta-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.style-modern .badge {
	font-size: 0.8rem;
	padding: 0.25rem 0.65rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
}

.style-modern .badge-updated-capsule {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.14);
}

.style-modern .stat-value {
	color: var(--primary-light);
}

.style-modern .btn-hero-download {
	min-height: 58px;
	padding: 0 1.25rem;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	border-radius: 10px;
	box-shadow: 0 0 24px var(--primary-glow);
	touch-action: manipulation;
	animation: apkland-pulse-modern 3s ease-in-out infinite;
}

/* Phone + side boxes */
.style-modern .phone-and-boxes {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	position: relative;
}

.style-modern .mobile-mockup-wrap {
	perspective: 1000px;
	will-change: transform;
}

.style-modern .mobile-frame {
	position: relative;
	width: 200px;
	height: 420px;
	background: #1a1a1a;
	border-radius: 44px;
	border: 2px solid rgba(255, 255, 255, 0.15);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08),
		0 30px 80px rgba(0, 0, 0, 0.7),
		0 0 60px rgba(var(--primary-rgb), 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	animation: mobilefloat 4s ease-in-out infinite;
	will-change: transform;
}

/* Dark iPhone mockup overrides */
.style-modern .apkland-iphone-wrap svg path[fill="#E5E5E5"],
.style-modern .apkland-iphone-wrap svg path[fill="#F5F5F5"] {
	fill: #2a2a2a;
}
.style-modern .apkland-iphone-wrap svg path[fill="white"],
.style-modern .apkland-iphone-wrap svg path[fill="#ffffff"] {
	fill: #111111;
}

.style-modern .mobile-frame:has(.apkland-iphone-wrap)::before,
.style-modern .mobile-frame:has(.apkland-iphone-wrap)::after {
	display: none;
}

.style-modern .mobile-frame::before {
	content: '';
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	width: 56px;
	height: 22px;
	background: #0a0a0a;
	border-radius: 14px;
	z-index: 10;
}

.style-modern .mobile-frame::after {
	content: '';
	position: absolute;
	right: -4px;
	top: 80px;
	width: 4px;
	height: 60px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 0 4px 4px 0;
	box-shadow: 0 70px 0 rgba(255, 255, 255, 0.12);
}

.style-modern .mobile-screen {
	position: absolute;
	inset: 6px;
	border-radius: 38px;
	overflow: hidden;
	background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 48px 16px 16px;
	gap: 10px;
}

.style-modern .mobile-logo-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.style-modern .mobile-app-name-label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
}

.style-modern .mobile-inner-card {
	width: 100%;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 12px;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.style-modern .mobile-inner-trophy {
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.style-modern .mic-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
}

.style-modern .mic-progress-track {
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	overflow: hidden;
}

.style-modern .mic-progress-fill {
	height: 100%;
	background: #fff;
	border-radius: 2px;
	animation: progressLoop 2.5s ease-in-out infinite;
	width: 0%;
}

.style-modern .mic-trophy {
	font-size: 1.1rem;
	line-height: 1;
}

.style-modern .side-box--left {
	align-self: center;
	margin-top: 40px;
}

.style-modern .side-box {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 130px;
	max-width: 160px;
}

.style-modern .side-box-icon {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.9);
	flex-shrink: 0;
}

.style-modern .sb-title {
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	line-height: 1.2;
}

.style-modern .sb-sub {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.55);
	margin: 2px 0 0;
}

.style-modern .float-box {
	animation: floatBox 3s ease-in-out infinite;
	will-change: transform;
}

.style-modern .apkland-content h2 {
	font-family: var(--apkland-font-heading);
	font-weight: 700;
	font-size: clamp(1.1rem, 3vw, 1.3rem);
	background: linear-gradient(to right, var(--primary), var(--primary-light), rgba(255, 255, 255, 0.1));
	color: #fff;
	padding: 12px 20px;
	line-height: 1.5;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
	text-align: left;
	border-left: 6px solid var(--primary-light);
	border-radius: 0 8px 8px 0;
	margin: 2.5rem 0 1.25rem;
	-webkit-text-fill-color: #fff;
}

.style-modern .apkland-content h3 {
	font-family: var(--apkland-font-heading);
	font-weight: 600;
	font-size: clamp(0.95rem, 2.5vw, 1.05rem);
	color: var(--primary-light);
	padding: 6px 0 6px 14px;
	border-left: 3px solid var(--primary);
	margin: 1.75rem 0 0.875rem;
	background: transparent;
}

.style-modern .apkland-content {
	color: var(--apkland-text);
}

.style-modern .apkland-content a {
	color: var(--primary-light);
}

.style-modern .btn-main-download {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	box-shadow: 0 0 24px var(--primary-glow);
	animation: apkland-pulse-modern 3s ease-in-out infinite;
}

.style-modern .countdown-ring .ring-bg {
	stroke: rgba(255, 255, 255, 0.12);
}

.style-modern .countdown-progress {
	background: rgba(255, 255, 255, 0.1);
}

.style-modern .faq-wrap {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.style-modern .faq-item {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.style-modern .faq-question {
	color: #fff;
}

@keyframes mobilefloat {
	0%,
	100% {
		transform: perspective(1000px) rotateY(-6deg) translateY(0);
	}
	50% {
		transform: perspective(1000px) rotateY(6deg) translateY(-16px);
	}
}

@keyframes floatBox {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes progressLoop {
	0% {
		width: 0%;
	}
	70% {
		width: 90%;
	}
	100% {
		width: 0%;
	}
}

@keyframes apkland-pulse-modern {
	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 0 24px var(--primary-glow);
	}
	50% {
		transform: scale(1.02);
		box-shadow: 0 0 36px var(--primary-glow);
	}
}

@media (max-width: 767px) {
	.style-modern .app-identity .app-details {
		width: 100%;
		min-width: 0;
		flex: 1 1 auto;
	}

	.style-modern .app-details {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}

	.style-modern .app-details .app-tagline {
		order: 2;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 100%;
		max-width: 100%;
		flex-shrink: 0;
		min-height: 1.25em;
		margin-top: 0.75rem;
		margin-bottom: 0;
		font-size: clamp(0.875rem, 3.2vw, 0.95rem);
	}

	.style-modern .app-title {
		text-align: left;
		font-size: clamp(1.4rem, 5vw, 1.8rem);
	}

	.style-modern .app-developer-line {
		justify-content: flex-start;
		text-align: left;
	}

	/* === PHONE + BOXES WRAPPER === */
	.style-modern .phone-and-boxes {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		gap: 16px !important;
		width: 100% !important;
	}

	/* === PHONE MOCKUP — centered, smaller on mobile === */
	.style-modern .mobile-mockup-wrap {
		flex-shrink: 0 !important;
	}

	.style-modern .mobile-frame {
		width: 160px !important;
		height: 330px !important;
	}

	.style-modern .mobile-frame::before {
		width: 48px;
		height: 18px;
		border-radius: 10px;
	}

	.style-modern .mobile-screen {
		padding: 40px 12px 12px;
		gap: 8px;
	}

	/* === BOXES CONTAINER — wraps all 3 boxes === */
	.style-modern .all-boxes-wrap {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 10px !important;
		width: 100% !important;
		max-width: 340px !important;
		margin-top: 0 !important;
	}

	/* === LEFT BOX — first column, first row === */
	.style-modern .all-boxes-wrap .side-box--left {
		grid-column: 1 !important;
		grid-row: 1 !important;
		margin-top: 0 !important;
		order: unset !important;
	}

	/* === BOX 1 (HD Quality) — right column, row 1 === */
	.style-modern .all-boxes-wrap .side-box:nth-child(2) {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}

	/* === BOX 2 (Global Content) — bottom center, spans both columns === */
	.style-modern .all-boxes-wrap .side-box:nth-child(3) {
		grid-column: 1 / span 2 !important;
		grid-row: 2 !important;
		justify-self: center !important;
		max-width: 200px !important;
		width: 100% !important;
	}

	/* === BOX SIZING — compact and readable on mobile === */
	.style-modern .side-box {
		min-width: 0 !important;
		max-width: 100% !important;
		padding: 10px 12px !important;
		gap: 8px !important;
		border-radius: 14px !important;
		align-items: center !important;
	}

	.style-modern .side-box-icon {
		width: 30px !important;
		height: 30px !important;
		flex-shrink: 0 !important;
	}

	.style-modern .sb-title {
		font-size: 11px !important;
		font-weight: 600 !important;
		white-space: normal !important;
		word-break: break-word !important;
		line-height: 1.3 !important;
	}

	.style-modern .sb-sub {
		font-size: 9px !important;
		opacity: 0.6 !important;
		white-space: normal !important;
		line-height: 1.2 !important;
	}

	.style-modern .app-details .app-meta-badges {
		order: 1;
		margin-top: 1.15rem;
		margin-bottom: 0;
	}

	.style-modern .app-identity {
		gap: 1.15rem;
	}
}

@media (min-width: 768px) {
	.style-modern .app-title {
		text-align: left;
	}

	.style-modern .app-developer-line {
		justify-content: flex-start;
	}

	.style-modern .app-meta-badges {
		flex-wrap: nowrap;
		gap: 8px;
	}

	.style-modern .app-meta-badges .badge {
		flex-shrink: 0;
		white-space: nowrap;
	}

	.style-modern .hero-info .app-stats .stat-item:nth-child(2) {
		display: none;
	}

	.style-modern .hero-info .app-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* ~87% of Classic140px hero logo; square + circle (no stretch) */
	.style-modern .app-icon-wrap {
		width: 122px;
		height: 122px;
		border-radius: 50%;
		overflow: hidden;
		flex-shrink: 0;
	}

	.style-modern .app-icon-wrap img {
		width: 122px;
		height: 122px;
		border-radius: 50%;
		object-fit: contain;
		display: block;
	}

	.style-modern .side-box {
		min-width: 140px;
		max-width: 170px;
		padding: 12px 14px;
		gap: 10px;
		align-items: flex-start;
	}

	.style-modern .side-box-icon {
		width: 32px;
		height: 32px;
		flex-shrink: 0;
	}

	.style-modern .sb-title {
		font-size: 12px;
		font-weight: 600;
		white-space: normal;
		word-break: break-word;
	}

	.style-modern .sb-sub {
		font-size: 10px;
		white-space: normal;
	}

	.style-modern .app-identity {
		gap: 1.35rem;
	}

	.style-modern .hero-inner {
		flex-direction: row;
		align-items: center;
		padding: 40px 32px;
	}

	.style-modern .hero-visual,
	.style-modern .modern-hero-visual {
		display: flex;
		flex: 1;
		justify-content: center;
	}

	/* Phone first in DOM for mobile; contents + grid restore left | phone | stacked-right */
	.style-modern .all-boxes-wrap {
		display: contents;
	}

	.style-modern .phone-and-boxes {
		display: grid;
		grid-template-columns: auto auto auto;
		grid-template-rows: auto auto;
		align-items: center;
		justify-content: center;
		gap: 16px;
	}

	.style-modern .phone-and-boxes > .mobile-mockup-wrap {
		grid-column: 2;
		grid-row: 1 / span 2;
		justify-self: center;
	}

	.style-modern .phone-and-boxes .all-boxes-wrap .side-box--left {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-self: center;
		margin-top: 40px;
	}

	.style-modern .phone-and-boxes .all-boxes-wrap .side-box:nth-child(2) {
		grid-column: 3;
		grid-row: 1;
		justify-self: start;
	}

	.style-modern .phone-and-boxes .all-boxes-wrap .side-box:nth-child(3) {
		grid-column: 3;
		grid-row: 2;
		justify-self: start;
	}

	.style-modern .btn-hero-download {
		width: auto;
	}

	.style-modern .apkland-hero.hero-modern .hero-info .btn-hero-download {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: fit-content;
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.style-modern .apkland-content-wrap {
		padding: 48px 32px;
	}
}

@media (min-width: 1024px) {
	.style-modern .hero-inner {
		padding: 60px 80px;
	}
}
