/* ============================================================
   Jaiho 777 — "Festive Luxe" design system
   Warm espresso-black + gold + emerald + festive crimson.
   Fonts: Sora (display) / Plus Jakarta Sans (body).
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #120E08;
  --bg-2:      #1A1410;
  --bg-3:      #221A12;
  --surface:   rgba(255, 247, 232, 0.045);
  --surface-2: rgba(255, 247, 232, 0.07);

  /* Brand accents */
  --gold:      #E9B949;
  --gold-2:    #F6D070;
  --gold-deep: #C8902A;
  --emerald:   #1FA971;
  --emerald-d: #157F52;
  --crimson:   #E23744;
  --crimson-d: #C81E2B;

  /* Text */
  --text:    #F6EFE1;
  --muted:   #C5B79C;
  --muted-2: #9C8F77;

  /* Lines & shadow */
  --line:      rgba(233, 185, 73, 0.16);
  --line-soft: rgba(255, 247, 232, 0.09);
  --shadow:    0 18px 50px -20px rgba(0, 0, 0, 0.75);
  --glow-gold: 0 10px 40px -12px rgba(233, 185, 73, 0.45);

  --radius:   18px;
  --radius-s: 12px;
  --container: 1200px;

  /* z-index scale */
  --z-nav: 50;
  --z-top: 40;
}

/* -------- Reset & base -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* festive ambient background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(233,185,73,0.10), transparent 60%),
    radial-gradient(900px 600px at 98% 0%, rgba(31,169,113,0.08), transparent 55%),
    radial-gradient(800px 700px at 60% 120%, rgba(226,55,68,0.07), transparent 60%);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Sora", sans-serif; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.grad {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--crimson) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--gold); color: #1A1206; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; min-height: 44px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: #1A1206; box-shadow: var(--glow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 46px -12px rgba(233,185,73,0.6); }
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* -------- Header / nav -------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(18, 14, 8, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Sora", sans-serif; font-weight: 800; font-size: 19px; }
.brand-mark img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--glow-gold); }
.brand-name { background: linear-gradient(100deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--gold-2); background: rgba(233,185,73,0.10); }
.nav .cta-link {
  margin-left: 6px; color: #1A1206; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
}
.nav .cta-link:hover { color: #1A1206; transform: translateY(-1px); box-shadow: var(--glow-gold); }

.hamburger {
  display: none; cursor: pointer; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px; width: 44px; height: 44px; align-items: center; justify-content: center;
}
.hamburger:hover { border-color: var(--gold); color: var(--gold-2); }

/* -------- Hero -------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 64px; }
.hero-bg {
  position: absolute; inset: -10% -10% 0 -10%; z-index: 0; pointer-events: none; will-change: transform;
  background-repeat: no-repeat; background-position: center; background-size: cover;
  /* AI-generated festive backdrop + left-heavy dark scrim (text readability) + bottom fade into page */
  background-image:
    linear-gradient(to bottom, rgba(18,14,8,0.08) 52%, var(--bg) 100%),
    linear-gradient(100deg, rgba(18,14,8,0.94) 0%, rgba(18,14,8,0.80) 44%, rgba(18,14,8,0.52) 100%),
    url('/assets/images/hero-bg.jpg');
}
/* progressive enhancement: serve the smaller webp where supported */
.hero-bg {
  background-image:
    linear-gradient(to bottom, rgba(18,14,8,0.08) 52%, var(--bg) 100%),
    linear-gradient(100deg, rgba(18,14,8,0.94) 0%, rgba(18,14,8,0.80) 44%, rgba(18,14,8,0.52) 100%),
    image-set(url('/assets/images/hero-bg.webp') type('image/webp'), url('/assets/images/hero-bg.jpg') type('image/jpeg'));
}
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.hero-orbs::before, .hero-orbs::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .4;
}
.hero-orbs::before { width: 280px; height: 280px; left: -60px; top: 40px; background: radial-gradient(circle, rgba(226,55,68,0.5), transparent 70%); }
.hero-orbs::after  { width: 320px; height: 320px; right: -70px; bottom: -40px; background: radial-gradient(circle, rgba(233,185,73,0.45), transparent 70%); }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block; font-family: "Sora", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(233,185,73,0.10); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; margin-bottom: 16px; }
.hero .lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 56ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 520px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px; text-align: center; }
.stat-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--gold-2); }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* hero phone mock */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; max-width: 100%; padding: 14px; border-radius: 38px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,247,232,0.03);
}
.phone-glow { position: absolute; inset: -2px; border-radius: 40px; background: linear-gradient(160deg, rgba(233,185,73,0.35), transparent 50%); filter: blur(20px); z-index: -1; }
.phone-screen { background: linear-gradient(180deg, #0E0B06, #15100A); border-radius: 28px; padding: 16px 12px 14px; position: relative; overflow: hidden; }
.phone-notch { width: 110px; height: 22px; background: #0A0805; border-radius: 0 0 14px 14px; margin: 0 auto 10px; }
.phone-head { font-family: "Sora", sans-serif; font-weight: 800; text-align: center; color: var(--gold-2); margin-bottom: 12px; letter-spacing: .04em; }
.phone-tile { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 13px; padding: 8px 10px; margin-bottom: 8px; }
.phone-tile img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; }
.phone-tile-info { min-width: 0; flex: 1; }
.phone-tile-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-tile-meta { font-size: 11.5px; color: var(--muted-2); }
.phone-tile-pill { font-size: 11px; font-weight: 700; color: var(--gold-2); background: rgba(233,185,73,0.12); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; flex: none; }

/* -------- Trust bar -------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; flex: none;
  color: var(--gold-2); background: rgba(233,185,73,0.10); border: 1px solid var(--line); }
.trust-text strong { display: block; font-family: "Sora", sans-serif; font-size: 15px; }
.trust-text span { color: var(--muted); font-size: 13px; }

/* -------- Sections -------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-tag {
  display: inline-block; font-family: "Sora", sans-serif; font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 10px;
}
.section.alt .section-tag { color: var(--crimson); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 800; }
.section-sub { color: var(--muted); max-width: 64ch; margin-top: 8px; }
.section-line { height: 3px; width: 92px; border-radius: 3px; margin-top: 16px; background: linear-gradient(90deg, var(--gold), transparent); }

/* -------- APK cards -------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.card-grid.related { grid-template-columns: repeat(5, 1fr); }

.apk-card {
  display: flex; flex-direction: column; cursor: pointer; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.apk-card:hover { transform: translateY(-5px); border-color: rgba(233,185,73,0.45); box-shadow: var(--glow-gold); }
.thumb { position: relative; aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.apk-card:hover .thumb img { transform: scale(1.06); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: "Sora", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: #fff;
}
.badge.hot     { background: var(--crimson-d); }
.badge.newest  { background: var(--emerald-d); }
.badge.all     { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1A1206; }
.badge-static  { position: static; }

.apk-card .body { display: flex; flex-direction: column; gap: 9px; padding: 16px 16px 18px; flex: 1; }
.apk-card .name { font-family: "Sora", sans-serif; font-weight: 700; font-size: 17px; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.stars { display: inline-flex; color: var(--gold); }
.star { display: inline-block; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); display: inline-block; }
.desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apk-card .footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price-pill { font-size: 12px; font-weight: 700; color: var(--gold-2); background: rgba(233,185,73,0.12); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.btn-card { display: inline-flex; align-items: center; gap: 6px; font-family: "Sora", sans-serif; font-weight: 600; font-size: 13px; color: var(--emerald); transition: color .2s ease; }
.btn-card svg { transition: transform .2s ease; }
.apk-card:hover .btn-card { color: var(--gold-2); }
.apk-card:hover .btn-card svg { transform: translateX(3px); } /* arrow nudges without shifting layout */

/* reveal animation */
.reveal-init { opacity: 0; transform: translateY(16px); }
.reveal-init.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

/* -------- Breadcrumb -------- */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.breadcrumb .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 14px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb span[aria-hidden] { color: var(--muted-2); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* -------- APK detail hero -------- */
.apk-hero { position: relative; overflow: hidden; padding: 50px 0; }
.apk-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(38px) saturate(1.2); transform: scale(1.25); opacity: .32; z-index: 0; }
.apk-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,14,8,0.72), rgba(18,14,8,0.94)); }
.apk-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: center; }
.apk-hero-img img { width: 240px; height: 240px; border-radius: 24px; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--glow-gold), var(--shadow); background: var(--bg-3); }
.apk-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.apk-pill { font-family: "Sora", sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.apk-pill.version { color: var(--gold-2); }
.apk-hero-info h1 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 800; margin-bottom: 18px; }

.apk-stat-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.apk-chip { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; }
.apk-chip svg { color: var(--gold-2); flex: none; }
.apk-chip-label { font-size: 12px; color: var(--muted); }
.apk-chip-value { font-family: "Sora", sans-serif; font-weight: 700; font-size: 15px; }
.apk-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------- APK body + sidebar -------- */
.apk-body { padding: 52px 0; }
.apk-body .grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

.apk-content { min-width: 0; }
.article-h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 30px 0 12px; color: var(--text); }
.article-h2:first-child { margin-top: 0; }
.article-h3 { font-size: 1.18rem; margin: 22px 0 10px; color: var(--gold-2); }
.article-p { color: #E3D9C6; margin-bottom: 14px; max-width: 72ch; }
.article-list { display: grid; gap: 9px; margin: 4px 0 18px; }
.article-li { position: relative; padding-left: 28px; color: #E3D9C6; max-width: 72ch; }
.article-li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
}

/* Testimonial cards ("What Players Are Saying") */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 18px; }
.testimonial {
  position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 18px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 2px; right: 16px;
  font-family: Georgia, "Times New Roman", serif; font-size: 60px; line-height: 1;
  color: var(--gold); opacity: .16; pointer-events: none;
}
.testimonial:hover { transform: translateY(-4px); border-color: rgba(233,185,73,0.4); box-shadow: var(--glow-gold); }
.testimonial-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.testimonial-quote { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.6; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 4px; }
.testimonial-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; font-family: "Sora", sans-serif; font-weight: 700; font-size: 16px;
  color: #1A1206; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
}
.testimonial-name { font-family: "Sora", sans-serif; font-weight: 600; font-size: 13.5px; color: var(--muted); }

/* System Requirements — APK-marketplace style spec grid */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 18px; }
.spec-row {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 13px 15px;
  transition: border-color .2s ease, background-color .2s ease;
}
.spec-row:hover { border-color: rgba(233,185,73,0.34); background: var(--surface-2); }
.spec-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 11px; color: var(--gold-2); background: rgba(233,185,73,0.10); border: 1px solid var(--line); }
.spec-text { display: flex; flex-direction: column; min-width: 0; }
.spec-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.spec-value { font-family: "Sora", sans-serif; font-weight: 600; font-size: 15px; color: var(--text); }

/* FAQ accordion (native <details>/<summary>) */
.faq-accordion { display: grid; gap: 12px; margin: 6px 0 18px; max-width: 72ch; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; transition: border-color .2s ease, background-color .2s ease; }
.faq-item:hover { border-color: rgba(233,185,73,0.32); }
.faq-item[open] { border-color: rgba(233,185,73,0.45); background: var(--surface-2); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  list-style: none; padding: 15px 18px; min-height: 44px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 16px; color: var(--text);
  transition: color .2s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q:hover { color: var(--gold-2); }
.faq-item[open] .faq-q { color: var(--gold-2); }
.faq-chevron { flex: none; color: var(--gold-2); transition: transform .25s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; }
.faq-a .article-p { margin-bottom: 10px; max-width: none; }
.faq-a .article-p:last-child { margin-bottom: 0; }
.faq-a .article-list { margin-bottom: 0; }

.apk-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--gold-2); }
.side-list { display: grid; gap: 10px; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 10px; }
.side-row:last-child { border-bottom: 0; padding-bottom: 0; }
.side-row .k { color: var(--muted); font-size: 13.5px; }
.side-row .v { font-family: "Sora", sans-serif; font-weight: 600; font-size: 14px; text-align: right; }
.side-row .v.accent { color: var(--gold-2); }
.side-warn { background: rgba(226,55,68,0.08); border: 1px solid rgba(226,55,68,0.28); border-radius: var(--radius-s); padding: 14px 15px; color: #EAD9CC; font-size: 13.5px; line-height: 1.6; }
.side-warn strong { color: var(--crimson); }

/* -------- Responsible section -------- */
.responsible { padding: 52px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.responsible-inner { max-width: 880px; margin-inline: auto; text-align: center; }
.responsible h2 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); margin-bottom: 14px; }
.responsible p { color: var(--muted); max-width: 76ch; margin-inline: auto; }
.tip-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.tip-chip { font-family: "Sora", sans-serif; font-size: 13px; font-weight: 600; color: var(--gold-2); background: rgba(233,185,73,0.10); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }

/* -------- Static pages -------- */
.page-hero { position: relative; overflow: hidden; padding: 60px 0 48px; text-align: center; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(46px) saturate(1.2); transform: scale(1.3); opacity: .22; z-index: 0; }
.page-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,14,8,0.7), rgba(18,14,8,0.95)); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-inner h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; }
.page-hero-sub { color: var(--muted); max-width: 70ch; margin: 12px auto 0; }
.page-body { padding: 48px 0 64px; }
.wrap { max-width: 860px; margin-inline: auto; }
.page-content .page-h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 30px 0 12px; }
.page-content .page-h3 { font-size: 1.18rem; margin: 22px 0 10px; color: var(--gold-2); }
.page-content .page-p { color: #E3D9C6; margin-bottom: 14px; }
.page-content .page-p:first-child { font-size: 1.07rem; }
.page-content .page-list { display: grid; gap: 9px; margin: 6px 0 18px; }
.page-content .page-li { position: relative; padding-left: 28px; color: #E3D9C6; }
.page-content .page-li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); }
.page-content a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--gold); }

/* -------- Footer -------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 42ch; }
.footer-col h3 { font-family: "Sora", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 13px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a, .footer-col span { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }

/* -------- Scroll-to-top -------- */
.scroll-top {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-top);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: #1A1206; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); border: none;
  box-shadow: var(--glow-gold); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { transform: translateY(-3px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.related { grid-template-columns: repeat(3, 1fr); }
  .apk-body .grid { grid-template-columns: 1fr; }
  .apk-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: inline-flex; }
  .nav {
    position: absolute; top: 70px; right: 14px; left: 14px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: rgba(20, 16, 10, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; }
  .nav .cta-link { margin-left: 0; text-align: center; justify-content: center; }

  .apk-hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .apk-hero-img img { width: 170px; height: 170px; }
  .apk-hero-pills, .apk-hero-cta { justify-content: center; }
  .apk-stat-chips { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .card-grid, .card-grid.related { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .testimonials, .spec-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 375px) {
  .container { padding-inline: 16px; }
  .card-grid, .card-grid.related { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .apk-stat-chips { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}
