:root {
  --bg: #ce7328;
  --brand-orange: #ff8c1a;
  --white: #ffffff;
  --text-dark: #1f2937;
  --border-light: #e5e7eb;
}

/* =========================
   Global Reset & Layout
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  
  /* Fade-in Logic */
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Initial load state */
body.preload {
  opacity: 0;
  pointer-events: none;
}

/* Page transition state */
body.fade-out {
  opacity: 0;
}

/* =========================
   Main Structure
========================= */
.page-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Space for fixed footer */
}

.stage {
  width: min(520px, 92vw);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

/* =========================
   Visual / Logo Area
========================= */
.visual {
  position: relative;
  width: clamp(180px, 42vw, 240px);
  aspect-ratio: 1 / 1;
  border-radius: 28%; /* Squircle shape */
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.visual-glow {
  position: absolute;
  inset: -20px;
  border-radius: 32%;
  background: radial-gradient(circle, rgba(255,140,26,0.6), transparent 70%);
  filter: blur(22px);
  opacity: 0.65;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 0;
}

.visual-media {
  background: var(--white);
  border-radius: 28%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.visual img {
  width: 85%;
  height: auto;
  pointer-events: none; /* Prevents dragging image */
}

/* Hover Effects */
.visual:hover .visual-glow {
  opacity: 1;
  transform: scale(1.15);
}

.visual:hover .visual-media {
  transform: scale(1.03);
}

/* =========================
   Hint Text
========================= */
.hint-wrap {
  height: 48px; /* Fixed height to prevent layout jumps */
  display: grid;
  place-items: center;
}

#lang-hint {
  font-size: 20px;
  font-weight: 500;
  color: #f5f5f5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#lang-hint.fade {
  opacity: 0;
  transform: translateY(6px);
}

/* =========================
   Language Grid
========================= */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Columns */
  gap: 14px;
  width: 100%;
  max-width: 380px;
}

.lang-grid button {
  background: linear-gradient(180deg, #f9fafb, #eef0f3);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.lang-grid button:hover {
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.4);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.lang-grid button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lang-grid img {
  width: 100%;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* =========================
   Footer (Merged)
========================= */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  
  /* Visual styling */
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px); /* Glassmorphism effect */
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 12px 24px;
  
  /* Layering */
  z-index: 40;
  width: auto;
  max-width: 90%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Placeholder for Social Buttons if needed later */
#social-placeholder {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.transition-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 999;
}

.transition-overlay.active {
  opacity: 1;
}
