/* Cam Chin Design: sales page for jewelry & watch stores.
   Self-contained; does not depend on main.css (the portfolio template). */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--bg: #08090d;
	--panel: rgba(10, 12, 20, 0.92);
	--panel-solid: #0d1018;
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.16);
	--text: #e0e4ea;
	--muted: #9aa3b2;
	--accent: #1493FF;
	--accent-soft: rgba(20, 147, 255, 0.12);
	--accent-line: rgba(20, 147, 255, 0.35);
	--radius: 14px;
	--max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

h1, h2, h3 { color: #fff; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
	position: absolute; left: -9999px; top: 8px;
	background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Starfield (from the portfolio, dimmed) ---------- */

.starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45; overflow: hidden; }
#stars, #stars2, #stars3 { position: absolute; top: 0; left: 0; background: transparent; }
#stars  { width: 1px; height: 1px; box-shadow: var(--stars-small);  animation: animStar 50s linear infinite; }
#stars2 { width: 2px; height: 2px; box-shadow: var(--stars-medium); animation: animStar 100s linear infinite; }
#stars3 { width: 3px; height: 3px; box-shadow: var(--stars-big);    animation: animStar 150s linear infinite; }
#stars::after, #stars2::after, #stars3::after {
	content: ""; position: absolute; top: 2000px; width: inherit; height: inherit; background: transparent;
}
#stars::after  { box-shadow: var(--stars-small); }
#stars2::after { box-shadow: var(--stars-medium); }
#stars3::after { box-shadow: var(--stars-big); }
@keyframes animStar { from { transform: translateY(0); } to { transform: translateY(-2000px); } }

.page { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	padding: 0.85em 1.5em; border-radius: 999px;
	font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none;
	border: 1px solid var(--line-strong); color: #fff; background: transparent;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
	cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #3aa5ff; border-color: #3aa5ff; }
.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.85rem; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(8, 9, 13, 0.82);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
	display: none; background: none; border: 1px solid var(--line-strong); color: #fff;
	border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 0.9rem; cursor: pointer;
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-alt { background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
	display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: 48px; }

.subsection { margin-top: 96px; }
.subsection .section-head { margin-bottom: 36px; }

/* Hero */
.hero { padding: 128px 0 112px; }
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: 1.2rem; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* Featured case study */
.feature-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.shot {
	margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong);
	background: var(--panel-solid); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: 12px 16px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

.callouts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.callouts li { padding-left: 18px; border-left: 2px solid var(--accent-line); }
.callouts strong { display: block; color: #fff; font-weight: 600; }
.callouts span { color: var(--muted); font-size: 0.95rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card-icon {
	width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
	background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card.highlight { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(20, 147, 255, 0.08), var(--panel)); }

/* Fee comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.fee-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.fee-table th, .fee-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fee-table thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fee-table tbody th { color: #fff; font-weight: 600; white-space: nowrap; }
.fee-table tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.fee-table td small { display: block; color: var(--muted); font-size: 0.82rem; }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }
.fee-table .ours { background: var(--accent-soft); }
.fee-table .ours th, .fee-table .ours td { color: #fff; }
.fee-table .ours td strong { color: var(--accent); }
.fine-print { font-size: 0.82rem; color: var(--muted); margin-top: 16px; }
.fine-print a { color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps li::before {
	content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--accent); color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 16px;
}
.steps p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Client grid (adapted from the portfolio's .client-card) */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.client-card {
	display: block; text-decoration: none; color: inherit;
	background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
	transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.client-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.client-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.client-card div { padding: 14px 18px 16px; }
.client-card h3 { font-size: 1rem; margin: 0 0 2px; }
.client-card p { margin: 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* Final CTA */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 2em; }
.cta-box {
	border: 1px solid var(--accent-line); border-radius: 20px; padding: 64px 32px;
	background: radial-gradient(ellipse at top, rgba(20, 147, 255, 0.14), transparent 70%), var(--panel);
}
.email-text { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.email-text a { color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.88rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Reveal on scroll (only when JS adds .js-reveal to <html>) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	#stars, #stars2, #stars3 { animation: none; }
	.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
	.btn, .card, .client-card { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.feature-grid { grid-template-columns: 1fr; }
	.card-grid, .client-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	section { padding: 72px 0; }
	.hero { padding: 72px 0 64px; }
	.nav-toggle { display: inline-block; }
	.site-nav {
		display: none; position: absolute; top: 68px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: rgba(8, 9, 13, 0.97); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
	}
	.site-nav.is-open { display: flex; }
	.site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
	.site-nav .btn { margin-top: 16px; }
	.shot-row { grid-template-columns: 1fr; }
	.card-grid, .client-grid, .steps { grid-template-columns: 1fr; }
	.hero-actions .btn { flex: 1 1 100%; }
	.cta-box { padding: 48px 20px; }

	/* Fee table becomes one stacked card per platform */
	.table-wrap { overflow: visible; border: 0; background: none; }
	.fee-table { min-width: 0; }
	.fee-table thead { display: none; }
	.fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; width: 100%; }
	.fee-table tr {
		background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
		margin-bottom: 14px; padding: 6px 0;
	}
	.fee-table tr.ours { border-color: var(--accent-line); }
	.fee-table th, .fee-table td { border-bottom: 0; padding: 8px 20px; }
	.fee-table tbody th { font-size: 1.05rem; padding-top: 14px; }
	.fee-table td::before {
		content: attr(data-label); display: block; font-size: 0.72rem; letter-spacing: 0.1em;
		text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px;
	}
}
