/* Voryn Apps — estilos compartilhados. Sem framework, sem build. */
:root {
  --bg: #070b14;
  --surface: #0e1526;
  --surface-2: #131c33;
  --line: rgba(148, 170, 220, .16);
  --text: #e8eefc;
  --muted: #93a0bd;
  --accent: #00d5ff;
  --accent-2: #0a5cff;
  --grad: linear-gradient(135deg, #00e5ff 0%, #0a7bff 55%, #0a4dff 100%);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: #7aeaff; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #002; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { display: flex; gap: 2px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .5px;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--grad); color: #00152e; }
@media (min-width: 760px) { .nav { display: flex; } .lang { margin-left: 8px; } }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  color: var(--text); background: var(--surface-2); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { color: var(--text); border-color: rgba(0, 213, 255, .5); transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #00152e; border-color: transparent; box-shadow: 0 8px 28px -8px rgba(10, 123, 255, .7); }
.btn.primary:hover { color: #00152e; box-shadow: 0 12px 34px -8px rgba(0, 213, 255, .75); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); z-index: -1; opacity: .55; }
.hero::before { width: 520px; height: 520px; background: #0a5cff; top: -220px; left: -160px; }
.hero::after { width: 420px; height: 420px; background: #00d5ff; top: 40px; right: -180px; opacity: .3; }
.hero-logo { width: 84px; height: 84px; object-fit: contain; margin-bottom: 22px; filter: drop-shadow(0 10px 30px rgba(0, 150, 255, .5)); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 3.8rem); font-weight: 900; letter-spacing: -.5px; max-width: 16ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 56ch; margin: 20px 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Seções ── */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 850; letter-spacing: -.2px; }
.section .sub { color: var(--muted); margin: 10px 0 28px; max-width: 60ch; }
.section h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -.3px; }
.page-head { padding-top: 48px; }
.section-more { margin-top: 26px; }

/* ── Cards de apps ── */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(0, 213, 255, .4); }
.card-head { display: flex; align-items: center; gap: 14px; }
.card-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7); }
.card h3 { font-size: 1.2rem; font-weight: 800; }
.chip { display: inline-block; margin-top: 4px; font-size: .72rem; font-weight: 700; color: var(--accent); border: 1px solid rgba(0, 213, 255, .35); border-radius: 999px; padding: 1px 9px; }
.card p { color: var(--muted); margin: 0; flex: 1; font-size: .95rem; }
.card .actions .btn { padding: 10px 16px; font-size: .88rem; }

/* ── Sobre / Contato ── */
.split { display: grid; gap: 28px; }
@media (min-width: 820px) { .split { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.about p { color: var(--muted); margin: 0 0 14px; max-width: 62ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 1.1rem; margin-bottom: 8px; }
.panel p { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }
.mail { font-weight: 800; font-size: 1.05rem; word-break: break-all; }

/* ── Página de app ── */
.app-hero { padding: 48px 0 24px; }
.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-title img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 14px 40px -12px rgba(0, 130, 255, .55); }
.app-title h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; }
.app-hero .lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 24px; max-width: 52ch; }
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 8px 20px 18px; margin: 0 -20px; scrollbar-width: thin; scrollbar-color: var(--accent-2) transparent; }
.shots img { height: min(62vh, 460px); width: auto; aspect-ratio: 9 / 16; border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: start; flex: none; background: var(--surface); }
/* Jogos em paisagem (capturas 2:1, ~800×400): <div class="shots landscape"> */
.shots.landscape img { height: auto; width: min(84vw, 600px); aspect-ratio: 2 / 1; }
.how { display: grid; gap: 28px; }
@media (min-width: 820px) { .how { grid-template-columns: 1fr 1.3fr; } }
.how h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 7px 0 7px 28px; color: #c9d4ee; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.intro { color: #c9d4ee; max-width: 70ch; }
.legal-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ── Páginas legais ── */
.legal { padding: 40px 0 64px; }
.legal-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 900; }
.legal-head .app-name { color: var(--accent); font-weight: 800; font-size: .85rem; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 8px; }
article.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; margin-top: 24px; max-width: 860px; }
@media (min-width: 700px) { article.doc { padding: 34px 36px; } }
article.doc h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 900; margin-bottom: 8px; }
article.doc .meta { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
article.doc h2 { font-size: 1.2rem; margin: 34px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); }
article.doc h2:first-of-type, article.doc .summary + h2 { border-top: 0; padding-top: 0; margin-top: 24px; }
article.doc h3 { font-size: 1rem; margin: 20px 0 4px; color: var(--accent); }
article.doc p, article.doc li { color: #c9d4ee; overflow-wrap: anywhere; }
article.doc ul { padding-left: 1.2em; }
article.doc li { margin: 4px 0; }
article.doc code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.summary { background: rgba(0, 150, 255, .1); border: 1px solid rgba(0, 213, 255, .25); border-radius: 12px; padding: 14px 18px; margin: 16px 0 8px; }
.summary ul { margin: 6px 0 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); color: #c9d4ee; }
th { color: var(--muted); font-weight: 700; }

/* ── 404 ── */
.notfound { text-align: center; padding: 96px 0; }
.notfound .code { font-size: clamp(5rem, 22vw, 9rem); font-weight: 900; line-height: 1; }
.notfound p { color: var(--muted); margin: 14px 0 28px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); background: #050810; padding: 40px 0 28px; margin-top: 24px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr; } }
.site-footer h4 { margin: 0 0 10px; font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; font-size: .93rem; color: var(--muted); }
.site-footer li strong { color: var(--text); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-note { color: var(--muted); font-size: .85rem; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-blurb { color: var(--muted); font-size: .93rem; margin: 10px 0 0; max-width: 34ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
