@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #f5f8ff;
  --bg-strong: #ffffff;
  --ink: #0c1118;
  --ink-soft: #344155;
  --muted: #5c6a7f;
  --blue-900: #0b4ddb;
  --blue-700: #0a46c2;
  --blue-500: #0f5bff;
  --lime: #c7f000;
  --border: #c7d7ff;
  --shadow-soft: 0 18px 36px rgba(6, 39, 101, 0.08);
  --shadow-strong: 0 28px 50px rgba(5, 33, 90, 0.22);
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(15, 91, 255, 0.08), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(15, 91, 255, 0.08), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 24px clamp(20px, 3vw, 48px) 56px;
  width: min(1680px, 100%);
  max-width: 1680px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__logo {
  display: block;
  height: 38px;
  width: auto;
}

.brand__link {
  display: inline-flex;
  text-decoration: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.lang-link {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  border: 1px solid transparent;
}

.lang-link.is-active {
  background: var(--lime);
  color: #0b0f14;
  border-color: rgba(0, 0, 0, 0.08);
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 6px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--blue-900);
}

.nav-link--ghost {
  color: var(--muted);
}

.nav-link--cta {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  padding: 64px 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0b55e0 0%, #0a45b5 55%, #0b2f79 100%);
  color: #ffffff;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 55% 65%, rgba(199, 240, 0, 0.2), transparent 55%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(
      120deg,
      rgba(171, 0, 255, 0.35),
      rgba(63, 139, 255, 0.45),
      rgba(255, 91, 191, 0.4)
    );
  opacity: 0.25;
  filter: blur(24px);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero__highlight {
  display: inline-block;
  padding: 2px 10px;
  background: var(--lime);
  color: #0b0f14;
  border-radius: 10px;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  gap: 12px;
}

.btn--primary {
  background: #0b0f14;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(5, 12, 24, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lime);
  color: #0b0f14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.hero__panel-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hero__panel-card--accent {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.panel-action {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.btn--lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.panel-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.panel-value {
  font-size: 20px;
  font-weight: 600;
}

.panel-meta {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 8px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.section__eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--muted);
  margin: 0 0 8px;
}

.section__header h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--blue-900);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section__meta {
  font-size: 13px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.app-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: 28px 26px;
  border-radius: 20px;
  background: var(--bg-strong);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 24px rgba(14, 38, 90, 0.06);
  animation: fade-up 0.6s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(10, 45, 120, 0.12);
  border-color: rgba(15, 91, 255, 0.45);
}

.app-card:nth-child(2) {
  animation-delay: 0.06s;
}

.app-card:nth-child(3) {
  animation-delay: 0.12s;
}

.app-card:nth-child(4) {
  animation-delay: 0.18s;
}

.app-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.app-card__header-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card__title {
  font-size: 18px;
  font-weight: 600;
}

.app-card__subtitle {
  font-size: 12px;
  color: var(--muted);
}

.app-card__summary {
  color: var(--muted);
  margin: 0;
}

.app-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.badge {
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 91, 255, 0.1);
  color: var(--blue-900);
  border: 1px solid rgba(15, 91, 255, 0.35);
}

.app-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 10px 20px rgba(15, 91, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.app-card__icon img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.app-card__icon-placeholder {
  font-size: 10px;
  text-align: center;
  color: #ffffff;
  line-height: 1.2;
}

.app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 91, 255, 0.2);
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed var(--border);
  color: var(--muted);
}

.empty-state__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.empty-state code {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 91, 255, 0.08);
}

.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  background: var(--bg-strong);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.callout {
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0b4ddb 0%, #0a3f9b 100%);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(10, 52, 140, 0.28);
}

.callout__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-hero__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-strong);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.detail-hero__title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-hero__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 91, 255, 0.28);
  overflow: hidden;
}

.detail-hero__icon img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.detail-hero__icon-placeholder {
  line-height: 1.1;
}

.detail-hero__summary {
  color: var(--muted);
  font-size: 16px;
}

.detail-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.meta-block {
  background: rgba(15, 91, 255, 0.05);
  padding: 12px;
  border-radius: 12px;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.meta-value {
  font-size: 15px;
  font-weight: 600;
}

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

.feature-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.feature-card__title {
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card__id {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feature-card__summary {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feature-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.feature-card__meta span {
  font-size: 11px;
  border: 1px solid rgba(15, 91, 255, 0.28);
  background: rgba(15, 91, 255, 0.08);
  color: var(--blue-900);
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feature-card__markdown {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(15, 91, 255, 0.04);
  color: var(--ink-soft);
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.feature-card__markdown h1,
.feature-card__markdown h2,
.feature-card__markdown h3 {
  margin: 8px 0 6px;
  color: var(--blue-900);
  font-family: "Space Grotesk", sans-serif;
}

.feature-card__markdown p {
  margin: 6px 0;
}

.feature-card__markdown ul {
  margin: 6px 0 6px 18px;
  padding: 0;
}

.feature-card__markdown li {
  margin: 2px 0;
}

.feature-card__markdown code {
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(15, 91, 255, 0.12);
}

.feature-card__refs {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.feature-card__refs span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.back-link {
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue-700);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

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

.site-footer a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-meta {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 40px 32px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    padding: 24px;
  }

  .nav-link {
    font-size: 14px;
  }

  .lang-switch {
    border-left: none;
    padding-left: 0;
  }
}
