/* =========================================================
   Lukygem — design system
   ========================================================= */
:root{
  --bg: #0a1f1a;
  --bg-alt: #0d2721;
  --surface: #123028;
  --surface-2: #163a30;
  --text: #eef6f1;
  --text-muted: #a9c4ba;
  --accent: #ffd23f;
  --accent-2: #ffe98a;
  --cta: #ff8a1e;
  --cta-hover: #ff9f42;
  --secondary: #1fae6b;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height:1.6;
  font-size:16px;
}
img{ max-width:100%; display:block; }
a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4{ font-family: var(--font); font-weight:800; line-height:1.25; margin:0 0 .6em; color:#fff; }
h1{ font-size:2.4rem; }
h2{ font-size:1.8rem; margin-top:2em; }
h3{ font-size:1.3rem; margin-top:1.4em; }
p{ margin:0 0 1em; color: var(--text); }
ul, ol{ margin:0 0 1.2em; padding-left:1.3em; }
li{ margin-bottom:.4em; }
.container{ max-width:1120px; margin:0 auto; padding:0 20px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  padding:14px 28px;
  border-radius:999px;
  font-weight:800;
  font-size:1rem;
  cursor:pointer;
  border:none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-cta{
  background: linear-gradient(180deg, var(--cta-hover), var(--cta));
  color:#1a0e00;
  box-shadow: 0 8px 22px rgba(255,138,30,0.35);
}
.btn-cta:hover{ transform: translateY(-2px); text-decoration:none; background: var(--cta-hover); }
.btn-outline{
  background:transparent;
  border:2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover{ background: rgba(255,210,63,.1); text-decoration:none; }
.btn-sm{ padding:9px 18px; font-size:.9rem; }

/* ---------- Header ---------- */
header.site-header{
  position: sticky; top:0; z-index:100;
  background: rgba(10,31,26,0.92);
  backdrop-filter: blur(6px);
  border-bottom:1px solid var(--border);
  transition: box-shadow .2s ease, background .2s ease;
}
header.site-header.is-scrolled{
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  background: rgba(8,24,20,0.98);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 20px; max-width:1120px; margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.3rem; color:#fff; }
.brand img{ height:34px; width:auto; }
.main-nav{ display:flex; gap:22px; align-items:center; flex-wrap:wrap; }
.main-nav a{ color: var(--text-muted); font-weight:600; font-size:.95rem; }
.main-nav a:hover{ color:#fff; text-decoration:none; }
.header-actions{ display:flex; align-items:center; gap:10px; }
.lang-switch{ display:flex; gap:6px; align-items:center; font-size:.85rem; }
.lang-switch a{ padding:4px 9px; border-radius:6px; border:1px solid var(--border); color: var(--text-muted); }
.lang-switch a.active, .lang-switch a:hover{ color:#fff; border-color: var(--accent); text-decoration:none; }
.nav-toggle{ display:none; }

@media (max-width: 900px){
  .main-nav{ order:3; width:100%; justify-content:flex-start; gap:14px; padding-top:8px; border-top:1px solid var(--border); margin-top:8px; }
}

/* ---------- Hero ---------- */
.hero{
  padding:70px 0 60px;
  background: radial-gradient(ellipse at top right, var(--bg-alt), var(--bg) 60%);
  border-bottom:1px solid var(--border);
}
.hero__inner{ display:flex; align-items:center; gap:40px; }
.hero__content{ flex:1 1 520px; }
.hero__media{ flex:1 1 380px; }
.hero h1{ font-size:2.6rem; }
.hero p.lead{ font-size:1.15rem; color: var(--text-muted); max-width:60ch; }
.badge-row{ display:flex; gap:10px; flex-wrap:wrap; margin:16px 0; }
.badge{ background: var(--surface); border:1px solid var(--border); color: var(--accent); font-size:.82rem; font-weight:700; padding:6px 12px; border-radius:999px; }

/* ---------- Sections / cards ---------- */
section{ padding:56px 0; }
.section-alt{ background: var(--bg-alt); }
.card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:26px; box-shadow: var(--shadow); }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.features__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; }
.bonus-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; }
.score-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; text-align:center; }

/* ---------- Rating box / pros-cons ---------- */
.rating-box{ display:flex; align-items:center; gap:22px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:24px; }
.rating-box__score{ font-size:2.6rem; font-weight:900; color: var(--accent); background: var(--surface-2); border-radius:50%; width:96px; height:96px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.proscons{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.proscons .pros, .proscons .cons{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:22px; }
.proscons h3{ margin-top:0; }
.proscons .pros h3{ color: var(--secondary); }
.proscons .cons h3{ color:#ff6b6b; }
.proscons ul{ list-style:none; padding:0; }
.proscons li{ padding-left:1.6em; position:relative; }
.pros li::before{ content:"✓"; position:absolute; left:0; color: var(--secondary); font-weight:800; }
.cons li::before{ content:"✕"; position:absolute; left:0; color:#ff6b6b; font-weight:800; }

/* ---------- Tables ---------- */
.table-wrap{ overflow-x:auto; margin:1.4em 0; border-radius: var(--radius-sm); border:1px solid var(--border); }
table{ width:100%; border-collapse:collapse; background: var(--surface); font-size:.95rem; }
th, td{ padding:12px 16px; text-align:left; border-bottom:1px solid var(--border); }
thead th{ background: var(--surface-2); color: var(--accent); font-weight:800; text-transform:uppercase; font-size:.78rem; letter-spacing:.03em; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background: rgba(255,255,255,0.03); }

/* ---------- Steps ---------- */
.steps__list{ list-style:none; padding:0; counter-reset:step; display:grid; gap:16px; }
.steps__list li{ counter-increment:step; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:18px 20px 18px 60px; position:relative; }
.steps__list li::before{ content:counter(step); position:absolute; left:18px; top:50%; transform:translateY(-50%); background: var(--cta); color:#1a0e00; font-weight:900; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; }

/* ---------- FAQ (details/summary) ---------- */
.faq details{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); margin-bottom:10px; padding:4px 18px; }
.faq summary{ cursor:pointer; font-weight:700; padding:14px 0; color:#fff; list-style:none; position:relative; padding-right:30px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; position:absolute; right:0; top:12px; font-size:1.4rem; color: var(--accent); }
.faq details[open] summary::after{ content:"–"; }
.faq details[open] summary{ color: var(--accent); }
.faq p{ padding-bottom:14px; color: var(--text-muted); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{ font-size:.85rem; color: var(--text-muted); padding:16px 0 0; }
.breadcrumbs a{ color: var(--text-muted); }
.breadcrumbs a:hover{ color: var(--accent); }

/* ---------- Article meta / author byline ---------- */
.article-meta{ font-size:.85rem; color: var(--text-muted); margin-top:2.5em; padding-top:1em; border-top:1px solid var(--border); }
.author-byline{ display:flex; gap:16px; align-items:flex-start; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:18px 20px; margin:14px 0 40px; }
.author-byline__avatar{ width:72px; height:72px; border-radius:50%; background-size:cover; background-position:center; flex-shrink:0; border:2px solid var(--accent); }
.author-byline__label{ margin:0; font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; color: var(--accent); font-weight:800; }
.author-byline__name{ margin:2px 0 4px; font-size:1.05rem; font-weight:800; }
.author-byline__name a{ color:#fff; }
.author-byline__bio{ margin:0; font-size:.9rem; color: var(--text-muted); }

/* ---------- Author profile page ---------- */
.author-profile{ display:flex; gap:28px; align-items:center; flex-wrap:wrap; padding:30px 0; }
.author-profile__avatar{ width:160px; height:160px; border-radius:50%; border:3px solid var(--accent); background-size:cover; background-position:center; }
.author-profile__role{ color: var(--accent); font-weight:700; margin-bottom:.5em; display:block; }
.author-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:18px; margin:30px 0; }
.author-stat{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:20px; text-align:center; }
.author-stat strong{ display:block; font-size:1.8rem; color: var(--accent); }
.author-stat span{ font-size:.85rem; color: var(--text-muted); }

/* ---------- Prose / legal pages ---------- */
.prose-page h2{ font-size:1.5rem; }
.prose-page section, .prose-page > div{ margin-bottom:1.6em; }

/* ---------- Footer ---------- */
footer.site-footer{ background: var(--bg-alt); border-top:1px solid var(--border); padding:50px 0 30px; margin-top:60px; }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:30px; margin-bottom:30px; }
.footer-grid h4{ color: var(--accent); font-size:.9rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:14px; }
.footer-grid ul{ list-style:none; padding:0; margin:0; }
.footer-grid ul li{ margin-bottom:8px; }
.footer-grid ul a{ color: var(--text-muted); font-size:.9rem; }
.footer-grid ul a:hover{ color:#fff; }
.footer-disclaimer{ border-top:1px solid var(--border); padding-top:20px; font-size:.8rem; color: var(--text-muted); }
.footer-disclaimer p{ margin:0 0 .6em; }
.footer-age{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:2px solid var(--accent); border-radius:50%; color: var(--accent); font-weight:900; font-size:.85rem; margin-right:8px; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.mt-lg{ margin-top:40px; }
.small{ font-size:.85rem; color: var(--text-muted); }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 900px){
  .grid-3{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .hero__inner{ flex-direction:column; }
}

/* =========================================================
   Mobile ≤480px — required header fix
   ========================================================= */
@media (max-width: 480px){
  .header-inner{ flex-wrap: wrap; }
  h1{ font-size:1.9rem; }
  .hero{ padding:44px 0 36px; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .proscons{ grid-template-columns:1fr; }
  .rating-box{ flex-direction:column; text-align:center; }
  .footer-grid{ grid-template-columns:1fr; gap:22px; }
  .author-profile{ flex-direction:column; text-align:center; }
}

/* =========================================================
   Mobile fix: grid/flex blowout + scrollable tables ≤720px
   ========================================================= */
@media (max-width: 720px){
  .article__layout,
  .article__content,
  .hero__inner,
  .rating-box,
  .proscons,
  .features__grid,
  .bonus-grid,
  .score-grid,
  .steps__list,
  .author-stats { min-width: 0; }

  .table-wrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table th, table td{ white-space: nowrap; }

  .article__content, .prose-page{ overflow-wrap: anywhere; }

  html{ overflow-x: hidden; }
  body{ overflow-x: hidden; overflow-x: clip; }
}
