:root {
  --bg: #f6f7f1;
  --paper: #fffdf6;
  --ink: #1e2118;
  --muted: #65705f;
  --line: rgba(49, 70, 44, 0.14);
  --green: #3f8f2f;
  --lime: #95d957;
  --deep: #07180f;
  --deep-2: #102319;
  --cacao: #4a2b17;
  --amber: #d9a441;
  --danger: #d84545;
  --shadow: 0 26px 80px rgba(20, 34, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 22, 13, 0.72);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.brand,
.header-actions,
.desktop-nav {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
}

.brand-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 176px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.brand-logo-full {
  width: 154px;
  height: auto;
}

.brand-logo-mark-img {
  display: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.desktop-nav {
  gap: 28px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

.header-actions {
  gap: 10px;
}

.lang-toggle {
  width: 44px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lime), var(--green));
  color: #07180f;
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(72, 144, 45, 0.28);
  cursor: pointer;
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.84rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.section {
  padding: 92px 0;
  overflow: hidden;
}

.section-dark {
  background: var(--deep);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px 0 70px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    radial-gradient(circle at 75% 25%, rgba(134, 217, 79, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(5, 17, 10, 0.94), rgba(5, 17, 10, 0.58) 45%, rgba(5, 17, 10, 0.16));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 60px;
  align-items: center;
}

.eyebrow,
.section-number {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-lead,
.section-head p,
.centered p,
.split p,
.platform p,
.pilot p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .hero-lead,
.section-dark p,
.hero .trust-row {
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  margin: 34px 0 26px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.live-card {
  width: min(100%, 410px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 24, 15, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.card-top,
.metric {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.card-top {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.metric {
  position: relative;
  align-items: center;
  min-height: 74px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric strong {
  font-size: 2rem;
}

.metric i {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: 160px;
  height: 34px;
  background: linear-gradient(120deg, transparent 0 10%, rgba(149, 217, 87, 0.85) 10% 12%, transparent 12% 24%, rgba(149, 217, 87, 0.85) 24% 26%, transparent 26%);
  clip-path: polygon(0 70%, 12% 54%, 24% 60%, 36% 28%, 48% 52%, 62% 36%, 74% 46%, 88% 24%, 100% 30%, 100% 100%, 0 100%);
  opacity: 0.72;
}

.metric.alert strong {
  color: #ff6b5e;
}

.split,
.platform-grid,
.impact-grid,
.pilot-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.compare-card,
.phone-visual,
.map-visual,
.vision-img,
.device {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-card img,
.phone-visual img,
.map-visual img,
.vision-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.warning-list,
.clean-list,
.mini-grid,
.stats,
.timeline {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.warning-list span,
.clean-list li,
.mini-grid span,
.timeline span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.centered {
  text-align: center;
}

.centered p,
.centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.feature-grid,
.benefit-grid,
.impact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.feature,
.step,
.benefit,
.impact-cards article,
.pilot-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 40px rgba(30, 33, 24, 0.06);
}

.feature,
.benefit,
.impact-cards article {
  padding: 24px;
}

.feature span,
.step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(63, 143, 47, 0.12);
  color: var(--green);
  font-weight: 900;
}

.feature p,
.benefit p {
  color: var(--muted);
}

.flow {
  background: var(--paper);
}

.section-head {
  max-width: 760px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.step {
  position: relative;
  padding: 24px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -18px;
  width: 18px;
  height: 2px;
  background: var(--green);
}

.platform {
  background:
    radial-gradient(circle at 18% 18%, rgba(149, 217, 87, 0.13), transparent 38%),
    linear-gradient(145deg, var(--deep), var(--deep-2));
}

.device {
  transform: perspective(1100px) rotateY(-8deg) rotateX(3deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-grid {
  grid-template-columns: repeat(2, 1fr);
}

.section-dark .mini-grid span,
.section-dark .impact-cards article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.clean-list {
  padding: 0;
  list-style: none;
}

.network {
  background: #eef4e8;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
}

.stats span {
  display: grid;
  padding: 18px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.65);
}

.stats strong {
  font-size: 1.6rem;
}

.stats small {
  color: var(--muted);
}

.timeline {
  grid-template-columns: repeat(6, 1fr);
}

.timeline span {
  position: relative;
  text-align: center;
  font-weight: 800;
}

.benefits {
  background: var(--paper);
}

.impact {
  background-image: linear-gradient(140deg, rgba(7, 24, 15, 0.96), rgba(19, 40, 27, 0.96));
}

.impact-cards {
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.impact-cards article {
  display: grid;
  gap: 12px;
}

.impact-cards span {
  color: var(--lime);
  font-weight: 900;
}

.impact-cards strong {
  font-size: 1.3rem;
}

.vision {
  background: #07180f;
  color: #fff;
}

.vision p {
  color: rgba(255, 255, 255, 0.78);
}

.pilot {
  background:
    linear-gradient(90deg, rgba(246, 247, 241, 0.96), rgba(246, 247, 241, 0.88)),
    url("assets/traceability.png") center / cover;
}

.pilot-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.pilot-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.pilot-form label,
.pilot-form .full {
  display: grid;
  gap: 8px;
}

.pilot-form .full {
  grid-column: 1 / -1;
}

.pilot-form span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 14px;
  color: var(--ink);
  font: inherit;
}

.footer {
  padding: 34px 0;
  background: #07180f;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.75fr minmax(360px, 1.4fr) auto;
  gap: 28px;
  align-items: start;
}

.footer span {
  color: #fff;
  font-weight: 900;
}

.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.footer-logo-chip img {
  width: 220px;
  height: auto;
}

.footer-brand p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.academic-credit {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.credit-kicker {
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.academic-credit dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.academic-credit div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
}

.academic-credit dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.academic-credit dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.footer a {
  justify-self: end;
  color: #fff;
  font-weight: 800;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible,
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .hero-grid,
  .split,
  .reverse,
  .platform-grid,
  .impact-grid,
  .pilot-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(5, 17, 10, 0.96), rgba(5, 17, 10, 0.56));
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .feature-grid,
  .benefit-grid,
  .steps,
  .impact-cards,
  .timeline,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer a {
    justify-self: start;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .site-header {
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
  }

  .brand-logo-chip {
    width: 152px;
    min-width: 152px;
    height: 42px;
    padding: 4px 9px;
  }

  .brand-logo-full {
    display: block;
    width: 132px;
  }

  .brand-logo-mark-img {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-small {
    padding: 0 12px;
    max-width: 92px;
    white-space: nowrap;
    overflow: hidden;
  }

  .header-cta {
    font-size: 0;
  }

  .header-cta::after {
    content: "Piloto";
    font-size: 0.84rem;
  }

  html[lang="en"] .header-cta::after {
    content: "Pilot";
  }

  h1 {
    font-size: 2.12rem;
    line-height: 1.05;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-copy,
  .hero-panel,
  .live-card {
    max-width: 100%;
    min-width: 0;
  }

  .hero-copy * {
    max-width: 100%;
  }

  .live-card {
    width: 100%;
    padding: 18px;
  }

  .metric {
    gap: 12px;
  }

  .metric strong {
    font-size: 1.65rem;
  }

  .stats,
  .mini-grid,
  .pilot-form {
    grid-template-columns: 1fr;
  }

  .academic-credit div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-logo-chip {
    max-width: 230px;
  }

  .footer-logo-chip img {
    width: 200px;
  }
}
