:root {
  --bg: #252a6b;
  --bg-accent: #2e3599;
  --panel: #8095d9;
  --accent: #2ea043;
  --text: #f0f6fc;
  --text2: #ffe959;
  --muted: #b4d1f0;
  --border: rgba(240, 246, 252, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-accent) 60%, #0f1b30 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

main a:not(.btn):not(.logo-mark) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(46, 160, 67, 0.65);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

main a:not(.btn):not(.logo-mark):hover {
  color: #3ad15a;
  text-decoration-color: #3ad15a;
}

header {
  background: #202a3f;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.15rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.navbar h1 {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin: 0;
}

.navbar h1 a {
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
}

.logo-mark svg {
  width: 42px;
  height: 42px;
}

.logo-mark img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.nav-links a {
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links .external-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  padding: 0.05rem 0.2rem;
  border: 1px solid currentColor;
  border-radius: 0.2rem;
  font-size: 0.65rem;
  line-height: 1;
}

.nav-links a:hover,
.nav-links a:focus {
  border-color: var(--accent);
}

.nav-links a[aria-current='page'] {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: rgba(240, 246, 252, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.floating-banner {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  background: rgba(32, 171, 76, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.4);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.floating-banner a {
  color: var(--accent);
  font-weight: 600;
}

.hero h2 {
  color: var(--text2);
  font-size: 2.5rem;
  margin: 0;
}

.hero p {
  color: var(--text);
  max-width: 640px;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #051b0d;
}

.btn-secondary {
  border-color: var(--border);
}

section {
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

section:nth-of-type(odd) {
  background: var(--panel);
}

.content-placeholder {
  padding: 4rem 1.5rem 3rem;
}

.collaborators-section {
  padding: 4rem 1.5rem 3rem;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner h3 {
  margin-top: 0;
  font-size: 1.75rem;
}

.placeholder-panel {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  max-width: 760px;
  background: rgba(13, 17, 23, 0.4);
}

.placeholder-intro {
  max-width: 620px;
  color: var(--muted);
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.text-columns p {
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(22, 27, 34, 0.7);
}

.content-placeholder > h2 {
  margin: 0 0 1.5rem;
}

.overview-card {
  margin-bottom: 2.5rem;
}

.overview-card .text-columns {
  display: block;
  margin-bottom: 0;
  column-count: 1;
  column-gap: 2rem;
}

.overview-card .text-columns p {
  max-width: none;
  margin: 0 0 1.5rem;
  break-inside: avoid-column;
}

.overview-card .text-columns p:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .overview-card .text-columns {
    column-count: 2;
  }
}

.stat-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.license-card {
  grid-column: 1 / -1;
}

.license-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.75rem;
}

.doc-steps {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.doc-steps li + li {
  margin-top: 0.35rem;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}


.collab-card {
  padding: 1.75rem;
}

.collab-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.collab-card li + li {
  margin-top: 0.3rem;
}

.collab-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
}

.collab-role {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.compact-list {
  columns: 2;
  column-gap: 1.5rem;
  margin-top: 0.75rem;
  padding-left: 1.1rem;
}

@media (max-width: 640px) {
  .compact-list {
    columns: 1;
  }
}

.placeholder-list,
.contact-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text);
}

.placeholder-list li + li,
.contact-list li + li {
  margin-top: 0.4rem;
}

.cite-block {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(22, 27, 34, 0.6);
}

.cite-block h4 {
  margin-top: 0;
}

.cite-list {
  margin: 1rem 0 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

.cite-list li + li {
  margin-top: 0.8rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #05070b;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  max-height: 360px;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel button:hover {
  background: rgba(46, 160, 67, 0.85);
  color: #051b0d;
}

.news-intro {
  max-width: 640px;
  color: var(--muted);
  margin: 0 0 2rem;
}

.news-list {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0 0;
}

.news-item {
  padding: 1.75rem 1.85rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(22, 27, 34, 0.7);
}

.news-item h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.news-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.news-item p:last-child {
  margin-bottom: 0;
}

.news-item .news-image {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 1rem 0 1.25rem;
  background: #05070b;
}

.news-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent);
}

.news-signoff {
  font-style: italic;
  color: var(--muted);
}

.carousel button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel button.prev {
  left: 1rem;
}

.carousel button.next {
  right: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.6);
}

.card h4 {
  margin-top: 0;
}

footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .nav-links {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero .cta-group {
    flex-direction: column;
  }

  .carousel button {
    display: none;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    margin-left: auto;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    max-height: 320px;
    padding-top: 0.75rem;
    border-color: var(--border);
  }
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.span-2 {
  grid-column: 1 / -1;
}

.doc-grid {
  grid-auto-rows: 1fr;
}

.install-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.install-row .card {
  flex: 1 1 220px;
}
.link-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border-color: var(--accent);
}
