:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --ink: #1b1c22;
  --ink-soft: #5e606a;
  --line: rgba(27, 28, 34, .13);
  --violet: #7770cf;
  --violet-pale: #e8e4fb;
  --aqua: #b9dcda;
  --aqua-pale: #e0efed;
  --peach: #ecc9b6;
  --peach-pale: #f3e2d8;
  --sage: #9cbcab;
  --acid: #dbea89;
  --white: #fffefa;
  --shadow: 0 30px 80px rgba(41, 41, 48, .10);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--paper);
  scrollbar-color: rgba(119, 112, 207, .48) var(--paper-2);
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(58rem 38rem at -12% 2%, rgba(180, 174, 228, .26), transparent 68%),
    radial-gradient(50rem 36rem at 108% 9%, rgba(160, 209, 205, .26), transparent 67%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .34;
  background-image: radial-gradient(rgba(28, 29, 35, .14) .55px, transparent .55px);
  background-size: 19px 19px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

::selection {
  color: #fff;
  background: rgba(92, 84, 180, .82);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(92, 84, 180, .42);
  outline-offset: 4px;
}

.wrap {
  max-width: 1300px;
  padding: 18px 28px 86px;
}

.nav {
  top: 14px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  background: rgba(247, 246, 242, .77);
  box-shadow: 0 12px 36px rgba(35, 36, 42, .07);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.logo {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 32, 39, .09);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.brand:hover .logo {
  transform: rotate(-5deg) scale(1.05);
}

.brandText strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -.035em;
}

.brandText span {
  color: #7a7b83;
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.links {
  gap: 4px;
}

.btn,
.langSelect {
  min-height: 40px;
  color: #45464f;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.btn:hover,
.langSelect:hover {
  color: var(--ink);
  background: rgba(27, 28, 34, .055);
}

.btn:active {
  transform: scale(.97);
}

.btn.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.btn.primary:hover {
  color: #fff;
  background: #33343d;
}

.langSelect {
  appearance: none;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, #70717a 50%),
    linear-gradient(135deg, #70717a 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.langSelect option {
  color: var(--ink);
  background: var(--white);
}

.hero {
  isolation: isolate;
  overflow: hidden;
  min-height: 760px;
  margin-top: 16px;
  padding: clamp(74px, 8vw, 112px) clamp(14px, 4vw, 54px) 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero::before {
  inset: 4% -2% auto auto;
  z-index: -2;
  width: min(48vw, 610px);
  height: min(48vw, 610px);
  border-radius: 43% 57% 54% 46% / 48% 42% 58% 52%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .92), transparent 24%),
    conic-gradient(from 210deg, #c9c3f0, #f0d0bd, #b5d9d5, #d9d5f4, #c9c3f0);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, .42), 0 45px 100px rgba(73, 68, 120, .14);
  animation: morph 16s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(43vw, 540px);
  height: min(43vw, 540px);
  right: 1.5%;
  top: 10%;
  border: 1px solid rgba(27, 28, 34, .16);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.heroBrand {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: center;
}

.brandPoster {
  justify-self: center;
  width: min(100%, 410px);
  border: 0;
  border-radius: 45% 55% 47% 53% / 52% 43% 57% 48%;
  background: #fff;
  box-shadow: 0 38px 90px rgba(45, 44, 57, .16);
  transform: rotate(2deg);
  animation: posterFloat 8s ease-in-out infinite;
}

.kicker {
  width: fit-content;
  color: #5d578b;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.spark {
  background: var(--violet);
  box-shadow: 0 0 0 6px rgba(119, 112, 207, .10);
}

h1 {
  max-width: 760px;
  margin: 23px 0 26px;
  color: var(--ink);
  font-size: clamp(66px, 8.4vw, 112px);
  font-weight: 760;
  line-height: .88;
  letter-spacing: -.082em;
  text-wrap: balance;
}

.sub {
  max-width: 680px;
  color: #62636c;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.68;
}

.tagrow {
  gap: 0;
  margin-top: 36px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tag {
  padding: 4px 14px;
  color: #666770;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.tag:first-child {
  padding-left: 0;
}

.tag:last-child {
  border-right: 0;
}

.tag.ok,
.tag.blue,
.tag.amber {
  color: #4d4f58;
  border-color: var(--line);
  background: transparent;
}

.ctaRow {
  gap: 18px;
  margin-top: 26px;
}

.cta {
  position: relative;
  min-height: 46px;
  padding: 10px 2px;
  color: #35363e;
  border: 0;
  border-bottom: 1px solid rgba(27, 28, 34, .30);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.cta::after {
  content: "↗";
  font-size: 16px;
  transition: transform .25s ease;
}

.cta:hover {
  color: #5c54b4;
  border-color: #5c54b4;
  transform: translateY(-1px);
  background: transparent;
  box-shadow: none;
}

.cta:hover::after {
  transform: translate(3px, -3px);
}

.cta.primary {
  padding: 12px 18px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
}

.cta.primary:hover {
  color: #fff;
  background: #353640;
}

.haipLine {
  margin-top: 20px;
  color: #74757d;
  border: 0;
}

.haipLine em {
  color: #5c54b4;
}

.grid {
  gap: 22px;
  margin-top: 86px;
}

.card {
  position: relative;
  padding: 30px 0 26px;
  color: var(--ink);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.card::before {
  display: none;
}

.card h2 {
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -.052em;
}

.card h3 {
  color: var(--ink);
  letter-spacing: -.025em;
}

.card p,
.muted {
  color: var(--ink-soft);
}

.badge {
  padding: 0 0 9px;
  color: #5d578b;
  border: 0;
  border-bottom: 2px solid var(--violet);
  border-radius: 0;
  background: transparent;
  letter-spacing: .08em;
}

.callout {
  margin-top: 24px;
  padding: 18px 0 0;
  color: #c9c9d0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
}

.callout b {
  color: #fff;
}

.list {
  gap: 0;
}

.pill {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(27, 28, 34, .12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: padding-left .28s ease;
}

.pill:hover {
  padding-left: 8px;
}

.pill b {
  color: var(--ink);
  font-size: 14px;
}

.pill small {
  color: #6c6d75;
}

.dot2 {
  background: var(--violet);
  box-shadow: none;
}

.dot2.amber {
  background: #cf8e6c;
  box-shadow: none;
}

.dot2.ok {
  background: #6c9d83;
  box-shadow: none;
}

.status {
  width: fit-content;
  padding: 7px 11px;
  color: #2f654d;
  border: 1px solid rgba(47, 101, 77, .20);
  background: rgba(226, 240, 232, .72);
}

.status.building {
  color: #67563a;
  border-color: rgba(103, 86, 58, .18);
  background: rgba(242, 231, 210, .72);
}

#brand {
  align-items: stretch;
}

#brand > .span12 {
  min-height: 450px;
  padding: clamp(42px, 6vw, 76px);
  color: #f7f5ef;
  border: 0;
  border-radius: 48px;
  background:
    radial-gradient(34rem 26rem at 100% 0%, rgba(119, 112, 207, .34), transparent 68%),
    #1c1d23;
  box-shadow: var(--shadow);
}

#brand > .span12 h2 {
  max-width: 940px;
  color: #fff;
  font-size: clamp(44px, 6.6vw, 78px);
  line-height: .98;
}

#brand > .span12 p {
  max-width: 760px;
  color: #bfc0c7;
  font-size: 17px;
}

#principi {
  padding: 42px;
  border: 0;
  border-radius: 42px;
  background: var(--peach-pale);
}

#brand > .span5 {
  padding: 42px;
  color: #f8f7fc;
  border: 0;
  border-radius: 42px;
  background: #6861b3;
}

#brand > .span5 h2,
#brand > .span5 h3,
#brand > .span5 .pill b {
  color: #fff;
}

#brand > .span5 p,
#brand > .span5 .muted,
#brand > .span5 .pill small {
  color: #e3e1f2;
}

#brand > .span5 .tag {
  color: #f1efff;
  border-color: rgba(255, 255, 255, .20);
}

#prodotti,
#in-costruzione,
#roadmap,
#contatti {
  scroll-margin-top: 110px;
}

#prodotti > .span12,
#in-costruzione > .span12,
#roadmap > .span12 {
  padding: 0 0 22px;
  border: 0;
}

#prodotti > .span12 h2,
#in-costruzione > .span12 h2,
#roadmap > .span12 h2 {
  max-width: 990px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}

#prodotti .productCard {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: clamp(42px, 7vw, 96px);
  min-height: 560px;
  padding: clamp(38px, 5vw, 66px);
  border: 0;
  border-radius: 48px;
  box-shadow: var(--shadow);
}

#prodotti .productCard::after {
  width: 420px;
  height: 420px;
  right: -190px;
  top: -210px;
  opacity: .38;
  background: rgba(255, 255, 255, .74);
}

#prodotti .productCard > .badge,
#prodotti .productCard > h2,
#prodotti .productCard > p,
#prodotti .productCard > .status,
#prodotti .productCard > .productActions {
  grid-column: 1;
}

#prodotti .productCard > h2 {
  margin-top: 22px;
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: .96;
}

#prodotti .productCard > p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
}

#prodotti .productCard > .list {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  margin: 0;
}

#prodotti .productActions {
  align-self: end;
}

#due-date {
  background:
    radial-gradient(35rem 26rem at 105% -2%, rgba(255, 255, 255, .82), transparent 64%),
    #e9e4fa;
}

#haip {
  background:
    radial-gradient(35rem 26rem at 105% -2%, rgba(255, 255, 255, .78), transparent 64%),
    #dcecea;
}

#in-costruzione .productCard {
  padding: 34px 32px;
  border-top: 2px solid var(--ink);
}

#in-costruzione .productCard h2 {
  font-size: clamp(30px, 3.5vw, 46px);
}

#in-costruzione .productCard::after {
  display: none;
}

#endoscope {
  background: linear-gradient(180deg, rgba(232, 228, 251, .68), transparent 72%);
}

#jhon-web {
  background: linear-gradient(180deg, rgba(219, 235, 228, .74), transparent 72%);
}

#roadmap > .card:last-child {
  padding: 34px 38px 40px;
  border: 0;
  border-radius: 42px;
  background: rgba(255, 254, 250, .70);
}

#roadmap .grid {
  margin-top: 24px;
}

#roadmap .grid .card {
  padding-right: 28px;
}

#contatti > .card {
  padding: clamp(42px, 6vw, 76px);
  color: #f8f6f0;
  border: 0;
  border-radius: 48px;
  background:
    radial-gradient(35rem 26rem at 100% 0%, rgba(185, 220, 218, .22), transparent 68%),
    #1c1d23;
  box-shadow: var(--shadow);
}

#contatti > .card h2,
#contatti > .card .callout b {
  color: #fff;
}

#contatti > .card p,
#contatti > .card .muted {
  color: #bfc0c7;
}

#contatti .badge {
  color: #cfcafb;
  border-bottom-color: #938be6;
}

#contatti .cta:not(.primary) {
  color: #e7e6eb;
  border-bottom-color: rgba(255, 255, 255, .28);
}

#contatti .cta.primary {
  color: var(--ink);
  background: #f5f2ea;
}

.footer {
  margin-top: 34px;
  padding: 18px 0;
  color: #74757d;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.footer a {
  color: #4f4a80;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .75s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

@keyframes morph {
  0% { border-radius: 43% 57% 54% 46% / 48% 42% 58% 52%; transform: rotate(0); }
  100% { border-radius: 55% 45% 43% 57% / 42% 56% 44% 58%; transform: rotate(4deg); }
}

@keyframes posterFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(.4deg) translateY(-9px); }
}

@media (max-width: 900px) {
  .wrap {
    padding-inline: 16px;
  }

  .hero {
    min-height: auto;
    padding: 72px 18px 42px;
  }

  .hero::before {
    width: 76vw;
    height: 76vw;
    right: -18vw;
    top: 44%;
  }

  .hero::after {
    width: 70vw;
    height: 70vw;
    right: -13vw;
    top: 47%;
  }

  .heroBrand {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .brandPoster {
    max-width: min(390px, 76vw);
  }

  h1 {
    font-size: clamp(61px, 13vw, 88px);
  }

  #prodotti .productCard {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  #prodotti .productCard > .badge,
  #prodotti .productCard > h2,
  #prodotti .productCard > p,
  #prodotti .productCard > .status,
  #prodotti .productCard > .productActions,
  #prodotti .productCard > .list {
    grid-column: 1;
  }

  #prodotti .productCard > .list {
    grid-row: auto;
    margin-top: 30px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 10px 12px 58px;
  }

  .nav {
    top: 9px;
    padding-left: 10px;
  }

  .hero {
    padding: 64px 8px 36px;
  }

  h1 {
    font-size: clamp(52px, 15.2vw, 70px);
  }

  .sub {
    font-size: 16px;
  }

  .tagrow {
    gap: 8px 0;
  }

  .tag {
    padding-inline: 10px;
  }

  .grid {
    margin-top: 62px;
  }

  #brand > .span12,
  #principi,
  #brand > .span5,
  #prodotti .productCard,
  #roadmap > .card:last-child,
  #contatti > .card {
    padding: 30px 23px;
    border-radius: 30px;
  }

  #brand > .span12 {
    min-height: auto;
  }

  #prodotti .productCard > h2 {
    font-size: 43px;
  }

  #in-costruzione .productCard {
    padding-inline: 4px;
  }
}

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
