/* ---------- TIPOGRAFIA (Google Fonts) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

/* ---------- VARIABLES (paleta NeurekaLab) ---------- */
:root {
  /* Colors marca NeurekaLab */
  --color-blue: #00BFFF;             /* blau viu del logo */
  --color-blue-dark: #0099CC;
  --color-orange: #F39314;           /* taronja del fullet */
  --color-orange-dark: #D97A0C;
  --color-orange-soft: #FFE4C4;

  /* Neutres càlids (paraigües) */
  --color-bg: #ffffff;
  --color-bg-warm: #FFF9F2;          /* beige molt suau */
  --color-bg-cream: #FFFBF5;
  --color-text: #1A1A1A;
  --color-text-soft: #525252;
  --color-text-muted: #8C8C8C;
  --color-border: #F0E8DD;

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(243, 147, 20, 0.08);
  --shadow-lg: 0 16px 48px rgba(243, 147, 20, 0.15);
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; color: var(--color-text); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--color-bg-warm);
}
.section-header {
  margin-bottom: 1.5rem;
}
.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  color: var(--color-orange-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-img {
  height: 36px;
  width: auto;
}
.logo-product {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-orange);
  letter-spacing: -0.5px;
  border-left: 2px solid var(--color-border);
  padding-left: 0.7rem;
}
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color 0.2s;
}
.nav a:hover { color: var(--color-orange); }
.nav-cta {
  background: var(--color-orange);
  color: white !important;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--color-orange-dark);
  transform: translateY(-1px);
}

/* ---------- HERO ---------- */
.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse 800px 600px at 80% 30%, rgba(0, 191, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 80%, rgba(243, 147, 20, 0.10) 0%, transparent 55%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-content { max-width: 540px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  color: var(--color-orange-dark);
  margin-bottom: 1.25rem;
  font-weight: 600;
  background: var(--color-orange-soft);
  padding: 0.5rem 1rem;
  border-radius: 100px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}
.hero h1 .accent { color: var(--color-orange); }
.subtitle {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

/* ---------- HERO MOCKUPS ---------- */
.hero-mockups {
  position: relative;
  height: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mockup {
  position: absolute;
  width: 220px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s;
}
.mockup img {
  width: 100%;
  border-radius: 30px;
  display: block;
}
.mockup-1 {
  top: 20px;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}
.mockup-2 {
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 240px;
}
.mockup-3 {
  top: 20px;
  right: 0;
  transform: rotate(6deg);
  z-index: 2;
}
.mockup:hover {
  z-index: 10;
  transform: scale(1.03) rotate(0deg);
}
.mockup-2:hover { transform: translateX(-50%) scale(1.03); }

.age-tag {
  position: absolute;
  top: -15px;
  right: -10px;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.age-tag-5 { background: var(--color-orange); }
.age-tag-12 { background: var(--color-blue); }
.age-tag-16 { background: #525252; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--color-orange);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- TYPOGRAPHY IN SECTIONS ---------- */
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
  color: var(--color-text);
  line-height: 1.15;
}
.section .lead {
  font-size: 1.18rem;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
  max-width: 760px;
  line-height: 1.6;
}
.section p {
  color: var(--color-text-soft);
  max-width: 760px;
  margin-bottom: 1rem;
}

/* ---------- UNIVERSITIES BADGES ---------- */
.universities {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.university-badge {
  background: white;
  border: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: var(--shadow-sm);
}
.university-badge strong {
  font-size: 0.95rem;
  color: var(--color-text);
}
.university-badge span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------- STAGES ---------- */
.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stage {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.stage:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.stage-image {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 0;
  position: relative;
}
.stage-image img {
  max-height: 100%;
  width: auto;
  border-radius: 20px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}
.stage-5-12 .stage-image { background: linear-gradient(180deg, #FFF6E5 0%, white 100%); }
.stage-12-16 .stage-image { background: linear-gradient(180deg, #F0F9FF 0%, white 100%); }
.stage-16 .stage-image { background: linear-gradient(180deg, #FFE4DA 0%, white 100%); }

.stage-body {
  padding: 1.75rem 1.75rem 2rem;
  text-align: center;
}
.stage-age {
  display: inline-block;
  background: var(--color-text);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: -0.2px;
}
.stage-age span {
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.85rem;
}
.stage h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}
.stage p {
  font-size: 0.97rem;
  color: var(--color-text-soft);
  margin: 0;
  max-width: 100%;
}

/* ---------- BENEFITS LIST ---------- */
.benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}
.benefits li {
  background: white;
  padding: 1.25rem 1.5rem 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-orange);
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.5;
  transition: transform 0.2s, box-shadow 0.2s, border-left-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.benefits li:nth-child(2n) { border-left-color: var(--color-blue); }
.benefits li:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow);
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step {
  text-align: center;
  padding: 1rem;
}
.step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.step p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- FAQS ---------- */
.faqs {
  margin-top: 2rem;
  max-width: 820px;
}
.faqs details {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  padding: 1.1rem 1.4rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faqs details[open] {
  box-shadow: var(--shadow);
  border-color: var(--color-orange-soft);
}
.faqs summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 0.25rem 0;
  color: var(--color-text);
  list-style: none;
  position: relative;
  padding-right: 2rem;
  font-size: 1rem;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--color-orange);
  transition: transform 0.2s;
  line-height: 1;
  font-weight: 400;
}
.faqs details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faqs details p {
  margin-top: 0.85rem;
  color: var(--color-text-soft);
  font-size: 0.97rem;
}

/* ---------- CONTACT FORM ---------- */
.section-contact {
  background: var(--color-bg-warm);
}
.lead-form {
  max-width: 580px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row { display: flex; flex-direction: column; }
.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.form-row label span { color: #dc2626; }
.form-row input,
.form-row textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(243, 147, 20, 0.15);
}
.form-row textarea {
  resize: vertical;
  min-height: 110px;
}
.form-status {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  min-height: 1.4em;
  font-weight: 500;
}
.form-status.success { color: #047857; }
.form-status.error { color: #b91c1c; }
.form-privacy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.cf-turnstile { margin: 0.5rem 0; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-text);
  color: #cbd5e0;
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
}
.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(1.1);
}
.footer-tagline {
  font-size: 0.92rem;
  color: #a0aec0;
  line-height: 1.5;
  margin: 0;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
}
.footer-info p { margin: 0; }
.site-footer a { color: white; }
.site-footer a:hover { color: var(--color-orange); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-mockups { height: 480px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { gap: 1rem; }
  .nav a:not(.nav-cta) { display: none; }
  .section { padding: 4rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .hero-mockups { height: 420px; }
  .mockup { width: 170px; }
  .mockup-2 { width: 185px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .universities { flex-direction: column; }
  .stage-image { height: 240px; }
  .logo-product {
    font-size: 1.05rem;
    padding-left: 0.5rem;
  }
  .logo-img { height: 30px; }
}

@media (max-width: 480px) {
  .hero-mockups { height: 360px; }
  .mockup { width: 140px; }
  .mockup-2 { width: 155px; }
  .mockup-1 { left: -10px; }
  .mockup-3 { right: -10px; }
}