@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #090B15;
  --bg-card: rgba(22, 27, 51, 0.65);
  --bg-card-hover: rgba(30, 37, 70, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(77, 240, 255, 0.3);
  
  --primary: #4DF0FF;
  --primary-glow: rgba(77, 240, 255, 0.4);
  --secondary: #B388FF;
  --sakura: #FF7EB3;
  --sakura-glow: rgba(255, 126, 179, 0.35);
  --gold: #FFD166;
  --emerald: #06D6A0;
  
  --text-main: #F4F6FD;
  --text-muted: #9BA4C5;
  --text-dim: #646E96;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glows & Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-aurora {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(179, 136, 255, 0.15) 0%, rgba(77, 240, 255, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-aurora-bottom {
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 126, 179, 0.12) 0%, transparent 65%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 11, 21, 0.75);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: var(--transition-smooth);
}

.brand:hover .brand-icon {
  transform: scale(1.06) rotate(-3deg);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary), #00C6FF);
  color: #060B19;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(77, 240, 255, 0.35);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(77, 240, 255, 0.55);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 0.88rem;
  color: var(--sakura);
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--sakura);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--sakura);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--primary) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #1C233F, #141A33);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn-playstore:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(77, 240, 255, 0.25);
}

.btn-playstore svg {
  width: 32px;
  height: 32px;
}

.playstore-meta {
  text-align: left;
  line-height: 1.25;
}

.playstore-meta small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.playstore-meta strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Interactive Teaser Game Mockup */
.interactive-showcase {
  max-width: 860px;
  margin: 0 auto 100px;
  position: relative;
}

.showcase-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(77, 240, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-glass);
}

.showcase-status {
  display: flex;
  align-items: center;
  gap: 20px;
}

.badge-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(77, 240, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(77, 240, 255, 0.25);
  text-transform: uppercase;
}

.stats-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stats-pill span {
  color: var(--gold);
  font-weight: 700;
}

/* Mini puzzle board */
.mini-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 380px;
  margin: 0 auto 24px;
  padding: 16px;
  background: rgba(10, 13, 26, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.puzzle-cell {
  aspect-ratio: 1;
  background: rgba(25, 32, 62, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  user-select: none;
}

.puzzle-cell:hover:not(.cleared):not(.empty) {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.puzzle-cell.cleared {
  opacity: 0.15;
  transform: scale(0.85);
  cursor: default;
  pointer-events: none;
}

.puzzle-cell.blocked {
  animation: shake 0.4s ease;
  border-color: #FF5252 !important;
  box-shadow: 0 0 15px rgba(255, 82, 82, 0.5) !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.arrow-icon {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary);
  transition: var(--transition-smooth);
}

.puzzle-instruction {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
}

.puzzle-instruction span {
  color: var(--primary);
  font-weight: 600;
}

/* Features Grid */
.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 100px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(77, 240, 255, 0.1);
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.feature-icon-cyan {
  background: rgba(77, 240, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(77, 240, 255, 0.25);
}

.feature-icon-sakura {
  background: rgba(255, 126, 179, 0.12);
  color: var(--sakura);
  border: 1px solid rgba(255, 126, 179, 0.25);
}

.feature-icon-purple {
  background: rgba(179, 136, 255, 0.12);
  color: var(--secondary);
  border: 1px solid rgba(179, 136, 255, 0.25);
}

.feature-icon-gold {
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.25);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Screenshots / Visual Highlight Section */
.game-highlight {
  background: linear-gradient(180deg, rgba(22, 27, 51, 0.3) 0%, rgba(9, 11, 21, 0.8) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin-bottom: 100px;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.highlight-content {
  flex: 1;
  min-width: 300px;
}

.highlight-preview {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.splash-mockup {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(179, 136, 255, 0.2);
  transition: var(--transition-smooth);
}

.splash-mockup:hover {
  transform: scale(1.02);
}

/* Policy Content Pages */
.policy-page {
  padding: 60px 0 100px;
  max-width: 860px;
  margin: 0 auto;
}

.policy-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.policy-header h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.policy-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.policy-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 4px;
}

.policy-body p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1rem;
}

.policy-body ul {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 10px;
}

.policy-body ul li {
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  padding-left: 24px;
}

.policy-body ul li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.policy-card strong {
  color: #fff;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 40px;
  background: rgba(7, 9, 18, 0.95);
  margin-top: 60px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 12px;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}

.footer-links-col ul {
  list-style: none;
}

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

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-playstore, .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .game-highlight {
    padding: 30px 20px;
  }
}
