/* =========================================================
   SPECTRA BETTA — GLOBAL.CSS
   Design tokens (CSS variables), reset, base typography,
   container, dan utility dasar yang dipakai di semua section.
   ========================================================= */

:root {
	/* Background */
	--sb-bg: #050505;
	--sb-bg-soft: #080808;
	--sb-bg-softer: #0d0d0d;

	/* Secondary background / card */
	--sb-card: #111111;
	--sb-card-alt: #151515;

	/* Brand colors */
	--sb-red: #ff2d2d;
	--sb-red-bright: #ff3b30;
	--sb-yellow: #ffe600;

	/* Text */
	--sb-white: #ffffff;
	--sb-text-secondary: #b5b5b5;
	--sb-muted: #777777;

	/* Border & glow */
	--sb-border: rgba(255, 255, 255, 0.12);
	--sb-glow: rgba(255, 0, 0, 0.25);

	/* Typography */
	--sb-font: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;

	/* Layout */
	--sb-container: 1200px;
	--sb-gutter: 72px;

	/* Radius & motion */
	--sb-radius-sm: 4px;
	--sb-radius-md: 8px;
	--sb-radius-lg: 12px;
	--sb-transition: 300ms ease;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--sb-bg);
	color: var(--sb-white);
	font-family: var(--sb-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--sb-font);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--sb-white);
}

p {
	margin: 0;
	color: var(--sb-text-secondary);
}

a {
	color: inherit;
	text-decoration: none;
}

ul, ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

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

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
	color: inherit;
}

input, textarea, select {
	font-family: inherit;
}

/* ---------------------------------------------------------
   ACCESSIBILITY: focus state harus terlihat jelas
   --------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--sb-yellow);
	outline-offset: 2px;
}

/* ---------------------------------------------------------
   LAYOUT CONTAINER
   --------------------------------------------------------- */
.sb-container {
	width: min(var(--sb-container), calc(100% - var(--sb-gutter)));
	margin-inline: auto;
}

.sb-section {
	position: relative;
	width: 100%;
}

/* ---------------------------------------------------------
   REVEAL-ON-SCROLL (utility dipakai banyak section)
   --------------------------------------------------------- */
[data-sb-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-sb-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-sb-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------------------------------------------------------
   PLACEHOLDER PHASE 1 (akan dihapus otomatis begitu section
   asli ditambahkan di front-page.php)
   --------------------------------------------------------- */
.spectra-phase-placeholder {
	padding: 100px 0;
	text-align: center;
	color: var(--sb-muted);
	font-size: 15px;
}
