:root {
	--ink: #0a171c;
	--sea: #123039;
	--deep: #061014;
	--mist: #9bb4bc;
	--foam: #d7e4e6;
	--gold: #c9a24a;
	--gold-soft: #e2c278;
	--parchment: #e8dcc8;
	--rule: rgba(201, 162, 74, 0.28);
	--font-brand: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
	--font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
	color-scheme: dark;
}

body {
	margin: 0;
	min-height: 100dvh;
	font-family: var(--font-body);
	font-weight: 400;
	color: var(--foam);
	background: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	color: var(--gold-soft);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--parchment);
}

/* ——— Language (query ?lang=id|en) ——— */

html[data-lang="id"] [data-i18n="en"],
html[data-lang="en"] [data-i18n="id"] {
	display: none !important;
}

.lang-switch {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 1.1rem clamp(1.25rem, 5vw, 2.5rem) 0;
	justify-self: end;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.lang-switch--inline {
	padding: 0;
	justify-self: auto;
}

.lang-switch__sep {
	color: var(--mist);
	opacity: 0.4;
	user-select: none;
}

.lang-switch__btn {
	appearance: none;
	margin: 0;
	padding: 0.2rem 0.35rem;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: var(--mist);
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.08em;
	cursor: pointer;
	text-underline-offset: 0.18em;
}

.lang-switch__btn:hover {
	color: var(--parchment);
}

.lang-switch__btn:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.lang-switch__btn.is-active,
.lang-switch__btn[aria-pressed="true"] {
	color: var(--gold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.doc-top__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem 1rem;
}

/* ——— Landing ——— */

.page-home {
	display: grid;
	grid-template-rows: auto 1fr auto;
	position: relative;
	overflow: hidden;
}

.sky {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 90% 55% at 50% -10%, rgba(42, 92, 108, 0.55), transparent 70%),
		radial-gradient(ellipse 60% 40% at 80% 30%, rgba(201, 162, 74, 0.08), transparent 55%),
		linear-gradient(180deg, #0e242c 0%, var(--ink) 48%, var(--deep) 100%);
}

.sky__glow {
	position: absolute;
	left: 50%;
	top: 18%;
	width: min(42vw, 280px);
	height: min(42vw, 280px);
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(226, 194, 120, 0.22) 0%, rgba(201, 162, 74, 0.06) 40%, transparent 70%);
	animation: breathe 7s ease-in-out infinite;
}

.sky__haze {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 55%, rgba(6, 16, 20, 0.85) 100%),
		repeating-linear-gradient(
			-12deg,
			transparent 0 11px,
			rgba(155, 180, 188, 0.018) 11px 12px
		);
	opacity: 0.9;
	pointer-events: none;
}

.sky__waves {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: min(28vh, 220px);
	opacity: 0.55;
}

.wave {
	fill: #0f2a33;
}

.wave--a {
	fill: #163843;
	animation: drift 14s ease-in-out infinite;
}

.wave--b {
	fill: #102830;
	animation: drift 18s ease-in-out infinite reverse;
}

.wave--c {
	fill: #0a1c22;
	animation: drift 22s ease-in-out infinite;
}

.hero {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 5vw, 2.5rem) 2rem;
	max-width: 40rem;
	margin: 0 auto;
	animation: rise 1.1s ease-out both;
}

.eyebrow {
	margin: 0 0 1.1rem;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mist);
}

.brand {
	margin: 0;
	font-family: var(--font-brand);
	font-optical-sizing: auto;
	font-weight: 650;
	font-size: clamp(2.75rem, 11vw, 5.25rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var(--parchment);
	text-shadow: 0 0 40px rgba(201, 162, 74, 0.18);
}

.line-id,
.line-en {
	margin: 1.35rem 0 0;
	max-width: 28rem;
	font-size: clamp(1.05rem, 2.6vw, 1.2rem);
	line-height: 1.45;
	color: var(--foam);
}

.soon {
	margin: 1.75rem 0 0;
	font-family: var(--font-brand);
	font-weight: 500;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	color: var(--gold);
}

.site-foot {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.45rem 0.65rem;
	padding: 1.25rem 1.25rem 1.75rem;
	font-size: 0.82rem;
	color: var(--mist);
}

.site-foot .sep {
	opacity: 0.45;
}

.site-foot--doc {
	padding-bottom: 2.5rem;
}

/* ——— Privacy ——— */

.page-privacy {
	background:
		radial-gradient(ellipse 80% 40% at 50% 0%, rgba(42, 92, 108, 0.28), transparent 60%),
		linear-gradient(180deg, #0e242c 0%, var(--ink) 35%, var(--deep) 100%);
}

.doc-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 1.35rem clamp(1.25rem, 5vw, 2.5rem) 0;
	max-width: 42rem;
	margin: 0 auto;
}

.doc-brand {
	font-family: var(--font-brand);
	font-weight: 650;
	font-size: 1.15rem;
	color: var(--parchment);
	text-decoration: none;
}

.doc-brand:hover {
	color: var(--gold-soft);
}

.doc-back {
	font-size: 0.85rem;
	color: var(--mist);
	text-decoration: none;
}

.doc-back:hover {
	color: var(--foam);
}

.doc {
	max-width: 42rem;
	margin: 0 auto;
	padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 1rem;
	animation: rise 0.7s ease-out both;
}

.doc h1 {
	margin: 0;
	font-family: var(--font-brand);
	font-weight: 650;
	font-size: clamp(1.75rem, 5vw, 2.35rem);
	line-height: 1.15;
	color: var(--parchment);
}

.doc-meta {
	margin: 0.65rem 0 2rem;
	font-size: 0.85rem;
	color: var(--mist);
}

.doc h2 {
	margin: 0 0 0.85rem;
	font-family: var(--font-brand);
	font-weight: 650;
	font-size: 1.35rem;
	color: var(--gold-soft);
}

.doc h3 {
	margin: 1.35rem 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--parchment);
}

.doc p,
.doc li {
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--foam);
}

.doc p {
	margin: 0 0 0.85rem;
}

.doc ul {
	margin: 0 0 0.85rem;
	padding-left: 1.15rem;
}

.doc li + li {
	margin-top: 0.45rem;
}

.doc-rule {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 2.25rem 0;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes breathe {
	0%,
	100% {
		opacity: 0.75;
		transform: translateX(-50%) scale(1);
	}
	50% {
		opacity: 1;
		transform: translateX(-50%) scale(1.06);
	}
}

@keyframes drift {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(-2%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero,
	.doc,
	.sky__glow,
	.wave {
		animation: none;
	}
}
