@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --purple: #6B2FA0;
  --purple-light: #8B4FC4;
  --purple-soft: #F3EBFA;
  --gold: #C9A227;
  --gold-light: #E8C96A;
  --blue: #2D5F8A;
  --text: #1C1C28;
  --text-muted: #5A5A72;
  --white: #FFFFFF;
  --border: #E8E4F0;
  --shadow: 0 8px 32px rgba(107, 47, 160, 0.08);
  --shadow-lg: 0 20px 60px rgba(107, 47, 160, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Libre Baskerville', serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Animation */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatOrb 18s ease-in-out infinite;
}

.bg-orb--1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--purple-soft), transparent 70%);
  top: -120px;
  right: -80px;
  animation-delay: 0s;
}

.bg-orb--2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 70%);
  bottom: 10%;
  left: -100px;
  animation-delay: -6s;
}

.bg-orb--3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(45, 95, 138, 0.1), transparent 70%);
  top: 45%;
  right: 15%;
  animation-delay: -12s;
}

.bg-gem {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  opacity: 0.12;
  animation: driftGem 22s linear infinite;
}

.bg-gem--1 { background: var(--purple); top: 20%; left: 10%; animation-delay: 0s; }
.bg-gem--2 { background: var(--gold); top: 60%; left: 85%; animation-delay: -5s; width: 8px; height: 8px; }
.bg-gem--3 { background: var(--blue); top: 80%; left: 30%; animation-delay: -10s; width: 10px; height: 10px; }
.bg-gem--4 { background: var(--purple-light); top: 35%; left: 70%; animation-delay: -15s; width: 6px; height: 6px; }
.bg-gem--5 { background: var(--gold-light); top: 15%; left: 50%; animation-delay: -8s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes driftGem {
  0% { transform: rotate(45deg) translateY(0); opacity: 0.12; }
  50% { transform: rotate(45deg) translateY(-40px); opacity: 0.2; }
  100% { transform: rotate(45deg) translateY(0); opacity: 0.12; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

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

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

.logo img {
  width: 38px;
  height: 38px;
}

.logo:hover {
  color: var(--purple);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-main a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--purple-soft);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 20px;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeSlideUp 0.8s ease 0.1s both;
}

.hero h1 span {
  color: var(--purple);
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

.hero-visual {
  position: relative;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}

.hero-phone {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
}

.hero-phone img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  animation: bobFloat 4s ease-in-out infinite;
}

.hero-float--1 {
  background: var(--purple-soft);
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.hero-float--2 {
  background: rgba(201, 162, 39, 0.15);
  bottom: 20%;
  left: -8%;
  animation-delay: -2s;
}

@keyframes bobFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Game Description Block */
.game-overview {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-soft) 50%, var(--white) 100%);
}

.overview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--gold), var(--blue));
}

.overview-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--purple);
}

.overview-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.overview-card p:last-child {
  margin-bottom: 0;
}

/* Play Button */
.play-cta {
  display: inline-block;
  margin-top: 8px;
  transition: transform var(--transition), filter var(--transition);
}

.play-cta:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05);
}

.play-cta img {
  height: 54px;
  width: auto;
}

.play-cta--center {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.play-cta--lg img {
  height: 60px;
}

/* Section Common */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* Screenshots */
.screenshots-section {
  background: var(--purple-soft);
  padding: 80px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--white);
  transition: transform var(--transition);
  cursor: pointer;
}

.screenshot-item:hover {
  transform: scale(1.04) translateY(-4px);
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* Events Strip */
.events-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.event-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
}

.event-pill:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.event-pill .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.event-pill h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple);
}

/* Journey Timeline */
.journey-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  z-index: 0;
}

.journey-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.journey-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
  font-size: 1.1rem;
}

.journey-step h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.journey-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Castle Showcase */
.castle-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.castle-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.castle-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.castle-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 20px;
}

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

.castle-list {
  list-style: none;
  margin: 24px 0;
}

.castle-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.castle-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 12px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
  width: 100%;
  max-width: 100%;
}

.stat-box {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}

.stat-box .number {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--purple);
  line-height: 1.1;
  margin-bottom: 8px;
  word-break: break-word;
}

.stat-box .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--purple) 0%, #4A1F7A 100%);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: patternShift 30s linear infinite;
}

@keyframes patternShift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1.05rem;
  position: relative;
}

.cta-banner .play-cta {
  position: relative;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Content Page */
.content-page {
  padding: 60px 0 80px;
}

.content-page .prose {
  max-width: 780px;
}

.content-page .prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--purple);
}

.content-page .prose h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.content-page .prose p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.content-page .prose ul,
.content-page .prose ol {
  color: var(--text-muted);
  margin: 0 0 16px 24px;
}

.content-page .prose li {
  margin-bottom: 8px;
}

.content-page .prose a {
  text-decoration: underline;
}

/* Cards Grid (inner pages) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--purple-light);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--purple);
}

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

/* Tips List */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.tip-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--purple-soft);
  border-radius: var(--radius);
  align-items: flex-start;
}

.tip-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.tip-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.tip-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

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

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}

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

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

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

.footer-legal a:hover {
  color: var(--purple);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-phone { max-width: 260px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .events-strip { grid-template-columns: repeat(3, 1fr); }
  .journey-timeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .journey-timeline::before { display: none; }
  .castle-showcase { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-box { padding: 20px 12px; }
  .stat-box .label { font-size: 0.78rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-main {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-main.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-main a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav-toggle { display: flex; }

  .overview-card { padding: 28px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .events-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-box { padding: 16px 8px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .cta-banner { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .screenshots-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .events-strip { grid-template-columns: 1fr; }
  .journey-timeline { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
