:root {
  --ink: #13201b;
  --ink-soft: #34423c;
  --muted: #68766f;
  --paper: #f7f9f6;
  --surface: #ffffff;
  --surface-soft: #eef5f0;
  --line: #dce5df;
  --line-strong: #bfd0c6;
  --accent: #13805f;
  --accent-strong: #0b5e47;
  --accent-soft: #d9eee5;
  --code: #10211b;
  --code-muted: #8fb2a2;
  --warning: #a96d18;
  --warning-soft: #fff3d8;
  --shadow: 0 22px 60px rgba(19, 32, 27, 0.1);
  --sans: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(217, 238, 229, 0.76), rgba(247, 249, 246, 0) 420px),
    radial-gradient(circle at 12% 0%, rgba(19, 128, 95, 0.1), transparent 30%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(19, 128, 95, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 128, 95, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 68%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 229, 223, 0.88);
  background: rgba(247, 249, 246, 0.84);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--accent-strong);
  font-size: 0.98rem;
  font-weight: 760;
}

.brand-mark {
  flex: 0 0 auto;
}

.nav-links,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  justify-content: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
}

.nav-links a,
.language-switcher a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 11px;
}

.nav-links a:hover,
.language-switcher a:hover,
.language-switcher a.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
}

.language-switcher {
  justify-content: flex-end;
  font-size: 0.76rem;
  font-weight: 760;
}

.language-switcher .flag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
}

.flag {
  display: inline-block;
  width: 18px;
  height: 13px;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 27, 0.18);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(19, 32, 27, 0.08);
}

.flag--uk {
  background:
    linear-gradient(27deg, transparent 43%, #fff 43% 48%, #c8102e 48% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(153deg, transparent 43%, #fff 43% 48%, #c8102e 48% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(90deg, transparent 40%, #fff 40% 45%, #c8102e 45% 55%, #fff 55% 60%, transparent 60%),
    linear-gradient(0deg, transparent 34%, #fff 34% 42%, #c8102e 42% 58%, #fff 58% 66%, transparent 66%),
    #012169;
}

.flag--pt {
  background: linear-gradient(90deg, #046a38 0 42%, #da291c 42% 100%);
  position: relative;
}

.flag--pt::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 5px;
  border: 1px solid #ffcd00;
  border-radius: 999px;
  background: rgba(255, 205, 0, 0.22);
}

.flag--es {
  background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
  position: relative;
}

.flag--es::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 3px;
  height: 4px;
  border-radius: 1px;
  background: #aa151b;
}

.hero,
.section,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.8fr);
  gap: 58px;
  min-height: calc(100vh - 74px);
  padding: 86px 0 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__content h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero__title {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.55rem, 3vw, 2.75rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 760;
}

.button--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(19, 128, 95, 0.18);
}

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

.button--secondary {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.58);
}

.button--secondary:hover {
  background: var(--surface);
}

.hero__visual {
  display: grid;
  gap: 16px;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid rgba(16, 33, 27, 0.9);
  border-radius: 12px;
  background: var(--code);
  box-shadow: var(--shadow);
}

.terminal-panel__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-panel__bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #6e877b;
}

.terminal-panel pre {
  margin: 0;
  padding: 22px;
  white-space: pre-wrap;
}

.terminal-panel code {
  color: #e6f2ec;
  font-family: var(--mono);
  font-size: 0.91rem;
  line-height: 1.75;
}

.code-prompt {
  color: #7aa893;
}

.code-cli {
  color: #f6d78f;
}

.code-command {
  color: #74d9b0;
}

.code-mcl {
  color: #8bd3ff;
}

.code-arg {
  color: #e6f2ec;
}

.code-string {
  color: #ffb888;
}

.code-symbol {
  color: #d7eadf;
}

.code-output {
  color: var(--code-muted);
}

.metadata-stack {
  display: grid;
  gap: 10px;
}

.metadata-node {
  position: relative;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px 18px 16px 42px;
}

.metadata-node::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 23px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.metadata-node span,
.metadata-node small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

.metadata-node strong {
  color: var(--ink-soft);
  font-size: 1rem;
}

.metadata-node--core {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.hero__highlights {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero__highlights li {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 720;
}

.feature-icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--accent-strong);
}

.feature-icon span,
.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  display: block;
  border-color: currentColor;
}

.feature-icon--server span {
  left: 3px;
  width: 22px;
  height: 6px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.feature-icon--server span:nth-child(1) {
  top: 3px;
}

.feature-icon--server span:nth-child(2) {
  top: 11px;
}

.feature-icon--server span:nth-child(3) {
  top: 19px;
}

.feature-icon--metadata span {
  width: 7px;
  height: 7px;
  border: 1.8px solid currentColor;
  border-radius: 999px;
}

.feature-icon--metadata span:nth-child(1) {
  left: 2px;
  top: 4px;
}

.feature-icon--metadata span:nth-child(2) {
  left: 18px;
  top: 4px;
}

.feature-icon--metadata span:nth-child(3) {
  left: 10px;
  top: 18px;
}

.feature-icon--metadata::before,
.feature-icon--metadata::after {
  width: 14px;
  height: 1.8px;
  background: currentColor;
  border: 0;
  transform-origin: left center;
}

.feature-icon--metadata::before {
  left: 8px;
  top: 11px;
  transform: rotate(45deg);
}

.feature-icon--metadata::after {
  left: 20px;
  top: 11px;
  transform: rotate(135deg);
}

.feature-icon--database {
  border: 1.8px solid currentColor;
  border-radius: 50% / 18%;
}

.feature-icon--database::before,
.feature-icon--database::after {
  left: -1.8px;
  width: 28px;
  height: 9px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.feature-icon--database::before {
  top: -1.8px;
  background: rgba(19, 128, 95, 0.06);
}

.feature-icon--database::after {
  bottom: -1.8px;
}

.feature-icon--connector span:nth-child(1),
.feature-icon--connector span:nth-child(2) {
  top: 5px;
  width: 9px;
  height: 18px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.feature-icon--connector span:nth-child(1) {
  left: 1px;
}

.feature-icon--connector span:nth-child(2) {
  right: 1px;
}

.feature-icon--connector span:nth-child(3) {
  left: 10px;
  top: 13px;
  width: 8px;
  height: 2px;
  background: currentColor;
  border: 0;
}

.feature-icon--terminal {
  border: 1.8px solid currentColor;
  border-radius: 5px;
}

.feature-icon--terminal span:nth-child(1) {
  left: 5px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.feature-icon--terminal span:nth-child(2) {
  right: 5px;
  bottom: 7px;
  width: 8px;
  height: 1.8px;
  background: currentColor;
  border: 0;
}

.feature-icon--terminal span:nth-child(3) {
  display: none;
}

.feature-icon--window {
  border: 1.8px solid currentColor;
  border-radius: 5px;
}

.feature-icon--window::before {
  left: 0;
  top: 7px;
  width: 100%;
  border-top: 1.8px solid currentColor;
}

.feature-icon--window span {
  top: 3px;
  width: 3px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.feature-icon--window span:nth-child(1) {
  left: 5px;
}

.feature-icon--window span:nth-child(2) {
  left: 11px;
}

.feature-icon--window span:nth-child(3) {
  left: 17px;
}

.feature-icon--code::before,
.feature-icon--code::after {
  top: 8px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.feature-icon--code::before {
  left: 4px;
  transform: rotate(-45deg);
}

.feature-icon--code::after {
  right: 4px;
  transform: rotate(135deg);
}

.feature-icon--code span:nth-child(1) {
  left: 13px;
  top: 5px;
  width: 2px;
  height: 18px;
  background: currentColor;
  border: 0;
  transform: rotate(16deg);
}

.feature-icon--code span:nth-child(2),
.feature-icon--code span:nth-child(3) {
  display: none;
}

.feature-icon--cli {
  border: 1.8px solid currentColor;
  border-radius: 6px;
}

.feature-icon--cli::before {
  left: 4px;
  top: 5px;
  width: 20px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
}

.feature-icon--cli span:nth-child(1),
.feature-icon--cli span:nth-child(2),
.feature-icon--cli span:nth-child(3) {
  left: 5px;
  width: 18px;
  height: 1.8px;
  border: 0;
  background: currentColor;
}

.feature-icon--cli span:nth-child(1) {
  top: 13px;
}

.feature-icon--cli span:nth-child(2) {
  top: 18px;
}

.feature-icon--cli span:nth-child(3) {
  top: 23px;
  width: 11px;
}

.section {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 44px;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(2.05rem, 3.7vw, 3.45rem);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
  hyphens: none;
}

.section--docs {
  grid-template-columns: minmax(560px, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
}

.section--docs h2 {
  max-width: 620px;
}

.section__copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.07rem;
}

.section__copy p,
.soon-panel p {
  margin: 0;
}

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

.benefit-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 24px;
}

.benefit-card h3 {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.18;
}

.benefit-card p,
.soon-panel {
  color: var(--muted);
}

.section--soon {
  align-items: start;
}

.soon-panel {
  display: grid;
  gap: 18px;
  border: 1px solid #f0d59b;
  border-left: 5px solid var(--warning);
  border-radius: 12px;
  background: var(--warning-soft);
  padding: 26px;
  font-size: 1rem;
}

.soon-panel small {
  color: #6e4c15;
  font-size: 0.9rem;
}

.docs-area {
  display: grid;
  gap: 22px;
}

.docs-area > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.doc-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.doc-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(19, 32, 27, 0.08);
  transform: translateY(-2px);
}

.doc-card span {
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-card h3 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.14rem;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.public-doc {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 84px;
}

.public-doc__nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.public-doc__nav a:hover {
  color: var(--accent-strong);
}

.public-doc__status {
  display: inline-flex;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 6px 11px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-doc h1 {
  margin: 18px 0 16px;
  color: var(--ink);
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.public-doc__lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.public-doc__section {
  margin-top: 44px;
}

.public-doc h2 {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 1.55rem;
}

.public-doc p,
.public-doc li {
  color: var(--muted);
}

.public-doc p {
  margin: 0 0 16px;
}

.public-doc ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.public-doc li + li {
  margin-top: 6px;
}

.public-doc pre {
  overflow-x: auto;
  border-radius: 12px;
  background: var(--code);
  padding: 18px;
  color: #e6f2ec;
}

.public-doc code,
.public-doc pre {
  font-family: var(--mono);
}

.public-doc__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.public-doc__card,
.public-doc__link {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 20px;
}

.public-doc__card strong,
.public-doc__link strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.public-doc__list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.public-doc__link {
  display: grid;
  gap: 5px;
}

.public-doc__link:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(19, 32, 27, 0.08);
}

.public-doc__link span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
    padding: 15px 0;
  }

  .nav-links,
  .language-switcher {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .hero {
    min-height: auto;
    gap: 36px;
    padding-top: 56px;
  }

  .hero__highlights,
  .benefits-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .section {
    gap: 28px;
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .hero,
  .section,
  .site-footer,
  .site-nav {
    width: min(100% - 28px, 1160px);
  }

  .nav-links a,
  .language-switcher a {
    padding: 6px 9px;
  }

  .hero__content h1 {
    font-size: clamp(3.1rem, 18vw, 4.4rem);
  }

  .terminal-panel pre {
    padding: 18px;
  }

  .terminal-panel code {
    font-size: 0.78rem;
  }

  .benefit-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }

  .public-doc {
    width: min(100% - 28px, 900px);
  }

  .public-doc__cards {
    grid-template-columns: 1fr;
  }

  .public-doc__nav {
    flex-direction: column;
  }
}
