:root {
  --bg: #041018;
  --card: #0a1a33;
  --line: rgba(59, 182, 245, 0.28);
  --ink: #F4F8FF;
  --muted: #9BB3D1;
  --cyan: #3BB6F5;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --go: #16c75a;
  --go-2: #15803d;
  --accent: #3BB6F5;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html {
  scroll-behavior: smooth;
  background: #041018;
}
body.app {
  position: relative;
  font-family: "Segoe UI", system-ui, sans-serif;
  width: 100%;
  background: #041018;
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 84px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2 { line-height: 1.15; margin: 0 0 .55rem; }
p { margin: 0 0 .8rem; }

.wrap { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px;
  background: rgba(4, 16, 24, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; justify-content: center; min-width: 0; }
.brand-copy { display: grid; gap: 1px; justify-items: center; }
.wordmark { width: min(148px, 48vw); height: auto; }
.brand-copy small {
  color: var(--cyan);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  font-weight: 700;
}
.desk-nav { display: none; }
.nav-safe { display: none; }
.top-spacer { display: block; width: 42px; height: 42px; }
.menu-btn {
  width: 42px; height: 42px; border: 0; border-radius: 12px;
  background: #0c1c33; display: grid; gap: 5px; place-content: center; cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: #d5e6f7; }
.drawer {
  position: fixed; inset: 64px 12px auto; z-index: 40;
  background: #071525; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; display: grid; gap: 4px;
}
.drawer[hidden] { display: none !important; }
.drawer a { padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.drawer a:hover { background: #0c1c33; }

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: calc(100svh - 64px - 84px);
  min-height: 460px;
  max-height: 640px;
  background: #041018;
}
.hero-bg--pc { display: none; }
.hero-bg--mob {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none;
  object-fit: cover; object-position: center 38%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,16,24,.08) 0%, rgba(4,16,24,.18) 48%, rgba(4,16,24,.88) 100%);
  pointer-events: none; z-index: 1;
}
.hero-stage {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
}
.hero-kicker {
  color: var(--cyan); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 800; margin: 0 0 8px;
}
.hero-line {
  font-size: clamp(1.45rem, 6vw, 2.4rem);
  font-weight: 900; letter-spacing: -.03em; margin: 0 0 8px;
  text-transform: uppercase;
}
.hero-sub { color: #d5e6f7; font-size: .92rem; max-width: 36rem; }
.hero-hits { position: relative; z-index: 2; }

.cta-pair { display: grid; gap: 10px; }
.cta-home { max-width: 100%; }
.hit {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 14px; border-radius: 16px; font-weight: 800;
}
.hit-txt { flex: 1; display: grid; gap: 2px; }
.hit-txt b { text-transform: uppercase; font-size: .95rem; }
.hit-txt small { font-size: .72rem; font-weight: 600; opacity: .9; }
.hit-arr { font-size: 1.6rem; }
.hit-go { background: linear-gradient(180deg, #3b82f6, #1d4ed8); color: #fff; }
.hit-tg { background: linear-gradient(180deg, #22c55e, #15803d); color: #fff; }
.hit.muted { opacity: .55; }

.feats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0;
}
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px;
}
.feat small { display: block; color: var(--muted); font-size: .72rem; }
.cats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 8px 0 18px;
}
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  min-height: 96px; padding: 14px 12px; font-weight: 800;
}
.cat small { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; }
.app-band {
  background: #0a1a33; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin-bottom: 22px; display: grid; gap: 12px;
}
.app-mark { width: 140px; height: auto; }

.doors, .home-hub { padding: 4px 0 22px; }
.doors h2, .home-hub h2 { font-size: 1.2rem; margin: 4px 0 8px; }
.doors-lead { color: var(--muted); margin: 0 0 12px; }
.door-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.door {
  display: grid; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px 14px; min-height: 92px;
}
.door b { font-size: 1.02rem; }
.door small { color: var(--muted); font-weight: 600; }
.door-tw { border-color: rgba(34, 197, 94, .45); }
.door-go { border-color: rgba(59, 130, 246, .45); }
.hub-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.hub {
  display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 12px; min-height: 88px; font-weight: 800;
}
.hub small { color: var(--muted); font-weight: 600; }
.store {
  display: block; text-align: center; min-height: 44px; line-height: 44px;
  border-radius: 12px; background: #111827; font-weight: 800; font-size: .78rem;
}

.prod-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.prod-list.compact { gap: 8px; }
.prod {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  background: #0b1730; border: 1px solid var(--line); border-radius: 22px; padding: 12px;
}
.prod.is-self { border-color: var(--cyan); }
.prod-logo {
  width: 72px; height: 72px; border-radius: 18px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
}
.prod-logo img { width: 64px; height: 40px; object-fit: contain; }
.prod-letter { font-weight: 900; color: #041018; font-size: 1.4rem; }
.prod-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.prod-name { font-weight: 800; font-size: 1rem; display: block; }
.prod-host { color: var(--muted); font-size: .75rem; margin: 2px 0 0; }
.prod-on { color: #22c55e; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.prod-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.act {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: .72rem; font-weight: 800;
}
.act-go { background: #2563eb; color: #fff; }
.act-tw { background: #111827; color: #fff; border: 1px solid rgba(255,255,255,.12); }
.prod-wrap { padding: 8px 0 18px; }

.sites-band { padding: 8px 0 28px; }
.sites-head h2 { font-size: 1.2rem; }
.sites-head p { color: var(--muted); }
.more-sites { color: var(--cyan); font-weight: 800; }
.sites-grid {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.site-card {
  display: grid; gap: 6px; justify-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 8px; min-height: 92px;
}
.site-card img { height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.site-card b { font-size: .78rem; }
.site-card small { color: var(--muted); font-size: .68rem; }
.site-card.is-here { border-color: var(--cyan); }

.page-head { padding: 18px 0 8px; }
.lead { color: var(--muted); }
.eyebrow { color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; font-weight: 800; }
.hits-wrap { padding: 8px 0 18px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--cyan); font-weight: 700; }

.seo-wrap { padding: 4px 0 28px; }
.seo-article { background: var(--card); border-radius: 20px; padding: 18px 16px; }
.seo-article h2 { font-size: 1.05rem; color: var(--cyan); }
.seo-article p, .seo-article li { color: var(--muted); }
.seo-article a { color: var(--cyan); font-weight: 700; }
.seo-toc, .seo-dir { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.seo-toc a, .seo-dir a, .seo-dir span {
  border: 1px solid var(--line); border-radius: 999px; padding: .22rem .7rem; font-size: .78rem;
}
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--muted); }
.steps span {
  width: 24px; height: 24px; border-radius: 50%; background: #0c1c33; color: var(--cyan);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; flex: none;
}
details { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }

.foot {
  text-align: center; padding: 18px 0 24px; color: var(--muted); font-size: .82rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.foot-mark { width: 168px; height: auto; margin: 0 auto 8px; }
.foot-dir { justify-content: center; margin: 12px 0; }
.foot-stats {
  list-style: none; padding: 0; margin: 16px 0 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.foot-stats li {
  background: #0a1a33; border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px;
}
.foot-stats b { display: block; color: #fff; font-size: .82rem; }
.foot-stats span { color: var(--muted); font-size: .68rem; }
.muted { color: var(--muted); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%;
  z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #06111f; border-top: 1px solid rgba(59, 182, 245, 0.2);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a, .tabbar .tab-menu {
  display: grid; justify-items: center; gap: 3px; color: #6e87a6;
  font-size: .62rem; font-weight: 700; padding: 6px 2px;
  background: transparent; border: 0; font-family: inherit; cursor: pointer;
}
.tabbar a.is-on { color: var(--cyan); }

.empty-page { text-align: center; padding: 48px 0; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.flags-wrap { padding: 18px 0 28px; }
.finder {
  display: block;
  margin: 0 0 16px;
}
.finder input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #071525;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}
.finder input:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.flags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}
.flag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flag-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.flag-card img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.flag-card strong, .flag-card span {
  text-align: center;
  max-width: 100%;
  line-height: 1.25;
}
.flag-card strong { font-size: .95rem; }
.flag-face span { color: var(--muted); font-size: .8rem; }
.flag-card:hover .flag-face strong { color: var(--cyan); }
.flag-links {
  display: flex;
  gap: 6px;
  width: 100%;
}
.flag-links a {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  padding: 7px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #071525;
}
.flag-links a:first-child {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  border-color: transparent;
}
.flag-links a:last-child {
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #fff;
  border-color: transparent;
}
.flag-card.is-hidden { display: none; }
.empty-flags { text-align: center; color: var(--muted); padding: 28px 0; }

.country-page { padding-bottom: 28px; }
.country-hero { padding-top: 22px; }
.back { color: var(--cyan); font-size: .92rem; font-weight: 700; }
.country-card {
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(37,99,235,.16), var(--card));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px 32px;
  text-align: center;
}
.country-flag {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.country-card h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.country-card .lead { margin-inline: auto; color: var(--muted); }
.country-card .cta-pair { margin: 18px auto 10px; max-width: 420px; }
.hub-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px auto 4px;
  max-width: 420px;
}
.hub-door {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
}
.hub-door b { font-size: .98rem; }
.hub-door small { color: rgba(255,255,255,.84); font-size: .72rem; line-height: 1.3; }
.hub-door-login { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.hub-door-twitter { background: linear-gradient(180deg, #22c55e, #15803d); }
.country-body { color: var(--muted); margin: 0 0 14px; }
.sibling { margin: 8px 0 0; }
.sibling a { color: var(--cyan); font-weight: 700; }
.seo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.seo-tags li {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .78rem;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}
.split article, .split aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.steps span {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
}
.country-page details { border-top: 1px solid var(--line); padding: 10px 0; }
.country-page details:first-of-type { border-top: 0; }
.country-page summary { cursor: pointer; font-weight: 700; }
.more { margin-top: 28px; }
.mini-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-flags img {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  opacity: .85;
}
.mini-flags a:hover img { opacity: 1; outline: 2px solid var(--cyan); }
html[dir="rtl"] .steps li { flex-direction: row-reverse; }
html[dir="rtl"] .country-card { text-align: right; }
html[dir="rtl"] .seo-tags, html[dir="rtl"] .country-card { text-align: center; }

@media (min-width: 900px) {
  body.app { padding-bottom: 0; }
  .wrap { width: min(1180px, calc(100% - 48px)); }
  .tabbar { display: none; }
  .menu-btn, .top-spacer { display: none; }
  .drawer { display: none !important; }
  .top {
    display: flex; grid-template-columns: none;
    padding: 10px 28px; min-height: 72px; background: #041018;
  }
  .brand { justify-content: flex-start; }
  .brand-copy { justify-items: start; }
  .desk-nav {
    display: flex; align-items: center; gap: 18px; margin-left: auto;
    font-size: .88rem; font-weight: 700;
  }
  .desk-nav a { color: #d5e6f7; opacity: .9; }
  .desk-nav a:hover { color: #fff; }
  .nav-go {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff !important; border-radius: 999px; padding: 8px 16px;
    font-weight: 800; opacity: 1 !important;
  }
  .nav-safe {
    display: inline-flex; align-items: center; gap: 6px;
    color: #9BB3D1; font-size: .72rem; font-weight: 700; margin-right: 8px;
  }
  .wordmark { width: 176px; }
  .hero {
    aspect-ratio: auto;
    min-height: 640px;
    max-height: none;
    height: min(82vh, 780px);
  }
  .hero-bg--mob { display: none; }
  .hero-bg--pc {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center right;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(4,16,24,.04) 0%, rgba(4,16,24,.12) 55%, rgba(4,16,24,.78) 100%);
  }
  .hero-stage {
    left: max(28px, calc((100% - 1180px) / 2));
    right: auto; bottom: 48px; width: min(560px, 46vw);
  }
  .hero-line { font-size: 2.6rem; }
  .cta-home { max-width: 440px; }
  .feats { grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .door-grid { grid-template-columns: 1fr 1fr; }
  .hub-list { grid-template-columns: repeat(4, 1fr); }
  .app-band { grid-template-columns: 1fr auto; align-items: center; padding: 22px 28px; }
  .sites-grid.ours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sites-grid.dir { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .prod-list { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 88px 1fr; padding: 16px; }
  .hit { min-height: 70px; border-radius: 18px; }
  .foot-stats { grid-template-columns: repeat(4, 1fr); }
  .nav-safe { display: inline-flex; }
  .split { grid-template-columns: 1fr 1fr; }
  .flags { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
}
