/* Brand tokens — the Figma variables of QUEZACO-MVP (color-primary/*, COLORS/*)
   and its two type families. Light UI, dark hero/footer. */
:root {
  --blue: #1A41EA;
  --blue-deep: #122C9F;
  --navy: #091754;
  --blue-shadow: #112991;
  --blue-pale: #F0F2FD;
  --yellow: #EBC944;
  --green: #3F9058;
  --ink: #101736;
  --muted: #5B6478;
  --bg: #FFFFFF;
  --surface: #F6F7FB;
  --border: #E6E9F2;
  --title: "Tilt Warp", "Trebuchet MS", sans-serif;
  --body: "Livvic", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Exactly the sticky header's height: an anchored section then starts right
     under it instead of leaving a screenful of nothing above its title. */
  scroll-padding-top: 4.2rem;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; letter-spacing: -0.015em; }
a { color: var(--blue); text-decoration: none; }
/* Keyboard navigation must be visible — the mouse styles alone are not enough. */
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.hero a:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible, .cta a:focus-visible { outline-color: #fff; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header (sits on the dark hero, follows the scroll) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 23, 84, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand-link { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.brand-link:hover { text-decoration: none; opacity: 0.92; }
.brand-name { font-family: var(--title); font-size: 1.2rem; color: #fff; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  flex: none;
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand img { width: 18px; height: auto; display: block; }
.nav .spacer { flex: 1; }
.nav a:not(.brand) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:not(.brand-link):hover { color: #fff; text-decoration: none; }
.nav a[aria-current="page"], .nav a.active { color: #fff; }
/* Language picker: a flag + code that opens the list of served locales. Built on
   <details> so it works with no JavaScript. */
.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lang-menu[open] summary { color: #fff; background: rgba(255, 255, 255, 0.1); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 40;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  min-width: 11rem;
  border-radius: 12px;
  background: #0C1330;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(4, 10, 35, 0.45);
}
.lang-menu li { margin: 0; }
.lang-menu li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}
.lang-menu li a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.lang-menu li a[aria-current] { color: #fff; font-weight: 700; }
.nav a.nav-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.nav a.nav-cta:hover { background: rgba(255, 255, 255, 0.1); }


/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 65, 234, 0.35);
}
.btn-primary:hover { text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(26, 65, 234, 0.42); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { text-decoration: none; color: var(--navy); transform: translateY(-1px); }
.btn-quiet {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.9rem 0.25rem;
  font-weight: 600;
}
.btn-quiet:hover { color: #fff; text-decoration: none; }
.btn-quiet.on-light { color: var(--blue-deep); }
.section-link { display: inline-block; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
/* A soft brand glow behind the mockup — the only decoration on the page. */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 65, 234, 0.55) 0%, rgba(9, 23, 84, 0) 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
/* The app's name leads, the promise follows. */
.hero-brand {
  font-family: var(--title);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.35rem;
  color: #8FA6FF;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1.02; margin: 0 0 1rem; color: #fff; }
.hero .tagline { font-size: 1.15rem; color: rgba(255, 255, 255, 0.78); margin: 0 0 2rem; max-width: 30rem; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero .soon { display: block; margin-top: 1.25rem; color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.75rem;
}
.hero .eyebrow { color: #8FA6FF; }
.hero-art { display: flex; justify-content: center; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-art { order: 2; }
}

/* ---------- Phone mockup ---------- */
.phone {
  width: 100%;
  max-width: 288px;
  border: 8px solid #0C1330;
  border-radius: 40px;
  overflow: hidden;
  background: #0C1330;
  box-shadow: 0 30px 60px rgba(4, 10, 35, 0.45);
}
.phone img { display: block; width: 100%; }
.phone.on-light { box-shadow: 0 20px 45px rgba(16, 23, 54, 0.16); }

/* Launch-video slot: keeps the hero's right column in place until the file is in. */
.video-slot {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.video-play {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.video-label { color: #fff; font-weight: 600; }
.video-sub { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 2.5rem 0 3.25rem; }
.section.surface { background: var(--surface); }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 0.75rem; }
.section .sub { color: var(--muted); margin: 0 0 2.25rem; max-width: 40rem; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.card svg { color: var(--blue); margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Steps beside a screenshot */
.split { display: grid; grid-template-columns: 1fr 0.75fr; gap: 4rem; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; color: var(--muted); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { color: var(--ink); display: block; font-size: 1.05rem; font-weight: 600; }

/* Screens gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; justify-items: center; }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Closing call to action */
.cta { background: var(--blue); color: #fff; }
.cta .wrap { padding: 3.5rem 1.5rem; text-align: center; }
.cta h2 { color: #fff; margin: 0 0 0.75rem; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cta p { margin: 0 0 2rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- Content pages ---------- */
.content { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4.5rem; }
/* Legal reading: longer measure, quieter body, numbered sections that breathe. */
.content.legal { max-width: 700px; }
.content.legal h1 { margin-bottom: 2rem; }
.content.legal h2 {
  font-size: 1.15rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.content.legal p { color: var(--muted); line-height: 1.75; }
.content.legal strong { color: var(--ink); font-weight: 600; }
.content.legal ul { list-style: none; padding-left: 0; }
.content.legal li { position: relative; padding-left: 1.4rem; margin: 0.6rem 0; line-height: 1.7; }
.content.legal li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.72rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--blue);
}
.content.legal a { text-decoration: underline; }
.content.narrow { max-width: 600px; }
.content h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 0.75rem; }
.content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.5rem; }
.content p { margin: 0.85rem 0; }
.content .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.content ul { padding-left: 1.4rem; color: var(--muted); }
.content li { margin: 0.4rem 0; }
.content em { font-style: italic; color: var(--muted); }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.updated { color: var(--muted); font-size: 0.9rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.25rem; }
.form.card { padding: 2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-pale); }
.field textarea { min-height: 9rem; resize: vertical; }
.form .actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; }
.form-status { font-size: 0.95rem; margin: 0; }
.form-status.ok { color: var(--green); }
.form-status.ko { color: #D80027; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-inner h4 {
  font-family: var(--body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1rem;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-inner a { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.footer-inner a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand .wordmark { font-family: var(--title); font-size: 1.35rem; color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.95rem; margin: 1rem 0 0; max-width: 20rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.copyright div {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}
