:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #eef2ff;
  --text: #111827;
  --muted: #4b5563;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --border: rgba(148, 163, 184, 0.24);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --apk-green: #1fae5c;
  --apk-green-deep: #158249;
  --apk-blue: #4f46e5;
  --apk-ink: #111827;
  --apk-muted: #6b7280;
  --apk-star: #f5a623;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
  color: var(--text);
}

body {
  line-height: 1.75;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero-header,
.page-footer > div,
.content-block,
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
}

.brand-tag {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-header h1 {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.05;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.summary-card h2,
.content-block h2,
.content-block h3,
.page-footer h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-weight: 700;
}

.summary-card p,
.content-block p,
.content-block li,
.page-footer p {
  color: var(--muted);
}

.summary-card p + p,
.content-block p + p,
.content-block ul + p,
.page-footer p + p {
  margin-top: 16px;
}

.feature-list,
.spec-box {
  background: var(--surface-alt);
  border-radius: 20px;
  padding: 20px;
  margin-top: 24px;
}

.feature-list h3,
.feature-list h4 {
  margin-top: 0;
}

.feature-list ul,
.spec-box ul,
.content-block ul,
.content-block ol {
  margin: 0;
  padding-left: 1.4rem;
}

.content-block ul li,
.content-block ol li,
.spec-box ul li,
.feature-list ul li {
  margin-bottom: 12px;
}

.content-block ol {
  counter-reset: item;
}

.content-block ol li {
  margin-bottom: 16px;
}

.content-block ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

.guide-block {
  border-top: 4px solid rgba(37, 99, 235, 0.18);
}

.hero-panel {
  border-top: 4px solid rgba(16, 185, 129, 0.22);
}

.hero-lead {
  font-size: 1.1rem;
  margin: 0 0 18px;
  color: #111827;
}

.footer-lead {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--text);
}

.page-footer {
  margin-top: 24px;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: var(--text);
}

.footer-map {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.footer-address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

.footer-map iframe {
  width: 100%;
  max-width: 600px;
  height: 320px;
  border-radius: 16px;
  flex: 2;
  min-width: 260px;
}

@media (max-width: 660px) {
  .footer-map {
    flex-direction: column;
  }

  .footer-map iframe {
    height: 240px;
  }
}

.fine-print {
  margin-top: 18px;
  font-size: 0.96rem;
  color: #6b7280;
}

.author-card {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface-alt);
  border-radius: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apk-blue, #4f46e5), var(--apk-green, #1fae5c));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--text);
}

.author-role {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.author-info p:not(.author-name):not(.author-role) {
  margin: 0 0 10px;
}

.author-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.author-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.author-links a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-links {
    justify-content: center;
  }
}

.content-block + .content-block,
.summary-card + .content-block,
.page-footer + .page-footer {
  margin-top: 24px;
}

.blog-card-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}

.blog-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-byline {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.blog-hero-image {
  margin: 0 0 20px;
}

.blog-back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.blog-back-link:hover {
  text-decoration: underline;
}

.blog-related {
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.blog-related h3 {
  margin: 0 0 12px;
}

.blog-related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.blog-related li {
  margin-bottom: 8px;
}

.blog-related a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.blog-related a:hover {
  text-decoration: underline;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  background: var(--surface-alt);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .page-shell {
    width: calc(100% - 26px);
  }

  .hero-header,
  .page-footer > div {
    padding: 22px;
  }

  .primary-cta {
    width: 100%;
  }
}

@media (max-width: 660px) {
  .hero-header,
  .page-footer > div,
  .content-block,
  .summary-card {
    padding: 20px;
  }

  .hero-header {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    gap: 12px;
  }
}

.apk-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.apk-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.apk-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.apk-logo-img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.apk-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f5fb;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 11px 18px;
  max-width: 560px;
  margin: 0 auto;
}

.apk-search-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #9ca3af;
  stroke-width: 1.8;
  flex: none;
}

.apk-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  width: 100%;
  color: var(--apk-ink);
}

.apk-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.apk-link {
  color: var(--apk-ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.apk-signin {
  background: var(--apk-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.apk-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 32px 32px;
  text-align: center;
}

.apk-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--apk-ink);
}

.apk-hero p {
  margin: 0;
  color: var(--apk-muted);
  font-size: 1.05rem;
}

.apk-download-section {
  max-width: 1300px;
  margin: 32px auto 0;
  padding: 0 32px;
}

.apk-download-section h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--apk-ink);
}

.apk-body {
  max-width: 1300px;
  margin: 24px auto 0;
  padding: 0 32px 8px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.apk-main h2,
.apk-sidebar h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--apk-ink);
}

.apk-main h2:not(:first-child),
.apk-sidebar h2:not(:first-child) {
  margin-top: 32px;
}

.apk-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.apk-side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apk-card,
.apk-wide-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apk-image-link {
  display: block;
}

.apk-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.apk-install-btn {
  align-self: stretch;
  text-align: center;
  background: var(--apk-green-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.apk-cat-card {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.apk-categories {
  grid-template-columns: repeat(4, 1fr);
}

.apk-sidebar {
  display: flex;
  flex-direction: column;
}

.chat-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apk-green), var(--apk-blue));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 26px rgba(31, 174, 92, 0.35);
  z-index: 60;
  text-decoration: none;
}

.chat-bubble svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 1000px) {
  .apk-body {
    grid-template-columns: 1fr;
  }

  .apk-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 660px) {
  .apk-nav-inner {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .apk-logo {
    order: 1;
  }

  .apk-nav-actions {
    order: 2;
    margin-left: auto;
  }

  .apk-search {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 6px;
  }

  .apk-hero {
    padding: 40px 16px 24px;
  }

  .apk-download-section {
    padding: 0 16px;
  }

  .apk-body {
    padding: 0 16px 8px;
    grid-template-columns: 1fr;
  }

  .apk-card-grid {
    grid-template-columns: 1fr;
  }

  .apk-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat-bubble {
    right: 16px;
    bottom: 16px;
  }
}
