:root {
  --bg: #f7fafb;
  --surface: #ffffff;
  --surface-soft: #eef6f7;
  --text: #152026;
  --muted: #64737c;
  --muted-strong: #43515a;
  --line: #dbe5e8;
  --line-strong: #c7d6da;
  --teal: #20a7a5;
  --teal-dark: #0f7877;
  --teal-soft: #d9f2f1;
  --amber: #e6a536;
  --blue: #2f80ed;
  --shadow: 0 18px 48px rgba(32, 55, 68, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(234, 245, 247, 0.9), rgba(247, 250, 251, 0) 520px),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(219, 229, 232, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(35, 62, 73, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.language-option {
  min-width: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.language-option.is-active {
  background: var(--text);
  color: #fff;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 98px);
  margin: 0 auto;
  padding: 58px 0 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.descriptor,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 660px;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 5.9vw, 66px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

.hero-body {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 780;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  background: var(--text);
  color: #fff;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.hero-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 61% center;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(32, 55, 68, 0.07);
}

.metrics-strip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.metrics-strip div:last-child {
  border-right: 0;
}

.metrics-strip strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
}

.metrics-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 90px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 22px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.contact-section p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
}

.text-link {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card,
.tool-detail,
.updates-panel,
.download-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(32, 55, 68, 0.07);
}

.tool-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-soft), #f4fbff);
  color: var(--teal-dark);
  font-weight: 850;
}

.tool-card h3,
.tool-detail h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.tool-card p,
.tool-detail p {
  margin: 8px 0 0;
  color: var(--muted);
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
}

.meta-chip.status-available {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.meta-chip.status-beta {
  background: #fff0d6;
  color: #8b5a08;
}

.meta-chip.status-planned {
  background: #e9f0ff;
  color: #2357a6;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.card-actions .button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.filters label {
  display: grid;
  gap: 7px;
  min-width: 190px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filters select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.tool-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(32, 55, 68, 0.07);
}

.tool-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.tool-table th,
.tool-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tool-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tool-table tr:last-child td {
  border-bottom: 0;
}

.tool-name {
  display: grid;
  gap: 5px;
  min-width: 250px;
}

.tool-name strong {
  font-size: 15px;
}

.tool-name span {
  color: var(--muted);
  font-size: 13px;
}

.row-action {
  min-width: 96px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.tool-detail-row td {
  padding: 0;
  background: #fbfdfe;
}

.tool-detail {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

.detail-list li + li {
  margin-top: 6px;
}

.empty-state {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-weight: 650;
}

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

.updates-panel,
.download-panel {
  padding: 22px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  gap: 5px;
  padding-left: 15px;
  border-left: 3px solid var(--teal);
}

.timeline-item strong {
  font-size: 14px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 13px;
}

.policy-list {
  display: grid;
  gap: 12px;
}

.policy-list div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.policy-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.policy-list p {
  margin: 2px 0 0;
  color: var(--muted-strong);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 90px;
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--text), #22343c);
  color: #fff;
}

.contact-section .section-kicker {
  color: #76ded9;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.contact-label {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.contact-card strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.contact-card p {
  margin: 8px 0 0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  text-align: right;
}

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

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    min-height: 360px;
  }

  .featured-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-section,
  .metrics-strip,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    margin-top: 10px;
  }

  .brand-text {
    display: none;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 2px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-body {
    font-size: 16px;
  }

  .hero-media img {
    min-height: 270px;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .metrics-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-strip div:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .contact-card,
  .site-footer {
    display: grid;
  }

  .tool-card {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .filters label {
    min-width: 100%;
  }

  .tool-table {
    min-width: 0;
  }

  .tool-table thead {
    display: none;
  }

  .tool-table,
  .tool-table tbody,
  .tool-table tr,
  .tool-table td {
    display: block;
    width: 100%;
  }

  .tool-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .tool-table tr:last-child {
    border-bottom: 0;
  }

  .tool-table td {
    padding: 7px 0;
    border-bottom: 0;
  }

  .tool-table td:not(:first-child):not(:last-child) {
    display: inline-flex;
    width: auto;
    margin-right: 8px;
    color: var(--muted-strong);
    font-size: 13px;
  }

  .tool-name {
    min-width: 0;
  }

  .row-action {
    width: 100%;
    margin-top: 8px;
  }

  .tool-detail-row {
    padding-top: 0;
  }

  .tool-detail-row td {
    padding: 0;
  }

  .tool-detail {
    padding: 14px 0 2px;
  }

  .contact-card .button {
    width: 100%;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
