/*
Theme Name: APKRapid
Theme URI: https://apkrapid.com
Author: APKRapid
Author URI: https://apkrapid.com
Description: Fast, mobile friendly WordPress theme for an Android APK and games site. Hero search, category strip, app cards, dark mode and a built-in "APK Apps" post type.
Version: 1.2.2
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apkrapid
*/

/* ---------- Variables ---------- */
:root {
	--blue: #0b5cff;
	--blue-d: #0847c9;
	--blue-l: #3b82ff;
	--navy: #030b26;
	--bg: #f3f6fc;
	--card: #ffffff;
	--text: #0f1a3a;
	--muted: #5b6785;
	--line: #e4e9f4;
	--shadow: 0 6px 24px rgba(16, 40, 100, .08);
	--radius: 18px;
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
[data-theme="dark"] {
	--bg: #070d1f;
	--card: #0f1830;
	--text: #eaf0ff;
	--muted: #9aa7c7;
	--line: #1d2a4a;
	--shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed !important; left: 10px; top: 10px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; background: #fff; color: #000; z-index: 999; border-radius: 8px; }
.icon { flex: none; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.card-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px; border-radius: 10px; border: 0; cursor: pointer;
	font: 600 15px/1.2 var(--font); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: linear-gradient(180deg, #1a6bff, #0b52e6); color: #fff; box-shadow: 0 6px 16px rgba(11, 92, 255, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(11, 92, 255, .38); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 17px; border-radius: 12px; }
.btn-disabled { background: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--card); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 30px; letter-spacing: -.5px; line-height: 1; }
.brand:hover { color: var(--text); }
.brand .accent { color: var(--blue); }
.brand .custom-logo { max-height: 52px; width: auto; }
.brand-light, .brand-light:hover { color: #fff; }

.primary-nav { flex: 1; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; justify-content: center; gap: 4px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: flex; align-items: center; gap: 8px; padding: 12px 16px; position: relative;
	color: var(--text); font-weight: 500;
}
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--blue); }
.primary-nav .menu > .current-menu-item > a::before,
.primary-nav .menu > .current-menu-ancestor > a::before {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: -14px; height: 3px; border-radius: 3px; background: var(--blue);
}
.primary-nav .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px;
	border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; z-index: 20;
	background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
	padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
.sub-menu a:hover { background: var(--bg); color: var(--blue); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle, .nav-toggle {
	width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
	border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background: linear-gradient(135deg, #030b26 0%, #061a4d 55%, #0a2c93 100%);
	padding: 30px 0 84px;
}
.hero::before { /* dots */
	content: ""; position: absolute; top: 18px; right: 40px; width: 200px; height: 100px; opacity: .8;
	background-image: radial-gradient(rgba(70, 140, 255, .9) 2px, transparent 2.5px); background-size: 22px 22px;
}
.hero::after { /* big blue swoosh */
	content: ""; position: absolute; right: -12%; bottom: -55%; width: 70%; height: 110%; border-radius: 50%;
	background: radial-gradient(circle at 40% 30%, #1d5bff 0%, #0a3fd4 55%, transparent 72%); opacity: .75;
}
.hero-inner { position: relative; z-index: 1; display: grid; /* min-width fix below */ grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: center; }
.hero-brand { font-size: clamp(40px, 5vw, 66px); font-weight: 800; font-style: italic; letter-spacing: -2px; line-height: 1; margin-bottom: 10px; }
.hero-brand .accent { color: #1f6bff; }
.hero-title { font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.hero-title .nowrap { display: block; }
.hero-title .free { position: relative; color: #2f80ff; display: inline-block; }
.hero-title .free::after {
	content: ""; position: absolute; left: 2%; right: 0; bottom: -6px; height: 8px;
	border-bottom: 3px solid #2f80ff; border-radius: 50%;
}
.hero-sub { font-size: 16px; max-width: 520px; margin: 0 0 18px; color: #e3ebff; }

.hero-search {
	display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px;
	padding: 6px 6px 6px 18px; max-width: 600px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}
.hero-search .icon { color: #0f1a3a; }
.hero-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
	font: 400 16px var(--font); color: #0f1a3a; padding: 10px 0; -webkit-appearance: none; appearance: none;
}
.hero-search input::placeholder { color: #6b7694; }
.hero-search button {
	border: 0; cursor: pointer; background: var(--blue); color: #fff; border-radius: 12px;
	font: 600 16px var(--font); padding: 12px 28px; transition: background .2s;
}
.hero-search button:hover { background: var(--blue-d); }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 18px 0 0; padding: 0; font-size: 15px; }
.hero-badges li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hero-badges li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .25); }
.hero-badges .icon { color: #4f93ff; }

/* hero background banner */
.hero-bg {
	position: absolute; top: 0; bottom: 0; left: -8%; right: -8%; z-index: 0;
}
.hero-bg img {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
	object-fit: cover; object-position: right center;
	animation: apkr-bg-slide 20s ease-in-out infinite; will-change: transform;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 11, 38, .35), transparent 55%); }
.hero-has-bg::before, .hero-has-bg::after { display: none; }
.hero-has-bg .hero-inner { grid-template-columns: 1fr; }
.hero.hero-has-bg { padding: 56px 0 116px; }
.hero-has-bg .hero-copy { max-width: 640px; }
@keyframes apkr-bg-slide { 0%, 100% { transform: translateX(-6.9%); } 50% { transform: translateX(6.9%); } }

/* hero art (original artwork, no third party logos) */
.hero-copy { min-width: 0; }
.hero-art { position: relative; min-height: 360px; }
.hero-art-img { display: flex; align-items: center; justify-content: center; min-height: 0; }
.hero-img { width: auto; max-width: 100%; max-height: 360px; object-fit: contain; animation: apkr-slide 7s ease-in-out infinite; will-change: transform; }
@keyframes apkr-slide { 0%, 100% { transform: translateX(-18px); } 50% { transform: translateX(30px); } }
.phone {
	position: absolute; right: 40px; top: 0; width: 205px; height: 380px; padding: 9px; border-radius: 36px;
	z-index: 1; background: #0c1c55; transform: rotate(9deg);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 2px #2c4fb0;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 74px; height: 18px; background: #0c1c55; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen {
	height: 100%; border-radius: 28px; background: #fff; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 6px;
}
.phone-brand { font-size: 26px; font-weight: 800; font-style: italic; letter-spacing: -1px; color: #101a3a; }
.phone-brand b { color: var(--blue); }
.tile svg { width: 60%; height: 60%; }
.tile {
	position: absolute; z-index: 2; width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; color: #fff;
	box-shadow: 0 18px 30px rgba(0, 0, 0, .35); animation: apkr-float 6s ease-in-out infinite;
}
.t1 { left: -10px; top: 20px; background: #fff; color: #0b5cff; }
.t2 { left: 55px; top: 135px; width: 64px; height: 64px; background: linear-gradient(135deg, #ff7a45, #e5322d); animation-delay: -1.5s; }
.t3 { left: -20px; top: 225px; background: linear-gradient(135deg, #34d27b, #12a150); animation-delay: -3s; }
.t4 { right: -20px; top: 225px; width: 90px; height: 90px; background: linear-gradient(135deg, #a64bf4, #ff4f8b, #ffb23e); animation-delay: -2s; }
.t5 { right: -20px; top: 30px; width: 84px; height: 84px; background: linear-gradient(135deg, #3b82ff, #0b3ec9); animation-delay: -4s; }
@keyframes apkr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Category strip ---------- */
.cat-strip-wrap { position: relative; z-index: 3; margin-top: -48px; }
.cat-strip {
	display: grid; grid-template-columns: repeat(10, 1fr); background: var(--card);
	border-radius: 22px; box-shadow: 0 14px 40px rgba(16, 40, 100, .14); padding: 18px 8px;
}
.cat-item {
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 6px;
	color: var(--text); font-weight: 500; font-size: 14px; text-align: center;
}
.cat-item + .cat-item { border-left: 1px solid var(--line); }
.cat-icon {
	width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--c, #2563eb);
	background: rgba(37, 99, 235, .1); background: color-mix(in srgb, var(--c, #2563eb) 12%, transparent);
	transition: transform .2s;
}
.cat-item:hover { color: var(--blue); }
.cat-item:hover .cat-icon { transform: translateY(-3px); }

/* ---------- Sections and grids ---------- */
.section { padding-top: 38px; padding-bottom: 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 700; margin: 0; }
.section-title::before { content: ""; width: 5px; height: 28px; border-radius: 4px; background: var(--blue); }
.view-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.admin-note { background: #fff7e0; color: #5a4300; border-radius: 12px; padding: 10px 16px; font-size: 14px; }

.grid-apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.grid-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.app-card {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	background: var(--card); border: 1px solid transparent; border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 18px 14px 14px; transition: transform .2s, border-color .2s;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(11, 92, 255, .35); }
.app-icon {
	width: 72px; height: 72px; border-radius: 20px; overflow: hidden; margin-bottom: 10px;
	display: grid; place-items: center; background: var(--bg);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.icon-fallback {
	width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 30px;
	background: linear-gradient(135deg, #0b5cff, #6aa6ff);
}
.app-title { font-size: 16px; font-weight: 600; margin: 0; max-width: 100%; }
.app-title a { display: block; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-title a:hover { color: var(--blue); }
.app-ver { font-size: 12.5px; color: var(--muted); }
.app-meta { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 2px 0 12px; min-height: 22px; }
.app-meta .rate { display: inline-flex; align-items: center; gap: 3px; }
.star { color: #f5a623; width: 14px; height: 14px; }
.app-card .btn { margin-top: auto; padding: 10px 12px; }

/* ---------- Listing pages ---------- */
.listing { padding-top: 36px; padding-bottom: 50px; }
.page-head { margin-bottom: 26px; }
.page-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin: 0 0 6px; }
.page-title span { color: var(--blue); }
.page-desc { color: var(--muted); }
.empty-card { text-align: center; }
.empty-card .search-form { margin: 20px auto; border: 1px solid var(--line); box-shadow: none; }
.big-404 { font-size: 90px; font-weight: 800; color: var(--blue); line-height: 1; }

.post-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.post-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 20px; }
.post-date { font-size: 13px; color: var(--muted); }
.post-title { font-size: 19px; font-weight: 600; margin: 4px 0 8px; }
.post-title a { color: var(--text); }
.post-excerpt { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	min-width: 42px; height: 42px; padding: 0 14px; display: inline-grid; place-items: center;
	background: var(--card); color: var(--text); border-radius: 10px; box-shadow: var(--shadow); font-weight: 500;
}
.page-numbers.current, a.page-numbers:hover { background: var(--blue); color: #fff; }

/* ---------- Single app ---------- */
.single-wrap { padding-top: 26px; padding-bottom: 50px; }
.single-wrap.narrow { max-width: 900px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb-current { color: var(--text); }
.app-hero { display: flex; gap: 28px; align-items: center; }
.app-hero-icon { width: 132px; height: 132px; border-radius: 30px; overflow: hidden; flex: none; background: var(--bg); box-shadow: var(--shadow); }
.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero-icon .icon-fallback { font-size: 54px; }
.app-hero h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(11, 92, 255, .1); color: var(--blue); }
.chip-plain { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.chip-mod { background: #fff0d6; color: #a45a00; font-weight: 700; }
.info-list { margin: 0; }
.info-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--muted); font-weight: 500; }
.info-row dd { margin: 0; font-weight: 500; }
.download-box { text-align: center; border: 2px dashed rgba(11, 92, 255, .35); }
.download-box p { color: var(--muted); }
.related { padding-top: 10px; }

.entry-content { overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.1em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: 14px; margin: 14px auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--blue); color: var(--muted); }
.entry-content .wp-block-gallery, .entry-content .gallery { gap: 10px; }
.post-hero img { border-radius: 14px; margin: 14px 0; width: 100%; }

.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"], .comments-area textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit;
}
.comments-area .submit { background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 12px 24px; font: 600 15px var(--font); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; background: var(--navy); color: #b9c4e6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 36px; }
.footer-about p { margin: 14px 0 0; max-width: 360px; font-size: 15px; }
.footer-title, .widget-title { color: #fff; font-size: 17px; margin-bottom: 14px; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li { margin-bottom: 8px; }
.site-footer a { color: #b9c4e6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 14px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center;
	border: 0; border-radius: 14px; background: var(--blue); color: #fff; cursor: pointer;
	box-shadow: 0 8px 20px rgba(11, 92, 255, .4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
	.hero { padding: 24px 0 78px; }
	.hero-art { min-height: 330px; }
	.hero-img { max-height: 330px; }
	.phone { height: 340px; width: 185px; }
}

@media (max-width: 1200px) {
	.grid-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hero-art .phone { right: 30px; }
}

@media (max-width: 960px) {
	.header-inner { height: 66px; gap: 12px; }
	.brand { font-size: 25px; }
	.brand .logo-mark { width: 38px; height: 38px; }
	.header-actions { margin-left: auto; }
	.btn-app { display: none; }
	.nav-toggle { display: grid; }

	.primary-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; flex: none;
		background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
		max-height: calc(100vh - 66px); overflow-y: auto; padding: 8px 20px 20px;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > .current-menu-item > a::before,
	.primary-nav .menu > .current-menu-ancestor > a::before { display: none; }
	.primary-nav .menu-item-has-children > a::after { margin-left: auto; }
	.sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; display: none;
		box-shadow: none; border: 0; background: var(--bg); border-radius: 12px; margin: 6px 0; min-width: 0;
	}
	.menu-item-has-children.open > .sub-menu { display: block; }
	.menu-item-has-children:hover > .sub-menu { transform: none; }
	.nav-cta { display: flex; margin-top: 16px; }

	.hero { padding: 36px 0 90px; }
	.hero-inner { grid-template-columns: 1fr; }
	.hero-art { display: none; }
	.hero-bg img { object-position: 78% center; }
	.hero-bg::after { background: linear-gradient(90deg, rgba(3, 11, 38, .82), rgba(3, 11, 38, .45)); }
	.hero::before { width: 120px; opacity: .5; }

	.cat-strip {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 16px 6px;
		scrollbar-width: none;
	}
	.cat-strip::-webkit-scrollbar { display: none; }
	.cat-item { flex: none; min-width: 96px; scroll-snap-align: start; }

	.grid-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
	body { font-size: 15px; }
	.container { padding: 0 14px; }
	.hero { padding: 28px 0 80px; }
	.hero-brand { letter-spacing: -1px; }
	.hero-sub { font-size: 15.5px; margin-bottom: 20px; }
	.hero-search { padding: 6px 6px 6px 14px; border-radius: 16px; gap: 8px; }
	.hero-search input[type="search"] { font-size: 16px; padding: 10px 0; }
	.hero-search button { padding: 12px 18px; font-size: 15px; }
	.hero-badges { gap: 12px 16px; }
	.hero-badges li { font-size: 13.5px; }
	.hero-badges li + li { padding-left: 0; border-left: 0; }
	.hero-badges .icon { width: 22px; height: 22px; }

	.cat-strip-wrap { margin-top: -38px; }
	.section { padding-top: 28px; }
	.section-title { font-size: 21px; }
	.grid-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.grid-posts { grid-template-columns: 1fr; }
	.app-card { padding: 14px 10px 10px; }
	.app-icon { width: 64px; height: 64px; border-radius: 18px; }

	.card { padding: 20px; }
	.app-hero { flex-direction: column; text-align: center; }
	.app-hero-icon { width: 112px; height: 112px; }
	.chips { justify-content: center; }
	.info-row { grid-template-columns: 1fr; gap: 2px; }
	.footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 38px; }
	.footer-bottom .container { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
