*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #c8c8c8;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.42);
  --font: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
  --radius: 32px;
  --tap: 44px;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

::selection {
  background: #ffffff;
  color: #000000;
}

.skip-link {
  position: absolute;
  top: -120%;
  left: 16px;
  z-index: 20;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 0 16px 16px;
}

.skip-link:focus {
  top: 0;
}

.wrap,
.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 8px;
}

.hero h1 {
  margin: 0;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(480px, 100%);
  height: auto;
  margin: 0 auto;
  animation: settle 0.7s ease both;
}

.intro {
  padding: 48px 0 28px;
}

.intro-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
}

.intro-copy {
  max-width: 40rem;
}

.kicker {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.intro h2,
.doc h1 {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.platform h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lede {
  margin-top: 20px;
  max-width: 36rem;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
}

.lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

.lead a,
.doc a {
  color: var(--text);
  font-weight: 800;
  text-underline-offset: 4px;
}

.lead a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.houses,
.platform {
  padding: 36px 0 20px;
}

.platform {
  padding-top: 72px;
  padding-bottom: 96px;
}

.platform-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  margin-bottom: 28px;
}

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

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color 0.3s ease;
}

.card h3 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.tagline {
  font-size: 16px;
  font-weight: 750;
}

.desc {
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.55;
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Always a column. flex-wrap let short labels (tridente.si and @TridenteSI)
   share one row while longer pairs wrapped. */
.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.links a,
.footer-copy a,
.footer-email a,
.footer-division a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.links a {
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

footer {
  padding: 24px 0 56px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-copy {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.footer-copy a,
.footer-email a,
.footer-division a {
  color: var(--text);
  font-weight: 800;
  text-underline-offset: 4px;
  padding: 0 2px;
}

.footer-email {
  font-size: 16px;
  font-weight: 700;
}

.footer-division {
  font-size: 18px;
  font-weight: 750;
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.doc {
  padding: 96px 0 120px;
}

.doc h1 {
  font-size: clamp(48px, 7vw, 80px);
}

.doc-updated {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.doc-lead {
  margin-top: 28px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 18px;
}

.doc-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}

.doc-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.doc-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.doc-section p + p {
  margin-top: 14px;
}

.doc a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.rise {
  opacity: 1;
  transform: none;
}

.js .rise {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .rise.is-in {
  opacity: 1;
  transform: none;
}

.cards .rise:nth-child(2) { transition-delay: 0.05s; }
.cards .rise:nth-child(3) { transition-delay: 0.1s; }

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (hover: hover) {
  .card:hover {
    border-color: var(--line-strong);
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .intro-layout,
  .platform-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 40px;
  }

  .platform {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .doc {
    padding: 64px 0 88px;
  }
}

@media (max-width: 480px) {
  .wrap,
  .container {
    width: min(1080px, calc(100% - 32px));
  }

  .card {
    padding: 24px;
    border-radius: 24px;
  }
}

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

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

  .hero-logo,
  .js .rise {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  a:focus-visible,
  .skip-link:focus-visible {
    outline: 2px solid CanvasText;
  }
}
