/* Meetsyncs — sito del prodotto. Stessi colori e caratteri del marchio
   nell'app (frontend/src/lib/brands.ts): grigi slate, indaco, Inter e Manrope.
   Caratteri ospitati qui (licenza SIL OFL 1.1: fonts/OFL-*.txt). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --fg: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-fg: #ffffff;
  --primary-soft: #eef2ff;
  --primary-ink: #3730a3;
  --brand-soft: #818cf8;
  --control: #f1f5f9;
  --band-from: #4338ca;
  --band-to: #1e1b4b;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --radius: 0.75rem;
  --sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --heading: "Manrope", "Inter", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #0f172a;
    --fg: #e2e8f0;
    --muted: #94a3b8;
    --card: #111827;
    --border: #1e293b;
    --primary: #818cf8;
    --primary-fg: #0b1120;
    --primary-soft: #1e1b4b;
    --primary-ink: #c7d2fe;
    --brand-soft: #a5b4fc;
    --control: #1e293b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* le ancore non finiscono sotto l'intestazione fissa */
  scroll-padding-top: 4.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 0.5rem;
  z-index: 10;
}
.skip:focus {
  left: 0.5rem;
}

/* ----- intestazione ----- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4rem;
}
.top__nav {
  display: flex;
  gap: 1.5rem;
  margin-right: auto;
}
.top__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.top__nav a:hover {
  color: var(--fg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--brand-soft), #4f46e5);
  color: #fff;
  box-shadow: 0 2px 8px rgb(79 70 229 / 0.3);
}
.brand__mark svg {
  width: 1.15rem;
  height: 1.15rem;
}
.brand__name {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand--small .brand__mark {
  width: 1.6rem;
  height: 1.6rem;
}
.brand--small .brand__name {
  font-size: 1rem;
}

/* ----- pulsanti ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 6px 18px rgb(79 70 229 / 0.28);
}
.btn--primary:hover {
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
}
.btn--ghost:hover {
  border-color: var(--primary);
}
.btn--light {
  background: #ffffff;
  color: #312e81;
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn--primary:hover {
    transform: none;
  }
}

/* ----- apertura ----- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(circle, rgb(129 140 248 / 0.22), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  font-weight: 800;
}
.lead {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* la riunione disegnata */
.call {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--card);
  box-shadow: var(--shadow);
}
.call__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.35rem 0.75rem;
  font-size: 0.85rem;
}
.call__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
}
.call__title {
  font-weight: 600;
}
.call__time {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.call__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  background: linear-gradient(160deg, #1e293b, #0f172a);
}
.tile:nth-child(2) {
  background: linear-gradient(160deg, #312e81, #1e1b4b);
}
.tile:nth-child(3) {
  background: linear-gradient(160deg, #334155, #1e293b);
}
.tile:nth-child(4) {
  background: linear-gradient(160deg, #3730a3, #1e1b4b);
}
.tile--speaking {
  box-shadow: 0 0 0 3px var(--primary);
}
.tile__avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.tile__name {
  position: absolute;
  left: 0.5rem;
  bottom: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 0.75rem;
}
.tile__hand {
  position: absolute;
  right: 0.5rem;
  top: 0.4rem;
  font-size: 1rem;
}
.call__controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 0.85rem;
}
.ctl {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--control);
  color: var(--fg);
}
.ctl svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ctl--leave {
  background: #dc2626;
  color: #fff;
}

/* ----- sezioni ----- */

.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
}
.section__lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.65rem;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.card__icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.facts li {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--primary);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--card);
  color: var(--muted);
}
.facts strong {
  color: var(--fg);
}

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.steps li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.steps h3 {
  margin-top: 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.steps p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}
.steps__n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--heading);
  font-weight: 800;
}

.cta {
  padding: 4rem 0;
  background: linear-gradient(120deg, var(--band-from), var(--band-to));
  color: #fff;
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.foot {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.foot__links {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
}
.foot__links a {
  text-decoration: none;
}
.foot__links a:hover {
  color: var(--fg);
}
.foot .brand__name {
  color: var(--fg);
}

/* ----- schermi piccoli ----- */

@media (max-width: 960px) {
  .hero__inner,
  .split {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .top__nav {
    display: none;
  }
  .top__login {
    margin-left: auto;
  }
  .hero {
    padding: 3rem 0;
  }
  .tile__avatar {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8rem;
  }
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.5rem 0;
  }
}
