/* OPTCGSim Visual Mod website. Same palette and type as the mod and its promo video: navy, gold, Archivo + Instrument Serif. */
@font-face { font-family: 'Archivo'; src: url('fonts/archivo.woff') format('woff'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-italic.woff') format('woff'); font-style: italic; font-display: swap; }

:root {
  --bg: #0b1120;
  --bg-2: #0f1729;
  --panel: #141e35;
  --panel-2: #1a2643;
  --line: #26365a;
  --text: #e8edf7;
  --muted: #9aa8c4;
  --gold: #f2c14e;
  --gold-2: #e0a92e;
  --on-gold: #111a2e;
  --cream: #f4efe4;
  --ok: #57c48b;
  --radius: 14px;
  --wrap: 1160px;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd677; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 850; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 900; }
h2 { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--gold); }
h1 em, h2 em { font-size: 1.08em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; }

/* Two languages in one page: html[lang] shows one of them (assets/lang.js picks it before the page is drawn) */
html[lang="it"] [lang="en"]:not(html), html[lang="en"] [lang="it"]:not(html) { display: none !important; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 17, 32, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(38, 54, 90, .6); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 900; font-size: 19px; letter-spacing: .02em; color: var(--gold); }
.brand span { font-family: var(--serif); font-style: italic; font-size: 21px; }
.switch { width: 30px; height: 17px; border-radius: 99px; background: var(--gold); position: relative; flex: none; }
.switch::after { content: ''; position: absolute; right: 3px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--on-gold); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav a:hover { color: var(--gold); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; flex: none; }
.lang button { background: none; border: 0; color: var(--muted); font: 700 12px var(--sans); letter-spacing: .08em; padding: 6px 10px; cursor: pointer; }
html[lang="it"] .lang [data-lang="it"], html[lang="en"] .lang [data-lang="en"] { background: var(--panel-2); color: var(--gold); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 800 16px var(--sans);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #f6cd66, var(--gold-2)); color: var(--on-gold); box-shadow: 0 8px 26px rgba(242, 193, 78, .22), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold:hover { color: var(--on-gold); box-shadow: 0 10px 32px rgba(242, 193, 78, .34), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(20, 30, 53, .6); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 18px; border-radius: 14px; }
.btn small { font-weight: 600; opacity: .75; }

/* ---- hero ---- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(242, 193, 78, .13), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 52px; align-items: center; position: relative; }
.hero p.lead { font-size: 20px; color: #c8d2e6; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--muted); }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 900; margin-right: 7px; }

/* ---- Visual Mod / original comparison ---- */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; --pos: 62%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 193, 78, .08); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .mod { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold); box-shadow: 0 0 18px rgba(242, 193, 78, .7); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--gold); color: var(--on-gold);
  display: grid; place-items: center; font: 900 16px var(--sans); box-shadow: 0 4px 16px rgba(0, 0, 0, .5); pointer-events: none; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 14px; padding: 5px 11px; border-radius: 99px; font: 750 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.compare .tag.l { left: 14px; background: var(--gold); color: var(--on-gold); }
.compare .tag.r { right: 14px; background: rgba(0, 0, 0, .6); color: #fff; }
.compare:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tabs button { background: var(--panel); border: 1px solid var(--line); color: var(--muted); font: 700 14px var(--sans); padding: 8px 15px; border-radius: 99px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---- sections ---- */
section { padding: 88px 0; }
.alt { background: var(--bg-2); border-block: 1px solid rgba(38, 54, 90, .5); }
.head { max-width: 760px; margin-bottom: 44px; }
.head.center { margin-inline: auto; text-align: center; }
.head p { font-size: 19px; color: var(--muted); }
.video { max-width: 980px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.video video { width: 100%; height: 100%; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.card .body { padding: 22px 24px 24px; }
.card h3 { font-size: 26px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }

.themes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 44px; align-items: center; }
.themes .shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; }
.themes .shot img { width: 100%; height: 100%; object-fit: cover; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.chips li { background: var(--cream); color: var(--on-gold); font-weight: 750; font-size: 15px; padding: 8px 14px; border-radius: 8px; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.chips li:nth-child(3n+2) { transform: rotate(-1.2deg); }
.chips li:nth-child(4n+1) { transform: rotate(1deg); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps > li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.steps > li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 900; font-size: 18px; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; }

.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 940px; margin: 0 auto; background: var(--panel); border: 1px solid rgba(242, 193, 78, .45); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 60px rgba(242, 193, 78, .08); }
.price .left { padding: 40px; background: linear-gradient(160deg, #1d2b4d, #121b31); }
.price .right { padding: 40px; }
.amount { font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--gold); margin: 10px 0 6px; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid rgba(38, 54, 90, .7); }
.price li:last-child { border-bottom: 0; }
.price li::before { content: '✓'; position: absolute; left: 2px; color: var(--ok); font-weight: 900; }
.price .btn { width: 100%; }
.small { font-size: 14px; color: var(--muted); margin-top: 14px; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 750; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 26px; color: var(--gold); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: #c3cde2; }
.faq details > div p:last-child { margin: 0; }

.final { text-align: center; padding: 100px 0; background: radial-gradient(60% 80% at 50% 100%, rgba(242, 193, 78, .14), transparent 70%); }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; align-content: flex-start; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ---- install guide ---- */
.page-head { padding: 64px 0 36px; }
.page-head p { font-size: 19px; color: #c8d2e6; max-width: 46em; }
.os { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 5px; gap: 4px; margin-bottom: 30px; }
.os button { background: none; border: 0; color: var(--muted); font: 800 16px var(--sans); padding: 11px 22px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.os button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.os svg { width: 18px; height: 18px; fill: currentColor; }
.guide { display: grid; gap: 18px; padding: 0; margin: 0 0 30px; list-style: none; counter-reset: g; }
.guide > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.guide > li::before { counter-increment: g; content: counter(g); width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 900; font-size: 19px; display: grid; place-items: center; }
.guide h3 { margin: 8px 0 8px; }
.guide p { color: #c3cde2; }
.guide p:last-child { margin-bottom: 0; }
kbd { font: 700 14px var(--mono); background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; color: var(--text); }
.code { display: flex; align-items: stretch; background: #070b15; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.code code { flex: 1; padding: 14px 16px; font: 600 15px/1.5 var(--mono); color: #ffe3a1; overflow-x: auto; white-space: nowrap; }
.code button { flex: none; border: 0; border-left: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 750 14px var(--sans); padding: 0 18px; cursor: pointer; min-width: 96px; }
.code button:hover { color: var(--gold); }
.code button.done { color: var(--ok); }
.note { border-left: 3px solid var(--gold); background: rgba(242, 193, 78, .07); padding: 14px 18px; border-radius: 0 10px 10px 0; color: #d6deee; margin: 14px 0 0; }
.note p:last-child { margin: 0; }
.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }

/* the two SmartScreen windows, drawn in CSS so they read in both languages */
.smartscreen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ss { background: #0067b8; color: #fff; border-radius: 6px; padding: 18px 18px 14px; font-family: 'Segoe UI', var(--sans); min-height: 190px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.ss strong { font-size: 19px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.ss span { font-size: 13px; opacity: .92; }
.ss .link { text-decoration: underline; margin-top: 8px; font-size: 13px; align-self: flex-start; }
.ss .row { margin-top: auto; display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; }
.ss .b { border: 1px solid rgba(255, 255, 255, .8); padding: 5px 14px; font-size: 13px; border-radius: 2px; }
.ss .hl { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { outline-color: rgba(242, 193, 78, .25); } }
.ss small { font-size: 11px; opacity: .8; display: block; margin-top: 2px; }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cols .card { padding: 22px 24px; }
.cols .card h3 { font-size: 19px; }
.cols .card p { color: var(--muted); margin: 0; }

.legal { max-width: 760px; padding: 64px 0 80px; }
.legal h2 { font-size: 26px; margin-top: 36px; }
.legal p, .legal li { color: #c3cde2; }

section.after { padding: 64px 0 0; }
section.help { padding: 64px 0 88px; }
.card.pad { padding: 24px; }
.faq.wide { margin: 0; max-width: none; }
p.more { text-align: center; margin-top: 30px; }

/* ---- small screens ---- */
@media (max-width: 960px) {
  .hero .wrap, .themes, .price { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .features, .steps, .cols, .smartscreen { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .top .wrap { gap: 10px; }
  .brand .switch, .nav .btn small { display: none; }
  .lang button { padding: 6px 8px; }
  .brand b { font-size: 16px; }
  .brand span { font-size: 18px; }
  section { padding: 64px 0; }
  .price .left, .price .right { padding: 28px 24px; }
  .amount { font-size: 60px; }
  .guide > li { grid-template-columns: 1fr; padding: 20px; }
  .os { display: flex; }
  .os button { flex: 1; justify-content: center; padding: 11px 10px; }
  .btn-lg { width: 100%; }
}
@media (max-width: 360px) { .brand span { display: none; } }
