﻿:root {
  --green: #16a34a;
  --green-dark: #0f7a37;
  --lime: #84cc16;
  --orange: #f97316;
  --red: #dc2626;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

button, input, select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 36px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.84);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.main-nav a {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--green-dark);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.icon-button, .portal-button, button, .primary, .secondary, .button-link {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.icon-button {
  width: 42px;
  padding: 0;
  color: var(--green-dark);
}

.portal-button, .primary, .hero-search button, .database-search button, .button-link {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.secondary {
  color: var(--green-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: calc(100vh - 72px);
  aspect-ratio: 16 / 9;
  max-height: 860px;
  align-items: center;
  gap: 48px;
  padding: 74px 6vw 56px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.hero-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 34px 0 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-search span {
  color: var(--green-dark);
  text-align: center;
  font-size: 22px;
}

.hero-search input, .database-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  min-width: 0;
}

.hero-search input::placeholder, .database-search input::placeholder {
  color: #64748b;
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.12), transparent 42%),
    linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 46px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

.assurance-card {
  position: absolute;
  top: 38px;
  left: 38px;
  z-index: 2;
  width: min(280px, calc(100% - 76px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.assurance-card p {
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.assurance-card strong {
  display: block;
  font-size: 20px;
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.12);
}

.badge-cloud {
  position: absolute;
  inset: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0 6vw 82px;
}

.stats-grid article, .rating-card, .descriptor-grid article, .recent-card, .timeline article, .news-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.stats-grid article {
  padding: 20px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.section {
  padding: 86px 6vw;
}

.muted {
  background: var(--soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.rating-card {
  position: relative;
  min-height: 290px;
  padding: 24px;
  overflow: hidden;
}

.rating-card p {
  color: var(--muted);
}

.rating-card a {
  position: absolute;
  bottom: 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.age-icon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
}

.descriptor-grid, .developer-grid, .news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.descriptor-grid article {
  padding: 22px;
}

.descriptor-grid b {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #ecfdf5;
  color: var(--green-dark);
}

.descriptor-grid p, .news-grid p, .timeline p, .two-column p, .recent-card p, .result-row p {
  color: var(--muted);
}

.descriptor-grid a {
  color: var(--green-dark);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.feature-grid article, .developer-grid article, .developer-grid a, .guide-list span, .guide-list a {
  min-height: 78px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  font-weight: 800;
}

.feature-grid article::before, .developer-grid article::before, .developer-grid a::before, .guide-list span::before, .guide-list a::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.1);
}

.split-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: start;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.recent-card {
  padding: 22px;
}

.app-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5, #eef2ff);
  color: var(--green-dark);
  font-weight: 900;
}

.recent-card .button-link {
  width: 100%;
  margin-top: 18px;
}

.database-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.database-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
}

.filters select {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: #334155;
}

.result-row {
  display: grid;
  grid-template-columns: 100px minmax(220px, 1fr) minmax(160px, 0.8fr) 150px 110px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.timeline article {
  position: relative;
  padding: 24px;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--green-dark);
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 56px;
  align-items: start;
}

.guide-list, .developer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.badge-gallery {
  text-align: center;
}

.badge-gallery .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.asset-actions span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-grid article {
  padding: 24px;
}

.news-grid time {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.about-copy {
  padding-left: 28px;
  border-left: 3px solid var(--green);
}

.footer {
  padding: 44px 6vw;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.footer p {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials span {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero, .two-column, .split-section {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    max-height: none;
  }

  .stats-grid, .rating-grid, .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .descriptor-grid, .feature-grid, .filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-row {
    grid-template-columns: 100px 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand small, .portal-button {
    display: none;
  }

  .hero, .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-search, .database-search {
    grid-template-columns: 1fr;
  }

  .hero-search span {
    display: none;
  }

  .hero-visual {
    min-height: 420px;
  }

  .stats-grid, .rating-grid, .descriptor-grid, .feature-grid, .timeline, .news-grid, .guide-list, .developer-grid, .filters, .footer {
    grid-template-columns: 1fr;
  }

  .database-panel {
    padding: 22px;
  }

  .result-row {
    grid-template-columns: 1fr;
  }
}

.subpage-hero {
  padding: 74px 6vw 44px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}

.subpage-hero .crumb {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.subpage-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 5vw, 70px);
}

.subpage-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 19px;
}

.page-shell {
  padding: 72px 6vw;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
}

.detail-side, .detail-main, .notice-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.detail-side {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.detail-side span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-side strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.detail-main {
  padding: 34px;
}

.detail-main h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.info-grid article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.info-grid h3 {
  font-size: 16px;
}

.info-grid p, .detail-main li {
  color: var(--muted);
}

.detail-main ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.notice-panel {
  margin-top: 24px;
  padding: 24px;
  background: #f0fdf4;
}

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

.page-card-grid a, .page-card-grid article {
  display: block;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.page-card-grid p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .detail-layout, .info-grid, .page-card-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}
.legal-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.legal-section p {
  color: var(--muted);
  font-size: 16px;
}

.legal-section ul, .notice-panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal-section li + li, .notice-panel li + li {
  margin-top: 8px;
}

.detail-side p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.source-links a,
.source-section a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
}

.source-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.source-section li {
  margin: 0;
}
.rating-image {
  display: inline-block;
  width: 92px;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.14));
}

.rating-card > .rating-image,
.recent-card .rating-image {
  width: 104px;
  margin-bottom: 18px;
}

.result-row > .rating-image {
  width: 84px;
}

.gallery-row .rating-image {
  width: 142px;
}

.badge-cloud .rating-image {
  position: absolute;
  width: 132px;
}

.badge-cloud .rating-image:nth-child(1) { top: 172px; left: 74px; }
.badge-cloud .rating-image:nth-child(2) { top: 112px; right: 82px; }
.badge-cloud .rating-image:nth-child(3) { top: 266px; right: 130px; }
.badge-cloud .rating-image:nth-child(4) { bottom: 92px; left: 108px; }
.badge-cloud .rating-image:nth-child(5) { bottom: 82px; right: 62px; }

.side-rating-image {
  display: block;
  width: 132px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .badge-cloud .rating-image {
    width: 104px;
  }

  .gallery-row .rating-image {
    width: 118px;
  }
}
.asset-actions a:not(.button-link) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}
.badge-assets-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1.55fr);
  gap: 28px;
  align-items: start;
}

.asset-intro-panel,
.badge-download-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.asset-intro-panel {
  padding: 28px;
  margin-bottom: 20px;
}

.asset-intro-panel p {
  max-width: 780px;
  color: var(--muted);
}

.badge-download-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.badge-download-grid article {
  padding: 22px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-download-grid .rating-image {
  width: 132px;
  margin-bottom: 18px;
}

.badge-download-grid p {
  color: var(--muted);
  flex: 1;
}

.badge-download-grid button {
  width: 100%;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}

body.modal-open {
  overflow: hidden;
}

.agreement-modal[aria-hidden="true"] {
  display: none;
}

.agreement-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.agreement-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.agreement-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
}

.agreement-summary {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.agreement-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.agreement-summary p,
.agreement-check span {
  color: var(--muted);
}

.agreement-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.agreement-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.agreement-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.button-link.disabled {
  pointer-events: none;
  opacity: 0.48;
  filter: grayscale(0.2);
}

.all-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.all-download-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .badge-download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .badge-assets-layout,
  .badge-download-grid {
    grid-template-columns: 1fr;
  }
}
.descriptor-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #ecfdf5;
  color: var(--green-dark);
}

.descriptor-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}