:root {
  --ink: #101828;
  --mist: #667085;
  --line: #e4e7ec;
  --panel: #ffffff;
  --bg: #f9fafb;
  --accent: #2f6feb;
  --accent-dim: #2559c2;
  --success: #16a34a;
  --success-dim: #15803d;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

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

.cms-container-narrow {
  max-width: 760px;
}

/* ---------- Alignment & layout utilities ---------- */
.cms-align-left { text-align: left; }
.cms-align-center { text-align: center; }
.cms-align-right { text-align: right; }

.cms-justify-start { justify-content: flex-start; }
.cms-justify-center { justify-content: center; }
.cms-justify-end { justify-content: flex-end; }

.cms-align-margin-left { margin-left: 0; margin-right: auto; }
.cms-align-margin-center { margin-left: auto; margin-right: auto; }
.cms-align-margin-right { margin-left: auto; margin-right: 0; }

.cms-w-small { max-width: 480px; width: 100%; }
.cms-w-medium { max-width: 720px; width: 100%; }
.cms-w-large { max-width: 960px; width: 100%; }
.cms-w-full { max-width: none; width: 100%; }

.cms-section-full > .cms-container { max-width: none; }
.cms-section-narrow > .cms-container { max-width: 760px; }

.cms-section-compact { padding-top: 28px; padding-bottom: 28px; }
.cms-section-spacious { padding-top: 88px; padding-bottom: 88px; }

/* Device Visibility Utilities */
@media (max-width: 768px) {
  .cms-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .cms-hide-desktop { display: none !important; }
}

/* ---------- Navbar ---------- */
.cms-navbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.cms-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.cms-brand {
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-nav-links {
  display: flex;
  gap: 28px;
}

.cms-nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mist);
  transition: color 0.15s;
}

.cms-nav-link:hover,
.cms-nav-link.cms-nav-active {
  color: var(--ink);
}

.cms-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.cms-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .cms-nav-toggle { display: flex; }

  .cms-nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .cms-nav-links.cms-nav-open {
    max-height: 400px;
  }

  .cms-nav-link {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Breadcrumbs Bar ---------- */
.cms-breadcrumbs-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
  color: var(--mist);
}
.cms-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cms-breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.cms-breadcrumb-sep {
  opacity: 0.5;
}
.cms-breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.cms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.15s, opacity 0.15s;
  text-decoration: none;
}
.cms-btn:hover {
  opacity: 0.95;
}

.cms-btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.cms-btn-primary:hover { background: var(--accent-dim); }

.cms-btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.cms-btn-secondary:hover { background: #f8fafc; }

.cms-btn-success {
  background: var(--success);
  color: #fff;
  border: 1px solid var(--success);
}
.cms-btn-success:hover { background: var(--success-dim); }

/* ---------- Standalone button block / sticky bar ---------- */
.cms-button-block { padding: 24px 0; }

.cms-sticky-button-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(16, 24, 40, 0.12);
  padding: 12px 0;
}

.cms-sticky-button-inner {
  display: flex;
  justify-content: center;
}

.cms-sticky-button-inner .cms-btn { width: 100%; max-width: 420px; text-align: center; }
body:has(.cms-sticky-button-bar) { padding-bottom: 74px; }

/* ---------- Hero ---------- */
.cms-hero {
  padding: 64px 0;
}

.cms-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.cms-hero-grid-image-left {
  grid-template-columns: 0.85fr 1.15fr;
}
.cms-hero-grid-image-left > div:first-child {
  order: 2;
}
.cms-hero-grid-image-left > .cms-hero-image-wrap {
  order: 1;
}

.cms-hero-grid-no-image {
  grid-template-columns: 1fr;
}

.cms-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.cms-hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cms-hero-sub {
  color: var(--mist);
  font-size: 16.5px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.cms-trust-badge {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.cms-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cms-hero-image-wrap {
  display: flex;
  justify-content: center;
}

.cms-hero-image {
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .cms-hero { padding: 40px 0; }
  .cms-hero-grid,
  .cms-hero-grid-image-left {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cms-hero-grid-image-left > div:first-child { order: 1; }
  .cms-hero-grid-image-left > .cms-hero-image-wrap { order: 2; }
  .cms-hero-image { max-width: 280px; margin: 0 auto; }
}

/* ---------- Rich Text Block ---------- */
.cms-richtext {
  padding: 48px 0;
}
.cms-richtext h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
}
.cms-richtext-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.cms-richtext-body p { margin-bottom: 16px; }
.cms-richtext-body h2 { font-size: 24px; margin: 28px 0 14px; font-weight: 700; }
.cms-richtext-body h3 { font-size: 20px; margin: 22px 0 12px; font-weight: 600; }
.cms-richtext-body ul, .cms-richtext-body ol { padding-left: 24px; margin-bottom: 16px; }
.cms-richtext-body li { margin-bottom: 6px; }
.cms-richtext-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 16px;
  margin: 16px 0;
  background: #f8fafc;
  color: var(--mist);
  font-style: italic;
}
.cms-richtext-body a { color: var(--accent); text-decoration: underline; }

/* ---------- Specifications Table (APK / Tool details) ---------- */
.cms-specs-section {
  padding: 48px 0;
}
.cms-specs-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.cms-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.cms-specs-table tr {
  border-bottom: 1px solid var(--line);
}
.cms-specs-table tr:last-child {
  border-bottom: none;
}
.cms-specs-table tr:nth-child(even) {
  background: #fafbfc;
}
.cms-spec-label {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--mist);
  width: 35%;
  font-size: 14px;
}
.cms-spec-value {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
}

/* ---------- Feature Grid ---------- */
.cms-features {
  padding: 64px 0;
}

.cms-section-heading {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.cms-section-subheading {
  color: var(--mist);
  font-size: 16px;
  margin: 0 0 36px;
}

.cms-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.cms-feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cms-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.cms-feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.cms-feature-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}

.cms-feature-card p {
  color: var(--mist);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Screenshots / Gallery Grid ---------- */
.cms-screenshots-section {
  padding: 56px 0;
}
.cms-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.cms-screenshot-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s;
}
.cms-screenshot-card:hover {
  transform: scale(1.02);
}
.cms-screenshot-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.cms-screenshot-caption {
  padding: 10px 14px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--mist);
  text-align: center;
}

/* ---------- CTA Banner ---------- */
.cms-cta-banner {
  padding: 64px 0;
}

.cms-cta-inner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: calc(var(--radius) * 1.5);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cms-cta-inner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin: 0 0 12px;
  color: #fff !important;
}

.cms-cta-inner p {
  color: #cbd5e1;
  font-size: 16px;
  max-width: 600px;
  margin: 0 0 24px;
}

/* ---------- FAQ ---------- */
.cms-faq {
  padding: 64px 0;
}

.cms-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.cms-faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}

.cms-faq-item[open] {
  border-color: var(--accent);
}

.cms-faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cms-faq-item summary::-webkit-details-marker { display: none; }
.cms-faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--mist);
  transition: transform 0.15s;
}
.cms-faq-item[open] summary::after {
  content: '−';
}

.cms-faq-answer {
  padding: 0 20px 20px;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Image & Video Blocks ---------- */
.cms-image-block, .cms-video-block {
  padding: 40px 0;
}

.cms-image-caption {
  color: var(--mist);
  font-size: 13.5px;
  margin-top: 8px;
}

.cms-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.cms-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Ad Slot ---------- */
.cms-ad-slot {
  padding: 24px 0;
}

.cms-ad-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mist);
  margin: 0 0 6px;
  opacity: 0.75;
}

.cms-ad-slot-inner {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
}

/* ---------- Footer ---------- */
.cms-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  margin-top: 60px;
}

.cms-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  margin-bottom: 48px;
}

.cms-footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  color: var(--ink);
}

.cms-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cms-footer-links a {
  color: var(--mist);
  font-size: 14px;
  transition: color 0.15s;
}

.cms-footer-links a:hover { color: var(--ink); }

.cms-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 16px;
}

.cms-footer-bottom p { margin: 0; }

.cms-footer-socials {
  display: flex;
  gap: 16px;
}

.cms-footer-social {
  color: var(--mist);
  font-weight: 500;
  transition: color 0.15s;
}
.cms-footer-social:hover { color: var(--ink); }


/* ---------- Articles (AI) ---------- */
.cms-article { padding: 36px 0 24px; }
.cms-article h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.18; letter-spacing: -0.02em; margin: 6px 0 14px; }
.cms-article-meta { margin: 0; font-size: 13px; color: var(--mist); }
.cms-article-excerpt { font-size: 18px; color: var(--mist); margin: 0 0 20px; }
.cms-article-figure { margin: 0 0 22px; }
.cms-article-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.cms-article-body { font-size: 17.5px; line-height: 1.75; }
.cms-article-body h2 { font-size: 26px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.cms-article-body h3 { font-size: 20px; margin: 26px 0 8px; }
.cms-article-body p { margin: 0 0 16px; }
.cms-article-body ul, .cms-article-body ol { margin: 0 0 18px; padding-left: 22px; }
.cms-article-body li { margin-bottom: 6px; }
.cms-article-body a { color: var(--accent); text-decoration: underline; }
.cms-article-body blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--accent); color: var(--mist); }
.cms-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.cms-article-body th, .cms-article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.cms-article-ad { margin: 26px 0; text-align: center; }
.cms-article-ad .cms-ad-slot-inner { display: inline-block; max-width: 100%; overflow-x: auto; }
.cms-article-download { margin: 28px 0; text-align: center; }
.cms-btn-download { display: inline-block; font-size: 18px; padding: 15px 38px; }
.cms-article-related { padding: 10px 0 30px; }
.cms-article-related h2 { font-size: 22px; margin: 0 0 14px; }
.cms-article-list { padding: 40px 0; }
.cms-article-list h1 { margin: 0 0 22px; font-size: 32px; letter-spacing: -0.02em; }
.cms-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cms-article-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.cms-article-card:hover { box-shadow: 0 8px 20px rgba(16,24,40,.08); transform: translateY(-2px); }
.cms-article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cms-article-card-body { padding: 14px 16px 16px; }
.cms-article-card-body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.cms-article-card-body p { margin: 0; font-size: 14px; color: var(--mist); }
