:root {
  --bg: #071a0f;
  --bg-soft: #0c2416;
  --surface: #0f2e1b;
  --surface-hover: #143824;
  --border: #1f5c35;
  --border-soft: rgba(74, 222, 128, 0.28);
  --text: #f0fdf4;
  --muted: #9ec9ad;
  --green: #4ade80;
  --green-mid: #34d399;
  --green-dark: #22c55e;
  --green-deep: #16a34a;
  --green-glow: rgba(74, 222, 128, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1100px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(74, 222, 128, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 5%, rgba(52, 211, 153, 0.07), transparent);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 26, 15, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand-logo { height: 38px; width: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.desktop-nav a {
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.15s, background 0.15s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--green);
  background: rgba(74, 222, 128, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

/* ===== Buttons ===== */
.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0 1.3rem;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s, color 0.15s;
}

.button {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #052e16;
  box-shadow: 0 4px 16px var(--green-glow);
}

.button:hover {
  background: linear-gradient(180deg, #6ee7a0 0%, var(--green) 100%);
  box-shadow: 0 6px 22px rgba(74, 222, 128, 0.4);
  transform: translateY(-1px);
}

.button-secondary {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  color: #1c1200;
}

.button-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  place-items: center;
}

.menu-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

.hidden-mobile { display: inline-flex; }

/* ===== Mobile menu ===== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 60;
}
.mobile-overlay.show { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 86vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 1.2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-menu nav a {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
}
.mobile-menu nav a:hover,
.mobile-menu nav a.active {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
}

.mobile-menu-actions { margin-top: auto; }
.mobile-menu-actions .button { width: 100%; }

/* ===== Hero / Page hero ===== */
.hero, .page-hero {
  padding: 3.25rem 0 2.5rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green);
  margin-bottom: 0.65rem;
}

.hero h1, .page-hero h1 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.gradient-text {
  color: var(--green);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 0.75rem;
}

.meta-text, .note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.meta-text a, .note strong {
  color: var(--green);
}

.trust-grid, .info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
}

.trust-chip, .info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  min-width: 130px;
}

.trust-label, .info-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.12rem;
}

.trust-chip strong, .info-item strong {
  font-size: 0.95rem;
  color: var(--green);
}

.hero-actions, .dual-actions, .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--border-soft);
  color: var(--green);
}

/* ===== Sections ===== */
section {
  padding: 2.4rem 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-copy {
  color: var(--muted);
  max-width: 60ch;
}

/* ===== Cards & grids ===== */
.panel, .card, .promo-card, .feature-card, .meta-card, .notice, .download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.panel:hover, .card:hover, .promo-card:hover, .feature-card:hover {
  border-color: var(--border-soft);
}

.promo-strip, .cards-3, .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2, .cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.promo-kicker, .card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.promo-card h3, .card h2, .card h3, .feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.promo-card p, .card p, .feature-card p, .meta-card p, .notice p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 0.7rem;
}

.link, .button-ghost {
  font-size: 0.9rem;
}

a.link {
  color: var(--green);
  font-weight: 600;
}
a.link:hover { text-decoration: underline; }

.icon-badge, .icon-circle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
}

.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.notice strong {
  display: block;
  color: var(--green);
  margin-bottom: 0.25rem;
}

/* ===== Download / table ===== */
.download-layout, .two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.15rem;
  align-items: start;
}

.meta-stack, .stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.download-table, .meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.download-table td, .meta-table th, .meta-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.download-table td:first-child, .meta-table th {
  color: var(--muted);
  font-weight: 500;
  width: 42%;
}

.footnote {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ===== Accordion ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item.open {
  border-color: rgba(74, 222, 128, 0.45);
}

.accordion-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.15rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.accordion-button span:last-child {
  color: var(--green);
  font-size: 1.1rem;
}

.accordion-panel {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.accordion-item.open .accordion-panel { display: block; }

.accordion-panel a { color: var(--green); }

/* ===== Steps (APK guide) ===== */
.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid var(--border-soft);
  color: var(--green);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  background: var(--bg-soft);
  margin-top: 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.footer-brand { margin-bottom: 0.7rem; }
.footer-brand .brand-logo { height: 34px; }

.footer-card p, .footer-text {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 30ch;
}

.site-footer h3 {
  font-size: 0.88rem;
  color: var(--green);
  margin-bottom: 0.65rem;
}

.site-footer ul li { margin-bottom: 0.35rem; }

.site-footer a {
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer a:hover { color: var(--green); }

.footer-bottom {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

/* ===== Utility / content blocks ===== */
.content-block {
  max-width: 70ch;
}

.content-block h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--green);
}

.content-block h3 {
  font-size: 1.05rem;
  margin: 1.3rem 0 0.45rem;
}

.content-block p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.content-block ul {
  margin: 0.5rem 0 1rem 1.2rem;
  list-style: disc;
  color: var(--muted);
}

.content-block li { margin-bottom: 0.35rem; }

.list-check {
  list-style: none;
  margin-left: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .promo-strip, .cards-3, .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .download-layout, .two-col {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .desktop-nav, .hidden-mobile { display: none; }
  .menu-toggle { display: grid; }
  .promo-strip, .cards-3, .grid-3, .grid-2, .cards-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .hero, .page-hero { padding: 2.4rem 0 2rem; }
}

/* ===== Hero with image showcase ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  max-width: 16ch;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.showcase-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(74, 222, 128, 0.08);
}

.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.showcase-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 26, 15, 0.88);
  border: 1px solid var(--border-soft);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.showcase-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.showcase-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
}

.showcase-tile strong {
  display: block;
  font-size: 0.82rem;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.showcase-tile p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-copy h1 {
    max-width: none;
  }
  .showcase-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .showcase-tiles {
    grid-template-columns: 1fr;
  }
}

html { scroll-padding-top: calc(var(--header-h) + 1.25rem); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

:root { --border: #317f4f; }

main p a, .accordion-panel a, .content-block a, .card p a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 1.1rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--green); font-weight: 600; }
.breadcrumb .sep { opacity: 0.5; }