/* ============ Custom Font ============ */
@font-face {
  font-family: "Parkinsans";
  src: url("../assets/fonts/Parkinsans-SemiBold.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens ============ */
:root {
  /* Brand colors lifted from the Canva mockups */
  --c-bg: #FFFFFF;
  --c-fg: #0A0A0A;
  --c-fg-soft: #4A4A4A;
  --c-fg-mute: #8A8A8A;
  --c-line: #E8E5DE;
  --c-paper: #F6F4EE;       /* off-white warm */

  --c-violet: #6B3FFE;       /* primary punch */
  --c-violet-soft: #E5E2FF;  /* lavender pastel */
  --c-magenta: #FF2895;      /* hot pink section bg */
  --c-magenta-soft: #FFD6E8;
  --c-peach: #FFC5A8;        /* peach pastel */
  --c-peach-soft: #FFE5D6;
  --c-mint: #B5E0CC;         /* mint pastel */
  --c-mint-soft: #DEF1E6;
  --c-green: #0F5132;        /* forest green for stats */
  --c-green-mid: #2A7A4E;
  --c-blue-soft: #DDE9FB;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-card: 0 1px 0 rgba(10,10,10,0.06), 0 18px 40px -20px rgba(10,10,10,0.18);
  --shadow-deep: 0 1px 0 rgba(10,10,10,0.06), 0 30px 60px -28px rgba(10,10,10,0.30);

  --font-display: "Parkinsans", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Parkinsans", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-gap: clamp(80px, 10vw, 160px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-fg);
  background: var(--c-bg);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ============ Type ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-fg-mute);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--c-fg-soft);
}
.accent { color: var(--c-violet); }
.accent-pink { color: var(--c-magenta); }
.accent-green { color: var(--c-green); }
em.italic { font-style: italic; font-weight: 700; }

/* ============ Layout ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-gap) 0; position: relative; }
.section-tight { padding: clamp(56px, 6vw, 96px) 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid var(--c-fg);
  border-radius: 999px 999px 999px 0px;
  font-weight: 700;
  font-size: 15px;
  background: var(--c-fg);
  color: #fff;
  letter-spacing: -0.005em;
  transition: transform 160ms ease, background 160ms, color 160ms, border-color 160ms;
}
.btn:hover { transform: translateY(-1px); background: var(--c-violet); border-color: var(--c-violet); }
.btn-ghost {
  background: transparent; color: var(--c-fg);
}
.btn-ghost:hover { background: var(--c-fg); color: #fff; }
.btn-light {
  background: #fff; color: var(--c-fg); border-color: #fff;
}
.btn-light:hover { background: var(--c-violet); color: #fff; border-color: var(--c-violet); transform: translateY(-1px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { transition: transform 160ms ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: 1480px; margin: 0 auto;
  gap: 24px;
}
.nav-links {
  display: flex; gap: 8px; align-items: center;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 16px;
  color: var(--c-fg);
  transition: color 140ms;
}
.nav-link:hover { color: #E94B2C; }
.nav-link.active { color: #E94B2C; }

.nav-cta-btn {
  display: inline-flex; align-items: center;
  padding: 14px 26px;
  background: #E94B2C;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: background 160ms, transform 160ms;
}
.nav-cta-btn:hover { background: #C93B1F; transform: translateY(-1px); }

.menu-btn { display: none; background: transparent; border: 0; padding: 8px; }
.mobile-only { display: none; }

/* ============ Browser-window mock ============ */
.bwin {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1.2px solid #111;
  position: relative;
}
.bwin-bar {
  height: 36px;
  border-bottom: 1.2px solid #111;
  display: flex; align-items: center;
  padding: 0 10px;
  background: #fff;
}
.bwin-x {
  width: 18px; height: 18px;
  border: 1.2px solid #111; border-radius: 2px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.bwin-shadow {
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--c-violet);
  z-index: -1;
  border-radius: 6px;
}

/* ============ Footer ============ */
.footer {
  background: var(--c-fg);
  color: #fff;
  padding: 80px 0 40px;
  margin-top: 80px;
}
.footer a:hover { color: var(--c-violet-soft); }

/* ============ Misc ============ */
.bg-violet { background: var(--c-violet); color: #fff; }
.bg-magenta { background: var(--c-magenta); color: #fff; }
.bg-paper { background: var(--c-paper); }
.bg-mint-soft { background: var(--c-mint-soft); }
.bg-violet-soft { background: var(--c-violet-soft); }

.divider { height: 1px; background: var(--c-line); }

/* hover lift for cards */
.lift { transition: transform 220ms ease, box-shadow 220ms ease; }
.lift:hover { transform: translateY(-4px); }

/* Marquee logos */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 72px; align-items: center;
  width: max-content;
  animation: scroll 60s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-img {
  height: 40px; width: auto;
  flex: none;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(0%);
  transition: opacity 200ms;
}
.logo-img:hover { opacity: 1; }
.logo-pill {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--c-fg-mute);
  white-space: nowrap;
  opacity: 0.85;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  body { font-size: 16px; }
}

/* Mobile: i box highlight lunghi vanno a capo invece di sforare (niente scroll orizzontale) */
@media (max-width: 640px) {
  [data-hibox] { white-space: normal !important; }
}
