:root {
	--color-bg: #0a0a0a;
	--color-text: #ffffff;
	--color-text-muted: rgba(255, 255, 255, 0.6);
	--color-border: rgba(255, 255, 255, 0.15);

	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-serif: "Playfair Display", Georgia, serif;
	--font-cursive: "Molle", cursive;
	--font-fredoka: "Fredoka", sans-serif;

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2rem;
	--space-xl: 3rem;

	--container-padding: clamp(1.25rem, 5vw, 4rem);
}

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

html {
	height: 100%;
}

body {
	min-height: 100%;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-text);
	background-color: var(--color-bg);
	overflow: hidden; /* No scroll to keep it app-like */
	-webkit-font-smoothing: antialiased;
    touch-action: none;
}

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

ul {
	list-style: none;
}

.webgl {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.page {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100vh;
	height: 100dvh;
	padding: var(--space-lg) var(--container-padding);
    pointer-events: none;
}

.page > * {
    pointer-events: auto;
}

.header {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.logo {
	display: flex;
    flex-direction: column; /* Icon above text */
	align-items: center;
	gap: var(--space-sm);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: -0.01em;
    pointer-events: none;
}

.logo__icon {
	width: 64px;
	height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    border: 1px solid var(--color-border);
}

.logo__text {
	font-family: var(--font-cursive);
	font-style: italic;
	font-weight: 400;
	font-size: 1.85rem;
	letter-spacing: 0.02em;
	transform: translateY(-0.1rem); /* Fine-tune baseline alignment for Molle */
}

.logo__text span {
	font-family: var(--font-fredoka);
	font-style: normal;
	font-weight: 600;
	font-size: 0.85em; /* Incremented size as requested */
	color: #ffffff;
	letter-spacing: -0.01em;
	transform: translateY(0.1rem);
}

.main {
    flex: 1;
}

.footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding-bottom: var(--space-md);
	z-index: 10;
}

.footer__links {
	display: flex;
	gap: var(--space-lg);
	justify-content: center;
}

/* Beautiful Download Button Micro-Interactions */
.download-btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 2rem;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	border-radius: 999px;
	color: var(--color-text);
	text-decoration: none;
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 1rem;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn::before {
	content: '';
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.download-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
}

.download-btn:hover::before {
	transform: translateX(100%);
}

@property --border-angle {
	syntax: '<angle>';
	inherits: true;
	initial-value: 0turn;
}

@keyframes spin-border {
	to {
		--border-angle: 1turn;
	}
}

.download-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: inherit;
	background: conic-gradient(from var(--border-angle), #ffaa00, #ff6b00, #ffcc00, #ff6b00, #ffaa00);
	filter: grayscale(1) opacity(0.3);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	transition: filter 0.4s ease;
	pointer-events: none;
	animation: spin-border 3s linear infinite;
}

.download-btn:hover::after {
	filter: grayscale(0) opacity(1);
}

.download-btn:active {
	transform: translateY(0) scale(0.98);
}

.download-btn__icon {
	transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.download-btn:hover .download-btn__icon {
	transform: translateY(2px);
}

.nav__link {
	position: relative;
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	transition: color 0.2s ease;
}

.nav__link::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--color-text);
	transition: width 0.2s ease;
}

.nav__link:hover {
	color: var(--color-text);
}

.nav__link:hover::after {
	width: 100%;
}

/* Secondary Pages Specific (Terms/Privacy) */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 4rem 1.5rem;
  pointer-events: auto;
  overflow-y: auto;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.back-btn:hover { color: var(--color-text); }
.content-title { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.content-body { color: var(--color-text-muted); line-height: 1.7; font-size: 1rem; }
.content-body p { margin-bottom: 1.5rem; }
.content-body h2 { color: var(--color-text); margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; font-weight: 600; }

/* Override global scroll lock for legal pages */
.legal-body {
  overflow: auto;
  touch-action: auto;
}
