/* ==========================================================================
   Puzzle King Master - Official Website Stylesheet
   Theme: Royal White & Cream with Deep Purple & Gold Accents
   ========================================================================== */

:root {
  --bg-cream: #FFFDF9;
  --bg-cream-soft: #FFF7ED;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F8FAFC;
  --border-cream: #F1E5D5;
  --border-subtle: #E2E8F0;
  
  --brand-purple: #6A11CB;
  --brand-violet: #2575FC;
  --brand-gold: #F59E0B;
  --brand-gold-glow: #FBBF24;
  --brand-navy: #0B1E48;
  
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --success-green: #10B981;
  --shadow-sm: 0 2px 8px rgba(11, 30, 72, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 30, 72, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 30, 72, 0.12);
  --shadow-glow: 0 10px 30px rgba(106, 17, 203, 0.25);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--brand-purple);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--brand-violet);
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cream);
  padding: 16px 0;
  transition: all 0.3s ease;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-navy);
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  border: 2px solid var(--brand-gold);
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
}

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-violet));
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(106, 17, 203, 0.35);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEF3C7;
  color: #92400E;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid #FDE68A;
}

.hero-badge .badge-icon {
  width: 18px;
  height: 18px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 850;
  color: var(--brand-navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--brand-purple), #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

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

.playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #FFFFFF !important;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

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

.playstore-text-small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  display: block;
  line-height: 1;
}

.playstore-text-large {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--brand-navy) !important;
  border: 1px solid var(--border-cream);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: var(--bg-cream-soft);
  border-color: var(--brand-gold);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-cream);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-icon {
  color: var(--success-green);
  font-size: 1.1rem;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-logo-card {
  position: relative;
  width: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(106, 17, 203, 0.22), 0 0 0 4px var(--brand-gold);
  background: #110B29;
}

.hero-logo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-floating-chip {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-cream);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-navy);
}

.chip-1 {
  top: 10%;
  left: -20px;
}

.chip-2 {
  bottom: 12%;
  right: -20px;
}

/* ==========================================================================
   Highlights Bar (No Ads, Offline, Brain Workout)
   ========================================================================== */
.highlights-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
  padding: 32px 0;
}

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

.highlight-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.highlight-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-cream-soft);
  border: 1px solid var(--border-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand-purple);
  flex-shrink: 0;
}

.highlight-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 2px;
}

.highlight-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding: 90px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 850;
  color: var(--brand-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold);
}

.feature-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.feature-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.feature-card-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Showcase / Gameplay Preview
   ========================================================================== */
.showcase-section {
  background: var(--bg-cream-soft);
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
  padding: 90px 0;
}

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

.showcase-img-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.showcase-img-box img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  display: block;
}

.showcase-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-purple);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   No Ads Guarantee Banner
   ========================================================================== */
.ad-free-banner {
  margin: 60px 0;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.25);
}

.ad-free-content h3 {
  font-size: 2rem;
  font-weight: 850;
  margin-bottom: 10px;
}

.ad-free-content p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 600px;
}

.ad-free-badge {
  background: #FFFFFF;
  color: #065F46;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Legal & Policy Pages Layout
   ========================================================================== */
.legal-page {
  padding: 60px 0 100px;
}

.legal-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.legal-header-tag {
  color: var(--brand-purple);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.legal-header h1 {
  font-size: 2.6rem;
  font-weight: 850;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-cream);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--brand-navy);
  margin: 22px 0 10px;
}

.legal-body p {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-body ul, .legal-body ol {
  margin: 12px 0 20px 24px;
  color: var(--text-body);
}

.legal-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-callout {
  background: var(--bg-cream-soft);
  border-left: 4px solid var(--brand-purple);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin: 24px 0;
}

.legal-callout.success {
  background: #ECFDF5;
  border-left-color: var(--success-green);
}

.legal-callout h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #0B1120;
  color: #94A3B8;
  padding: 64px 0 32px;
  border-top: 1px solid #1E293B;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--brand-gold);
}

.footer-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid #1E293B;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid, .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .ad-free-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; /* Mobile menu can be simplified */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-header, .legal-body {
    padding: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

