/* =========================================================
   Synergy — cinematic space / champagne-gold luxury theme
   ========================================================= */

:root {
	--bg:        #05060a;
	--bg-soft:   #0a0c14;
	--panel:     rgba(20, 22, 32, 0.55);
	--line:      rgba(212, 175, 105, 0.18);
	--text:      #e9e8e4;
	--muted:     #9a9aa6;
	--gold:      #d9b873;
	--gold-2:    #f4e4b8;
	--gold-deep: #b48a3e;
	--champ:     #efe3c6;
	--maxw:      1180px;
	--ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Outfit", system-ui, -apple-system, sans-serif;
	font-weight: 300;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Deep-space backdrop layered behind everything */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -3;
	background:
		radial-gradient(1100px 700px at 78% -8%, rgba(180, 138, 62, 0.18), transparent 60%),
		radial-gradient(900px 800px at 12% 8%, rgba(60, 70, 120, 0.14), transparent 60%),
		radial-gradient(1200px 900px at 50% 120%, rgba(120, 90, 40, 0.12), transparent 55%),
		var(--bg);
}

#synergy-stars {
	position: fixed;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Typography ---------- */
.eyebrow, .section-eyebrow {
	font-size: .78rem;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 1.1rem;
	font-weight: 500;
}

h1, h2, h3 {
	font-family: "Syne", system-ui, sans-serif;
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: .01em;
	margin: 0;
}

.hero-title {
	font-size: clamp(2.8rem, 7vw, 5.6rem);
	background: linear-gradient(180deg, #fffdf8 0%, var(--gold-2) 45%, var(--gold) 80%, var(--gold-deep) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 60px rgba(217, 184, 115, 0.18);
}

.section-title {
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	color: var(--champ);
	margin-bottom: 1.4rem;
}

.lede {
	font-size: clamp(1.05rem, 1.6vw, 1.28rem);
	color: var(--muted);
	max-width: 62ch;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header.scrolled {
	background: rgba(5, 6, 10, 0.72);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--champ); }
.brand-name {
	font-family: "Syne", sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.brand-mark {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 30%, var(--gold-2), var(--gold) 45%, var(--gold-deep) 80%);
	box-shadow: 0 0 18px rgba(217, 184, 115, 0.55), inset 0 0 6px rgba(255,255,255,0.4);
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 2.2rem;
	list-style: none;
	margin: 0; padding: 0;
}
.nav-list a {
	color: var(--text);
	font-size: .85rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 400;
	position: relative;
}
.nav-list a:not(.nav-cta)::after {
	content: ""; position: absolute; left: 0; bottom: -6px;
	width: 0; height: 1px; background: var(--gold);
	transition: width .35s var(--ease);
}
.nav-list a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
	border: 1px solid var(--line);
	padding: .55rem 1.3rem;
	border-radius: 999px;
	color: var(--gold) !important;
	transition: all .35s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #14110a !important; box-shadow: 0 0 24px rgba(217,184,115,.4); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span { display: block; position: absolute; left: 0; width: 100%; height: 2px; background: var(--champ); transition: .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-size: .82rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 1rem 2.1rem;
	border-radius: 999px;
	font-weight: 500;
	transition: all .4s var(--ease);
	cursor: pointer;
}
.btn-lg { padding: 1.15rem 2.6rem; font-size: 1rem; letter-spacing: .1em; text-transform: none; font-family: "Syne", sans-serif; }
.btn-gold {
	background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
	color: #1a1407;
	box-shadow: 0 10px 30px rgba(180, 138, 62, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); color: #1a1407; box-shadow: 0 16px 44px rgba(217, 184, 115, 0.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--champ); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-3px); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
/* Readability scrim over the Earth's left edge, sits behind the text (z-index 3) */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(95deg, rgba(5,6,10,0.94) 0%, rgba(5,6,10,0.82) 34%, rgba(5,6,10,0.34) 52%, transparent 66%);
}
.hero-inner { position: relative; z-index: 3; padding-top: 80px; max-width: 760px; }
/* Title stays wide and may overlap the Earth; only the subtitle is kept narrow */
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: var(--muted); margin: 1.6rem 0 2.4rem; max-width: 32ch; text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Earth stage */
.earth-stage {
	position: absolute;
	right: -8%;
	top: 50%;
	transform: translateY(-50%);
	width: min(60vw, 720px);
	height: min(60vw, 720px);
	z-index: 1;
	pointer-events: none;
}
.earth-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Melt the rectangular footage into the space background */
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, rgba(0,0,0,0.55) 64%, transparent 74%);
	mask-image: radial-gradient(circle at 50% 50%, #000 48%, rgba(0,0,0,0.55) 64%, transparent 74%);
}
/* Atmospheric + gold orbital ring */
.earth-stage::before {
	content: "";
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	box-shadow: 0 0 70px 12px rgba(120, 160, 230, 0.22), 0 0 140px 30px rgba(217, 184, 115, 0.10);
}
.earth-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(217, 184, 115, 0.30);
	box-shadow: 0 0 40px rgba(217, 184, 115, 0.18), inset 0 0 60px rgba(217, 184, 115, 0.05);
	transform: rotate(-18deg) scaleY(.34);
	animation: ring-spin 36s linear infinite;
}
.earth-ring::after {
	content: "";
	position: absolute;
	top: 50%; left: -2px;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--gold-2);
	box-shadow: 0 0 16px 3px rgba(244, 228, 184, 0.8);
	transform: translateY(-50%);
}

@keyframes ring-spin { to { transform: rotate(342deg) scaleY(.34); } }

.scroll-cue {
	position: absolute;
	bottom: 34px; left: 50%;
	transform: translateX(-50%);
	width: 24px; height: 40px;
	border: 1px solid var(--line);
	border-radius: 14px;
	z-index: 3;
}
.scroll-cue span {
	position: absolute;
	top: 8px; left: 50%;
	width: 3px; height: 7px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: var(--gold);
	animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; z-index: 2; }
.section-eyebrow { text-align: inherit; }
.vision .lede { margin-bottom: 3rem; }

/* Stats */
.stats { display: flex; flex-wrap: nowrap; gap: clamp(0.75rem, 3vw, 3rem); }
.stat { flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: .2rem; flex-direction: row; flex-wrap: wrap; }
.stat-num, .stat-plus, .stat-suffix {
	font-family: "Syne", sans-serif;
	font-size: clamp(1.7rem, 6vw, 3.6rem);
	font-weight: 600;
	background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	line-height: 1;
}
.stat-label { width: 100%; color: var(--muted); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .5rem; }

/* Cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
	margin-top: 3.4rem;
}
.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 2.2rem 2rem;
	backdrop-filter: blur(8px);
	transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
	position: relative;
	overflow: hidden;
}
.card::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(217,184,115,0.10), transparent 40%);
	opacity: 0; transition: opacity .5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(217,184,115,0.5); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.card:hover::after { opacity: 1; }
.card-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; color: var(--gold); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1.4rem; }
.card-icon svg { width: 26px; height: 26px; }
.card-title { font-size: 1.6rem; color: var(--champ); margin-bottom: .7rem; }
.card-desc { color: var(--muted); font-size: .98rem; margin: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem 3.4rem; margin-top: 3.4rem; }
.principle { display: flex; gap: 1.4rem; align-items: flex-start; }
.principle-num {
	font-family: "Syne", sans-serif;
	font-size: 2.4rem; font-weight: 600;
	color: transparent;
	-webkit-text-stroke: 1px var(--gold);
	line-height: 1;
	min-width: 2.4rem;
}
.principle-title { font-size: 1.5rem; color: var(--champ); margin-bottom: .35rem; }
.principle-desc { color: var(--muted); margin: 0; font-size: .98rem; }

/* Statement band */
.statement { position: relative; }
.statement::before {
	content: "";
	position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 70px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.statement .lede { margin: 1.6rem auto 0; }
.statement-text {
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.12;
	color: var(--champ);
	max-width: 16ch;
	margin: 0 auto;
}

/* Contact */
.contact { padding-bottom: clamp(6rem, 12vw, 10rem); }
.contact .lede { margin: 0 auto 2.4rem; }
.contact .btn { margin-top: .5rem; }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(8rem, 14vw, 11rem); min-height: 80vh; }
.legal-body { color: var(--muted); margin-top: 2rem; }
.legal-body h2 { font-size: 1.8rem; color: var(--champ); margin: 2.4rem 0 .8rem; }
.legal-body h3 { font-size: 1.3rem; color: var(--champ); margin: 1.8rem 0 .6rem; }
.legal-body p, .legal-body li { font-size: 1rem; }
.legal-body a { text-decoration: underline; }
.legal-back { margin-top: 3rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; position: relative; z-index: 2; background: rgba(5,6,10,0.6); backdrop-filter: blur(8px); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: .4rem; max-width: 320px; }
.footer-brand .brand-name { color: var(--champ); }
.footer-tagline { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { color: var(--text); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom p { color: var(--muted); font-size: .82rem; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.card-grid { grid-template-columns: 1fr 1fr; }
	.earth-stage { opacity: .55; right: -20%; }
}

@media (max-width: 760px) {
	.container { padding: 0 22px; }
	.header-inner { height: 66px; }

	.nav-toggle { display: block; z-index: 60; }
	.nav-list {
		position: fixed; inset: 0; flex-direction: column; justify-content: center;
		gap: 2rem; background: rgba(5,6,10,0.97); backdrop-filter: blur(16px);
		transform: translateX(100%); transition: transform .5s var(--ease); margin: 0; padding: 0;
	}
	.nav-list.open { transform: none; }
	.nav-list a { font-size: 1.25rem; }

	/* Hero: Earth becomes a centered atmospheric backdrop behind the text */
	.hero { min-height: 100svh; text-align: center; }
	.hero-inner { padding-top: 110px; margin: 0 auto; }
	.hero-sub { margin-left: auto; margin-right: auto; }
	.hero-actions { justify-content: center; }
	.earth-stage {
		top: 50%; right: 50%; left: auto;
		transform: translate(50%, -50%);
		width: 118vw; height: 118vw; opacity: .32;
	}

	.card-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.4rem; }
	.principles { grid-template-columns: 1fr; gap: 2rem; margin-top: 2.4rem; }
	.stats { gap: 1.8rem 2.6rem; }

	.footer-inner { flex-direction: column; gap: 1.6rem; }
}

@media (max-width: 460px) {
	.container { padding: 0 18px; }
	.hero-title { font-size: clamp(2.4rem, 12vw, 3.2rem); }
	.section { padding: 4rem 0; }
	.hero-actions { flex-direction: column; gap: .75rem; }
	.hero-actions .btn { width: 100%; text-align: center; }
	.card { padding: 1.8rem 1.5rem; }
	.brand-name { font-size: 1.3rem; }
	.stats { gap: 0.6rem; }
	.stat-label { font-size: .62rem; letter-spacing: .08em; margin-top: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; }
}
