/* ============================================
   Xevigo — Global Stylesheet
   Light, modern, friendly — for casual games
   ============================================ */

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #1c2333;
  --ink-soft: #5a6478;
  --ink-faint: #8b93a7;
  --brand: #5b6cff;
  --brand-dark: #4353e8;
  --accent: #ff7a59;
  --accent-2: #2ec5b6;
  --accent-3: #ffc94d;
  --line: #e6eaf2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(28, 35, 51, 0.08);
  --shadow-lg: 0 20px 60px rgba(28, 35, 51, 0.12);
  --max-w: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

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

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: #303952; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
}

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

/* App Store badge (placeholder) */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #fff !important;
  border-radius: 14px;
  padding: 12px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.appstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.appstore-btn .apple-icon { width: 26px; height: 26px; fill: #fff; }
.appstore-btn .btn-text { line-height: 1.2; text-align: left; }
.appstore-btn .btn-text small {
  display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.85;
}
.appstore-btn .btn-text strong { font-size: 1.08rem; font-weight: 600; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.btn-secondary:hover { transform: translateY(-2px); color: var(--brand); }

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Floating decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}
.blob-1 { width: 380px; height: 380px; background: var(--brand); top: -120px; right: -80px; }
.blob-2 { width: 300px; height: 300px; background: var(--accent-2); bottom: -140px; left: -100px; }
.blob-3 { width: 220px; height: 220px; background: var(--accent-3); top: 40%; left: 45%; opacity: 0.22; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }

.phone {
  width: 270px;
  height: 550px;
  background: #1b1f2e;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, 0.6) inset;
  transform: rotate(3deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(160deg, #6d7bff 0%, #46c8bb 55%, #ffd166 130%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #1b1f2e;
  border-radius: 999px;
}

.app-icon-big {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.app-icon-big svg { width: 58px; height: 58px; }

.phone-screen .app-name {
  color: #fff; font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.phone-screen .app-tag {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.float-chip {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floaty 4s ease-in-out infinite;
}
.float-chip .emoji { font-size: 1.1rem; }
.chip-1 { top: 12%; left: -6%; animation-delay: 0s; }
.chip-2 { bottom: 18%; right: -8%; animation-delay: 1.6s; }

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

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.fi-1 { background: #eef0ff; }
.fi-2 { background: #e5f8f6; }
.fi-3 { background: #fff2ec; }
.fi-4 { background: #fff7e2; }

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* About split */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.about-text p { color: var(--ink-soft); margin-bottom: 14px; }

.about-list { list-style: none; margin-top: 20px; }
.about-list li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 12px; color: var(--ink);
  font-weight: 500;
}
.about-list .check {
  flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  margin-top: 3px;
}

.about-visual {
  background: linear-gradient(150deg, #eef0ff 0%, #e5f8f6 100%);
  border-radius: 28px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .num {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--brand), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card .lbl { font-size: 0.82rem; color: var(--ink-faint); margin-top: 4px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent-2) 100%);
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-band p { opacity: 0.92; margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .appstore-btn { background: #111; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  margin-top: 84px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-links a:hover { color: var(--ink); }

.footer-copy { color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Legal / content pages ---------- */
.page-hero {
  background: linear-gradient(160deg, #eef0ff 0%, #e5f8f6 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.page-hero .meta { color: var(--ink-soft); font-size: 0.95rem; }

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.content h2:first-child { margin-top: 0; }

.content h3 { font-size: 1.08rem; font-weight: 700; margin: 26px 0 10px; }

.content p { color: var(--ink-soft); margin-bottom: 14px; }

.content ul, .content ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.content li { margin-bottom: 8px; }

.content strong { color: var(--ink); }

.notice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.notice-card p { margin: 0; }

/* Support cards */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0 8px;
}

.support-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.support-card .feature-icon { margin-bottom: 14px; }
.support-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.support-card p { font-size: 0.93rem; margin-bottom: 10px; }
.support-card a.card-link { font-weight: 600; font-size: 0.93rem; }

/* FAQ */
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 12px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .phone-wrap { margin-top: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .nav-links .hide-mobile { display: none; }
  .hero { padding: 56px 0 64px; }
  .features-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; padding: 28px; }
  .cta-band { padding: 44px 24px; }
  .phone { width: 235px; height: 480px; }
  .float-chip { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
