/* ============================================================
   Pocket Pixel — Official Website
   Theme: Yellow (#FFC400) + Blue (#1D4ED8 / #0B1F4B)
   ============================================================ */

:root {
  --blue-900: #0b1f4b;
  --blue-800: #102a63;
  --blue-700: #16398a;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;

  --yellow: #ffc400;
  --yellow-soft: #ffe066;
  --yellow-pale: #fff7d6;

  --ink: #0f1c3d;
  --muted: #51607f;
  --line: #e4e9f4;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -18px rgba(11, 31, 75, 0.35);
  --shadow-sm: 0 8px 24px -10px rgba(11, 31, 75, 0.28);
  --font-head: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-yellow {
  background: linear-gradient(180deg, var(--yellow-soft), var(--yellow));
  color: #3a2a00;
  box-shadow: 0 10px 24px -10px rgba(255, 196, 0, .9);
}
.btn-yellow:hover { box-shadow: 0 16px 30px -10px rgba(255, 196, 0, .95); transform: translateY(-2px); }

.btn-blue {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .8);
}
.btn-blue:hover { box-shadow: 0 16px 30px -10px rgba(37, 99, 235, .85); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-icon { font-size: .85em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 75, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 2px solid var(--yellow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--yellow); background: #fff; }
.brand-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: #fff; }
.brand-name em { font-style: normal; color: var(--yellow); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  color: #cdd8f2;
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 60%, #2451c9 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .08) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 84px;
}
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: #3a2a00;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--yellow); }
.hero-text { font-size: 1.1rem; color: #d5e0f8; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta-chip {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .88rem;
  color: #dfe8fb;
}
.meta-chip strong { color: var(--yellow); }

.hero-art { display: flex; justify-content: center; }
.hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  border: 3px solid rgba(255, 255, 255, .25);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, #f5f8ff, #fff); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; color: var(--blue-900); }
.section-title .accent { color: var(--blue-600); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
  align-items: start;
}
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.about-text strong { color: var(--ink); }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
  color: var(--ink);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px; height: 22px;
  background: var(--yellow);
  color: #3a2a00;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
}

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}
.about-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 16px; box-shadow: var(--shadow-sm); }
.about-card h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--blue-900); }
.about-card-sub { color: var(--blue-600); font-weight: 600; margin-bottom: 22px; }
.about-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .94rem;
}
.about-card-row span:first-child { color: var(--muted); }
.about-card-row span:last-child { font-weight: 600; text-align: right; }
.about-card .btn { margin-top: 24px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--yellow);
}
.feature-emoji {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--yellow-pale);
  border: 2px solid var(--yellow);
  border-radius: 16px;
  margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--blue-900); margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .97rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.gallery-card {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow); }
.gallery-card img { width: 100%; height: 260px; object-fit: cover; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--blue-900); margin-bottom: 14px; }
.price-gems { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--blue-600); }
.price-gems span { font-size: .95rem; color: var(--muted); font-weight: 500; }
.price-bonus { color: #b8860b; font-weight: 600; font-size: .85rem; min-height: 20px; }
.price-tag { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--blue-900); margin: 8px 0 20px; }
.price-card .btn { margin-top: auto; }

.price-card.featured {
  background: linear-gradient(180deg, var(--blue-800), var(--blue-700));
  border-color: var(--blue-800);
  color: #fff;
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.price-card.featured h3,
.price-card.featured .price-tag { color: #fff; }
.price-card.featured .price-gems { color: var(--yellow); }
.price-card.featured .price-gems span { color: #c9d6f5; }
.price-card.featured .price-bonus { color: var(--yellow-soft); }
.price-ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: #3a2a00;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .75rem;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(255, 196, 0, .8);
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  margin-top: 40px;
}
.pricing-note a { color: var(--blue-600); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-emoji {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--blue-100);
  border-radius: 18px;
}
.contact-card h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--blue-900); margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: .97rem; margin-bottom: 10px; }
.contact-link {
  color: var(--blue-600);
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-all;
}
.contact-link:hover { text-decoration: underline; }
.contact-muted { color: var(--muted); font-size: .88rem; }
.contact-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-links a { color: var(--blue-600); font-weight: 600; }
.contact-links a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: #b9c8e8;
  padding: 44px 0;
  border-top: 3px solid var(--yellow);
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: #fff;
  margin-bottom: 18px;
}
.footer-logo { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.footer-links { display: flex; gap: 26px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: #cdd8f2; font-weight: 500; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: .88rem; color: #7e8fb8; }

/* ---------- Modal ---------- */
.modal, .lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open, .lightbox.open { display: flex; }
.modal-backdrop, .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 40, .72);
  backdrop-filter: blur(3px);
}
.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
  animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  font-size: 2rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px; box-shadow: var(--shadow-sm); }
.modal-title { font-family: var(--font-head); font-size: 1.9rem; color: var(--blue-900); margin-bottom: 8px; }
.modal-text { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.modal-sub { color: var(--muted); font-size: .95rem; margin: 10px 0 22px; }
.modal .btn-block { justify-content: center; }

/* ---------- Lightbox ---------- */
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
}
.lightbox-img {
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: -20px; right: -20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff; border: none;
  font-size: 1.6rem; cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: none;
  font-size: 1.3rem; cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.lightbox-prev { left: -58px; }
.lightbox-next { right: -58px; }
.lightbox-nav:hover { background: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 0 60px; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-img { max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card.featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--blue-900);
    padding: 16px;
    gap: 6px;
    border-bottom: 2px solid var(--yellow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-cta { margin: 10px 0 0; width: 100%; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-card img { height: 220px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: -56px; right: 0; }
}
