/* ==========================================================
   XPAI FITNESS · STYLES.CSS
   Versió revisada: logo crop real + PAI blanc + header estable.

   EDICIÓ RÀPIDA:
   - Colors globals: bloc 01
   - Logo/header: bloc 04
   - Hero: bloc 06
   - Mòbil: bloc 19
========================================================== */

/* ==========================================================
   00 · FONTS
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ==========================================================
   01 · VARIABLES EDITABLES
========================================================== */
:root {
  /* Fons principals */
  --bg: #06110A;
  --bg-2: #090C08;
  --surface: #131A12;
  --surface-2: #182216;

  /* Verd XPAI */
  --xpai-green: #44E08E;
  --xpai-green-soft: #2E8F5D;
  --xpai-green-deep: #123820;

  /* Resort/fusta */
  --wood: #2A1A12;
  --wood-soft: #3A2418;
  --sand: #C8A978;
  --sand-soft: #E3C98C;
  --bronze: #B9844A;

  /* Text */
  --text: #F4EFE6;
  --text-soft: rgba(244, 239, 230, .86);
  --muted: #B8AA98;

  /* Línies i ombres */
  --line: rgba(200, 169, 120, .24);
  --line-green: rgba(68, 224, 142, .20);
  --line-soft: rgba(244, 239, 230, .09);
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);

  /* Layout */
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius: 22px;
  --max: 1180px;

  /* Logo: si vols tocar mida, toca només això */
  --header-logo-width: 230px;
  --hero-logo-width: 470px;
  --mobile-header-logo-width: 150px;
  --mobile-hero-logo-width: 320px;
}

/* ==========================================================
   02 · RESET BÀSIC
========================================================== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(68, 224, 142, .10), transparent 26rem),
    radial-gradient(circle at 86% 8%, rgba(200, 169, 120, .14), transparent 34rem),
    radial-gradient(circle at 50% 86%, rgba(46, 143, 93, .09), transparent 38rem),
    linear-gradient(180deg, #06110A 0%, #050806 42%, #090C08 100%);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

/* ==========================================================
   03 · EFECTES GLOBALS
========================================================== */
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .045;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: .075;
  background: radial-gradient(circle, var(--xpai-green), transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
}

/* ==========================================================
   04 · HEADER / LOGO
========================================================== */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 32px), 1180px);
  min-height: 82px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border: 1px solid rgba(244, 239, 230, .13);
  border-radius: 999px;
  background: rgba(6, 17, 10, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0,0,0,.28);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 var(--header-logo-width);
  width: var(--header-logo-width);
  min-width: var(--header-logo-width);
  height: 64px;
  overflow: visible;
}

.brand img {
  display: block;
  width: var(--header-logo-width);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: rgba(244, 239, 230, .82);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.site-nav a:hover {
  background: rgba(244, 239, 230, .07);
  color: var(--xpai-green);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--xpai-green), #9BF7C3);
  color: #06110A;
  margin-left: 6px;
}

.site-nav .nav-cta:hover {
  color: #06110A;
  background: linear-gradient(135deg, #7CF4B2, var(--xpai-green));
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  margin: 6px auto;
  transition: transform .2s ease, opacity .2s ease;
}

/* ==========================================================
   05 · LAYOUT BASE
========================================================== */
.section-shell,
.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.section { padding: 92px 0; }

.section-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--sand);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.section-heading { max-width: 820px; margin-bottom: 38px; }
.section-heading.narrow { margin-left: auto; margin-right: auto; text-align: center; }

h1, h2, h3 { text-wrap: balance; }

h2 {
  margin: 0 0 22px;
  font-family: "Sora", Manrope, system-ui, sans-serif;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 800;
  color: var(--text);
}

/* ==========================================================
   06 · HERO
========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 32px 44px;
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  gap: 48px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 98px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(4, 10, 6, .98) 0%, rgba(4, 10, 6, .84) 42%, rgba(4, 10, 6, .36) 100%),
    radial-gradient(circle at 82% 38%, rgba(68, 224, 142, .18), transparent 26rem),
    radial-gradient(circle at 72% 74%, rgba(200, 169, 120, .16), transparent 24rem),
    linear-gradient(135deg, #06110A 0%, #111C12 52%, #23160F 100%);
  box-shadow: var(--shadow);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(200,169,120,.23);
  border-radius: calc(var(--radius-xl) - 10px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background:
    linear-gradient(60deg, transparent 0 72%, rgba(68, 224, 142, .16) 72% 72.4%, transparent 72.4%),
    linear-gradient(140deg, transparent 0 66%, rgba(244,239,230,.09) 66% 66.4%, transparent 66.4%);
  background-size: 260px 260px;
}

.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); }
.orb-a { width: 210px; height: 210px; right: 12%; top: 15%; background: radial-gradient(circle, rgba(68, 224, 142, .20), transparent 70%); }
.orb-b { width: 340px; height: 340px; right: -8%; bottom: -8%; background: radial-gradient(circle, rgba(200, 169, 120, .19), transparent 70%); }

.hero-panel,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-logo-title {
  margin: 10px 0 30px;
  padding: 0;
  width: min(100%, var(--hero-logo-width));
  max-width: var(--hero-logo-width);
  line-height: 0;
  display: block;
}

.hero-logo {
  width: min(100%, var(--hero-logo-width));
  height: auto;
  max-height: 170px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, .34));
}

.hero-copy-air {
  width: min(100%, 700px);
  max-width: 700px;
  margin: 0 0 38px;
}

.hero-copy-air p {
  margin: 0;
  max-width: 62ch;
  color: rgba(244, 239, 230, .84);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.72;
  font-weight: 500;
}

.hero-copy-air p + p { margin-top: 18px; }
.hero-copy-air strong { color: var(--text); font-weight: 800; }
.hero-copy-air .hero-soft { color: var(--muted); }

.hero-actions,
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions { margin-bottom: 28px; }

.badges span {
  border: 1px solid rgba(68, 224, 142, .22);
  background: rgba(6,17,10,.56);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--xpai-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* ==========================================================
   07 · BOTONS
========================================================== */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border .2s ease, color .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--sand);
  color: #06110A;
  box-shadow: 0 12px 36px rgba(200,169,120,.16);
}

.btn-primary:hover { background: var(--sand-soft); }

.btn-ghost {
  border-color: rgba(244,239,230,.24);
  background: rgba(244,239,230,.04);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--xpai-green);
  color: var(--xpai-green);
}

.btn.full { width: 100%; }

/* ==========================================================
   08 · HERO CARD DRETA
========================================================== */
.hero-visual { min-height: 560px; }

.wild-card {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(100%, 560px);
  height: 520px;
  border-radius: 34px;
  border: 1px solid rgba(244,239,230,.14);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4,10,6,.96) 0%, rgba(4,10,6,.72) 37%, rgba(4,10,6,.05) 100%),
    radial-gradient(circle at 78% 38%, rgba(68,224,142,.16), transparent 4rem),
    radial-gradient(circle at 72% 55%, rgba(46,143,93,.54), transparent 13rem),
    linear-gradient(135deg, #0B1A10 0%, #16301D 38%, #4D3C23 52%, #14261A 72%, #06110A 100%);
  box-shadow: var(--shadow);
}

.wild-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(110deg, transparent 0 42px, rgba(244,239,230,.055) 42px 44px),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.16), transparent 12rem);
  mix-blend-mode: overlay;
  opacity: .55;
}

.wild-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 42%, rgba(0,0,0,0) 0 16%, rgba(0,0,0,.46) 33%, rgba(0,0,0,.82) 85%),
    linear-gradient(0deg, rgba(4,10,6,.75), transparent 42%);
}

.wild-topline,
.wild-footer {
  position: absolute;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  color: rgba(244,239,230,.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.wild-topline { top: 38px; }
.wild-footer { bottom: 36px; }

.wild-title {
  position: absolute;
  left: 42px;
  bottom: 122px;
  display: grid;
}

.wild-title span,
.wild-title strong {
  font-size: 24px;
  color: var(--text);
  line-height: .95;
}

.wild-title strong,
.wild-title em {
  font-size: clamp(46px, 5.4vw, 66px);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .9;
  color: var(--text);
}

.wild-title em { color: var(--sand); }

.floating-pass {
  position: absolute;
  right: -18px;
  bottom: 22px;
  width: 260px;
  padding: 20px;
  border: 1px solid rgba(200,169,120,.34);
  border-radius: 22px;
  background: rgba(6,17,10,.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.floating-pass span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 800;
}

.floating-pass strong {
  display: block;
  margin-top: 8px;
  color: var(--sand);
  font-size: 28px;
  letter-spacing: .04em;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 3;
  width: 32px;
  height: 48px;
  border: 1px solid rgba(244,239,230,.22);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-hint span {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--sand);
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* ==========================================================
   09 · CONCEPTE
========================================================== */
.split {
  display: grid;
  grid-template-columns: .95fr .85fr;
  gap: 64px;
  align-items: center;
}

.split-copy p,
.section-heading p,
.matrix-card p,
.founding-copy p,
.form-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.concept-card {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(6,17,10,.96), rgba(19,26,18,.88)),
    radial-gradient(circle at 80% 18%, rgba(68,224,142,.11), transparent 14rem),
    radial-gradient(circle at 12% 82%, rgba(200,169,120,.16), transparent 15rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.concept-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200,169,120,.20);
  border-radius: 24px;
  pointer-events: none;
}

.concept-card-top,
.concept-main,
.concept-list {
  position: relative;
  z-index: 1;
}

.concept-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}

.concept-card-top strong { color: var(--xpai-green); }
.concept-main { margin-top: 92px; }

.concept-main span {
  display: block;
  font-family: "Sora", Manrope, system-ui, sans-serif;
  font-size: clamp(58px, 8vw, 96px);
  line-height: .88;
  font-weight: 800;
  letter-spacing: -.07em;
  color: var(--xpai-green);
}

.concept-main p {
  max-width: 440px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.concept-list {
  display: grid;
  gap: 12px;
  margin-top: 58px;
}

.concept-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(244,239,230,.1);
}

.concept-list small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 11px;
}

.concept-list strong {
  color: var(--text);
  text-align: right;
}

/* ==========================================================
   10 · FEATURE CARDS
========================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(244,239,230,.045), rgba(244,239,230,.01)),
    var(--surface);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(68,224,142,.28);
  background:
    linear-gradient(180deg, rgba(68,224,142,.050), rgba(244,239,230,.015)),
    var(--surface);
}

.feature-card span,
.timeline-item span {
  color: var(--xpai-green);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .18em;
}

.feature-card h3,
.timeline-item h3 {
  margin: 28px 0 12px;
  font-size: 25px;
  color: var(--text);
}

.feature-card p,
.timeline-item p,
details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================
   11 · ATMOSFERA / DIAMONDS
========================================================== */
.visual-story { position: relative; }

.diamond-layout {
  position: relative;
  min-height: 650px;
  margin-top: 58px;
}

.diamond {
  position: absolute;
  width: 220px;
  height: 220px;
  transform: rotate(45deg);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4,10,6,.2), rgba(4,10,6,.74)),
    radial-gradient(circle at 60% 35%, rgba(68,224,142,.22), transparent 8rem),
    linear-gradient(135deg, #4D3C23, #0E1D12);
  box-shadow: var(--shadow);
}

.diamond span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(-45deg);
  color: var(--text);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  font-size: 13px;
}

.d1 { left: 6%; top: 50px; }
.d2 { left: 27%; top: 180px; width: 150px; height: 150px; }
.d3 { right: 10%; top: 70px; width: 260px; height: 260px; }
.d4 { right: 32%; bottom: 50px; width: 170px; height: 170px; }

.story-line {
  position: absolute;
  left: 50%;
  top: 90px;
  bottom: 40px;
  width: 1px;
  background: var(--line);
}

.story-line span {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sand);
  transform: translateX(-50%);
}

.story-line span:first-child { top: 0; }
.story-line span:last-child { bottom: 0; }

.story-line p {
  position: absolute;
  left: 28px;
  top: 45%;
  width: 280px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================
   12 · MATRIX
========================================================== */
.matrix-card {
  display: grid;
  grid-template-columns: 1fr .36fr;
  gap: 36px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(6,17,10,.96), rgba(19,26,18,.90)),
    radial-gradient(circle at 85% 18%, rgba(68,224,142,.10), transparent 18rem);
  box-shadow: var(--shadow);
}

.stat-block {
  aspect-ratio: 1;
  border: 1px solid rgba(68,224,142,.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.stat-block strong {
  display: block;
  font-family: "Sora", Manrope, system-ui, sans-serif;
  font-size: 82px;
  line-height: .8;
  color: var(--xpai-green);
}

.stat-block span {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================
   13 · OBERTURA / TIMELINE
========================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
}

.timeline-item {
  padding: 30px;
  background: rgba(19,26,18,.94);
  min-height: 260px;
}

/* ==========================================================
   14 · PASSI FUNDADOR
========================================================== */
.founding {
  display: grid;
  grid-template-columns: .95fr .8fr;
  gap: 44px;
  align-items: center;
}

.founding-pass {
  position: relative;
  min-height: 460px;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(68,224,142,.24);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6,17,10,.96), rgba(19,26,18,.82)),
    radial-gradient(circle at 84% 18%, rgba(68,224,142,.12), transparent 14rem);
  box-shadow: var(--shadow);
}

.founding-pass::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(200,169,120,.22);
  pointer-events: none;
}

.pass-header,
.pass-body,
.pass-code {
  position: relative;
  z-index: 1;
}

.pass-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}

.pass-body { margin-top: 68px; }

.pass-body p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.7;
}

.pass-body strong {
  display: block;
  font-family: "Sora", Manrope, system-ui, sans-serif;
  color: var(--xpai-green);
  font-size: clamp(64px, 8vw, 112px);
  line-height: .8;
  letter-spacing: -.04em;
  margin: 18px 0;
}

.pass-code {
  position: absolute;
  right: 28px;
  bottom: 28px;
  color: rgba(244,239,230,.86);
  letter-spacing: .18em;
  font-weight: 900;
}

/* ==========================================================
   15 · FORMULARI
========================================================== */
.lead-form-section { padding-top: 20px; }

.form-shell {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 38px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(6,17,10,.96), rgba(19,26,18,.92)),
    radial-gradient(circle at 16% 20%, rgba(68,224,142,.10), transparent 18rem);
  box-shadow: var(--shadow);
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(244,239,230,.14);
  border-radius: 16px;
  background: rgba(244,239,230,.055);
  color: var(--text);
  outline: none;
}

.lead-form select option { color: #111; }
.lead-form input:focus, .lead-form select:focus { border-color: var(--xpai-green); }

.check {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600 !important;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.lead-form button,
.form-status { grid-column: 1 / -1; }

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--xpai-green);
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================
   16 · FAQ I FOOTER
========================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

details {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(19,26,18,.78);
  padding: 22px;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
  font-size: 17px;
}

details p { padding-top: 14px; }

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 40px auto 32px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(6,17,10,.74);
}

.site-footer img {
  width: auto;
  height: 54px;
  max-width: 190px;
  margin-bottom: 10px;
}

.site-footer strong {
  display: block;
  letter-spacing: .14em;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.site-footer a:hover { color: var(--xpai-green); }

/* ==========================================================
   17 · ANIMACIONS
========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   18 · RESPONSIVE TABLET
========================================================== */
@media (max-width: 980px) {
  .site-header { min-height: 74px; }

  .brand {
    flex-basis: 185px;
    width: 185px;
    min-width: 185px;
    height: 54px;
  }

  .brand img { width: 185px; max-height: 58px; }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(6,17,10,.97);
  }

  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 16px; }

  .nav-toggle { display: block; }

  body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero {
    grid-template-columns: 1fr;
    padding: 140px 20px 54px;
    gap: 18px;
  }

  .hero-bg { inset: 92px 0 18px; }
  .hero-visual { min-height: 390px; }

  .wild-card {
    position: relative;
    width: 100%;
    height: 380px;
  }

  .floating-pass { right: 14px; bottom: -18px; }
  .scroll-hint { display: none; }

  .split,
  .matrix-card,
  .founding,
  .form-shell,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .timeline,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .diamond-layout { min-height: 520px; }
  .d1 { left: 4%; }
  .d2 { left: 18%; }
  .d3 { right: 4%; }
  .d4 { right: 26%; }
  .story-line { left: 48%; }
}

/* ==========================================================
   19 · RESPONSIVE MÒBIL
========================================================== */
@media (max-width: 640px) {
  .section-shell,
  .section,
  .site-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 66px;
    padding: 8px 14px;
  }

  .brand {
    flex-basis: var(--mobile-header-logo-width);
    width: var(--mobile-header-logo-width);
    min-width: var(--mobile-header-logo-width);
    height: 48px;
  }

  .brand img {
    width: var(--mobile-header-logo-width);
    max-height: 48px;
  }

  .hero {
    min-height: auto;
    padding: 118px 12px 36px;
  }

  .hero-bg {
    inset: 78px 0 18px;
    border-radius: 24px;
  }

  .hero-bg::before {
    inset: 12px;
    border-radius: 18px;
  }

  .hero-logo-title {
    width: min(100%, var(--mobile-hero-logo-width));
    max-width: var(--mobile-hero-logo-width);
    margin: 6px 0 24px;
  }

  .hero-logo {
    width: min(100%, var(--mobile-hero-logo-width));
    max-height: 112px;
  }

  .hero-copy-air {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-copy-air p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-copy-air p + p { margin-top: 14px; }

  .btn { width: 100%; }
  .badges span { flex: 1 1 auto; text-align: center; }

  .wild-card {
    height: 330px;
    border-radius: 24px;
  }

  .wild-topline,
  .wild-footer {
    left: 20px;
    right: 20px;
  }

  .wild-title {
    left: 22px;
    bottom: 98px;
  }

  .wild-title strong,
  .wild-title em { font-size: 42px; }

  .floating-pass {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -28px auto 0;
    width: calc(100% - 36px);
  }

  .section { padding: 64px 0; }
  h2 { font-size: clamp(42px, 14vw, 62px); }

  .split-copy p,
  .section-heading p,
  .matrix-card p,
  .founding-copy p,
  .form-copy p {
    font-size: 16px;
  }

  .concept-card {
    min-height: auto;
    border-radius: 26px;
  }

  .concept-main { margin-top: 56px; }

  .feature-grid,
  .timeline,
  .faq-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .timeline-item {
    min-height: auto;
    padding: 24px;
  }

  .diamond-layout {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 36px;
  }

  .diamond {
    position: relative;
    inset: auto !important;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .story-line {
    grid-column: 1 / -1;
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    background: transparent;
    border-left: 1px solid var(--line);
    padding: 18px 0 18px 22px;
  }

  .story-line span { display: none; }

  .story-line p {
    position: relative;
    inset: auto;
    width: auto;
  }

  .matrix-card,
  .form-shell {
    padding: 24px;
    border-radius: 24px;
  }

  .stat-block {
    max-width: 250px;
    margin: 0 auto;
  }

  .pass-header { flex-direction: column; }

  .founding-pass {
    min-height: 420px;
    padding: 22px;
    border-radius: 26px;
  }

  .pass-body { margin-top: 52px; }

  .pass-code {
    left: 22px;
    right: auto;
  }

  .site-footer { text-align: center; }
  .site-footer nav { justify-content: center; }
  .cursor-glow { display: none; }
}

/* ==========================================================
   20 · ACCESSIBILITAT / MOVIMENT REDUÏT
========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
