/* Home independente: apenas apresentação e o card Blockly Play. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

textarea {
  resize: vertical;
}
:root {
  --home-ink: #101b4f;
  --home-blue: #1475f7;
  --home-purple: #7b4ced;
  --home-glass: rgba(255, 255, 255, 0.58);
  --home-glass-border: rgba(255, 255, 255, 0.88);
  --home-shadow: 0 22px 58px rgba(74, 82, 174, 0.16);
}

html {
  min-width: 320px;
  background: #eff6ff;
}

body.theme-platform.home-gateway-page,
.home-gateway-page {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--home-ink);
  background:
    radial-gradient(circle at 8% 28%, rgba(91, 199, 255, 0.46), transparent 27%),
    radial-gradient(circle at 87% 24%, rgba(218, 177, 255, 0.44), transparent 31%),
    radial-gradient(circle at 67% 88%, rgba(142, 122, 255, 0.31), transparent 35%),
    linear-gradient(135deg, #f5fbff 0%, #eaf3ff 48%, #f8efff 100%);
  font-family: "Segoe UI", "Nunito", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.home-gateway__background,
.home-gateway__background-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-gateway__background {
  z-index: 0;
  overflow: hidden;
}

.home-gateway__background::before,
.home-gateway__background::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(12px);
}

.home-gateway__background::before {
  right: -10vw;
  bottom: -28vh;
  width: 56vw;
  height: 58vh;
  background: rgba(241, 169, 255, 0.31);
}

.home-gateway__background::after {
  left: -16vw;
  bottom: -30vh;
  width: 54vw;
  height: 52vh;
  background: rgba(94, 143, 255, 0.28);
}

.home-gateway__background-layer {
  object-fit: cover;
  object-position: center;
}

.home-gateway__background-layer--waves {
  opacity: 0.82;
}

.home-gateway__background-layer--rings {
  opacity: 0.78;
}

.home-gateway__background-layer--trails {
  opacity: 0.7;
}

.home-gateway__background-layer--sparkles {
  opacity: 0.94;
}

.home-gateway {
  position: relative;
  z-index: 2;
  width: min(1600px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 38px;
}

.home-gateway__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  padding: 16px 28px;
  border: 1px solid var(--home-glass-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 18px 46px rgba(70, 84, 170, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(1.15);
}

.home-gateway__brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  color: var(--home-ink);
  text-decoration: none;
}

.home-gateway__brand-mark {
  flex: 0 0 auto;
  width: 58px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 9px 10px rgba(37, 111, 226, 0.24));
}

.home-gateway__brand strong {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
}


.home-gateway__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(570px, 1.45fr) minmax(300px, 0.82fr);
  gap: 20px 30px;
  align-items: center;
  min-height: 760px;
  padding: 40px 22px 0;
}

.home-gateway__hero-copy {
  position: relative;
  z-index: 3;
  align-self: start;
  padding: 42px 0 0 50px;
}

.home-gateway__hero-copy h1 {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0;
  color: var(--home-blue);
  background: linear-gradient(180deg, #176ff2 0%, #1478fa 62%, #7649eb 100%);
  background-clip: text;
  font-size: clamp(2.75rem, 3.85vw, 4.2rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.08;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-gateway__hero-copy h1 span {
  background: linear-gradient(90deg, #7460f4, #b34af0);
  background-clip: text;
  -webkit-background-clip: text;
}

.home-gateway__hero-copy > p {
  max-width: 390px;
  margin: 30px 0 0;
  color: #243a68;
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.home-gateway__decor {
  position: absolute;
  z-index: 4;
  display: block;
  pointer-events: none;
}

.home-gateway__decor img {
  display: block;
  width: 100%;
  height: auto;
}

.home-gateway__decor--star {
  top: 36px;
  left: -20px;
  width: 74px;
  transform: rotate(-8deg);
  animation: home-star-float 5s ease-in-out infinite;
}

.home-gateway__decor--code {
  right: 10px;
  bottom: -10px;
  width: 88px;
  transform: rotate(10deg);
  animation: home-code-float 6s ease-in-out infinite;
}

.home-gateway__decor--cube {
  right: -14px;
  bottom: -10px;
  width: 120px;
  transform: rotate(-5deg);
}

.home-gateway__sphere {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98) 0 8%, transparent 22%),
    radial-gradient(circle at 68% 72%, #3c67e8, #5fc8ff 48%, #afdfff 72%, transparent 74%);
  filter: drop-shadow(0 16px 18px rgba(55, 90, 210, 0.24));
}

.home-gateway__sphere--blue {
  left: -32px;
  bottom: -42px;
  width: 52px;
  height: 52px;
}

.home-gateway__sphere--robot {
  top: 22px;
  right: 0;
  width: 46px;
  height: 46px;
}

.home-gateway__sphere--yellow {
  left: 28px;
  bottom: -14px;
  width: 52px;
  height: 52px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.96) 0 8%, transparent 22%),
    radial-gradient(circle at 68% 72%, #f4a83d, #ffd36d 50%, #ffe8ad 72%, transparent 74%);
  filter: drop-shadow(0 16px 18px rgba(226, 151, 42, 0.24));
}

.home-gateway__sphere--purple {
  right: 10px;
  bottom: -58px;
  width: 44px;
  height: 44px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.96) 0 8%, transparent 22%),
    radial-gradient(circle at 68% 72%, #7a53e7, #aa7bfb 50%, #dcc8ff 72%, transparent 74%);
}


.home-gateway__robot-stage {
  position: relative;
  z-index: 4;
  align-self: stretch;
  min-height: 410px;
}

.home-gateway__robot {
  position: absolute;
  z-index: 3;
  right: -12px;
  bottom: 34px;
  width: min(100%, 350px);
  max-height: 420px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 22px rgba(74, 80, 189, 0.23));
  animation: home-robot-float 5.5s ease-in-out infinite;
}

.home-gateway__robot-platform,
.home-gateway__robot-platform::before,
.home-gateway__robot-platform::after {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%) scaleY(0.28);
  content: "";
}

.home-gateway__robot-platform {
  z-index: 2;
  bottom: -12px;
  width: 340px;
  height: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(148, 111, 255, 0.76));
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.5),
    0 22px 42px rgba(93, 77, 222, 0.38),
    inset 0 0 22px rgba(255, 255, 255, 0.94);
}

.home-gateway__robot-platform::before {
  top: -12px;
  width: 298px;
  height: 130px;
  border: 8px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 22px rgba(98, 216, 255, 0.78);
}

.home-gateway__robot-platform::after {
  top: 20px;
  width: 240px;
  height: 104px;
  border: 5px solid rgba(121, 103, 255, 0.68);
}


.home-gateway__library {
  position: relative;
  z-index: 10;
  grid-column: 1 / -1;
  align-self: start;
  width: min(1180px, calc(100% - 100px));
  max-width: none;
  margin: -40px auto 0;
  padding: 22px 26px 26px;
  overflow: visible;
  border: 1px solid var(--home-glass-border);
  border-radius: 30px;
  color: var(--home-ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.69), rgba(243, 242, 255, 0.62)),
    rgba(255, 255, 255, 0.56);
  box-shadow:
    0 24px 62px rgba(68, 75, 170, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(28px) saturate(1.12);
}


.home-gateway__library-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.home-gateway__library-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #7552e8;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 9px 20px rgba(96, 79, 212, 0.14);
}

.home-gateway__library-icon img {
  width: 28px;
  height: 28px;
}

.home-gateway__library-heading h2 {
  margin: 0 0 3px;
  color: #4e42c8;
  font-size: 1.48rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.home-gateway__library-heading p {
  margin: 0;
  color: #34446d;
  line-height: 1.35;
}


.home-gateway__tool-card {
  --tool-accent: #10a990;
  --tool-soft: rgba(25, 195, 170, 0.12);
  --tool-icon-start: #48d6c1;
  --tool-icon-shadow: rgba(16, 169, 144, 0.28);
  --tool-detail-border: rgba(16, 169, 144, 0.22);
  --tool-hover-border: rgba(16, 169, 144, 0.32);
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: minmax(86px, auto) auto;
  gap: 14px 15px;
  min-width: 0;
  min-height: 195px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.91);
  border-radius: 24px;
  color: #23345f;
  cursor: pointer;
  text-align: left;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.61), rgba(246, 252, 255, 0.42));
  box-shadow:
    0 12px 28px rgba(70, 89, 166, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-gateway__tool-card--play {
  --tool-accent: #c133d6;
  --tool-soft: rgba(203, 68, 217, 0.15);
  --tool-icon-start: #e35be5;
  --tool-icon-shadow: rgba(193, 51, 214, 0.28);
  --tool-detail-border: rgba(193, 51, 214, 0.22);
  --tool-hover-border: rgba(193, 51, 214, 0.32);
  text-decoration: none;
}


.home-gateway__tool-icon {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 82px;
  height: 82px;
  min-width: 82px;
  min-height: 82px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--tool-icon-start), var(--tool-accent));
  box-shadow:
    0 13px 22px var(--tool-icon-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.home-gateway__tool-icon::before {
  position: absolute;
  z-index: 0;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  content: "";
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.34), transparent 56%);
}

.home-gateway__tool-icon img {
  position: relative;
  z-index: 1;
  display: block;
  width: 55px;
  height: 55px;
  min-width: 55px;
  max-width: 55px;
  min-height: 55px;
  max-height: 55px;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
}

.home-gateway__tool-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.home-gateway__tool-copy strong {
  color: var(--tool-accent);
  font-size: 1.03rem;
  font-weight: 850;
  line-height: 1.15;
}

.home-gateway__tool-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #314269;
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}


.home-gateway__tool-action {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  color: var(--tool-accent);
  background: var(--tool-soft);
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.home-gateway__tool-action::after {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--tool-detail-border);
  border-radius: 50%;
  content: "›";
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}


@keyframes home-robot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes home-star-float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-5px) rotate(-3deg);
  }
}

@keyframes home-code-float {
  0%,
  100% {
    transform: translateY(0) rotate(10deg);
  }
  50% {
    transform: translateY(5px) rotate(6deg);
  }
}



/* Ajustes do layout para um único produto, sem painéis de acesso. */
.home-gateway { width: min(1450px, calc(100% - 48px)); }
.home-gateway__header { justify-content: flex-start; }
.home-gateway__hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.15fr) minmax(220px, .8fr);
  min-height: 640px;
  gap: 32px;
  padding: 40px 18px;
}
.home-gateway__hero-copy { align-self: center; padding: 28px 0 28px 14px; }
.home-gateway__hero-copy h1 { font-size: clamp(2.4rem, 3.5vw, 3.7rem); }
.home-gateway__hero-copy > p { margin-top: 24px; }
.home-gateway__decor--star { top: -18px; left: -18px; width: 58px; }
.home-gateway__decor--code { right: 4px; bottom: -42px; width: 64px; }
.home-gateway__library { grid-column: auto; align-self: center; width: 100%; margin: 0; padding: 26px; }
.home-gateway__library-heading { grid-template-columns: auto minmax(0, 1fr); }
.home-gateway__library-heading h2 { font-size: 1.3rem; }
.home-gateway__tool-card { min-height: 215px; }
.home-gateway__tool-copy strong { font-size: 1.2rem; }
.home-gateway__tool-copy > span { display: block; overflow: visible; font-size: .95rem; }
.home-gateway__robot-stage { align-self: center; min-height: 380px; }
.home-gateway__robot { bottom: 25px; right: 0; }
.home-gateway__robot-platform { width: 90%; }
.home-gateway__robot-platform::before { width: 85%; }
.home-gateway__robot-platform::after { width: 68%; }
.home-gateway__tool-card:hover { transform: translateY(-3px); border-color: var(--tool-hover-border); }
a:focus-visible { outline: 3px solid #1475f7; outline-offset: 5px; }
@media (max-width: 1100px) {
  .home-gateway__hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 620px; }
  .home-gateway__robot-stage { display: none; }
}
@media (max-width: 700px) {
  .home-gateway { width: calc(100% - 28px); padding-top: 14px; }
  .home-gateway__header { min-height: 76px; padding: 14px 18px; border-radius: 22px; }
  .home-gateway__brand { gap: 10px; }
  .home-gateway__brand-mark { width: 42px; height: 40px; }
  .home-gateway__brand strong { font-size: 1.2rem; white-space: normal; }
  .home-gateway__hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 38px 6px 12px; }
  .home-gateway__hero-copy { padding: 20px 16px; }
  .home-gateway__hero-copy h1 { font-size: clamp(2.3rem, 8.5vw, 3.4rem); }
  .home-gateway__decor--star { left: -4px; top: -18px; width: 42px; }
  .home-gateway__decor--code { right: 12px; bottom: -24px; width: 50px; }
  .home-gateway__library { padding: 20px; border-radius: 24px; }
  .home-gateway__library-heading { gap: 10px; }
  .home-gateway__library-icon { width: 44px; height: 44px; }
  .home-gateway__library-heading h2 { font-size: 1.16rem; }
  .home-gateway__tool-card { grid-template-columns: 60px minmax(0, 1fr); padding: 16px; }
  .home-gateway__tool-icon { width: 60px; height: 60px; min-width: 60px; min-height: 60px; }
  .home-gateway__tool-icon img { width: 42px; height: 42px; min-width: 42px; min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
