:root {
  --bg: #f4f7fc;
  --bg-card: #ffffff;
  --bg-elevated: #eef2f8;
  --text: #1a2332;
  --text-muted: #5a6b85;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-2: #6366f1;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 16px 48px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(94, 234, 212, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(129, 140, 248, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2dd4bf, var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 0.2rem;
  border: 1px solid var(--border);
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

/* Ads */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  overflow: hidden;
  min-height: 90px;
}

.ad-slot-live {
  border-style: solid;
  background: var(--bg-card);
  min-height: 0;
  text-transform: none;
  letter-spacing: normal;
}

.ad-slot-live ins.adsbygoogle {
  display: block;
  width: 100%;
}

.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 0 auto;
}

.ad-banner {
  min-height: 250px;
}

.ad-inline {
  min-height: 120px;
  margin: 2rem 0;
}

.ad-label {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 0.65rem;
  opacity: 0.6;
}

.ad-wrap {
  position: relative;
  padding-top: 1.2rem;
}

/* Footer developer contact */
.site-footer-wrap {
  margin-top: 2rem;
}

.footer-contact {
  padding: 2.5rem 0 1.5rem;
}

.footer-contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.footer-contact-text h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--text);
}

.footer-contact-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-contact-list a,
.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

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

.about-contact-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* SEO FAQ */
.seo-faq h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-contact {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact a {
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-primary {
  background: linear-gradient(135deg, #14b8a6, var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.35);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

/* Categories */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-lead {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.category-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.category-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.category-chip:hover,
.category-chip.active {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: rgba(13, 148, 136, 0.08);
}

/* Program grid */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.program-card,
.program-card-link {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: inherit;
  text-decoration: none;
}

.program-card-link:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: inherit;
}

.card-more {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.program-card.featured {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(160deg, #ffffff 0%, #f0f4ff 100%);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.card-icon-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-2), #14b8a6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.card-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--text);
}

.card-version {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-category {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  font-weight: 600;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.card-highlight {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-hover);
  padding: 0.65rem 0.75rem;
  background: rgba(13, 148, 136, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  line-height: 1.45;
}

.card-features {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-features strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.card-features ul {
  margin: 0;
  padding-left: 1.15rem;
}

.card-features li {
  margin-bottom: 0.25rem;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spec-pill {
  padding: 0.25rem 0.55rem;
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.card-requirements {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.65rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
  justify-content: center;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Layout with sidebar ad */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.sidebar-ad {
  position: sticky;
  top: 5rem;
}

/* About / footer */
.about-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

.about-panel h2 {
  margin-top: 0;
  color: var(--text);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  padding: 0.4rem 0;
  color: var(--text-muted);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* Coming soon placeholder cards */
.coming-soon {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-ad {
    position: static;
    order: -1;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .program-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Program detail (blog-style) page */
.program-page {
  max-width: 100%;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
}

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

.breadcrumb-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.program-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.program-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.program-hero-placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-2), #14b8a6);
  color: #fff;
}

.program-hero-text h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}

.program-hero-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  font-weight: 600;
}

.program-hero-version {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.program-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.program-block {
  margin-bottom: 2rem;
}

.program-block h2 {
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.program-description {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  color: var(--text);
}

.program-highlight {
  padding: 1rem 1.15rem;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 12px;
  font-weight: 600;
  color: var(--accent-hover);
  line-height: 1.5;
}

.program-features-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.program-features-list li {
  margin-bottom: 0.45rem;
}

.program-requirements {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.program-gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  min-height: 120px;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

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

.program-bottom-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* YouTube embed */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0f172a;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-external {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.video-external a {
  font-weight: 600;
}

/* Usage guide */
.usage-how {
  margin-bottom: 1.5rem;
}

.usage-how h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.usage-how p {
  margin: 0;
  padding: 1rem 1.15rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.usage-settings {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.usage-setting {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.usage-setting dt {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-hover);
}

.usage-setting dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.program-layout .program-sidebar {
  position: sticky;
  top: 5rem;
}