/* 
=========================================================
1. VARIABLES
========================================================= 
*/
:root {
  /* Colors */
  --bg-base: #061a17;
  --bg-sec: #0c2a26;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  
  --primary: #14b8a6;
  --secondary: #22d3ee;
  --highlight: #a3e635;
  
  --text-main: #ecfeff;
  --text-muted: #a7f3d0;

  /* Layout */
  --max-width: 1320px;
  
  /* Spacing */
  --space-d: 110px;
  --space-t: 80px;
  --space-m: 60px;
  
  --pad-d: 32px;
  --pad-t: 24px;
  --pad-m: 16px;

  /* Components */
  --radius: 20px;
  --radius-btn: 16px;
  
  /* Transitions */
  --trans-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 
=========================================================
2. RESET & GLOBAL
========================================================= 
*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Medical Glow Background */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  animation: ambientFloat 20s infinite alternate ease-in-out;
}

body::before {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--primary);
}

body::after {
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: var(--secondary);
  animation-delay: -10s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans-smooth);
}

ul {
  list-style: none;
}

/* 
=========================================================
3. LAYOUT
========================================================= 
*/
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-m);
}

section {
  padding: var(--space-m) 0;
  position: relative;
}

@media (min-width: 768px) {
  .container { padding: 0 var(--pad-t); }
  section { padding: var(--space-t) 0; }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--pad-d); }
  section { padding: var(--space-d) 0; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* 
=========================================================
4. COMPONENTS
========================================================= 
*/

/* --- Header / Navigation --- */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 26, 23, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
  transition: var(--trans-smooth);
}

.glass-header.scrolled {
  background: rgba(6, 26, 23, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.logo svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.5));
}

.main-nav {
  display: none;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--trans-smooth);
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  padding: 8px;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    gap: 40px;
    align-items: center;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 100%;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(6, 26, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  transition: var(--trans-smooth);
  z-index: 999;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu a {
  font-size: 1.5rem;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-base);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.2);
  transition: var(--trans-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(20, 184, 166, 0.3);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--trans-smooth);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* --- Typography --- */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-main);
}

.section-title span {
  color: var(--primary);
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

.disclaimer-text {
  font-size: 0.85rem;
  color: rgba(167, 243, 208, 0.6);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  height: 500px;
  border-radius: var(--radius);
  background: var(--bg-sec);
  overflow: hidden;
  border: 1px solid rgba(20, 184, 166, 0.1);
  box-shadow: 0 0 40px rgba(6, 26, 23, 0.8);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: luminosity;
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 26, 23, 0.8), rgba(20, 184, 166, 0.1));
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(6, 26, 23, 0.8);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--highlight);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--highlight);
  animation: pulse 2s infinite;
}

/* --- Game Container --- */
.game-wrapper {
  background: var(--bg-sec);
  padding: 8px;
  border-radius: calc(var(--radius) + 8px);
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--primary), transparent, var(--secondary));
  border-radius: calc(var(--radius) + 10px);
  z-index: -1;
  opacity: 0.3;
  animation: borderGlow 4s infinite alternate;
}

.game-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --- Cards / Glass Panels --- */
.glass-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--trans-smooth);
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: rgba(20, 184, 166, 0.2);
  transform: translateY(-5px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.glass-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-sec);
  border-top: 1px solid rgba(20, 184, 166, 0.1);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 400px;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(167, 243, 208, 0.5);
  font-size: 0.85rem;
}

/* --- Content Pages (Legal/About) --- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(6, 26, 23, 0), var(--bg-sec));
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  color: var(--secondary);
  margin: 32px 0 16px;
  font-size: 1.5rem;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.content-block ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.content-block li {
  color: var(--text-muted);
  margin-bottom: 8px;
  list-style-type: disc;
}

/* Form Styles */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 16px;
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  transition: var(--trans-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(20, 184, 166, 0.05);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* 
=========================================================
5. ANIMATIONS
========================================================= 
*/
@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

@keyframes borderGlow {
  0% { opacity: 0.3; filter: blur(8px); }
  100% { opacity: 0.6; filter: blur(12px); }
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

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

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }