/* Re:bot: one stylesheet for every page. Dark theme, no web fonts and no external files (CSP style-src 'self'):
   no inline style attributes either, so every look lives here. */
:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #10162a;
  --text: #e9edf6;
  --muted: #9aa4b8;
  --faint: #6b7489;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #8b6cff;
  --accent-2: #22d3ee;
  --accent-3: #34d399;
  --accent-text: #0a0614;
  --gradient: linear-gradient(120deg, #8b6cff 0%, #5b8cff 45%, #22d3ee 100%);
  --danger: #f05d6c;
  --ok: #34d399;
  --warn: #f5b84b;
  --warn-bg: rgba(245, 184, 75, 0.08);
  --warn-border: rgba(245, 184, 75, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(139, 108, 255, 0.22), transparent 60%),
    radial-gradient(800px 480px at 92% 4%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(91, 140, 255, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* A faint grid over the whole page, fading out downwards. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
a { color: #b5a3ff; text-underline-offset: 3px; }
a:hover { color: #d6ccff; }
img, svg { max-width: 100%; }
::selection { background: rgba(139, 108, 255, 0.45); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 14px; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }
strong { color: #fff; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand:hover { color: #fff; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .colon { color: var(--accent-2); }
nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
nav a:hover { color: var(--text); background: var(--surface-2); }
nav a.nav-cta { color: var(--accent-text); background: var(--gradient); font-weight: 650; margin-left: 6px; }
nav a.nav-cta:hover { color: var(--accent-text); filter: brightness(1.1); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  background: var(--gradient); color: var(--accent-text);
  text-decoration: none; font: inherit; font-weight: 650; line-height: 1.2; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(139, 108, 255, 0.7);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.button:hover { color: var(--accent-text); transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 34px -10px rgba(139, 108, 255, 0.85); }
.button.secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.button.secondary:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
span.button.secondary { cursor: default; color: var(--muted); }
span.button.secondary:hover { transform: none; filter: none; background: var(--surface-2); color: var(--muted); }
.button.danger { background: var(--danger); color: #fff; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Pills, chips, eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted); font-size: 0.86rem; font-weight: 550; margin-bottom: 22px; }
.eyebrow b { padding: 2px 9px; border-radius: 999px; background: var(--gradient); color: var(--accent-text); font-size: 0.75rem; letter-spacing: 0.02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em; border: 1px solid var(--border-strong); background: rgba(7, 10, 18, 0.6); color: var(--muted); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.live { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); }
.chip.soon { color: var(--warn); border-color: rgba(245, 184, 75, 0.4); }
.chip.dev { color: var(--accent-2); border-color: rgba(34, 211, 238, 0.35); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); }

/* Sections */
section { padding: 84px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: block; color: var(--accent-2); font-weight: 650; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.04; margin: 0 0 22px; letter-spacing: -0.035em; font-weight: 800; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 580px; }

/* Cards and grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.card li { position: relative; padding-left: 22px; margin: 6px 0; }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--gradient); }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; background: linear-gradient(140deg, rgba(139, 108, 255, 0.25), rgba(34, 211, 238, 0.12)); border: 1px solid rgba(139, 108, 255, 0.35); color: #cfc4ff; }
.icon svg { width: 24px; height: 24px; }

/* Games */
.games { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.game-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: var(--text); }
.game-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
.game-card .art { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid var(--border); background: #0d0a24; }
.game-card .art .chip { position: absolute; z-index: 1; top: 14px; left: 14px; }
.game-card .body { padding: 22px 24px 24px; }
.game-card .body h3 { font-size: 1.5rem; }
.game-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: #c9bdff; font-weight: 650; }
.game-card:hover .more { color: #fff; }
.games-side { display: grid; gap: 20px; }
.game-next { display: flex; flex-direction: column; justify-content: center; min-height: 160px; border-style: dashed; background: rgba(255, 255, 255, 0.02); }
.game-next h3 { display: flex; align-items: center; gap: 10px; }
.game-next .lock { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.game-next .lock svg { width: 18px; height: 18px; }

/* Banner (game pages): the scene fills the box; the text sits over the sky, a veil keeps it readable. */
.banner { position: relative; overflow: hidden; min-height: clamp(520px, 42vw, 640px); border-bottom: 1px solid var(--border); background: #0d0a24; }
.banner > svg, .banner > picture, .banner > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 10, 18, 0.82) 0%, rgba(7, 10, 18, 0.45) 42%, rgba(7, 10, 18, 0) 68%), linear-gradient(180deg, rgba(7, 10, 18, 0) 72%, var(--bg) 100%); }
.banner { display: flex; align-items: center; }
.banner-text { position: relative; z-index: 2; width: 100%; padding: 72px 0; }
.banner-text h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin: 0 0 14px; letter-spacing: -0.035em; font-weight: 800; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.banner-text .lead { max-width: 560px; color: #d3d9e6; font-size: 1.15rem; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }
.banner-text .button-row { margin-top: 20px; }

/* Small animations (the app mock) */
.twinkle { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.art-word { position: absolute; z-index: 1; left: 26px; bottom: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-card .art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.game-card .art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 10, 18, 0.55) 0%, rgba(7, 10, 18, 0) 28%), linear-gradient(20deg, rgba(7, 10, 18, 0.75) 0%, rgba(7, 10, 18, 0.25) 38%, rgba(7, 10, 18, 0) 60%); }

/* App mock (a drawn "screenshot" of Re:bot) */
.app-mock { position: relative; border-radius: 18px; border: 1px solid var(--border-strong); background: linear-gradient(180deg, #121933, #0b1022); box-shadow: 0 40px 100px -30px rgba(91, 80, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; overflow: hidden; font-size: 13px; line-height: 1.4; user-select: none; }
.app-mock::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(139, 108, 255, 0.25), transparent); pointer-events: none; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.025); color: var(--muted); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4258; }
.mock-bar i:nth-child(1) { background: #f05d6c; } .mock-bar i:nth-child(2) { background: #f5b84b; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 8px; font-weight: 600; }
.mock-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 650; font-size: 12px; }
.mock-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.mock-body { display: grid; grid-template-columns: 128px 1fr; min-height: 340px; position: relative; }
.mock-side { padding: 12px 8px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.mock-side span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.mock-side span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #3a4258; }
.mock-side span.on { background: rgba(139, 108, 255, 0.16); color: #fff; }
.mock-side span.on::before { background: var(--accent); }
.mock-side span.run::before { background: var(--ok); }
.mock-main { padding: 14px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-content: start; }
.mock-panel { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.mock-panel.wide { grid-column: 1 / -1; }
.mock-title { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.vital { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; margin: 6px 0; color: var(--muted); font-weight: 600; font-size: 12px; }
.vital .track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.vital .fill { display: block; height: 100%; border-radius: 99px; }
.vital .fill.hp { background: linear-gradient(90deg, #f05d6c, #ff8a7a); animation: hp 6s ease-in-out infinite; }
.vital .fill.mp { background: linear-gradient(90deg, #5b8cff, #22d3ee); animation: mp 6s ease-in-out infinite; }
@keyframes hp { 0%, 100% { width: 92%; } 35% { width: 58%; } 45% { width: 88%; } 70% { width: 74%; } 80% { width: 95%; } }
@keyframes mp { 0%, 100% { width: 80%; } 40% { width: 62%; } 60% { width: 70%; } 85% { width: 54%; } }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); color: #cdd3e1; font-size: 12px; }
.rule:first-of-type { border-top: 0; }
.rule em { font-style: normal; color: var(--faint); }
.toggle { flex: none; width: 26px; height: 15px; border-radius: 99px; background: var(--accent); position: relative; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.toggle.off { background: #3a4258; }
.toggle.off::after { right: auto; left: 2px; }
.mock-map svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.route { stroke-dasharray: 6 6; animation: route 2.2s linear infinite; }
@keyframes route { to { stroke-dashoffset: -24; } }
.log { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: grid; gap: 3px; }
.log span b { color: var(--accent-2); font-weight: 500; }
.log span.ok b { color: var(--ok); }
.log span.new { animation: logline 6s ease-in-out infinite; }
@keyframes logline { 0%, 20% { opacity: 0; transform: translateY(4px); } 30%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.float-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(16, 22, 42, 0.92); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); backdrop-filter: blur(8px); }
.float-badge strong { display: block; color: #fff; font-size: 14px; }
.float-badge .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.float-badge .dot svg { width: 18px; height: 18px; }
.float-badge.a { left: -28px; bottom: -26px; animation: bob 4s ease-in-out infinite; }
.float-badge.b { right: -22px; top: -30px; animation: bob 4.6s ease-in-out infinite .6s; }
.float-badge.b .dot { background: rgba(139, 108, 255, 0.18); color: #cfc4ff; }
.mock-wrap { position: relative; }

/* Feature showcase rows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 84px; }
.showcase.flip > :first-child { order: 2; }
.showcase h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.showcase p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; color: #cdd3e1; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; background: rgba(52, 211, 153, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px;
  background: var(--gradient); color: var(--accent-text); display: grid; place-items: center; font-weight: 800;
}
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.timeline li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 60px 22px 22px; color: var(--muted); }
.timeline li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 18px; left: 22px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.timeline li::before { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline li strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; color: #fff; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--faint); font-size: 0.9rem; margin-bottom: 14px; }
.plan ul { flex: 1; margin-bottom: 22px; }
.plan .button { width: 100%; }
.plan.featured { background: linear-gradient(180deg, rgba(139, 108, 255, 0.14), rgba(34, 211, 238, 0.04)); border-color: rgba(139, 108, 255, 0.5); box-shadow: 0 30px 80px -30px rgba(139, 108, 255, 0.55); }
.plan .tag { position: absolute; top: -12px; right: 20px; padding: 4px 12px; border-radius: 999px; background: var(--gradient); color: var(--accent-text); font-size: 0.75rem; font-weight: 750; }
.price { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.plans-note { margin-top: 22px; color: var(--muted); text-align: center; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 56px 40px; text-align: center; border: 1px solid rgba(139, 108, 255, 0.4); background: radial-gradient(600px 260px at 20% 0%, rgba(139, 108, 255, 0.35), transparent 70%), radial-gradient(600px 260px at 80% 100%, rgba(34, 211, 238, 0.22), transparent 70%), var(--surface-solid); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.cta-band .button-row { justify-content: center; }

/* Notices, FAQ */
.notice { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-sm); padding: 16px 20px; color: #e8dcc2; margin: 18px 0; }
.notice strong { color: var(--warn); }
.faq { max-width: 820px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; transition: border-color .2s, background .2s; }
details[open] { background: var(--surface-2); border-color: var(--border-strong); }
summary { cursor: pointer; font-weight: 650; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 6px; }

/* Support */
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.support .card a { font-weight: 650; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; color: var(--muted); font-size: 0.92rem; margin-top: 40px; background: rgba(0, 0, 0, 0.25); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { margin: 0 0 12px; color: var(--text); font-size: 0.9rem; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { max-width: 320px; margin-top: 12px; }
.footer-grid .brand { display: inline-flex; color: var(--text); margin: 0; font-size: 1.15rem; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
/* Short footer of simple pages (404). */
footer > .wrap > a { margin-right: 16px; }

/* Inner pages: buy, account, legal */
.legal { padding-top: 56px; padding-bottom: 40px; max-width: 900px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: 0 0 16px; letter-spacing: -0.03em; }
.legal h2 { margin-top: 40px; font-size: 1.5rem; }
.legal > p, .legal li { color: #c8cfdd; }
.legal .grid { margin: 24px 0; }
.legal .card h3 { font-size: 1.2rem; }
.page-intro { color: var(--muted); font-size: 1.1rem; }
.checkout { max-width: 560px; margin-bottom: 18px; }
.checkout label { display: block; font-weight: 650; margin: 14px 0 6px; font-size: 0.95rem; }
.checkout input, .checkout select, .checkout textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(0, 0, 0, 0.35); color: var(--text); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.25); }
.checkout select option { background: var(--surface-solid); }
.checkout textarea { font-family: var(--mono); font-size: 0.85rem; resize: vertical; word-break: break-all; }
.checkout .button { margin-top: 18px; }
.checkout button { font: inherit; font-weight: 650; }
.checkout button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.checkout img { display: block; margin: 14px 0; background: #fff; padding: 10px; border-radius: 12px; max-width: 100%; height: auto; }
.checkout-status { min-height: 1.6em; margin: 12px 0 0; font-weight: 650; }
.checkout-status.ok { color: var(--ok); }
.checkout-status.error { color: var(--danger); }
.checkout .fine { margin: 12px 0 0; color: var(--faint); font-size: 0.88rem; }
/* "Continuar com o Google": Google's dark button (sign-in branding guidelines), full width, then an "or" rule. */
.button.google { width: 100%; margin-top: 6px; background: #131314; color: #e3e3e3; border: 1px solid #8e918f; box-shadow: none; font-weight: 600; }
.button.google:hover { color: #fff; background: #1f1f20; filter: none; box-shadow: none; }
.button.google svg { width: 20px; height: 20px; flex: none; }
.checkout .or { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--faint); font-size: 0.86rem; }
.checkout .or::before, .checkout .or::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.checkout input.key { font-family: var(--mono); font-size: 1.05rem; font-weight: 650; letter-spacing: 0.04em; }
.checkout ol { list-style: none; padding-left: 0; color: #c8cfdd; }
#trial, #trial-key, #download { max-width: none; }

/* Customer area (conta.html) */
.nav-button { padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 0.95rem; cursor: pointer; }
.nav-button:hover { color: var(--text); background: var(--surface-2); }
.account-licenses { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-bottom: 18px; }
.account-license p { margin: 4px 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.account-actions .button, #renew .button, #account-export { padding: 10px 16px; font-size: 0.92rem; }
.account-actions button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 650; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.badge.on { background: rgba(52, 211, 153, 0.16); color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.4); }
.badge.off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-strong); }
.account-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.account-table table { border-collapse: collapse; width: 100%; min-width: 440px; }
.account-table th, .account-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.account-table th { color: var(--faint); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255, 255, 255, 0.02); }
.account-table tr:last-child td { border-bottom: 0; }

/* Reveal on load (no script needed) */
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Movement (motion.js puts .motion on <html>; without it, with "reduce motion" or an old browser, everything below
   that depends on .motion is skipped and the pages stay static and fully visible). */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
section { overflow: clip; }
section > .wrap { position: relative; z-index: 1; }

/* Ink strokes: a line before every kicker and under every section title, drawn when they come in. */
.kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; margin-right: 10px; vertical-align: middle; border-radius: 2px; background: var(--gradient); transform-origin: left; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--gradient); transform-origin: left; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; transform-origin: center; }

/* Reveal on scroll: rise, slide in from a side or zoom, one after the other inside a group. */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal="left"] { transform: translate3d(-56px, 0, 0); }
.motion [data-reveal="right"] { transform: translate3d(56px, 0, 0); }
.motion [data-reveal="zoom"] { transform: scale(.94); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .kicker[data-reveal]::before, .motion h2[data-reveal]::after { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .35s; }
.motion .kicker.in::before, .motion h2.in::after { transform: scaleX(1); }

/* Header: firmer once the page moves, with a reading-progress line along its bottom edge. */
header { transition: background .3s, box-shadow .3s; }
header.scrolled { background: rgba(7, 10, 18, 0.9); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.9); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gradient); transform: scaleX(var(--sp, 0)); transform-origin: left; pointer-events: none; }

/* Game banner: the scene sinks slower than the page and the text fades out as it leaves. */
.motion .banner img { transform: translate3d(0, calc(var(--bp, 0) * 22%), 0) scale(1.04); will-change: transform; }
.motion .banner-text { opacity: calc(1 - var(--bp, 0) * 1.6); transform: translate3d(0, calc(var(--bp, 0) * -70px), 0); }

/* Giant outlined word behind a section, moving at its own pace. */
.ghost { position: absolute; z-index: 0; top: 24px; right: -1vw; font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 17vw, 15rem); line-height: .85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(139, 108, 255, 0.18); white-space: nowrap; pointer-events: none; user-select: none; transform: translate3d(0, var(--py, 0), 0); }
.ghost.left { right: auto; left: -1vw; }

/* Light that follows the pointer over cards; the hero's app tilts toward it. */
.card:not(.featured) { background-image: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(139, 108, 255, 0.11), transparent 45%); }
.motion .hero .app-mock { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.game-card .art img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.game-card:hover .art img { transform: scale(1.05); }

/* Numbers band */
.stats-band { padding: 12px 0 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 14px; font-weight: 700; font-size: 1.02rem; }
.stats span::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--gradient); }
.stats p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }

/* "Como funciona" on wide screens: the steps slide sideways while the section is held on screen. */
.unroll-bar { display: none; }
@media (min-width: 981px) and (min-height: 620px) {
  .motion .unroll { height: 260vh; padding: 0; overflow: visible; }
  .motion .unroll-stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 68px; }
  .motion .unroll-stick > .wrap { width: 100%; }
  .motion .unroll .timeline { display: flex; gap: 24px; transform: translate3d(var(--x, 0), 0, 0); will-change: transform; }
  .motion .unroll .timeline li { flex: 0 0 min(460px, 38vw); min-height: 290px; padding: 104px 34px 34px; font-size: 1.05rem; }
  .motion .unroll .timeline li::before { top: 24px; left: 32px; font-size: 4rem; }
  .motion .unroll .timeline li strong { font-size: 1.5rem; margin-bottom: 10px; color: var(--text); }
  .motion .unroll-bar { display: block; height: 2px; margin-top: 34px; max-width: 320px; background: var(--border-strong); border-radius: 2px; overflow: hidden; }
  .motion .unroll-bar span { display: block; height: 100%; background: var(--gradient); transform: scaleX(var(--p, 0)); transform-origin: left; }
}

/* /medivia "Role para caçar": the scene is held on screen and each module takes its turn as the page scrolls. */
.hunt-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 48px; align-items: center; }
.hunt-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.hunt-head .kicker { margin: 0; }
.hunt-bar { display: none; width: 140px; height: 2px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
.hunt-bar span { display: block; height: 100%; background: var(--gradient); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hunt-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 26px; }
.hunt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.hunt-steps b { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.1em; color: var(--accent-2); }
.hunt-steps h3 { margin: 4px 0 8px; font-size: 1.5rem; }
.hunt-steps p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 460px; }
.hunt-stage { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border-strong); box-shadow: 0 40px 100px -30px rgba(91, 80, 255, 0.5); aspect-ratio: 1200 / 630; background: #0d0a24; }
.hunt-stage img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.02 + var(--p, 0) * 0.08)); transform-origin: 40% 60%; }
.hunt-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 10, 18, 0.35), rgba(7, 10, 18, 0) 30%, rgba(7, 10, 18, 0) 70%, rgba(7, 10, 18, 0.55)); }
.hud { position: absolute; z-index: 1; transition: opacity .5s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.hud-hp { left: 4%; top: 6%; width: 34%; padding: 10px 12px; border-radius: 12px; background: rgba(10, 12, 26, 0.78); border: 1px solid var(--border-strong); font-size: 12px; color: var(--muted); backdrop-filter: blur(6px); }
.hud-hp > span { font-weight: 700; color: #fff; }
.hud-hp i { display: block; height: 8px; margin: 6px 0; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hud-hp em { display: block; width: 86%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f05d6c, #ff8a7a); }
.hud-hp small { color: var(--accent-3); font-weight: 650; }
.hud-target { left: 45%; top: 4%; width: 33%; height: 50%; border: 2px solid rgba(34, 211, 238, 0.9); border-radius: 10px; box-shadow: 0 0 0 1px rgba(7, 10, 18, 0.6), 0 0 30px rgba(34, 211, 238, 0.35) inset; }
.hud-target span { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 6px; background: var(--accent-2); color: var(--accent-text); font-size: 12px; font-weight: 750; white-space: nowrap; }
.hud-loot { right: 4%; bottom: 10%; display: grid; gap: 6px; justify-items: end; }
.hud-loot span { padding: 5px 11px; border-radius: 8px; background: rgba(10, 12, 26, 0.85); border: 1px solid rgba(245, 184, 75, 0.45); color: #ffd98a; font-size: 12px; font-weight: 650; }
.hud-route { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.hud-route path { fill: none; stroke: #22d3ee; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 16; filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.9)); }
.hud-route circle { fill: #070a12; stroke: #8b6cff; stroke-width: 5; }
.hud-tabs { position: absolute; z-index: 1; left: 4%; bottom: 5%; display: flex; gap: 6px; flex-wrap: wrap; }
.hud-tabs span { padding: 4px 10px; border-radius: 999px; background: rgba(10, 12, 26, 0.8); border: 1px solid var(--border-strong); color: var(--muted); font-size: 11px; font-weight: 650; transition: background .3s, color .3s, border-color .3s; }

@media (min-height: 600px) {
  .motion .hunt { height: 400vh; padding: 0; overflow: visible; }
  .motion .hunt-stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 68px; }
  .motion .hunt-stick > .wrap { width: 100%; }
  .motion .hunt-bar { display: block; }
  .motion .hunt-steps { position: relative; min-height: 190px; display: block; }
  .motion .hunt-steps li { position: absolute; left: 0; top: 0; right: 0; opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .motion .hunt .hud { opacity: 0; transform: scale(.96); }
  .motion .hunt[data-step="0"] .hunt-steps li:nth-child(1), .motion .hunt[data-step="1"] .hunt-steps li:nth-child(2),
  .motion .hunt[data-step="2"] .hunt-steps li:nth-child(3), .motion .hunt[data-step="3"] .hunt-steps li:nth-child(4) { opacity: 1; transform: none; }
  .motion .hunt[data-step="0"] .hud-hp, .motion .hunt[data-step="1"] .hud-target,
  .motion .hunt[data-step="2"] .hud-loot, .motion .hunt[data-step="3"] .hud-route { opacity: 1; transform: none; }
  .motion .hunt[data-step="0"] .hud-hp em { animation: hpdip 2.6s ease-in-out infinite; }
  .motion .hunt[data-step="1"] .hud-target { animation: lockon .7s cubic-bezier(.2, .7, .2, 1) both; }
  .motion .hunt .hud-loot span { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
  .motion .hunt[data-step="2"] .hud-loot span { opacity: 1; transform: none; }
  .motion .hunt[data-step="2"] .hud-loot span:nth-child(2) { transition-delay: .25s; }
  .motion .hunt[data-step="2"] .hud-loot span:nth-child(3) { transition-delay: .5s; }
  .motion .hunt .hud-route path { animation: route 1.2s linear infinite; }
  .motion .hunt[data-step="0"] .hud-tabs span:nth-child(1), .motion .hunt[data-step="1"] .hud-tabs span:nth-child(2),
  .motion .hunt[data-step="2"] .hud-tabs span:nth-child(3), .motion .hunt[data-step="3"] .hud-tabs span:nth-child(4) { background: var(--gradient); color: var(--accent-text); border-color: transparent; }
}
@keyframes hpdip { 0%, 100% { width: 86%; } 30% { width: 38%; } 42% { width: 90%; } 70% { width: 62%; } 80% { width: 92%; } }
@keyframes lockon { from { transform: scale(1.35); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hunt-grid { grid-template-columns: 1fr; gap: 22px; }
  .hunt-stage { order: -1; }
  .hunt-copy h2 { margin-bottom: 14px; }
  .motion .hunt-steps { min-height: 150px; }
  .hunt-steps h3 { font-size: 1.25rem; }
  .hunt-steps p { font-size: 0.98rem; }
}
@media (max-width: 640px) {
  .stats { gap: 22px 16px; }
  .ghost { font-size: 26vw; }
  .hud-hp { width: 46%; padding: 6px 8px; font-size: 10px; }
  .hud-tabs { display: none; }
  .hud-loot span, .hud-target span { font-size: 10px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 48px; }
  .games, .showcase, .footer-grid { grid-template-columns: 1fr 1fr; }
  .games { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.flip > :first-child { order: 0; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .plans, .grid.three { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .float-badge.a { left: 8px; } .float-badge.b { right: 8px; }
  .mock-wrap { margin: 0 8px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  header .wrap { min-height: 60px; gap: 10px; }
  .brand { font-size: 1.12rem; } .brand svg { width: 28px; height: 28px; }
  nav a { padding: 7px 9px; font-size: 0.9rem; }
  nav a.hide-sm { display: none; }
  section { padding: 60px 0; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-main { grid-template-columns: 1fr; }
  .float-badge { display: none; }
  .timeline, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
  .banner { min-height: 560px; }
  .banner img { object-position: 76% 50%; }
  .banner::after { background: linear-gradient(180deg, rgba(7, 10, 18, 0.88) 0%, rgba(7, 10, 18, 0.7) 45%, rgba(7, 10, 18, 0) 68%, rgba(7, 10, 18, 0) 86%, var(--bg) 100%); }
  .banner-text { padding-top: 48px; }
  .button-row .button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
