/*
Theme Name: MeStarVPN
Theme URI: https://mestarvpn.com
Author: MeStarVPN
Author URI: https://mestarvpn.com
Description: MeStarVPN official site theme. Converted from the static MeStarVPN site: 11 page templates, client-side EN/AR bilingual switching (with RTL), FAQ accordion, pricing, blog and status pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mestarvpn
Tags: custom-menu, custom-logo, featured-images, translation-ready
*/

/* =========================================================
   MeStarVPN — Shared Stylesheet
   ========================================================= */

:root {
  /* Color tokens (extracted from Lanhu mockup) */
  --navy-900: #0d2148;
  --navy-800: #10264b;
  --navy-700: #14335f;
  --navy-600: #1a3f73;
  --blue-500: #2f6fed;
  --blue-600: #2258d1;
  --blue-100: #e8f2fe;
  --blue-050: #f3f8fe;
  --sky-100: #eaf3fc;
  --sky-050: #f6faff;
  --purple-500: #7c4dff;
  --orange-500: #ff8a3d;
  --orange-600: #f2701f;
  --text-900: #10264b;
  --text-700: #33455f;
  --text-500: #64748b;
  --text-400: #94a3b8;
  --border-100: #e3eaf5;
  --border-200: #d3e0f2;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -12px rgba(16, 38, 75, 0.15);
  --shadow-btn: 0 8px 20px -6px rgba(47, 111, 237, 0.45);
  --font-display: "Poppins", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-arabic: "Cairo", "Tahoma", "Segoe UI", sans-serif;
  --container: 1200px;
  --footer-bg: #e3f1fd;
  --footer-bar-bg: #d7ecfb;
  --trust-bg: #e6f7ff;
  --cta-blue-start: #9dcbff;
  --cta-blue-end: #2ca0fb;
  --faq-bg: #eaf5fe;
  --faq-a-blue: #4a8dfb;
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] button,
html[dir="rtl"] input {
  font-family: var(--font-arabic);
}

/* ---------- 中文（zh）字体 ---------- */
html[lang="zh"] body,
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] h4,
html[lang="zh"] button,
html[lang="zh"] input {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html[dir="rtl"] .brand {
  font-family: var(--font-arabic);
}

/* Directional icons (arrows) mirror in RTL; down-chevrons and download arrows stay as-is */
html[dir="rtl"] .icon-arrow svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .hero-visual {
  direction: ltr;
}

/* keep placeholder illustration glyphs unmirrored */

/* ---------- RTL 下需要镜像的图片 ---------- */
/* 特色卡片插画（具有方向性内容）在 RTL 下镜像 */
html[dir="rtl"] .feature-card .feature-illu img {
  transform: scaleX(-1);
}

/* Hero visual SVG（前景插画）在 RTL 下镜像 */
html[dir="rtl"] .hero-visual svg,
html[dir="rtl"] .hero-visual img {
  transform: scaleX(-1);
}

/* 步骤箭头在 RTL 下：桌面端镜像为向左，移动端保持向下 */
html[dir="rtl"] .step-arrow img {
  transform: scaleX(-1);
}

@media (max-width: 860px) {
  /* 移动端 RTL：箭头保持向下（不做镜像，只做旋转） */
  html[dir="rtl"] .step-arrow img {
    transform: none;
  }
  html[dir="rtl"] .step-arrow {
    transform: rotate(90deg);
  }
}

/* 全球网络地图（带方向的插画）在 RTL 下镜像 */
html[dir="rtl"] .network-map img {
  transform: scaleX(-1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-900);
  margin: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

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

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn img.btn-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.btn-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
}

.btn-arrow-circle svg {
  width: 10px;
  height: 10px;
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  opacity: .9;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  box-shadow: 0 12px 26px -6px rgba(47, 111, 237, .55);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue-600);
  border: 1.5px solid var(--border-200);
}

.btn-ghost:hover {
  border-color: var(--blue-500);
}

.btn-outline-light {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, .18);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* 未配置下载链接时的"升级中"禁用态按钮：不可点击、灰化、去阴影 */
.btn.is-soon {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  filter: grayscale(0.35);
}

.btn.is-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #DEF2FF;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-100);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-900);
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-700);
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.main-nav a:hover {
  color: var(--blue-600);
}

.main-nav a.active {
  color: var(--blue-600);
  font-weight: 700;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-500);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-100);
}

.lang-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-400);
  padding: 4px 4px;
  border-radius: 6px;
  transition: color .15s ease;
}

.lang-btn:hover {
  color: var(--blue-600);
}

.lang-btn.active {
  color: var(--blue-600);
}

.lang-sep {
  color: var(--border-200);
  font-size: 11px;
}

@media (max-width: 860px) {
  .lang-switch svg {
    display: none;
  }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: none;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border-100);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-100);
  }

  .lang-switch span.lang-label {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-primary.desktop-only {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky-050) 0%, var(--sky-100) 45%, var(--blue-100) 100%);
  display: flex;
  align-items: center;
  min-height: 450px;
}

.hero.hero-index-bg {
  background-image: url('assets/banner1.webp');
  background-size: cover;
  background-position: center;
  background-color: var(--sky-050);
}

/* 首页 banner 图在阿拉伯语下镜像：整体翻转背景图 + 内容反镜像恢复文字 */
html[dir="rtl"] .hero.hero-index-bg {
  transform: scaleX(-1);
}

html[dir="rtl"] .hero.hero-index-bg>* {
  transform: scaleX(-1);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

html[dir="rtl"] .hero-bg {
  transform: scaleX(-1);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  padding-top: 48px;
  padding-bottom: 48px;
  width: 100%;
}

.hero-copy {
  max-width: 480px;
  margin-inline-end: auto;
}

.hero-visual {
  flex-shrink: 0;
  align-self: center;
  width: 46%;
  max-width: 480px;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-missing-note {
  font-size: 11.5px;
  color: var(--blue-600);
  background: rgba(255, 255, 255, .7);
  border: 1px dashed rgba(47, 111, 237, .4);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
  margin-top: 18px;
}

/* Placeholder box for illustrations that were not present in the exported slices */
.asset-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed rgba(47, 111, 237, .4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .5);
  color: var(--blue-600);
  text-align: center;
  padding: 24px;
  aspect-ratio: 4 / 3;
}

.asset-placeholder svg {
  width: 34px;
  height: 34px;
  opacity: .7;
}

.asset-placeholder span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 220px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  background: rgba(47, 111, 237, .1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-900);
}

.hero-sub {
  font-size: 16px;
  color: #007ECB;
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-500);
  font-weight: 500;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}

.hero-guarantee svg {
  color: var(--orange-500);
  flex-shrink: 0;
}

.hero-guarantee img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

/* placeholder illustration frame — swap inner <img> for real Lanhu export */
.illu {
  position: relative;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(47, 111, 237, .08), rgba(124, 77, 255, .08));
  border: 1px solid var(--border-100);
  color: var(--blue-500);
  aspect-ratio: 4 / 3;
}

.illu svg {
  width: 46%;
  height: 46%;
  opacity: .85;
}

.illu img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.illu-tag {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 12px;
  font-size: 11px;
  color: var(--text-400);
  background: rgba(255, 255, 255, .85);
  padding: 3px 8px;
  border-radius: 6px;
  direction: ltr;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid var(--border-100);
  background: var(--trust-bg);
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-700);
  justify-content: center;
}

.trust-item svg {
  color: var(--blue-500);
  flex-shrink: 0;
}

.trust-item img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-500);
  font-size: 15px;
  line-height: 1.6;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 10px;
}

.bg-tint {
  background: var(--sky-050);
}

/* ---------- Feature cards (3-up) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 95%;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
  box-shadow: 0 6px 20px -10px rgba(16, 38, 75, .08);
  border: 1px solid var(--border-100);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  font-size: 18px;
  margin: 0;
}

.feature-card p {
  position: absolute;
  top: 56px;
  left: 24px;
  right: 24px;
  z-index: 2;
  font-size: 13.5px;
  color: var(--text-500);
  line-height: 1.6;
  margin: 0;
}

.feature-card .feature-illu {
  display: block;
  line-height: 0;
}

.feature-card .feature-illu img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Devices section ---------- */
.devices-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
}

.device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Download 页专属：桌面端 4 列居中 */
.device-grid-download {
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

.device-card {
  background: #EEFAFF;
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.device-card .device-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-card .device-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device-card h4 {
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--blue-600);
}

.device-card .device-sub {
  font-size: 12px;
  color: var(--text-400);
  margin-bottom: 14px;
}

.devices-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.devices-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

/* ---------- Steps ---------- */
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  min-width: 240px;
  box-shadow: var(--shadow-card);
}

.step-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.step-card .step-label {
  font-size: 11px;
  color: var(--blue-500);
  font-weight: 700;
  letter-spacing: 1px;
}

.step-card h4 {
  font-size: 15px;
  margin-top: 2px;
}

.step-arrow {
  color: var(--border-200);
  flex-shrink: 0;
  width: 34px;
  height: 18px;
  display: flex;
  align-items: center;
}

.step-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 860px) {
  .step-arrow {
    transform: rotate(90deg);
  }
}

/* ---------- Network / map section ---------- */
.network-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.network-copy h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.network-copy p {
  color: var(--text-500);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 380px;
}

.network-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.network-map {
  background: linear-gradient(160deg, var(--blue-100), var(--sky-050));
}

.network-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-list {
  padding: 20px;
}

.location-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 12px;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-100);
  font-size: 13px;
}

.location-row:last-child {
  border-bottom: none;
}

.loc-rank {
  color: var(--orange-500);
  width: 18px;
  font-weight: 700;
  font-size: 12px;
}

.loc-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  line-height: 0;
  background: #EEF2F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.loc-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-name {
  flex: 1;
  color: var(--text-700);
  font-weight: 500;
}

.loc-ping {
  color: var(--orange-600);
  background: #FFF1E3;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.loc-star {
  color: var(--orange-500);
}

.loc-star.is-muted {
  color: var(--border-200);
}

/* ---------- CTA banners ---------- */
.cta-banner {
  background: linear-gradient(115deg, var(--cta-blue-start), var(--cta-blue-end) 120%);
  padding: 64px 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  inset-inline-end: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  max-width: 420px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-text {
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: none;
}

/* ---------- Pricing CTA (top banner) ---------- */
.cta-banner.cta-pricing-bg {
  padding: 40px 24px;
  margin-bottom: 50px;
}

.cta-banner.cta-pricing-bg .container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  max-width: 100%;
  padding: 0 48px;
}

.cta-banner.cta-pricing-bg h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.cta-banner.cta-pricing-bg p {
  font-size: 13px;
  max-width: 480px;
}

.cta-banner.cta-pricing-bg .cta-actions {
  gap: 16px;
}

.cta-banner.cta-pricing-bg .btn-primary {
  background: var(--blue-600);
  color: var(--white);
  padding: 10px 20px;
  font-size: 13px;
}

.cta-banner.cta-pricing-bg .btn-text-link {
  font-size: 13px;
  color: var(--white);
  opacity: .95;
}

.cta-banner.cta-pricing-bg .btn-arrow-circle {
  width: 16px;
  height: 16px;
}

.cta-banner.cta-pricing-bg .btn-arrow-circle svg {
  width: 9px;
  height: 9px;
}

html[dir="rtl"] .cta-banner.arabic-banner {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .cta-banner.arabic-banner h2,
html[dir="rtl"] .cta-banner.arabic-banner p {
  font-family: "Tahoma", "Segoe UI", var(--font-body);
}

.cta-banner.arabic-banner {
  background-image: url('assets/bg-arabic-banner.webp');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-color: var(--sky-050);
  padding: 110px 24px;
  text-align: left;
}

.cta-banner.arabic-banner .container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  max-width: 100%;
  padding: 0 48px;
}

.cta-banner.arabic-banner h2,
.cta-banner.arabic-banner p {
  color: var(--text-900);
}

.cta-banner.arabic-banner h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.cta-banner.arabic-banner p {
  font-size: 13px;
  opacity: .75;
}

.cta-banner.arabic-banner .cta-actions {
  gap: 16px;
}

.cta-banner.arabic-banner .btn-primary {
  background: var(--blue-600);
  color: var(--white);
  padding: 10px 20px;
  font-size: 13px;
}

.cta-banner.arabic-banner .btn-arrow-circle {
  width: 16px;
  height: 16px;
}

.cta-banner.arabic-banner .btn-arrow-circle svg {
  width: 9px;
  height: 9px;
}

.cta-banner.arabic-banner::after {
  display: none;
}

/* ---------- RTL: CTA/设备/特色区块统一镜像方案（整体 scaleX(-1) + 内容反镜像） ---------- */
/* ① 定价横幅 cta-pricing-bg：仅全局语言为阿拉伯语时镜像 */
html[dir="rtl"] .cta-banner.cta-pricing-bg {
  transform: scaleX(-1);
  /* 背景图水平翻转 */
}

html[dir="rtl"] .cta-banner.cta-pricing-bg>* {
  transform: scaleX(-1);
  /* 文字/按钮反镜像，恢复正常阅读方向 */
}

/* 前景图是内容后代，被整体和内容各镜像一次=复原 → 单独再镜像一次才反向 */
html[dir="rtl"] .cta-banner.cta-pricing-bg .cta-pricing-illu {
  transform: scaleX(-1);
}

/* ② 阿拉伯语横幅 arabic-banner：仅全局语言为阿拉伯语时镜像 */
html[dir="rtl"] .cta-banner.arabic-banner {
  transform: scaleX(-1);
  /* 大M背景从右 → 左 */
}

html[dir="rtl"] .cta-banner.arabic-banner>* {
  transform: scaleX(-1);
  /* 文字/按钮反镜像，恢复正常阅读方向 */
}

/* RTL 下内容从左侧对齐 → 改到右侧对齐 */
html[dir="rtl"] .cta-banner.arabic-banner .container {
  align-items: flex-start;
  /* dir=rtl + column → cross start = 右侧 */
}

/* ③ Devices 区块：仅全局语言为阿拉伯语时镜像 */
html[dir="rtl"] .devices-section-bg {
  transform: scaleX(-1);
  /* 背景图+前景图整体翻转 */
}

html[dir="rtl"] .devices-section-bg>* {
  transform: scaleX(-1);
  /* 内容（标题+卡片）反镜像 */
}

/* devices-visual 前景图：被两次镜像后复原 → 再单独镜像一次以反向 */
html[dir="rtl"] .devices-section-bg .devices-visual {
  transform: scaleX(-1);
}

/* RTL 下 devices 区的 section-head 要右对齐 */
html[dir="rtl"] .devices-section-bg .section-head {
  text-align: right;
  margin: 0 0 32px auto;
}

.devices-section-bg {
  background-image: url('assets/bg_oiwejoil.webp');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-color: var(--sky-050);
  padding-top: 72px;
  padding-bottom: 72px;
}

.devices-section-bg .section-head {
  text-align: left;
  max-width: 720px;
  margin: 0 0 32px;
}

.devices-section-bg .section-head h2 {
  color: var(--navy-900);
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.devices-section-bg .section-head p {
  color: var(--blue-600);
  font-size: 14px;
  line-height: 1.65;
  max-width: 620px;
  margin-top: 16px;
  margin-bottom: 0;
}

.devices-section-bg .device-card {
  background: rgba(255, 255, 255, .6);
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(3px);
}

.cta-pricing-bg {
  background-image: url('assets/bg-cta-pricing.webp'), linear-gradient(115deg, var(--cta-blue-start), var(--cta-blue-end) 120%);
  background-size: cover;
  background-position: center;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.faq-grid.single-col {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--faq-bg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: start;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-900);
}

.faq-q-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-q-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.faq-chevron {
  margin-inline-start: auto;
  color: var(--text-400);
  transition: transform .2s ease;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.faq-chevron img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.faq-answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 18px 18px 18px;
  padding-inline-start: 52px;
}

.faq-a-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--faq-a-blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-answer p {
  font-size: 13.5px;
  color: var(--text-500);
  line-height: 1.7;
}

.faq-more {
  text-align: center;
  margin-top: 36px;
}

/* ---------- Pricing (used on pricing page) ---------- */
/* Wrapper sits as a sibling AFTER .hero (not nested inside it), then a
   negative top margin pulls it up so the cards visually straddle the
   boundary between the hero's blue gradient and the white page background.
   Keeping it out of .hero avoids the hero's overflow:hidden clipping it. */
.badge-row-wrap {
  position: relative;
  z-index: 2;
  margin-top: -23px;
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}

.badge-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.badge-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-card h4 {
  font-size: 13.5px;
  margin-bottom: 3px;
  color: var(--text-900);
}

.badge-card p {
  font-size: 11.5px;
  color: var(--text-500);
  line-height: 1.4;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: linear-gradient(180deg, var(--sky-050), var(--white) 40%);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-lg);
  padding: 66px 26px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.price-card.featured {
  border-color: var(--orange-500);
  box-shadow: 0 16px 40px -14px rgba(255, 138, 61, .3);
}

.price-ribbon {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
  z-index: 2;
}

.price-plan-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 14px;
  margin-inline-end: 56px;
}

html[dir="rtl"] .price-ribbon {
  transform: none;
}

.price-plan-vip {
  font-weight: 800;
}

.price-old {
  font-size: 13px;
  color: var(--text-400);
  text-decoration: line-through;
}

/* 每日价格行：现价大字下方的 "Just $0.21 / day" */
.price-daily {
  font-size: 14px;
  color: var(--text-700);
  margin: 2px 0 2px;
}

.price-daily strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-900);
}

/* 原价每日行：只对价格数字划线，"Was" 和 "/ day" 保持正常 */
.price-old-daily {
  text-decoration: none;
  margin-bottom: 14px;
}

.price-old-daily s {
  text-decoration: line-through;
}

.price-now {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 4px;
}

.price-now .amount {
  font-size: 34px;
  font-weight: 800;
}

.price-now .period {
  font-size: 13px;
  color: var(--text-500);
}

.price-billed {
  font-size: 12px;
  color: var(--text-400);
  margin-bottom: 14px;
}

.price-divider {
  margin-bottom: 18px;
}

.price-divider img {
  display: block;
  width: 100%;
  height: auto;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  flex: 1;
}

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-700);
  line-height: 1.5;
}

.price-feature svg {
  color: var(--orange-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-feature img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: contain;
}

.price-card[data-accent="blue"] .price-plan-vip,
.price-card[data-accent="blue"] .amount {
  color: var(--blue-600);
}

.price-card[data-accent="orange"] .price-plan-vip,
.price-card[data-accent="orange"] .amount {
  color: var(--orange-600);
}

.price-card[data-accent="purple"] .price-plan-vip,
.price-card[data-accent="purple"] .amount {
  color: var(--purple-500);
}

/* ---------- Help hero variant (no eyebrow tag) ---------- */
.hero-help .hero-sub {
  max-width: 420px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-700);
  padding-top: 56px;
}

.footer-top {
  display: grid;
  /* 5 栏：brand / Product / Company / Support / Subscribe */
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr 1.1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand .brand {
  color: var(--text-900);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-500);
  max-width: 260px;
  margin-bottom: 14px;
}

/* social-row 放在 footer-brand（标语下方）的通用间距 */
.footer-brand .social-row {
  margin-top: 0;
}

.footer-col h5 {
  color: var(--text-900);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .3px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-500);
  transition: color .15s ease;
}

.footer-col a:hover {
  color: var(--blue-600);
}

.footer-sub h5 {
  color: var(--text-900);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-sub p {
  font-size: 12.5px;
  color: var(--text-500);
  margin-bottom: 14px;
}

.subscribe-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.subscribe-row input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-200);
  background: var(--white);
  color: var(--text-900);
  font-size: 13px;
}

.subscribe-row input::placeholder {
  color: var(--text-400);
}

.subscribe-row button {
  background: var(--blue-500);
  color: var(--white);
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-row a:hover {
  opacity: .7;
}

.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-500);
  padding: 18px 0;
  background: var(--footer-bar-bg);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero {
    min-height: 360px;
    background: linear-gradient(160deg, var(--sky-050) 0%, var(--sky-100) 60%, var(--blue-100) 100%);
  }

  /* 只遮最左侧文字区域，大约前 32% 就衰减到全透明，右侧 68% 完整留给图片 */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(246, 250, 255, 0.78) 0%,
        rgba(246, 250, 255, 0.65) 12%,
        rgba(246, 250, 255, 0.3) 22%,
        rgba(246, 250, 255, 0.08) 30%,
        rgba(246, 250, 255, 0) 38%,
        rgba(246, 250, 255, 0) 100%);
  }

  .hero-bg {
    background-position: right center;
    background-size: auto 95%;
    opacity: 0.95;
  }

  /* RTL 模式下 hero 背景图镜像 + 蒙版衰减方向反转 */
  html[dir="rtl"] .hero-bg {
    transform: scaleX(-1);
    background-position: left center;
  }

  html[dir="rtl"] .hero::after {
    background: linear-gradient(90deg,
        rgba(246, 250, 255, 0) 0%,
        rgba(246, 250, 255, 0) 62%,
        rgba(246, 250, 255, 0.08) 70%,
        rgba(246, 250, 255, 0.3) 78%,
        rgba(246, 250, 255, 0.65) 88%,
        rgba(246, 250, 255, 0.78) 100%);
  }

  .hero .container {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .hero-copy {
    /* 限窄让出空间：文字只占左 62%，右 38% 纯图片区 */
    max-width: min(460px, 62%);
    width: fit-content;
    /* 背板减淡：右边缘几乎不挡图 */
    background: rgba(255, 255, 255, 0.38);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow:
      0 2px 8px rgba(16, 38, 75, 0.04),
      inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  .hero h1 {
    font-size: clamp(26px, 4.3vw, 36px);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55),
      0 0 5px rgba(246, 250, 255, 0.4);
  }

  .hero-sub {
    max-width: 100%;
    font-size: 15px;
  }

  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .devices-wrap {
    grid-template-columns: 1fr;
  }

  .network-wrap {
    grid-template-columns: 1fr;
  }

  .network-panel {
    grid-template-columns: 1fr;
  }

  .network-map {
    min-height: 200px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand p {
    max-width: none;
  }

  /* 移动端下 footer-brand social-row 与上方 tagline 的间距 */
  .footer-brand .social-row {
    margin-top: 4px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .badge-row {
    grid-template-columns: 1fr;
  }

  .badge-row-wrap {
    margin-top: -24px;
  }

  .badge-card {
    padding: 16px 18px;
    gap: 12px;
  }

  .badge-card h4 {
    font-size: 13px;
  }

  .badge-card p {
    font-size: 11px;
  }

  .badge-icon {
    width: 36px;
    height: 36px;
  }

  /* 下载页 4 卡 → 2 列换行 */
  .device-grid-download {
    grid-template-columns: 1fr 1fr;
    max-width: 480px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 24px;
    letter-spacing: -0.15px;
    margin-bottom: 10px;
    line-height: 1.22;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.7),
      0 0 5px rgba(246, 250, 255, 0.55);
  }

  .hero-sub {
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .hero {
    min-height: 260px;
    background: linear-gradient(160deg, var(--sky-050) 0%, var(--sky-100) 70%, var(--blue-100) 100%);
  }

  /* 小屏下蒙版衰减更早：左 30% 处即完全透明，右 70% 纯图片展示区 */
  .hero::after {
    background: linear-gradient(90deg,
        rgba(246, 250, 255, 0.86) 0%,
        rgba(246, 250, 255, 0.72) 10%,
        rgba(246, 250, 255, 0.35) 18%,
        rgba(246, 250, 255, 0.1) 25%,
        rgba(246, 250, 255, 0) 32%,
        rgba(246, 250, 255, 0) 100%);
  }

  .hero .container {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .container {
    padding: 0 14px;
  }

  .hero-bg {
    background-position: right center;
    background-size: contain;
    opacity: 0.98;
  }

  /* RTL 模式下 hero 背景图镜像 + 蒙版衰减方向反转（小屏） */
  html[dir="rtl"] .hero-bg {
    transform: scaleX(-1);
    background-position: left center;
  }

  html[dir="rtl"] .hero::after {
    background: linear-gradient(90deg,
        rgba(246, 250, 255, 0) 0%,
        rgba(246, 250, 255, 0) 68%,
        rgba(246, 250, 255, 0.1) 75%,
        rgba(246, 250, 255, 0.35) 82%,
        rgba(246, 250, 255, 0.72) 92%,
        rgba(246, 250, 255, 0.86) 100%);
  }

  .hero-copy {
    max-width: 58%;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .badge-row-wrap {
    margin-top: -20px;
  }

  .badge-card {
    padding: 14px 16px;
    gap: 10px;
  }

  .badge-icon {
    width: 32px;
    height: 32px;
  }

  .badge-card h4 {
    font-size: 12.5px;
    margin-bottom: 2px;
  }

  .badge-card p {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .section {
    padding: 56px 0;
  }

  .device-grid {
    grid-template-columns: 1fr 1fr;
  }

  .device-grid-download {
    grid-template-columns: 1fr 1fr;
    max-width: 420px;
    gap: 12px;
  }

  .device-grid-download .device-card {
    padding: 18px 14px;
  }

  .device-grid-download .device-icon {
    width: 44px;
    height: 44px;
  }

  .device-grid-download .device-card h4 {
    font-size: 15px;
  }

  .device-grid-download .device-sub {
    font-size: 11.5px;
    margin-bottom: 12px;
  }

  .cta-banner {
    padding: 36px 24px;
    flex-direction: column;
    text-align: center;
  }

  html[dir="rtl"] .cta-banner.arabic-banner {
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Content pages — About / Careers / Blog / Status / Contact / Legal
   ========================================================= */

/* Simple stat row (About page) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: -0.5px;
}

.stat-item .stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-500);
  font-weight: 600;
}

/* Value / mission cards (About, Careers) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.value-card .value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-050);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.value-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-900);
}

.value-card p {
  font-size: 13.5px;
  color: var(--text-500);
  line-height: 1.6;
}

/* Careers — job list */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.job-item-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 4px;
}

.job-item-meta {
  font-size: 12.5px;
  color: var(--text-500);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.job-item-meta span {
  background: var(--blue-050);
  color: var(--blue-600);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.no-openings {
  text-align: center;
  color: var(--text-500);
  font-size: 14px;
  background: var(--white);
  border: 1px dashed var(--border-200);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.blog-card-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

/* ============================================================
 * 双语内容块：一篇文章内含英/阿两份内容，跟随语言切换显示。
 * 切换开关是 <html dir>——i18n.js 的 applyLanguage() 在阿语下
 * 会设置 dir="rtl"，纯 CSS 联动，无需额外 JS，首屏也不闪烁。
 * ============================================================ */

/* 默认（英语 / 语言未定）：只显示英文块，隐藏阿语/中文块 */
[data-lang-block="ar"],
[data-lang-block="zh"] {
  display: none;
}

/* 阿语模式（dir="rtl"）：互换显示 */
html[dir="rtl"] [data-lang-block="en"],
html[dir="rtl"] [data-lang-block="zh"] {
  display: none;
}

html[dir="rtl"] [data-lang-block="ar"] {
  display: block;
}

/* 中文模式：中文与英语同为 LTR，dir 无法区分，由 i18n.js 设置 html[data-lang="zh"] */
html[data-lang="zh"] [data-lang-block="en"],
html[data-lang="zh"] [data-lang-block="ar"] {
  display: none;
}

html[data-lang="zh"] [data-lang-block="zh"] {
  display: block;
}

/* 标题/摘要里的多语言 span 在对应语言模式下按行内排布，保证独占一行 */
html[dir="rtl"] h1 [data-lang-block="ar"],
html[dir="rtl"] h3 [data-lang-block="ar"],
html[dir="rtl"] p [data-lang-block="ar"],
html[data-lang="zh"] h1 [data-lang-block="zh"],
html[data-lang="zh"] h3 [data-lang-block="zh"],
html[data-lang="zh"] p [data-lang-block="zh"] {
  display: inline;
}

.blog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-900);
  line-height: 1.4;
}

.blog-card p {
  font-size: 13.5px;
  color: var(--text-500);
  line-height: 1.6;
  flex: 1;
}

.blog-card-date {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-400);
  font-weight: 600;
}

/* 博客列表分页（文章页翻页） */
.blog-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--border-100);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-200, #334);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.blog-pagination .page-numbers:hover {
  border-color: var(--brand-500, #2563eb);
  color: var(--brand-500, #2563eb);
}

.blog-pagination .page-numbers.current {
  background: var(--brand-500, #2563eb);
  border-color: var(--brand-500, #2563eb);
  color: #fff;
}

.blog-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* Status page */
.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eafaf0;
  border: 1px solid #bdeccb;
  color: #1a8a4a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 32px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-100);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 16px 22px;
  font-size: 14px;
  color: var(--text-900);
  font-weight: 600;
}

.status-row .status-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a8a4a;
  font-size: 13px;
  font-weight: 700;
}

/* Contact page */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-700);
}

.form-field input,
.form-field textarea {
  border: 1px solid var(--border-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-900);
  background: var(--sky-050);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue-500);
  outline-offset: 1px;
  background: var(--white);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-050);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.contact-info-item h4 {
  font-size: 14px;
  margin-bottom: 3px;
  color: var(--text-900);
}

.contact-info-item p {
  font-size: 13px;
  color: var(--text-500);
  line-height: 1.5;
}

.form-submitted-note {
  display: none;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1a8a4a;
}

/* Legal / prose pages (Privacy, Terms) */
.legal-updated {
  font-size: 13px;
  color: var(--text-500);
  margin-bottom: 8px;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-700);
  font-size: 15px;
  line-height: 1.8;
}

.prose h2 {
  font-size: 20px;
  color: var(--text-900);
  margin-top: 36px;
  margin-bottom: 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul {
  margin: 0 0 14px;
  padding-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prose li {
  list-style: disc;
}

html[dir="rtl"] .prose li {
  list-style-position: outside;
}

/* ============================================================
 * SEO 文章排版组件（.prose 内使用，双语通用，RTL 自动适配）
 * ============================================================ */

/* 导语：首段强调 */
.prose .article-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-900);
  font-weight: 500;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--sky-050), var(--blue-050));
  border: 1px solid var(--border-100);
  border-inline-start: 4px solid var(--blue-500);
  border-radius: var(--radius-md);
  margin-bottom: 26px;
}

/* 目录卡片 */
.prose .article-toc {
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  margin: 0 0 30px;
}

.prose .article-toc h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-500);
  margin: 0 0 12px;
}

.prose .article-toc ol {
  margin: 0;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose .article-toc a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
}

.prose .article-toc a:hover {
  text-decoration: underline;
}

/* 要点提示卡（正文中的高亮说明框） */
.prose .article-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  margin: 22px 0;
  background: var(--blue-050);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
}

.prose .article-callout .callout-icon {
  font-size: 20px;
  line-height: 1.4;
  flex-shrink: 0;
}

.prose .article-callout p {
  margin: 0;
  font-size: 14px;
  color: var(--text-700);
}

/* 快速对比表 */
.prose .article-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}

.prose .article-table th {
  background: var(--navy-800);
  color: var(--white);
  text-align: start;
  font-weight: 600;
  padding: 12px 16px;
  font-size: 13px;
}

.prose .article-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border-100);
  color: var(--text-700);
  vertical-align: top;
}

.prose .article-table tr:nth-child(even) td {
  background: var(--sky-050);
}

/* 步骤卡（有序步骤） */
.prose .article-steps {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: article-step;
}

.prose .article-steps li {
  list-style: none;
  counter-increment: article-step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.prose .article-steps li::before {
  content: counter(article-step);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: var(--shadow-btn);
}

.prose .article-steps strong {
  display: block;
  color: var(--text-900);
  margin-bottom: 4px;
}

.prose .article-steps li p {
  margin: 0;
  font-size: 14px;
  color: var(--text-700);
}

/* FAQ 问答卡 */
.prose .article-faq {
  margin: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prose .article-faq h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text-900);
}

.prose .article-faq-item {
  background: var(--faq-bg);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.prose .article-faq-item p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-700);
}

/* 文末 CTA 卡 */
.prose .article-cta {
  margin-top: 34px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cta-blue-start), var(--cta-blue-end));
  color: var(--white);
  text-align: center;
}

.prose .article-cta h2 {
  color: var(--white);
  margin: 0 0 10px;
}

.prose .article-cta p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
  font-size: 14.5px;
}

.prose .article-cta a {
  display: inline-block;
  background: var(--white);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(16, 38, 75, 0.35);
  transition: transform 0.15s ease;
}

.prose .article-cta a:hover {
  transform: translateY(-1px);
}

/* Guides page */
.guide-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}

.guide-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.guide-card-head img {
  width: 30px;
  height: 30px;
}

.guide-card-head h4 {
  font-size: 15px;
  color: var(--text-900);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.guide-steps li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-700);
  line-height: 1.5;
}

.guide-steps .step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-050);
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer legal links row */
.footer-legal-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.footer-legal-links a {
  color: var(--text-500);
  font-size: 12.5px;
}

.footer-legal-links a:hover {
  color: var(--blue-600);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .value-grid,
  .blog-grid,
  .guide-tabs {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .job-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}


/* =========================================================
   Mobile UX refinement — MeStarVPN
   Purpose: make the existing desktop design feel intentional
   on phones instead of simply shrinking the desktop layout.
   ========================================================= */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }

  :root {
    --mobile-radius: 18px;
  }

  .container {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header .container {
    height: 64px;
    padding-left: 16px;
    padding-right: 12px;
  }

  .brand-logo {
    height: 28px;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-switch {
    min-height: 38px;
    padding: 5px 9px;
    gap: 3px;
    background: rgba(255,255,255,.5);
  }

  .lang-btn {
    font-size: 12px;
    padding: 4px 3px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,.65);
  }

  .main-nav {
    top: 64px;
    padding: 10px 18px 18px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 0 16px 30px -18px rgba(16,38,75,.3);
  }

  .main-nav a {
    padding: 14px 2px;
    font-size: 15px;
  }

  /* Hero: keep the artwork visible but let the typography own the card. */
  .hero {
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(160deg, #f8fbff 0%, #e9f4fe 100%);
  }

  .hero .container {
    min-height: 360px;
    align-items: flex-end;
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .hero-bg {
    background-size: auto 82%;
    background-position: 78% center;
    opacity: .72;
  }

  .hero::after {
    background: linear-gradient(180deg,
      rgba(248,251,255,0) 0%,
      rgba(248,251,255,.08) 26%,
      rgba(248,251,255,.55) 55%,
      rgba(248,251,255,.94) 78%,
      rgba(248,251,255,1) 100%);
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero h1 {
    max-width: 320px;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.13;
    letter-spacing: -0.6px;
    margin-bottom: 12px;
  }

  .hero-sub {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    min-height: 46px;
    padding: 11px 14px;
  }

  .hero-guarantee {
    display: inline-flex;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(211,224,242,.85);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11.5px;
  }

  /* Download hero is intentionally more compact. */
  body[data-page="download"] .hero .container {
    min-height: 330px;
    align-items: flex-end;
  }

  body[data-page="download"] .hero-bg {
    background-size: cover;
    background-position: 70% center;
    opacity: .58;
  }

  body[data-page="download"] .hero::after {
    background: linear-gradient(180deg,
      rgba(248,251,255,.03) 0%,
      rgba(248,251,255,.22) 32%,
      rgba(248,251,255,.82) 70%,
      rgba(248,251,255,1) 100%);
  }

  body[data-page="download"] .hero-copy {
    width: 100%;
    max-width: 350px;
  }

  body[data-page="download"] .hero h1 {
    max-width: 350px;
    font-size: clamp(26px, 7.7vw, 33px);
  }

  /* Trust strip: compact but still readable. */
  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .trust-item {
    min-height: 62px;
    gap: 5px;
    padding: 6px 8px;
    font-size: 11px;
    text-align: center;
  }

  .trust-item img {
    width: 24px;
    height: 24px;
  }

  /* Section rhythm */
  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .section-head h2 {
    font-size: clamp(26px, 7vw, 31px);
    line-height: 1.18;
    letter-spacing: -0.4px;
  }

  .section-head p {
    font-size: 13.5px;
    line-height: 1.65;
  }

  /* Feature cards */
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 14px;
  }

  .feature-card {
    border-radius: var(--mobile-radius);
  }

  .feature-card h3 {
    top: 18px;
    left: 18px;
    right: 18px;
    font-size: 17px;
  }

  .feature-card p {
    top: 49px;
    left: 18px;
    right: 18px;
    font-size: 12.5px;
    line-height: 1.55;
  }

  /* Device area: keep a true 2-column product grid. */
  .devices-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .device-grid,
  .device-grid-download {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .device-card,
  .device-grid-download .device-card {
    min-width: 0;
    min-height: 176px;
    padding: 18px 12px 14px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .device-card .device-icon,
  .device-grid-download .device-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
  }

  .device-card h4,
  .device-grid-download .device-card h4 {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .device-card .device-sub,
  .device-grid-download .device-sub {
    min-height: 30px;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .device-card .btn,
  .device-grid-download .btn {
    margin-top: auto;
    width: 100%;
    min-height: 40px;
    padding: 9px 8px;
    font-size: 12px;
    white-space: normal;
  }

  body[data-page="download"] .device-grid-download .device-card {
    min-height: 188px;
  }

  body[data-page="download"] .device-grid-download .device-card:nth-child(3),
  body[data-page="download"] .device-grid-download .device-card:nth-child(4) {
    min-height: 174px;
  }

  /* Steps become a clean vertical timeline. */
  .steps-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
  }

  .step-card {
    width: 100%;
    min-width: 0;
    padding: 16px 18px;
    gap: 13px;
    border-radius: 17px;
  }

  .step-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .step-card .step-label {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .step-card h4 {
    font-size: 16px;
  }

  .step-arrow {
    width: 24px;
    height: 18px;
    justify-self: center;
    transform: rotate(90deg);
    margin: -1px 0;
  }

  /* Network section: text first, visual second, list third. */
  .network-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .network-copy h2 {
    font-size: 28px;
    line-height: 1.18;
  }

  .network-copy p {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .network-panel {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .network-map {
    min-height: 210px;
  }

  .location-list {
    padding: 14px 16px;
  }

  .location-row {
    gap: 7px;
    padding: 8px 0;
    font-size: 12px;
  }

  .loc-ping {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  /* CTA banners */
  .cta-banner {
    padding: 40px 18px;
  }

  .cta-banner .container {
    gap: 18px;
  }

  .cta-banner h2 {
    font-size: 25px;
    line-height: 1.2;
  }

  .cta-actions {
    width: 100%;
    gap: 10px;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer: two compact link columns instead of a very long single stack. */
  .site-footer {
    padding-top: 42px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
    padding-bottom: 26px;
  }

  .footer-brand,
  .footer-sub {
    grid-column: 1 / -1;
  }

  .footer-brand .brand-logo {
    height: 28px;
  }

  .footer-brand p {
    max-width: 340px;
    font-size: 12.5px;
    margin-bottom: 10px;
  }

  .footer-col h5,
  .footer-sub h5 {
    font-size: 12px;
    margin-bottom: 11px;
  }

  .footer-col ul {
    gap: 8px;
  }

  .footer-col a,
  .footer-sub p {
    font-size: 12px;
  }

  .subscribe-row {
    flex-direction: column;
  }

  .subscribe-row button {
    min-height: 42px;
  }

  .footer-bottom {
    padding: 16px 0 20px;
    font-size: 11px;
    line-height: 1.5;
  }

  .footer-legal-links {
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .site-header .container { padding-left: 12px; padding-right: 10px; }
  .lang-switch { padding-left: 7px; padding-right: 7px; }
  .hero .container { min-height: 340px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .device-grid, .device-grid-download { gap: 10px; }
  .device-card, .device-grid-download .device-card { padding-left: 10px; padding-right: 10px; }
  .device-card .btn, .device-grid-download .btn { font-size: 11.5px; }
}
