/* ============================================================
   1WIN APP SITE — Blue theme (matches 1win interface)
   ============================================================ */

:root {
  --bg:        #06101e;
  --bg2:       #0b1929;
  --bg3:       #0f2035;
  --panel:     #0d1e33;
  --line:      rgba(255,255,255,.09);
  --line2:     rgba(255,255,255,.16);
  --text:      #eaf2ff;
  --muted:     #8aa8cc;
  --faint:     #4d6a8a;
  --blue:      #2b8fff;
  --cyan:      #1fd8ff;
  --gold:      #f5b832;
  --green:     #1fd47e;
  --radius:    20px;
  --radius-sm: 12px;
  --max:       1200px;
  --nav-h:     72px;
  --cta-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.4em; }
li { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  padding: 13px 24px; min-height: 48px; border: none; cursor: pointer;
  transition: opacity .15s, transform .1s; white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, #2b8fff, #1660e8); color: #fff; }
.btn.gold    { background: linear-gradient(135deg, #f5b832, #d4921a); color: #1a0e00; }
.btn.outline { background: transparent; border: 1px solid var(--line2); color: var(--text); }
.btn.sm { font-size: 13px; padding: 9px 16px; min-height: 38px; border-radius: 10px; }

/* ── Header ──────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,16,30,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.top-inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.logo-img { height: 38px; width: auto; display: block; }

.desktop-nav { display: flex; align-items: center; gap: 2px; flex: 1; margin-left: 12px; }
.nav-group { position: relative; }
.nav-group > .nav-trigger {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: color .15s, background .15s;
  border: 1px solid transparent; background: none; font-family: inherit;
}
.nav-group:hover > .nav-trigger { color: var(--text); background: var(--bg3); border-color: var(--line); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-group:hover .nav-trigger svg { transform: rotate(180deg); }
.nav-drop {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--panel); border: 1px solid var(--line2);
  border-radius: var(--radius-sm); padding: 8px; min-width: 180px;
  z-index: 100; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.nav-group:hover .nav-drop { display: block; }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--muted); transition: color .15s, background .15s; }
.nav-drop a:hover { color: var(--text); background: var(--bg3); }
.nav-drop .drop-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 8px 12px 4px; }
.desktop-nav > a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 600; transition: color .15s; border: 1px solid transparent; }
.desktop-nav > a:hover { color: var(--text); background: var(--bg3); border-color: var(--line); }
.head-actions { display: flex; gap: 10px; margin-left: auto; }
.hamb { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg3); color: var(--text); font-size: 22px; cursor: pointer; }

/* ── Drawer ──────────────────────────────────── */
.drawer { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.drawer.open { pointer-events: auto; }
.shade { position: absolute; inset: 0; background: rgba(0,0,0,.65); opacity: 0; transition: .25s; }
.drawer.open .shade { opacity: 1; }
.panel {
  position: absolute; right: 0; top: 0; width: min(380px,93vw); height: 100%;
  background: #091627; border-left: 1px solid var(--line2);
  transform: translateX(105%); transition: .25s; padding: 20px; overflow-y: auto;
}
.drawer.open .panel { transform: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close { background: var(--bg3); border: 1px solid var(--line2); color: var(--text); border-radius: 10px; font-size: 22px; width: 42px; height: 42px; cursor: pointer; }
.m-section { margin: 20px 0 8px; color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.m-links { display: grid; gap: 6px; }
.m-links a, .lang a { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg2); color: #ddeeff; font-size: 14px; transition: border-color .15s; }
.m-links a:hover, .lang a:hover { border-color: var(--line2); }
.lang { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.panel-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }

/* ── Hero ────────────────────────────────────── */
.hero { padding: 48px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* Download badge */
.dl-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(43,143,255,.1); border: 1px solid rgba(43,143,255,.3);
  border-radius: 999px; padding: 6px 16px 6px 8px; margin-bottom: 20px;
}
.dl-badge-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 900; flex-shrink: 0;
}
.dl-badge span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }

.hero h1 { font-size: clamp(34px,4.5vw,64px); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 30px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.apk-meta { display: flex; align-items: center; gap: 20px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.apk-meta-item { display: flex; align-items: center; gap: 6px; }
.apk-meta-item strong { color: var(--text); font-size: 13px; }

.hero-visual { border-radius: 24px; overflow: hidden; border: 1px solid rgba(43,143,255,.2); background: var(--bg2); box-shadow: 0 32px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04); }
.hero-visual img { width: 100%; height: auto; }

/* ── Intent cards ────────────────────────────── */
.intent-section { padding: 36px 0; }
.intent-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.intent-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: border-color .2s, transform .2s; cursor: pointer; display: block; }
.intent-card:hover { border-color: var(--line2); transform: translateY(-3px); }
.intent-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.intent-icon.blue { background: rgba(43,143,255,.15); }
.intent-icon.gold { background: rgba(245,184,50,.15); }
.intent-icon.cyan { background: rgba(31,216,255,.12); }
.intent-card h3 { font-size: 18px; margin-bottom: 8px; }
.intent-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }

/* ── Sections ────────────────────────────────── */
.section { padding: 40px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px,3vw,40px); letter-spacing: -.03em; line-height: 1.12; }
.section-head p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.label-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 10px; }

/* ── Cards ───────────────────────────────────── */
.card { background: linear-gradient(160deg,var(--bg3),var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); line-height: 1.65; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* ── Steps ───────────────────────────────────── */
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.step-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.step-body p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── Fact list ───────────────────────────────── */
.facts-list { list-style: none; padding: 0; }
.facts-list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts-list li:last-child { border-bottom: none; }
.facts-key { color: var(--muted); }
.facts-val { font-weight: 600; color: var(--text); }

/* ── Game cards ──────────────────────────────── */
.game-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s, transform .2s; display: flex; flex-direction: column; gap: 10px; }
.game-card:hover { border-color: rgba(43,143,255,.4); transform: translateY(-2px); }
.game-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.game-card h4 { font-size: 15px; font-weight: 700; }
.game-card p { color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.game-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.tag-blue  { background: rgba(43,143,255,.15); color: #7fc3ff; border: 1px solid rgba(43,143,255,.25); }
.tag-gold  { background: rgba(245,184,50,.12);  color: #f0c060; border: 1px solid rgba(245,184,50,.2); }
.tag-cyan  { background: rgba(31,216,255,.1);   color: #5ad8f5; border: 1px solid rgba(31,216,255,.2); }
/* tag-green kept for check marks only, not main UI */
.tag-green { background: rgba(43,143,255,.1); color: #7fc3ff; border: 1px solid rgba(43,143,255,.2); }

/* ── Table ───────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--bg3); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); font-size: 14px; color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg3); }
.check { color: var(--blue); font-size: 16px; }
.cross { color: var(--faint); }

/* ── TOC ─────────────────────────────────────── */
.toc { display: flex; gap: 8px; flex-wrap: wrap; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 32px; }
.toc a { font-size: 13px; color: var(--muted); padding: 7px 14px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); border-color: var(--line2); }

/* ── FAQ ─────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: rgba(43,143,255,.35); }
.faq summary { cursor: pointer; font-size: 15px; font-weight: 700; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq summary::after { content: '+'; font-size: 20px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.faq-body p { margin-bottom: 8px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ── Warning & tip boxes ─────────────────────── */
.warning-box { background: rgba(245,184,50,.07); border: 1px solid rgba(245,184,50,.22); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 14px; color: #c9a045; display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.warning-box::before { content: '⚠'; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.tip-box { background: rgba(43,143,255,.07); border: 1px solid rgba(43,143,255,.22); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; color: #7fc3ff; display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; }
.tip-box::before { content: '✓'; font-size: 16px; flex-shrink: 0; margin-top: 1px; font-weight: 700; }

/* ── CTA banner ──────────────────────────────── */
.cta-banner { background: linear-gradient(135deg,#0d2347,#112d56); border: 1px solid rgba(43,143,255,.3); border-radius: var(--radius); padding: 40px; text-align: center; margin: 40px 0; }
.cta-banner h2 { font-size: clamp(24px,3vw,38px); margin-bottom: 12px; }
.cta-banner p { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.cta-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Link strip ──────────────────────────────── */
.link-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.link-strip a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: 13.5px; transition: color .15s, border-color .15s; }
.link-strip a:hover { color: var(--text); border-color: var(--line2); }

/* ── Locale grid ─────────────────────────────── */
.locale-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 10px; }
.locale-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); transition: color .15s, border-color .15s; }
.locale-card:hover { color: var(--text); border-color: var(--line2); }
.locale-card .flag { font-size: 22px; }

/* ── Footer ──────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 40px; }
.footer-inner { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 12px; line-height: 1.65; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-disclaimer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.7; }

/* ── Sticky CTA ──────────────────────────────── */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; height: var(--cta-h); background: rgba(6,16,30,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line2); padding: 10px 16px; gap: 10px; }
.sticky-cta .btn { flex: 1; }

.divider { border: none; border-top: 1px solid var(--line); margin: 8px 0; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .desktop-nav, .head-actions { display: none; }
  .hamb { display: flex; align-items: center; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero { padding: 24px 0 28px; }
  .hero h1 { font-size: 38px; }
  .intent-grid, .grid3, .grid2 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2,1fr); }
  .wrap { padding: 0 16px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: var(--cta-h); }
  .cta-banner { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .apk-meta { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
