/* MUSJOY HK — Premium site styles
   Loaded after bootstrap + common.css to override legacy. */

:root {
	--ink: #0f172a;
	--ink-2: #1e293b;
	--text: #1a2332;
	--muted: #64748b;
	--line: #e5e7eb;
	--bg: #ffffff;
	--bg-soft: #f7f8fb;
	--bg-tint: #f1f3fa;

	--brand: #4f46e5;
	--brand-2: #7c3aed;
	--brand-3: #3b82f6;
	--accent: #f59e0b;

	--grad-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #3b82f6 100%);
	--grad-soft: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);

	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 4px 6px rgba(15, 23, 42, 0.04), 0 10px 15px rgba(15, 23, 42, 0.06);
	--shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.08), 0 24px 48px rgba(15, 23, 42, 0.10);

	--radius: 14px;
	--radius-lg: 20px;
}

/* Reset legacy fixed widths */
html, body { margin: 0; padding: 0; }
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-width: unset !important;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.page-content { flex: 1 0 auto; }

h1, h2, h3, h4 {
	font-family: 'Manrope', 'Inter', sans-serif;
	color: var(--ink);
	letter-spacing: -0.02em;
	margin: 0;
}
h1 { font-size: 56px; line-height: 1.1; font-weight: 800; }
h2 { font-size: 36px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 700; }
p { margin: 0 0 1em; }

/* Top navigation */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header-inner {
	max-width: 1200px; margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 32px;
}
.brand-mark {
	display: flex; align-items: center; gap: 12px;
	text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px;
	letter-spacing: -0.01em;
}
.brand-mark img { width: 36px; height: 36px; border-radius: 8px; }
.brand-mark .brand-sub { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
	color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px;
	padding: 8px 16px; border-radius: 999px;
	transition: all 0.18s ease;
}
.site-nav a:hover { background: var(--bg-tint); color: var(--ink); }
.site-nav a.active { background: var(--ink); color: #fff; }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-eyebrow {
	display: inline-block; font-size: 13px; font-weight: 600;
	color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase;
	margin-bottom: 16px;
}
.section-dark .section-eyebrow { color: #a5b4fc; }
.section-lead { font-size: 18px; color: var(--muted); line-height: 1.7; margin-top: 16px; }
.section-dark .section-lead { color: rgba(255, 255, 255, 0.7); }

/* Hero */
.hero {
	position: relative;
	padding: 120px 0 80px;
	overflow: hidden;
	background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.08), transparent 70%),
	            radial-gradient(ellipse 60% 50% at 100% 30%, rgba(59, 130, 246, 0.06), transparent 70%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(79, 70, 229, 0.08); color: var(--brand);
	font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
	letter-spacing: 0.04em;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 { margin: 24px 0 20px; }
.hero h1 .grad {
	background: var(--grad-hero); -webkit-background-clip: text;
	background-clip: text; color: transparent;
}
.hero-sub { font-size: 20px; color: var(--muted); line-height: 1.6; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px;
	font-weight: 600; font-size: 15px; text-decoration: none;
	transition: all 0.18s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-tint); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; display: block; }

/* Trust bar */
.trust {
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	background: var(--bg-soft);
}
.trust-grid {
	max-width: 1200px; margin: 0 auto; padding: 28px 32px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.trust-value { font-size: 15px; color: var(--ink); font-weight: 600; }
.trust-sub { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* Card grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
	background: #fff; border-radius: var(--radius-lg);
	padding: 32px; border: 1px solid var(--line);
	transition: all 0.2s ease;
}
.card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
	width: 48px; height: 48px; border-radius: 12px;
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
	color: #fff; display: flex; align-items: center; justify-content: center;
	margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }

/* Product cards */
.product-card {
	background: #fff; border-radius: var(--radius);
	padding: 24px; border: 1px solid var(--line);
	display: flex; flex-direction: column; gap: 12px;
	transition: all 0.2s ease;
}
.product-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-icon {
	width: 56px; height: 56px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.product-card h3 { font-size: 17px; margin: 0; }
.product-card .product-cat { font-size: 12px; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.product-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.product-tags { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.platform-tag {
	font-size: 11px; padding: 3px 10px; border-radius: 999px;
	background: var(--bg-tint); color: var(--ink-2); font-weight: 600;
}

/* Featured product showcase (real apps) */
.products-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-feat {
	background: #fff; border-radius: 24px; padding: 32px;
	border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px;
	transition: all 0.25s ease;
}
.product-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-feat-icon {
	width: 88px; height: 88px; border-radius: 22px;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
	overflow: hidden; flex-shrink: 0;
}
.product-feat-icon img { width: 100%; height: 100%; display: block; }
.product-feat .pf-cat {
	font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--brand);
}
.product-feat h3 { font-size: 22px; line-height: 1.3; }
.product-feat .pf-sub { font-size: 14px; color: var(--muted); font-weight: 500; margin-top: -8px; }
.product-feat p { font-size: 15px; color: var(--text); line-height: 1.7; margin: 0; flex: 1; }
.product-feat .pf-meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.product-feat .pf-meta span { background: var(--bg-tint); padding: 4px 10px; border-radius: 999px; font-weight: 600; }

.appstore-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 20px; background: #0f172a; color: #fff;
	border-radius: 12px; text-decoration: none;
	transition: all 0.18s ease; font-size: 14px; font-weight: 500;
	margin-top: 8px;
}
.appstore-btn:hover { background: var(--brand); transform: translateY(-1px); color: #fff; }
.appstore-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.appstore-btn .as-line1 { font-size: 10px; line-height: 1; opacity: 0.85; letter-spacing: 0.04em; }
.appstore-btn .as-line2 { font-size: 16px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }

/* Screenshot showcase */
.shots-showcase {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
	border-radius: 28px; padding: 64px 48px;
	color: #fff; overflow: hidden; position: relative;
}
.shots-showcase::before {
	content: ''; position: absolute; inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 50%),
		radial-gradient(circle at 90% 80%, rgba(165,180,252,0.18), transparent 60%);
}
.shots-grid {
	display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
	align-items: center; position: relative;
}
.shots-text h3 { color: #fff; font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
.shots-text .pf-cat { color: #a5b4fc; }
.shots-text p { color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.7; }
.shots-row { display: flex; gap: 16px; justify-content: flex-end; }
.shot-frame {
	width: 200px; aspect-ratio: 600 / 1066; border-radius: 28px; overflow: hidden;
	border: 4px solid rgba(255,255,255,0.10);
	box-shadow: 0 24px 48px rgba(0,0,0,0.30);
	background: #000;
}
.shot-frame:nth-child(1) { transform: translateY(20px) rotate(-3deg); }
.shot-frame:nth-child(2) { transform: translateY(-10px); z-index: 2; }
.shot-frame:nth-child(3) { transform: translateY(20px) rotate(3deg); }
.shot-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { padding: 8px 0; }
.stat-num {
	font-family: 'Manrope', sans-serif;
	font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
	background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 12px; line-height: 1.5; }

/* Timeline */
.timeline {
	position: relative; padding-left: 32px;
}
.timeline::before {
	content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
	background: linear-gradient(180deg, var(--brand) 0%, transparent 100%);
}
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item::before {
	content: ''; position: absolute; left: -32px; top: 6px;
	width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 3px solid var(--brand);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.tl-year { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--brand); font-size: 14px; letter-spacing: 0.04em; }
.tl-title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 4px 0 8px; }
.tl-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; }

/* Office card */
.office {
	display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.office-card {
	background: #fff; border-radius: var(--radius-lg);
	padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.office-card .meta { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.meta-row { display: flex; gap: 16px; align-items: flex-start; }
.meta-icon {
	flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
	background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
	color: var(--brand);
}
.meta-icon svg { width: 18px; height: 18px; }
.meta-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.meta-value { font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.meta-value a { color: var(--brand); text-decoration: none; }
.meta-value a:hover { text-decoration: underline; }
.office-visual {
	background: var(--grad-hero); border-radius: var(--radius-lg);
	min-height: 320px; padding: 48px; color: #fff; position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end;
}
.office-visual::before {
	content: ''; position: absolute; inset: 0;
	background:
		radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 50%),
		radial-gradient(circle at 20% 80%, rgba(255,255,255,0.10), transparent 60%);
}
.office-visual h3 { color: #fff; font-size: 28px; margin-bottom: 8px; position: relative; }
.office-visual p { color: rgba(255,255,255,0.85); margin: 0; position: relative; }

/* About specific */
.profile-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item {
	background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
	border-radius: var(--radius); padding: 28px;
}
.value-item h3 { color: #fff; font-size: 16px; margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.value-item p { color: rgba(255,255,255,0.75); font-size: 15px; margin: 0; }

/* Team specific */
.team-story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; }
.team-story.reverse > div:first-child { order: 2; }
.team-story img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.story-year { font-family: 'Manrope', sans-serif; font-size: 56px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -0.03em; }
.story-title { font-size: 28px; margin: 12px 0 20px; }
.story-text p { color: var(--muted); font-size: 16px; line-height: 1.8; }

/* Footer */
.site-footer {
	background: var(--ink); color: rgba(255,255,255,0.7);
	padding: 64px 0 32px; flex-shrink: 0;
}
.footer-grid {
	max-width: 1200px; margin: 0 auto; padding: 0 32px;
	display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 360px; }
.footer-col h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }
.footer-meta {
	max-width: 1200px; margin: 48px auto 0; padding: 24px 32px 0;
	border-top: 1px solid rgba(255,255,255,0.1);
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
	font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-meta .legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* Utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 960px) {
	h1 { font-size: 40px; }
	h2 { font-size: 28px; }
	.hero { padding: 80px 0 60px; }
	.hero-inner { grid-template-columns: 1fr; gap: 40px; }
	.section { padding: 64px 0; }
	.grid-3, .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
	.office, .profile-grid, .team-story { grid-template-columns: 1fr; gap: 32px; }
	.team-story.reverse > div:first-child { order: 0; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.products-featured { grid-template-columns: 1fr; }
	.shots-grid { grid-template-columns: 1fr; gap: 32px; }
	.shots-row { justify-content: center; }
	.shots-showcase { padding: 48px 28px; }
	.shot-frame { width: 160px; }
}
@media (max-width: 640px) {
	.site-header-inner { padding: 14px 20px; }
	.brand-mark .brand-sub { display: none; }
	.site-nav a { padding: 8px 12px; font-size: 14px; }
	.container { padding: 0 20px; }
	.grid-3, .grid-4, .stats, .trust-grid { grid-template-columns: 1fr; }
	.values { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
}
