:root {
    --bs-teal: #20c997;
    --theme-color: #029b9b;
    --bg: #081015;
    --bg-soft: #0d1c24;
    --panel: rgba(255,255,255,.075);
    --panel-strong: rgba(255,255,255,.12);
    --text: #edf7f7;
    --muted: #9fb5b8;
    --accent: #41e6d0;
    --accent-2: #ff5d93;
    --gold: #ffe35c;
    --line: rgba(255,255,255,.15);
    --shadow: 0 24px 80px rgba(0,0,0,.45);
    --radius: 28px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

:root {
    --bs-body-bg: transparent !important; /* ← neutralitza Bootstrap */
}
body {
    margin: 0;
    min-height: 100vh; /* ← clau: garanteix alçada per veure el fons */
    font-family: var(--font);
    color: var(--text);
    background: url("/Images/IA.png") center center / cover no-repeat, radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.18), transparent 34rem), radial-gradient(circle at 82% 18%, rgba(168, 85, 247, 0.16), transparent 30rem), radial-gradient(circle at 50% 90%, rgba(20, 184, 166, 0.12), transparent 38rem), linear-gradient(135deg, #071016 0%, #0b1320 45%, #120b1d 100%);
    background-attachment: fixed; /* ← el fons no es mou amb l'scroll */
    overflow-x: hidden;
}

#orbCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

#network-bg {
    position: fixed;
    inset: 0;
    z-index: 0; /* ← canviar de -1 a 0 */
    opacity: .42;
}



a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 70px);
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8,16,21,.72);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061014;
  box-shadow: 0 0 26px rgba(65,230,208,.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .95rem;
  color: rgba(237,247,247,.86);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
    width: min(1260px, calc(100% - 40px)); /* ← era 1180px, +80px */
    margin-inline: auto;
    padding: 20px 0;
}

.hero {
  min-height: 20vh;
  display: grid;
  align-items: center;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 7vw, 100px);
  padding-top: 20px;
}

.caption h2 span {
    color: var(--theme-color);
}

.eyebrow {
    color: var(--bs-teal);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 18px;
}

h1, h2, h3 { margin: 0; line-height: 1.05; }

h1 {
  font-size: 40px;
  max-width: 920px;
  letter-spacing: -.07em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -.045em;
}

h3 { font-size: 1.35rem; }
.lead {
  max-width: 680px;
  color: #fff;
  line-height: 1.8;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  margin: 10px 0 0;
  
}
.lead2 {
    max-width: 1200px;
    color: #fff;
    line-height: 1.8;
    font-size: 20px;
    margin: 28px 0 0;
    padding: 50px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 38px 0 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  color: #061014;
  background: linear-gradient(135deg, var(--accent), #8cf8ef);
  box-shadow: 0 18px 40px rgba(65,230,208,.22);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.social-row a:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}



.hero-visual {
    position: relative;
    overflow: hidden;
}



.portrait-card {
  position: relative;
  width: min(470px, 88vw);
  aspect-ratio: 4 / 5;
  border-radius: 44% 44% 38% 38%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    radial-gradient(circle at 52% 24%, rgba(65,230,208,.22), transparent 15rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.synthetic-face {
  position: absolute;
  inset: 12%;
  border-radius: 44% 44% 38% 38%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.22) 50%, transparent 50.5%),
    radial-gradient(circle at 50% 32%, rgba(65,230,208,.25), transparent 9rem),
    linear-gradient(160deg, rgba(162,241,236,.22), rgba(24,55,68,.8));
  border: 1px solid rgba(255,255,255,.18);
}

.eye {
  position: absolute;
  top: 34%;
  width: 42px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}

.eye.left { left: 26%; }
.eye.right { right: 26%; }

.line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: rgba(255,255,255,.24);
  border-radius: 999px;
}

.l1 { top: 55%; width: 42%; }
.l2 { top: 64%; width: 30%; }
.l3 { top: 76%; width: 50%; background: rgba(65,230,208,.45); }

.card-glow {
  position: absolute;
  inset: auto -20% -20% 30%;
  height: 180px;
  background: radial-gradient(circle, rgba(65,230,208,.55), transparent 70%);
  filter: blur(30px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  width: 170px;
  height: 170px;
  left: 0;
  top: 60px;
  border: 1px solid rgba(65,230,208,.28);
}

.orb-two {
  width: 90px;
  height: 90px;
  right: 8%;
  bottom: 110px;
  background: rgba(255,93,147,.16);
  filter: blur(2px);
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.9;
}

.centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  min-height: 260px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(65,230,208,.5);
  background: var(--panel-strong);
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 34px;
  border-radius: 18px;
  color: var(--accent);
  background: rgba(65,230,208,.12);
}

.card p, .timeline-item p, .contact p {
  color: var(--muted);
  line-height: 1.75;
}

.timeline {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(30px, 6vw, 90px);
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
}

.timeline-item span {
  color: var(--gold);
  font-weight: 900;
  font-size: 1.2rem;
}

.contact {
  text-align: center;
  max-width: 820px;
  padding: 80px clamp(24px, 6vw, 70px);
  margin-bottom: 90px;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(65,230,208,.14), rgba(255,93,147,.10)),
    rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.contact p { margin: 22px auto 30px; max-width: 620px; }

.site-footer {
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: grid;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8,16,21,.92);
    backdrop-filter: blur(18px);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero, .split, .timeline {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text { display: none; }
  .section { width: min(100% - 28px, 1180px); padding: 82px 0; }
  h1 { font-size: clamp(2.7rem, 18vw, 4.2rem); }
  .hero-actions { align-items: stretch; }
  .btn { width: 100%; }
}
