/* Shared styles: reset, tokens, navigation, footer, forms, appear animations.
   Breakpoints follow the original site: phone < 810px, tablet 810-1199px,
   desktop >= 1200px. */

:root {
  --bg: #f9f9f9;
  --ink: #1a1a1a;
  --black: #000;
  --muted: rgba(26, 26, 26, 0.4);
  --orange: rgb(239, 125, 0);
  --line: rgba(26, 26, 26, 0.1);
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --display: 'Inter Display', 'Inter', sans-serif;
  --inter: 'Inter', sans-serif;
  --outfit: 'Outfit', sans-serif;
  --satoshi: 'Satoshi', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; font-weight: inherit; font-size: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.m-only { display: none; }
@media (max-width: 809.98px) { .m-only { display: inline; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { position: relative; z-index: 2; background: var(--bg); }

/* ------------------------------------------------------------------ logo */
.logo { display: inline-flex; align-items: center; padding: 15px 20px; border-radius: 478px; color: #000; }
.logo-svg { width: 144px; height: 23px; }
.logo-light { color: #fff; }

/* ------------------------------------------------------------------ nav */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform 0.45s var(--ease); }
.nav-bar {
  position: relative; height: 100px; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(249, 249, 249, 0.7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: rgba(0, 0, 0, 0.14) 0 0.3px 0.3px -1.25px, rgba(0, 0, 0, 0.13) 0 1.14px 1.14px -2.5px, rgba(0, 0, 0, 0.06) 0 5px 5px -3.75px;
}
.nav-links { position: absolute; left: 50%; top: 29px; transform: translateX(-50%); display: flex; gap: 8px; }
.nav-link {
  position: relative; display: block; overflow: hidden; border-radius: 10px;
  padding: 10px 12px; font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: var(--ink);
}
.nav-link span { position: relative; z-index: 1; }
.nav-link::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background: rgba(26, 26, 26, 0.1); border-radius: 10px;
  transform: translateY(105%); transition: transform 0.3s var(--ease);
}
.nav-link:hover::before { transform: translateY(0); }

.lang-picker { position: relative; width: 120px; height: 47px; }
.lang-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.lp-box {
  display: flex; align-items: center; gap: 5px; height: 100%;
  padding: 10px; border-radius: 10px; background: #000; color: #fff;
  font: 400 18px/27px var(--inter);
}
.lp-title { flex: 1; white-space: nowrap; overflow: hidden; }
.lp-caret { display: flex; }
.lang-picker select:focus-visible + .lp-box { outline: 1px solid rgb(0, 153, 255); }

.hamburger, .mobile-menu { display: none; }

/* Home: the bar is hidden at the top of the page and slides in when the
   visitor scrolls back up. */
.nav-home { transform: translateY(-150px); }
.nav-home.is-shown { transform: none; }
.nav-home .nav-bar { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-home .lang-picker { width: auto; height: 42px; }
.nav-home .lp-box { padding: 8px 10px; font-size: 16px; line-height: 24px; }

@media (max-width: 809.98px) {
  .nav-bar { padding: 0 24px; height: 100px; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; align-items: flex-start; padding-top: 24px; }
  .nav-links, .site-nav:not(.nav-home) .lang-picker { display: none; }
  .nav-home { transform: none; }
  .nav-home .lang-picker { position: absolute; left: 214px; top: 22px; width: 54px; height: 34px; }
  .nav-home .lp-box { padding: 7px 8px; gap: 4px; border-radius: 8px; }
  .nav-home .lp-title { display: none; }
  .nav-home .lp-icon svg { width: 18px; height: 18px; }
  .hamburger {
    display: block; position: absolute; right: 24px; top: 24px; width: 35px; height: 35px;
    border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; padding: 0;
  }
  .hamburger span { position: absolute; left: 7px; width: 19px; height: 1px; background: var(--ink); }
  .hamburger span:nth-child(1) { top: 9px; }
  .hamburger span:nth-child(2) { top: 15px; }
  .hamburger span:nth-child(3) { top: 23px; }
  .mobile-menu {
    display: block; position: absolute; left: 6px; right: 6px; top: 6px; padding: 0 18px 18px;
    background: #fff; border-radius: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .site-nav.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mm-head { position: relative; height: 90px; display: flex; align-items: center; margin-left: -18px; }
  .mm-head .logo { padding-left: 38px; position: relative; top: -2px; }
  .mm-close { position: absolute; right: 0; top: 18px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
  .mm-close span { position: absolute; left: 7px; top: 16px; width: 19px; height: 1px; background: var(--ink); transform: rotate(45deg); }
  .mm-close span + span { transform: rotate(-45deg); }
  .mm-sep { height: 1px; background: var(--line); }
  .mm-links { padding-top: 25px; display: flex; flex-direction: column; gap: 7px; }
  .menu-link { display: block; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; font: 500 15px/18px var(--inter); letter-spacing: -0.1px; color: var(--ink); }
  .menu-link:hover { background: rgba(26, 26, 26, 0.1); }
  .logo { padding: 15px 20px; }
}

/* ------------------------------------------------------------------ small heading pill */
.pill {
  display: inline-block; padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--bg);
  font: 400 14px/16.8px var(--display); letter-spacing: -0.1px; color: var(--ink);
}
@media (max-width: 809.98px) { .pill { font-size: 13px; line-height: 15.6px; } }

/* Big page title with letter-by-letter appear. */
.big-title { font: 600 90px/108px var(--display); letter-spacing: -3.2px; color: #000; text-align: center; }
.big-title .word { display: inline-block; white-space: nowrap; }
.ltr { display: inline-block; opacity: 0; animation: ltr-in 0.25s linear forwards; animation-delay: calc(0.22s + var(--i) * 0.055s); }
@keyframes ltr-in { to { opacity: 1; } }
@media (max-width: 809.98px) { .big-title { font-size: 40px; line-height: 48px; letter-spacing: -1.4px; } }

/* Blocks that rise and fade in when they enter the viewport. */
.reveal { opacity: 0; transform: translateY(80px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ltr { animation: none; opacity: 1; }
}

/* ------------------------------------------------------------------ footer */
.footer-wrap { position: relative; overflow: hidden; height: 1020px; }
.footer-move { position: absolute; inset: 0; transform: translateY(-320px); will-change: transform; }
.footer-cap { position: absolute; left: 0; right: 0; top: 0; height: 48px; background: var(--bg); border-radius: 0 0 36px 36px; z-index: 2; }
.site-footer { position: relative; height: 1020px; overflow: hidden; color: #fff; }
.footer-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.footer-head { position: absolute; left: 50%; top: 288px; width: 900px; max-width: calc(100% - 48px); transform: translateX(-50%); text-align: center; }
.footer-head h2 { font: 600 55px/66px var(--outfit); letter-spacing: -1px; }
.footer-head p { margin-top: 12px; font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; }
.footer-panel {
  position: absolute; left: 50%; top: 580px; width: 1200px; max-width: calc(100% - 48px); transform: translateX(-50%);
  height: 392px; padding: 48px; border-radius: 24px;
  background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  display: grid; grid-template-columns: 294px 258px 282px 1fr; grid-template-rows: auto 1fr auto auto;
}
.fp-brand .logo { padding: 15px 20px; margin: 0; }
.fp-brand .logo-svg { width: 144px; height: 23px; }
.fp-social { display: flex; gap: 6px; margin-top: 24px; }
.fp-social a { width: 36px; height: 36px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: transform 0.2s var(--ease); }
.fp-social a:hover { transform: scale(1.06); }
.fp-social svg { width: 22px; height: 22px; fill: currentColor; }
.fp-col p { font: 400 14px/16.8px var(--display); letter-spacing: -0.1px; margin-top: 12px; }
.fp-col p.fp-title { margin: 0 0 5px; font: 500 18px/21.6px var(--inter); }
.fp-title { font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: var(--bg); }
.f-link { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.f-link:hover, .f-legal:hover { color: #fff; }
.f-link.is-active, .f-legal.is-active { color: var(--orange); }
.fp-download { grid-column: 4; justify-self: end; width: 270px; height: 202px; padding: 24px 12px 12px; border-radius: 18px; background: rgba(0, 0, 0, 0.4); }
.fp-download .fp-title { margin-bottom: 17px; }
.store-btn { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px; margin-top: 6px; border-radius: 10px; background: rgba(26, 26, 26, 0.8); color: #fff; transition: background 0.2s; }
.store-btn:hover { background: rgba(26, 26, 26, 1); }
.store-btn svg { flex: none; width: 25px; height: 24px; }
.store-btn span { display: flex; flex-direction: column; }
.store-btn small { font: 400 12px/14.4px var(--display); letter-spacing: -0.1px; color: rgba(244, 244, 244, 0.6); }
.store-btn b { font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; }
.fp-sep { grid-column: 1 / -1; align-self: end; height: 1px; background: rgba(255, 255, 255, 0.2); margin-bottom: 36px; }
.fp-copy { grid-column: 1 / 3; font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; white-space: pre; }
.fp-legal { grid-column: 3 / 5; display: flex; justify-content: flex-end; gap: 12px; margin-right: -22px; }
.fp-legal p { font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; width: 210px; }
.fp-legal p:first-child { width: 91px; }
.f-legal { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }

/* Compact footer (legal pages): no headline above the panel. */
.footer-compact, .footer-compact .site-footer { height: 728px; }
.footer-compact .footer-panel { top: 288px; }

@media (max-width: 809.98px) {
  /* Phone: the footer grows with its headline (two lines in Italian). */
  .footer-wrap:not(.footer-compact) { height: auto; }
  .footer-wrap:not(.footer-compact) .footer-move { position: relative; transform: none !important; }
  .footer-wrap:not(.footer-compact) .site-footer { height: auto; padding: 144px 12px 12px; }
  .footer-wrap:not(.footer-compact) .footer-head { position: relative; top: 0; left: 0; transform: none; margin: 0 auto; }
  .footer-wrap:not(.footer-compact) .footer-panel { position: relative; top: 0; left: 0; right: 0; margin-top: 96px; }
  .footer-compact, .footer-compact .site-footer { height: 936px; }
  .footer-compact .footer-panel { top: 144px; height: 780px; }
  .footer-compact .fp-brand .logo { align-self: flex-start; }
  .footer-compact .footer-cap { display: none; }
  .footer-compact .fp-copy { white-space: normal; }
  .footer-cap { border-radius: 0 0 24px 24px; }
  .footer-head { top: 144px; width: 342px; }
  .footer-head h2 { font-size: 32px; line-height: 38.4px; }
  .footer-head p { margin-top: 13px; font-size: 15px; line-height: 18px; }
  .footer-panel {
    top: 327px; width: auto; left: 12px; right: 12px; max-width: none; transform: none; height: 774px;
    padding: 24px; display: flex; flex-wrap: wrap; align-content: flex-start;
  }
  .fp-brand { width: 100%; display: flex; flex-direction: column; }
  .fp-brand .logo { align-self: center; }
  .fp-social { margin-top: 24px; }
  .fp-col { width: 50%; margin-top: 48px; }
  .fp-col + .fp-col { padding-left: 18px; }
  .fp-col p { font-size: 13px; line-height: 15.6px; margin-top: 9px; }
  .fp-title { font-size: 15px; line-height: 18px; }
  .fp-col p.fp-title { margin-bottom: 9px; font-size: 15px; line-height: 18px; }
  .fp-download { width: 100%; height: 191px; margin-top: 48px; }
  .store-btn { height: 56px; }
  .store-btn b { font-size: 15px; line-height: 18px; }
  .fp-sep { width: 100%; margin: 48px 0 36px; }
  .fp-copy { width: 100%; white-space: pre-wrap; text-align: center; font-size: 15px; line-height: 18px; padding: 0 20px; }
  .fp-legal { width: 100%; flex-direction: column; align-items: center; gap: 12px; margin: 12px 0 0; }
  .fp-legal p { width: auto; font-size: 15px; line-height: 18px; }
}

/* ------------------------------------------------------------------ contact form */
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.cf-row { display: flex; gap: 6px; }
.contact-form input, .contact-form textarea, .cf-select select {
  width: 100%; height: 41px; padding: 12px; border: 1px solid transparent; border-radius: 12px;
  background: rgba(187, 187, 187, 0.15); font: 400 14px/1.2 var(--inter); color: var(--ink);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form ::placeholder { color: rgba(26, 26, 26, 0.4); opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus, .cf-select select:focus { border-color: rgba(26, 26, 26, 0.25); }
.contact-form textarea { height: 70px; resize: vertical; display: block; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-label { font: 400 11px/13.2px var(--display); letter-spacing: 0.11px; color: rgba(26, 26, 26, 0.4); }
.cf-select { position: relative; display: block; }
.cf-select select { appearance: none; -webkit-appearance: none; cursor: pointer; color: rgba(26, 26, 26, 0.4); }
.cf-select select.has-value { color: var(--ink); }
.cf-select svg { position: absolute; right: 12px; top: 15px; color: rgba(26, 26, 26, 0.6); pointer-events: none; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; }
.cf-submit {
  position: relative; height: 46px; border: 0; border-radius: 12px; background: #1a1a1a; color: #fff; cursor: pointer;
  font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; transition: background 0.25s var(--ease);
}
.cf-submit:hover { background: #333; }
.cf-done { display: none; }
.contact-form.is-sent .cf-submit { background: rgb(55, 204, 58); cursor: default; }
.contact-form.is-sent .cf-default { display: none; }
.contact-form.is-sent .cf-done { display: inline; }
.cf-err { display: none; }
.contact-form.is-busy .cf-submit { opacity: .6; cursor: progress; }
.contact-form.is-error .cf-submit { background: rgb(229, 72, 77); }
.contact-form.is-error .cf-default { display: none; }
.contact-form.is-error .cf-err { display: inline; }
@media (max-width: 809.98px) {
  .cf-submit { height: 42px; font-size: 15px; line-height: 18px; }
}
