/* =========================================================
   Quem Sou Eu? — Charades Party Game
   Professional responsive site — shared styles
   ========================================================= */

:root {
  --violet-50:  #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;

  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --coral-400: #fb7185;
  --coral-500: #f43f5e;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --teal-400: #2dd4bf;

  --ink:        #1c1630;
  --ink-soft:   #4b4563;
  --muted:      #6b6584;
  --line:       #e9e6f2;
  --bg:         #ffffff;
  --bg-soft:    #f7f6fc;
  --card:       #ffffff;
  --card-2:     #faf9ff;
  --white:      #ffffff;

  --brand-grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 40%, #ec4899 100%);
  --brand-grad-soft: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);

  --shadow-sm: 0 1px 2px rgba(28,22,48,.06), 0 1px 3px rgba(28,22,48,.05);
  --shadow-md: 0 8px 24px rgba(85,33,182,.10), 0 2px 8px rgba(28,22,48,.06);
  --shadow-lg: 0 24px 60px rgba(85,33,182,.18), 0 8px 24px rgba(28,22,48,.10);

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;
  --maxw: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", "Noto Sans JP", "Noto Sans KR", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #f3f0fb;
    --ink-soft: #cfc9e4;
    --muted:    #a49dc0;
    --line:     #2c2740;
    --bg:       #120e20;
    --bg-soft:  #171130;
    --card:     #1b1533;
    --card-2:   #201a3b;
    --white:    #ffffff;
    --brand-grad-soft: linear-gradient(135deg, #1b1140 0%, #2a1233 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,.45);
    --shadow-lg: 0 30px 70px rgba(0,0,0,.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--violet-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.hl {
  background: linear-gradient(120deg, #7c3aed, #ec4899 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet-600);
  background: var(--violet-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
@media (prefers-color-scheme: dark) {
  .eyebrow { background: rgba(124,58,237,.20); color: var(--violet-400); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--violet-400); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }

/* App Store badge button */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 14px;
  padding: 11px 22px 11px 20px; text-decoration: none;
  box-shadow: var(--shadow-md); transition: transform .15s ease, box-shadow .15s ease;
}
.appstore-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.appstore-btn svg { width: 30px; height: 30px; flex: none; }
.appstore-btn .as-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-btn .as-small { font-size: .68rem; opacity: .85; letter-spacing: .02em; }
.appstore-btn .as-big { font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.08rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px;
  object-fit: cover; box-shadow: var(--shadow-sm); flex: none;
  background: var(--violet-100);
}
.nav-links { display: flex; gap: 6px; margin-left: 14px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .96rem;
  padding: 8px 12px; border-radius: 10px;
}
.nav-links a:hover { color: var(--violet-600); background: var(--violet-50); text-decoration: none; }
@media (prefers-color-scheme: dark) { .nav-links a:hover { background: rgba(124,58,237,.15); color: var(--violet-400);} }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Language selector */
.lang-select {
  position: relative;
}
.lang-select select {
  appearance: none; -webkit-appearance: none;
  font-family: inherit; font-weight: 700; font-size: .95rem; color: var(--violet-700);
  background: var(--violet-50); border: 2px solid var(--violet-400);
  border-radius: 999px; padding: 10px 36px 10px 40px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(124,58,237,.18);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.lang-select select:hover { background: var(--violet-100); box-shadow: 0 4px 16px rgba(124,58,237,.28); }
.lang-select select:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 1px; }
@media (prefers-color-scheme: dark) {
  .lang-select select { color: var(--violet-400); background: rgba(124,58,237,.16); border-color: var(--violet-500); }
  .lang-select select:hover { background: rgba(124,58,237,.28); }
}
.lang-select::before {
  content: "🌐"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1.02rem; pointer-events: none;
}
.lang-select::after {
  content: ""; position: absolute; right: 15px; top: 50%;
  width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.nav-cta { display: inline-flex; }

.menu-toggle {
  display: none; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 90px;
  background: var(--brand-grad-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(48% 60% at 82% 8%, rgba(236,72,153,.20), transparent 70%),
    radial-gradient(45% 55% at 8% 92%, rgba(124,58,237,.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero h1 { color: var(--ink); }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 16px; }
.hero-note { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--teal-400); flex:none; }

.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero-stats .stat span { font-size: .86rem; color: var(--muted); font-weight: 600; }

/* Phone mockup */
.hero-art { display: grid; place-items: center; }
.phone {
  position: relative; width: 260px; height: 528px;
  background: #0e0a1c; border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,.06) inset;
  transform: rotate(4deg);
}
.phone::after { /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #0e0a1c; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: #5b34d6 url("../img/splash_background.png") center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  padding: 26px; text-align: center; color: #fff; position: relative;
}
.phone-screen .splash-logo {
  width: 72%; height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35));
}
.phone-screen .cat-pill {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.22); color:#fff; font-size:.72rem; font-weight:700;
  padding: 6px 14px; border-radius: 999px; letter-spacing:.04em; white-space:nowrap;
}
.phone-screen .word {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  text-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.phone-screen .timer {
  margin-top: 22px; font-size: 3rem; font-weight: 800; opacity: .96;
  font-variant-numeric: tabular-nums;
}
.phone-screen .hint { margin-top: 14px; font-size: .8rem; opacity: .82; font-weight: 600; }
.phone-screen .tilt-row { position:absolute; bottom: 34px; left:0; right:0; display:flex; justify-content:space-around; font-size:.7rem; font-weight:700; opacity:.9; }
.phone-screen .tilt-row .up { color:#fecdd3; }
.phone-screen .tilt-row .down { color:#bbf7d0; }

.hero-badge-float {
  position: absolute; background: var(--card); color: var(--ink);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-md);
  font-weight: 700; font-size: .9rem; display:flex; align-items:center; gap:9px;
  border: 1px solid var(--line);
}
.hero-badge-float .em { font-size: 1.3rem; }
.hb-1 { top: 8%; left: -6%; }
.hb-2 { bottom: 12%; right: -8%; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 84px; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head p { font-size: 1.1rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 22px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); position: relative;
}
.step .num {
  width: 42px; height: 42px; border-radius: 12px; background: var(--violet-100); color: var(--violet-700);
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}
@media (prefers-color-scheme: dark){ .step .num { background: rgba(124,58,237,.20); color: var(--violet-400);} }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: .96rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ficon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 18px; background: var(--brand-grad-soft);
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: .97rem; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px,1fr)); gap: 14px; }
.cat {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 16px; box-shadow: var(--shadow-sm); font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, border-color .15s ease;
}
.cat:hover { transform: translateY(-3px); border-color: var(--violet-400); }
.cat .cem { font-size: 1.4rem; flex: none; }

/* Languages */
.lang-cta-note {
  margin-top: 14px; font-weight: 700; color: var(--violet-700);
  background: var(--violet-50); display: inline-block;
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--violet-200);
}
@media (prefers-color-scheme: dark) {
  .lang-cta-note { color: var(--violet-400); background: rgba(124,58,237,.16); border-color: var(--violet-500); }
}
.langs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 1rem; color: var(--ink);
  box-shadow: var(--shadow-sm); cursor: pointer; font-family: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.lang-chip:hover { transform: translateY(-3px); border-color: var(--violet-400); box-shadow: var(--shadow-md); }
.lang-chip:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; }
.lang-chip.is-current {
  background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-md);
}
.lang-chip .flag { font-size: 1.3rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: 78px 0; text-align: center; background: var(--brand-grad); color: #fff; }
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(40% 60% at 15% 20%, rgba(255,255,255,.18), transparent 60%),
              radial-gradient(40% 60% at 85% 80%, rgba(0,0,0,.14), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 28px; }
.cta-band .appstore-btn { background: #fff; color: #000; }
.cta-band .appstore-btn svg { color:#000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 54px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: .94rem; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.footer-col a:hover { color: var(--violet-600); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .88rem; color: var(--muted);
}
.footer-bottom .disc { max-width: 62ch; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--brand-grad-soft); padding: 54px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.legal-meta { color: var(--muted); font-size: .95rem; font-weight: 600; }
.legal-body { padding: 50px 0 80px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-doc h2 {
  font-size: 1.35rem; margin: 42px 0 14px; padding-top: 6px;
  color: var(--ink); letter-spacing: -.01em;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 16px; }
.legal-doc ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { word-break: break-word; }
.legal-lead {
  background: var(--card-2); border: 1px solid var(--line); border-left: 4px solid var(--violet-500);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 30px;
}
.legal-lead p { margin: 0; }
.doc-nav {
  display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 34px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.doc-nav a { font-weight: 700; font-size: .95rem; }
.back-link { display:inline-flex; align-items:center; gap:7px; font-weight:600; color: var(--muted); margin-bottom: 20px; }
.back-link:hover { color: var(--violet-600); }

/* language visibility */
[data-lang] { display: none; }
[data-lang].is-active { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero .lead { max-width: none; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-note { justify-content: center; }
  .hb-1 { left: 2%; } .hb-2 { right: 2%; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-right { gap: 8px; }

  .mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 12px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; }
  .mobile-menu a:hover { background: var(--violet-50); text-decoration: none; }
  .mobile-menu .btn-primary { margin-top: 8px; color:#fff; }
}
@media (min-width: 821px) { .mobile-menu { display: none !important; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 52px 0 66px; }
  .hero-stats { gap: 22px; }
  .container { padding: 0 18px; }
  .phone { transform: rotate(3deg) scale(.92); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
