:root {
  --bg: #0f1c16;
  --bg-elevated: #1a3328;
  --panel: #1b2a1f;
  --border: rgba(76, 175, 80, 0.28);
  --text: #e8f0ea;
  --muted: #9bb3a3;
  --accent: #81c784;
  --accent-strong: #4caf50;
  --warn: #ffcc80;
  --max: 960px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse at top, #1f3d30 0%, transparent 55%),
    linear-gradient(180deg, #0f1c16 0%, #122019 40%, #0c1611 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #b9f6ca;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(15, 28, 22, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand__name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.section {
  padding: 1.5rem 0 2.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
}

.card__eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

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

.prose {
  max-width: 42rem;
}

.prose h1 {
  margin-top: 0;
  line-height: 1.2;
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.center-block {
  margin: 2rem auto;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.ad-slot {
  width: min(100%, 728px);
  margin: 1rem auto;
}

.ad-placeholder {
  border: 1px dashed var(--border);
  background: rgba(27, 42, 31, 0.7);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  place-items: center;
  min-height: 90px;
}

.ad-placeholder code {
  color: var(--warn);
}

.store-cta {
  width: min(100%, 640px);
  margin: 0 auto;
  background: linear-gradient(160deg, #243d31, #1a2e25);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
}

.store-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.store-cta__icon-wrap {
  margin: 0 0 0.85rem;
  animation: store-float 3.2s ease-in-out infinite;
}

.store-cta__icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  display: block;
  object-fit: cover;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(129, 199, 132, 0.25);
  animation: store-glow 2.8s ease-in-out infinite;
}

.store-cta__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-cta__title {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.6rem;
}

.store-cta__tagline,
.store-cta__sub {
  margin: 0.2rem 0;
  color: var(--muted);
  max-width: 28rem;
}

.store-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  width: 100%;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 150px;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn__label {
  font-size: 1rem;
}

.btn__hint {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn--play {
  background: #4caf50;
  color: #0b160f;
  animation: store-btn-pulse 2.6s ease-in-out infinite;
}

.btn--app {
  background: #e8f0ea;
  color: #102018;
  animation: store-btn-pulse 2.6s ease-in-out 0.35s infinite;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

@keyframes store-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes store-glow {
  0%, 100% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.45),
      0 0 0 3px rgba(129, 199, 132, 0.22);
  }
  50% {
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.5),
      0 0 0 5px rgba(129, 199, 132, 0.4),
      0 0 24px rgba(129, 199, 132, 0.25);
  }
}

@keyframes store-btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .store-cta__icon-wrap,
  .store-cta__icon,
  .btn--play,
  .btn--app {
    animation: none;
  }
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: #0c1611;
  padding: 2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-heading {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(76, 175, 80, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.related {
  margin-top: 2.5rem;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.tip-box {
  background: rgba(255, 204, 128, 0.08);
  border-left: 3px solid var(--warn);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.tip-box strong {
  color: var(--warn);
}
