/* ==========================================================================
   Tile Match: Triple Puzzle - Premium Landing Page Styles
   Palette: Forest Emerald, Lush Lime, Warm Cream, Sunlit Gold, Glass Dark
   ========================================================================== */

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

:root {
  --bg-dark: #092113;
  --bg-deep: #0e301d;
  --bg-card: rgba(18, 54, 33, 0.72);
  --bg-card-hover: rgba(26, 74, 46, 0.85);
  --bg-glass: rgba(10, 37, 21, 0.82);
  
  --primary: #2ecc71;
  --primary-glow: #58e591;
  --accent-gold: #f5b041;
  --accent-gold-light: #ffeaa7;
  --accent-lotus: #ff6584;
  --accent-lotus-light: #ffb8c6;
  
  --text-main: #fffdf7;
  --text-cream: #faedd0;
  --text-muted: #a3c9b1;
  --text-dark: #1f3d2b;
  
  --border-light: rgba(255, 234, 167, 0.18);
  --border-glow: rgba(245, 176, 65, 0.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 30px rgba(245, 176, 65, 0.28);
  --shadow-phone: 0 20px 60px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(46, 204, 113, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(245, 176, 65, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(88, 229, 145, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255, 101, 132, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--accent-gold);
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05) rotate(2deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff9eb;
  letter-spacing: 0.5px;
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

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

.nav-link {
  color: var(--text-cream);
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

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

.nav-cta {
  background: linear-gradient(135deg, #27ae60, #1e824c);
  color: #fff9ea !important;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 140px;
  padding-bottom: 90px;
  position: relative;
}

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

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 176, 65, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  color: #fffaf0;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #fff7dc 20%, #f9cf60 60%, #e67e22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.tag-pill {
  background: rgba(14, 48, 29, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-cream);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f5b041, #d68910);
  color: #1a3221;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-gold);
  border: 1.5px solid #fff2cb;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  color: #122417;
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(245, 176, 65, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-cream);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 26px;
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--border-light);
  padding-top: 26px;
  max-width: 520px;
}

.stat-item h4 {
  font-size: 1.7rem;
  color: var(--accent-gold);
  font-weight: 900;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Visual / Phone Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone-mockup {
  position: relative;
  width: 290px;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(145deg, #2a573b, #0f2d1b);
  box-shadow: var(--shadow-phone), 0 0 50px rgba(46, 204, 113, 0.25);
  border: 3px solid rgba(245, 176, 65, 0.5);
  animation: floatBreathing 6s ease-in-out infinite;
}

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

.phone-screen {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #000;
  display: block;
}

.phone-screen img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.floating-lotus-tile {
  position: absolute;
  width: 95px;
  height: 95px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent-gold);
  background: #fff;
  z-index: 2;
  overflow: hidden;
  animation: floatSlow 5s ease-in-out infinite alternate;
}

.floating-lotus-tile.top-left {
  top: -24px;
  left: -28px;
}

.floating-lotus-tile.bottom-right {
  bottom: 24px;
  right: -24px;
  animation-delay: -2.5s;
}

.floating-lotus-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes floatSlow {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-15px) rotate(4deg); }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  color: #fff9ea;
  margin-bottom: 14px;
}

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

/* ==========================================================================
   Feature Graphic Banner Card
   ========================================================================== */
.banner-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 70px;
  position: relative;
}

.banner-img-wrap {
  width: 100%;
  height: auto;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}

.banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.banner-feature-card:hover .banner-img-wrap img {
  transform: scale(1.02);
}

.banner-content {
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(14, 48, 29, 0.95);
}

.banner-content-text h3 {
  font-size: 1.5rem;
  color: #fff7e4;
  margin-bottom: 6px;
}

.banner-content-text p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.feature-icon-bubble {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 176, 65, 0.25), rgba(46, 204, 113, 0.25));
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.35rem;
  color: #fff9ea;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feature-mini-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  background: rgba(245, 176, 65, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
}

/* ==========================================================================
   Four Scenic Themes Section
   ========================================================================== */
.themes-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.theme-card {
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
}

.theme-alpine::before { background: #087FA7; }
.theme-garden::before { background: #198A58; }
.theme-sunset::before { background: #B06C26; }
.theme-lavender::before { background: #7050B0; }

.theme-card h4 {
  font-size: 1.18rem;
  color: #ffffff;
  margin-bottom: 6px;
}

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

/* ==========================================================================
   Screenshots Gallery
   ========================================================================== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.screenshot-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: #000;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  display: block;
}

.screenshot-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 176, 65, 0.3);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(7, 26, 15, 0.95));
  padding: 24px 16px 14px;
  text-align: center;
  color: #fffaf0;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 2px solid var(--accent-gold);
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

/* ==========================================================================
   Google Play Copy-Paste Listing Tool Section
   ========================================================================== */
.listing-section {
  background: linear-gradient(180deg, rgba(14, 48, 29, 0.6) 0%, rgba(9, 33, 19, 0.9) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.listing-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-card);
}

.listing-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.listing-badge {
  background: rgba(46, 204, 113, 0.18);
  color: var(--primary-glow);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid var(--primary);
}

.copy-field-card {
  background: rgba(7, 24, 14, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
  position: relative;
}

.copy-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.copy-field-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #27ae60, #1e824c);
  color: #fff9ea;
  border: 1px solid var(--accent-gold);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: var(--accent-gold);
  color: #122417;
}

.copy-field-content {
  font-family: monospace;
  font-size: 0.92rem;
  color: #eef7f0;
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Server Config & API Hub Section
   ========================================================================== */
.api-hub-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(88, 229, 145, 0.3);
  border-radius: var(--radius-xl);
  padding: 34px;
  margin-top: 40px;
}

.api-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.api-link-box {
  background: rgba(8, 28, 17, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-link-box h4 {
  color: #fff8e8;
  font-size: 1.05rem;
}

.api-link-box code {
  color: var(--accent-gold-light);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  word-break: break-all;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #05140b;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 14px;
  max-width: 360px;
}

.footer-col h4 {
  color: #fff9ea;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

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

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

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

.footer-col ul li a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent-gold);
  color: #11281a;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow-card);
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle, .hero-tags, .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    gap: 18px;
  }
  
  .listing-box {
    padding: 20px;
  }
}
