:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5c6962;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --line: #dce2d8;
  --green: #23745b;
  --green-dark: #124c3a;
  --aqua: #e2f6ef;
  --amber: #f3bf4f;
  --blue: #315f86;
  --rust: #b75b38;
  --shadow: 0 24px 80px rgba(23, 33, 29, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(247, 248, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.footer a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(52px, 7vw, 92px) clamp(24px, 6vw, 88px) 72px;
}

.hero-copy {
  max-width: 650px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(72px, 12vw, 156px);
  line-height: 0.85;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.lede {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.button.primary {
  background: var(--green-dark);
  color: white;
}

.button.primary:hover {
  background: var(--green);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.release-note {
  max-width: 510px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-preview {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background: #111814;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-bar span:nth-child(1) {
  background: #e2634f;
}

.window-bar span:nth-child(2) {
  background: #e2b84f;
}

.window-bar span:nth-child(3) {
  background: #63b86b;
}

.app-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 440px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: #17211d;
  color: #dce7df;
}

.sidebar-title {
  margin-bottom: 4px;
  color: #8fa69a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.connection {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border-radius: 7px;
  padding: 0 10px;
  color: #c7d8cf;
  font-size: 13px;
}

.connection.active {
  background: rgba(226, 246, 239, 0.1);
  color: white;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.pg {
  background: var(--blue);
}

.dot.redis {
  background: var(--rust);
}

.dot.trino {
  background: var(--amber);
}

.metric {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 16px;
  color: #8fa69a;
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: white;
  font-size: 24px;
}

.workspace {
  min-width: 0;
  padding: 18px;
  background: #f5f7f1;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-width: 76px;
  border-radius: 7px;
  padding: 8px 10px;
  background: #e8eee4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.tab.active {
  background: var(--ink);
  color: white;
}

.editor {
  min-height: 150px;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  padding: 18px;
  background: #101713;
  color: #d9f0e6;
  font: 14px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.result-grid {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d9e0d4;
  border-radius: 8px;
  background: white;
}

.grid-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.8fr;
  min-height: 42px;
  align-items: center;
  border-top: 1px solid #edf0eb;
}

.grid-row:first-child {
  border-top: 0;
}

.grid-row span {
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.grid-head {
  background: #edf4ef;
}

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

.section {
  padding: 74px clamp(24px, 6vw, 88px);
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.feature-card p,
.download-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.icon {
  display: inline-grid;
  min-width: 44px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: var(--aqua);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.coverage-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: start;
  padding: 76px clamp(24px, 6vw, 88px);
  background: #17211d;
  color: white;
}

.coverage-band .eyebrow {
  color: #80d0b2;
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.coverage-list li {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce7df;
  font-weight: 720;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 78px clamp(24px, 6vw, 88px);
}

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

.download-tile {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
}

.download-tile.available {
  border-color: rgba(35, 116, 91, 0.28);
  background: var(--aqua);
}

.download-tile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-tile strong {
  font-size: 21px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(24px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.policy {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 88px;
}

.policy h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
}

.policy h2 {
  margin-top: 44px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.08;
}

.policy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.policy a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-date {
  margin-top: 22px;
}

@media (max-width: 980px) {
  .hero,
  .coverage-band,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-preview {
    max-width: 760px;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
    padding: 18px 20px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }

  .hero,
  .section,
  .coverage-band,
  .download-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding: 12px;
  }

  .tabs {
    overflow-x: auto;
  }

  .editor {
    font-size: 12px;
  }

  .coverage-list,
  .download-actions {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .policy {
    width: calc(100% - 40px);
    padding-top: 48px;
  }
}
