/* PackDraw affiliate landing – JOMBASTIC */
:root {
  --bg: #16191b;
  --panel: #1d2124;
  --panel-2: #23282c;
  --border: #30383e;
  --accent: #399ce6;
  --accent-hover: #4aa8ee;
  --text: #ffffff;
  --muted: #98a3ad;
  --radius: 16px;
  --container: 1240px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.accent { color: var(--accent); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-outline { border-color: var(--border); background: var(--panel); color: #fff; }
.btn-outline:hover { border-color: #45505a; background: var(--panel-2); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Header */
.site-header { position: relative; z-index: 5; padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: 172px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: #d5dce2; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-link:hover { color: #fff; }
.nav-button { background: none; border: 0; padding: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 28px; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.capsule {
  display: inline-block; margin: 0 0 22px; padding: 7px 18px; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-title { margin: 0; font-size: clamp(40px, 6.4vw, 92px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; max-width: 12ch; }
.hero-sub { margin: 22px 0 0; font-size: clamp(20px, 2.3vw, 30px); font-weight: 500; }
.hero-support { margin: 8px 0 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); }

/* Code bar */
.code-bar {
  width: 100%; max-width: 810px; margin: 40px auto 0; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.code-block { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding-right: 28px; border-right: 1px solid var(--border); }
.code-label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.code-value { margin-top: 2px; font-size: 36px; font-weight: 800; letter-spacing: .01em; line-height: 1.15; }
.code-actions { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.btn-copy { min-width: 196px; }
.btn-copy .icon-check { display: none; }
.btn-copy.is-copied { border-color: var(--accent); color: var(--accent); }
.btn-copy.is-copied .icon-copy { display: none; }
.btn-copy.is-copied .icon-check { display: block; }
.btn-primary.btn-join { min-width: 230px; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* Hero art (decorative packs) */
.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-art picture { display: contents; }
.pack { position: absolute; width: 290px; height: auto; object-fit: contain; pointer-events: none; user-select: none; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.pack-watch   { top: -14px;  left: calc(50% - 630px); z-index: 1; }
.pack-tech    { top: 220px;  left: calc(50% - 760px); z-index: 2; width: 300px; }
.pack-luxury  { top: -10px;  right: calc(50% - 640px); z-index: 1; }
.pack-supercar{ top: 180px;  right: calc(50% - 760px); z-index: 2; width: 290px; }
.pack-ghost { width: 230px; filter: blur(7px) brightness(.55); opacity: .5; z-index: 0; }
.pack-ghost-l1 { top: 0;     left: calc(50% - 930px); }
.pack-ghost-l2 { top: 300px; left: calc(50% - 1010px); width: 250px; }
.pack-ghost-r1 { top: 10px;  right: calc(50% - 930px); }
.pack-ghost-r2 { top: 320px; right: calc(50% - 1000px); width: 250px; }

@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.pack-watch, .pack-luxury { animation: float-a 7s ease-in-out infinite; }
.pack-tech, .pack-supercar { animation: float-b 8.5s ease-in-out infinite; animation-delay: -2s; }
@media (prefers-reduced-motion: reduce) { .pack { animation: none !important; } }

.hero-mobile-art { display: none; }

/* Steps */
.steps { padding: 26px 16px 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0 0 30px; }
.section-title { margin: 0 0 26px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 0; }
.step { position: relative; display: flex; align-items: center; gap: 18px; padding: 6px 36px 6px 0; min-width: 0; }
.step + .step { padding-left: 36px; }
.step:last-child { padding-right: 0; }
.step + .step::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.step-num { color: var(--accent); font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; min-width: 2ch; }
.step-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--panel); border: 1px solid var(--border); color: #fff; }
.step-icon .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.step-text { display: flex; flex-direction: column; min-width: 0; }
.step-title { font-size: 21px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.step-desc { margin-top: 4px; color: var(--muted); font-size: 15.5px; white-space: nowrap; }

/* Guide strip */
.guide { padding: 30px 16px 0; }
.guide-strip {
  display: grid; grid-template-columns: minmax(0, 600px) 1fr auto; align-items: center; gap: 30px;
  padding: 14px 32px 14px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.guide-preview { padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; }
.guide-preview img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }
.guide-text { min-width: 0; }
.guide-title { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.guide-sub { margin: 4px 0 0; color: var(--muted); font-size: 17px; }
.link-cta { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--accent); font-size: 18px; font-weight: 600; }
.link-cta:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { padding: 34px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { width: 118px; }
.footer-text { margin: 0; color: var(--muted); font-size: 14px; }

/* Guide modal */
.modal { width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(8, 10, 12, .78); backdrop-filter: blur(3px); }
.modal-inner { padding: 22px 28px 26px; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-logo img { width: 128px; }
.modal-kicker { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.modal-kicker::before { content: ""; display: inline-block; width: 36px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--muted); }
.modal-close { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: #fff; }
.modal-close:hover { border-color: #45505a; }
.modal-close .icon { width: 20px; height: 20px; }
.modal-title { margin: 18px 0 0; text-align: center; font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.modal-desc { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: clamp(16px, 1.6vw, 21px); }
.modal-video { margin: 20px auto 0; max-width: 820px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 9; }
.modal-video iframe, .modal-video video { display: block; width: 100%; height: 100%; border: 0; }
.guide-cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-cards li { position: relative; min-width: 0; }
.guide-cards li + li::before { content: "→"; position: absolute; left: -16px; top: 46%; color: var(--accent); font-size: 22px; font-weight: 700; line-height: 1; }
.guide-cards img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: #111418; }
.guide-card-text { margin: 10px 2px 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.guide-card-text strong { color: #fff; }
.guide-facts { list-style: none; margin: 20px 0 0; padding: 14px 18px; display: grid; grid-template-columns: auto auto auto; justify-content: space-around; gap: 12px 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); font-size: 17px; font-weight: 600; }
.guide-facts li { display: inline-flex; align-items: center; gap: 12px; }
.fact-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); }
.fact-icon .icon { width: 20px; height: 20px; }
.modal-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; justify-content: center; }
.modal-actions .btn { min-width: 220px; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .pack { width: 250px; }
  .pack-tech, .pack-supercar { width: 260px; }
  .pack-watch { left: calc(50% - 600px); }
  .pack-tech { left: calc(50% - 700px); top: 210px; }
  .pack-luxury { right: calc(50% - 600px); }
  .pack-supercar { right: calc(50% - 700px); top: 180px; }
}

/* Tablet: packs shrink and sit against the viewport edges */
@media (max-width: 1100px) {
  .guide-cards { grid-template-columns: 1fr; gap: 16px; max-width: 460px; margin-left: auto; margin-right: auto; }
  .guide-cards li + li::before { content: "↓"; left: 50%; top: -22px; transform: translateX(-50%); }
  .guide-facts { grid-template-columns: 1fr; justify-content: start; font-size: 15px; }
  .hero { padding-top: 56px; }
  .hero-title { font-size: clamp(38px, 6vw, 64px); }
  .hero-inner { padding-left: 150px; padding-right: 150px; }
  .pack { width: 160px; }
  .pack-watch { left: -6px; top: 0; }
  .pack-tech { left: -34px; top: 190px; width: 170px; }
  .pack-luxury { right: -6px; top: 0; }
  .pack-supercar { right: -34px; top: 180px; width: 170px; }
  .pack-ghost { display: none; }
  .code-bar { max-width: 720px; padding: 18px 20px; gap: 16px; }
  .code-actions { gap: 12px; }
  .btn-copy { min-width: 0; }
  .btn-primary.btn-join { min-width: 0; }
  .code-value { font-size: 30px; }
  .step-list { grid-template-columns: 1fr; gap: 8px; }
  .step-title, .step-desc { white-space: normal; }
  .step { padding: 10px 0; }
  .step + .step { padding-left: 0; }
  .step + .step::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .guide-strip { grid-template-columns: minmax(0, 1fr) auto; }
  .guide-preview { grid-column: 1 / -1; max-width: 640px; width: 100%; margin: 0 auto; }
}

/* Mobile: compact decorative row above the heading, everything stacked */
@media (max-width: 820px) {
  .site-header { padding: 14px 0; }
  .brand img { width: 136px; }
  .nav { gap: 14px; }
  .nav .nav-link:not(.btn) { display: none; }
  .hero { padding: 10px 0 20px; }
  .hero-inner { padding-left: 16px; padding-right: 16px; }
  .hero-art { display: none; }
  .hero-mobile-art { display: flex; justify-content: center; align-items: flex-end; gap: 0; width: 100%; max-width: 420px; height: 190px; margin: 0 auto 10px; pointer-events: none; overflow: visible; }
  .hero-mobile-art img { width: 30%; max-width: 128px; height: auto; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .55)); }
  .hero-mobile-art img:nth-child(1) { margin-right: -7%; transform: translateY(-10px); z-index: 1; }
  .hero-mobile-art img:nth-child(2) { margin-right: -5%; z-index: 2; }
  .hero-mobile-art img:nth-child(3) { margin-right: -7%; transform: translateY(-10px); z-index: 1; }
  .hero-mobile-art img:nth-child(4) { z-index: 2; }
  .capsule { font-size: 12px; padding: 6px 14px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); }
  .hero-sub { font-size: 20px; margin-top: 14px; }
  .hero-support { font-size: 15px; }
  .code-bar { flex-direction: column; align-items: stretch; margin-top: 26px; padding: 18px; gap: 14px; }
  .code-block { align-items: center; text-align: center; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--border); }
  .code-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .steps { padding-top: 20px; }
  .divider { margin-bottom: 22px; }
  .step-num { font-size: 32px; }
  .step-icon { width: 56px; height: 56px; }
  .step-icon .icon { width: 24px; height: 24px; }
  .step-title { font-size: 19px; }
  .step-desc { font-size: 15px; }
  .guide { padding-top: 22px; }
  .guide-strip { grid-template-columns: 1fr; gap: 14px; padding: 12px 16px 18px; }
  .guide-text { text-align: left; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .modal-inner { padding: 16px 16px 20px; }
  .modal-logo img { width: 104px; }
  .modal-kicker { display: none; }
  .guide-card-text { font-size: 13px; }
  .modal-actions .btn { min-width: 0; flex: 1; }
}
@media (max-width: 380px) {
  .hero-mobile-art { height: 160px; }
  .nav { gap: 10px; }
  .btn-sm { padding: 0 12px; font-size: 14px; }
}

/* Native <dialog> fallback + scroll lock while the guide is open */
html.modal-open, html.modal-open body { overflow: hidden; }
.modal:not([open]) { display: none; }
.steps:focus { outline: none; }

/* SEO text + FAQ */
.seo { padding: 34px 16px 0; }
.seo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.seo-h2 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 12px; }
.seo p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.seo p strong { color: #fff; font-weight: 600; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 13px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 700; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; margin: 0; }
.link-inline { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 820px) { .seo { padding-top: 24px; } .seo-grid { grid-template-columns: 1fr; gap: 20px; } }
