:root {
  color-scheme: dark;
  --ink: #f5f9ff;
  --muted: #a7b7c9;
  --navy: #071321;
  --panel: rgba(15, 35, 56, 0.72);
  --line: rgba(157, 190, 219, 0.16);
  --blue: #3f91dd;
  --cyan: #43c8cc;
  --green: #58c889;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 128, 216, 0.2), transparent 32rem),
    radial-gradient(circle at 92% 42%, rgba(40, 192, 211, 0.13), transparent 30rem),
    var(--navy);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  color: #071321;
  background: white;
  border-radius: 0.6rem;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(100% - 2rem, 72rem);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding-top: env(safe-area-inset-top);
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 10.75rem; height: auto; }

.language-link {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.language-link:hover,
.language-link:focus-visible {
  color: white;
  border-color: rgba(67, 200, 204, 0.55);
  background: rgba(67, 200, 204, 0.08);
}

main { flex: 1; }

.hero {
  display: grid;
  gap: 3.75rem;
  align-items: center;
  padding: clamp(3.5rem, 12vw, 7rem) 0 clamp(4rem, 12vw, 7rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: #7fdae2;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span,
.status span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0.28rem rgba(67, 200, 204, 0.12);
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.55rem, 12vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lead {
  max-width: 39rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 3.5vw, 1.24rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.8rem;
  font-weight: 720;
  text-decoration: none;
}

.button-primary {
  color: #071321;
  background: linear-gradient(135deg, #63d8dc, #75cfa0);
  box-shadow: 0 14px 35px rgba(67, 200, 204, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(67, 200, 204, 0.28);
}

.button-whatsapp {
  position: relative;
  gap: 0.6rem;
  overflow: hidden;
  white-space: nowrap;
  color: #052313;
  border: 1px solid rgba(124, 255, 177, 0.7);
  background: linear-gradient(135deg, #41e583, #20c967 58%, #18b85b);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button-whatsapp img {
  width: 1.28rem;
  height: 1.28rem;
  flex: 0 0 auto;
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  transform: translateY(-3px);
  border-color: #9dffc4;
  box-shadow: 0 20px 44px rgba(37, 211, 102, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: saturate(1.08) brightness(1.04);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.visual { position: relative; }
.visual-glow {
  position: absolute;
  inset: 8% 4%;
  background: linear-gradient(135deg, rgba(63, 145, 221, 0.35), rgba(67, 200, 204, 0.2));
  filter: blur(55px);
}

.hub-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 5vw, 1.7rem);
  border: 1px solid rgba(156, 196, 226, 0.19);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(18, 42, 66, 0.92), rgba(8, 25, 42, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hub-card::after {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  content: "";
  background: rgba(67, 200, 204, 0.08);
}

.hub-topline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.hub-topline strong,
.hub-topline span { display: block; }
.hub-topline strong { font-size: 0.96rem; }
.hub-topline span { color: var(--muted); font-size: 0.72rem; }
.hub-topline i {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.3rem rgba(88, 200, 137, 0.1);
}

.module-grid { display: grid; gap: 0.85rem; margin-top: 1.1rem; }
.module-grid article {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255,255,255,.025);
}
.module-grid strong,
.module-grid small { display: block; }
.module-grid strong { font-size: 0.9rem; }
.module-grid small { color: var(--muted); font-size: 0.72rem; }
.module-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.module-icon.buyflow { color: #8de0ae; background: rgba(88, 200, 137, 0.13); }
.module-icon.production { color: #77cbe0; background: rgba(63, 145, 221, 0.15); }

.sap-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
  color: #7f92a7;
  text-align: center;
}
.sap-line span { height: 1px; flex: 1; background: var(--line); }
.sap-line small { font-size: 0.64rem; }

.principles {
  display: grid;
  gap: 1rem;
  padding: 0 0 clamp(4rem, 10vw, 6rem);
}
.principles article {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
}
.principles .number {
  color: #6b849c;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.principles h2 { margin: 0.6rem 0 0.45rem; font-size: 1rem; }
.principles p { margin: 0; color: var(--muted); font-size: 0.88rem; }

footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 0 calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: #73879b;
  font-size: 0.76rem;
}
footer p { margin: 0; }
footer a { color: #9eb1c4; text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid rgba(99, 216, 220, 0.75); outline-offset: 4px; }

.error-page {
  width: min(100% - 2rem, 46rem);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  padding: clamp(2rem, 8vw, 5rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.error-page .brand { margin-bottom: clamp(4rem, 12vw, 7rem); }
.error-page h1 { max-width: 12ch; }

@media (min-width: 42rem) {
  .page-shell { width: min(100% - 4rem, 72rem); }
  .brand img { width: 12.5rem; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .error-page { width: min(100% - 4rem, 46rem); }
}

@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr); gap: 5rem; min-height: 40rem; }
  .visual { transform: perspective(900px) rotateY(-4deg) rotateX(2deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .hub-card { animation: rise 650ms cubic-bezier(.2,.8,.2,1) both; }
  .hero-copy { animation: rise 520ms 80ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
