/* ============================================================
   Research Communication Platform — Landing page
   ============================================================
   Extends the design system (colors_and_type.css) with the
   token additions this surface needs:
     - Section background palette (rhythm)
     - Marketing shadow scale (3D depth)
     - Screenshot frame + tilt
     - Hover-lift utility
     - Scroll-triggered fade-in (300ms, very subtle)
   ============================================================ */

:root {
  /* Section background rhythm — soft, low-saturation */
  --rcp-section-white:      #ffffff;
  --rcp-section-grey:       #f6f7f9;        /* soft grey */
  --rcp-section-blue-tint:  #eef4fa;        /* light blue tint */
  --rcp-section-warm-grey:  #f5f3f0;        /* warm grey */
  --rcp-section-navy:       #1e2a3b;        /* footer */

  /* Marketing shadow scale — 3D depth treatment.
     Soft, multi-layered — never harsh, never neon. */
  --rcp-mshadow-card:       0 1px 2px rgba(15, 30, 50, 0.04),
                            0 4px 12px rgba(15, 30, 50, 0.06);
  --rcp-mshadow-card-hover: 0 2px 4px rgba(15, 30, 50, 0.05),
                            0 12px 28px rgba(15, 30, 50, 0.10);
  --rcp-mshadow-screenshot: 0 2px 6px rgba(15, 30, 50, 0.06),
                            0 24px 48px -8px rgba(15, 30, 50, 0.18);
  --rcp-mshadow-screenshot-hover: 0 2px 6px rgba(15, 30, 50, 0.05),
                            0 32px 64px -10px rgba(15, 30, 50, 0.22);

  /* Hero gradient wash — very faint, no aggressive color blocks */
  --rcp-hero-wash: radial-gradient(ellipse 1200px 600px at 100% 0%,
                     rgba(74, 144, 194, 0.08) 0%,
                     rgba(74, 144, 194, 0) 60%);

  /* Marketing motion — slightly slower than product (300ms vs 200ms) */
  --rcp-m-duration:  300ms;
  --rcp-m-lift:      translateY(-4px);
}

/* ============================================================
   Layout — top nav, sections, container
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  font-family: var(--rcp-font-sans);
  color: var(--rcp-fg);
  background: var(--rcp-section-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lp-section {
  padding: 5rem 0;
  position: relative;
}
.lp-section--hero        { background: var(--rcp-section-white); padding-top: 2rem; padding-bottom: 6rem; }
.lp-section--white       { background: var(--rcp-section-white); }
.lp-section--grey        { background: var(--rcp-section-grey); }
.lp-section--blue-tint   { background: var(--rcp-section-blue-tint); }
.lp-section--warm-grey   { background: var(--rcp-section-warm-grey); }

/* Top nav */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rcp-border-soft);
}
.lp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.lp-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--rcp-fg);
}
.lp-nav__brand-mark {
  width: 28px; height: 28px;
  color: var(--rcp-sidebar-active);
  font-size: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.lp-nav__brand-text {
  font-weight: var(--rcp-fw-bold);
  font-size: var(--rcp-text-lg);
  letter-spacing: -0.005em;
}
.lp-nav__links {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.lp-nav__links a {
  color: var(--rcp-fg-muted);
  text-decoration: none;
  font-size: var(--rcp-text-base);
  font-weight: var(--rcp-fw-medium);
  transition: color var(--rcp-duration) var(--rcp-ease);
}
.lp-nav__links a:hover { color: var(--rcp-primary); }
@media (min-width: 880px) {
  .lp-nav__links { display: inline-flex; }
}

/* ============================================================
   Buttons
   ============================================================ */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--rcp-radius-md);
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: var(--rcp-text-base);
  font-weight: var(--rcp-fw-medium);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--rcp-duration) var(--rcp-ease),
              box-shadow var(--rcp-duration) var(--rcp-ease),
              background-color var(--rcp-duration) var(--rcp-ease),
              border-color var(--rcp-duration) var(--rcp-ease),
              color var(--rcp-duration) var(--rcp-ease);
  white-space: nowrap;
}
.lp-btn--primary {
  background: var(--rcp-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(74, 144, 194, 0.18),
              0 4px 12px rgba(74, 144, 194, 0.22);
}
.lp-btn--primary:hover {
  background: var(--rcp-primary-600);
  box-shadow: 0 2px 4px rgba(74, 144, 194, 0.20),
              0 8px 20px rgba(74, 144, 194, 0.26);
  transform: translateY(-1px);
}
.lp-btn--primary:active {
  background: var(--rcp-primary-700);
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}
.lp-btn--outline {
  background: transparent;
  color: var(--rcp-fg);
  border-color: var(--rcp-border);
}
.lp-btn--outline:hover {
  background: var(--rcp-section-grey);
  border-color: var(--rcp-fg-subtle);
  transform: translateY(-1px);
}
.lp-btn--outline:active { transform: translateY(0); }

.lp-btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: var(--rcp-text-md);
}

/* ============================================================
   Hero
   ============================================================ */

.lp-hero {
  position: relative;
  background: var(--rcp-hero-wash);
}
.lp-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
}
@media (min-width: 980px) {
  .lp-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 4rem;
    padding-top: 4rem;
  }
}

.lp-hero__headline {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: var(--rcp-fw-bold);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.lp-hero__subhead {
  font-size: var(--rcp-text-xl);
  color: var(--rcp-fg-muted);
  margin: 0 0 1.75rem;
  max-width: 36em;
  line-height: 1.5;
  text-wrap: pretty;
}

.lp-credibility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.lp-credibility li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rcp-primary-50);
  color: var(--rcp-primary-700);
  border-radius: var(--rcp-radius-pill);
  padding: 0.4rem 0.875rem;
  font-size: var(--rcp-text-sm);
  font-weight: var(--rcp-fw-semibold);
}
.lp-credibility li i { font-size: 0.95rem; }
.lp-credibility li.is-success { background: var(--rcp-success-50); color: #2f7a35; }
.lp-credibility li.is-accent  { background: var(--rcp-accent-50);  color: #6d56a0; }

.lp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Channels strip */
.lp-channels {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rcp-border-soft);
}
.lp-channels__caption {
  font-size: var(--rcp-text-xs);
  font-weight: var(--rcp-fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--rcp-tracking-eyebrow);
  color: var(--rcp-fg-muted);
  margin: 0 0 1.25rem;
  text-align: center;
}
.lp-channels__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lp-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--rcp-fg-muted);
  font-size: var(--rcp-text-base);
  font-weight: var(--rcp-fw-medium);
}
.lp-channel__badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.lp-channel__badge--whatsapp { background: #e6f8ec; color: var(--rcp-whatsapp); }
.lp-channel__badge--signal   { background: #e3ecfd; color: var(--rcp-signal); }
.lp-channel__badge--telegram { background: #e1f1fa; color: #229ed9; }
.lp-channel__badge--sms      { background: #eef0f2; color: #495057; }
.lp-channel__badge--email    { background: #e3edff; color: var(--rcp-email); }

/* ============================================================
   Screenshot / browser frame  — 3D treatment
   ============================================================ */

.lp-shot {
  position: relative;
  border-radius: var(--rcp-radius-2xl);
  background: #ffffff;
  box-shadow: var(--rcp-mshadow-screenshot);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 500ms var(--rcp-ease),
              box-shadow 500ms var(--rcp-ease);
  will-change: transform;
}

/* Tilt variants — applied per-block for variety */
.lp-shot--tilt-r { transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); }
.lp-shot--tilt-l { transform: perspective(1600px) rotateY(4deg)  rotateX(2deg); }
.lp-shot--tilt-r:hover,
.lp-shot--tilt-l:hover {
  transform: perspective(1600px) rotateY(0) rotateX(0) translateY(-6px);
  box-shadow: var(--rcp-mshadow-screenshot-hover);
}
@media (prefers-reduced-motion: reduce) {
  .lp-shot { transform: none !important; transition: none; }
}

/* Browser chrome */
.lp-shot__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: #f5f6f8;
  border-bottom: 1px solid var(--rcp-border-soft);
}
.lp-shot__dots {
  display: inline-flex;
  gap: 0.375rem;
}
.lp-shot__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #d8dde3;
}
.lp-shot__dot:nth-child(1) { background: #f4a89e; }
.lp-shot__dot:nth-child(2) { background: #f5d57f; }
.lp-shot__dot:nth-child(3) { background: #aedba0; }
.lp-shot__url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--rcp-border-soft);
  border-radius: var(--rcp-radius-md);
  padding: 0.25rem 0.625rem;
  font-family: var(--rcp-font-mono);
  font-size: var(--rcp-text-sm);
  color: var(--rcp-fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.lp-shot__body {
  background: #ffffff;
}
.lp-shot__img {
  display: block;
  width: 100%;
  height: auto;
  background: #f8f9fa;
}
.lp-shot__body { position: relative; }
.lp-shot__zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  z-index: 2;
  font: inherit;
  color: inherit;
}
.lp-shot__zoom:focus-visible {
  outline: 3px solid var(--rcp-primary);
  outline-offset: -3px;
}

/* ============================================================
   Lightbox dialog
   ============================================================ */
.lp-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: auto;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  color: #fff;
  overflow: visible;
}
.lp-lightbox::backdrop {
  background: rgba(15, 30, 50, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lp-lightbox__inner {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.lp-lightbox__picture {
  display: block;
}
.lp-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--rcp-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #fff;
}
.lp-lightbox__close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rcp-fg);
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background var(--rcp-duration) var(--rcp-ease),
              transform var(--rcp-duration) var(--rcp-ease);
  z-index: 1;
}
.lp-lightbox__close:hover {
  background: #fff;
  transform: translateY(-1px);
}
.lp-lightbox__close:focus-visible {
  outline: 3px solid var(--rcp-primary);
  outline-offset: 2px;
}

/* ============================================================
   Section heads
   ============================================================ */

.lp-section__eyebrow {
  font-size: var(--rcp-text-xs);
  font-weight: var(--rcp-fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--rcp-tracking-eyebrow);
  color: var(--rcp-primary-700);
  margin: 0 0 0.75rem;
}
.lp-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--rcp-fw-bold);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.lp-section__intro {
  font-size: var(--rcp-text-md);
  color: var(--rcp-fg-muted);
  margin: 0 0 3rem;
  max-width: 38em;
  text-wrap: pretty;
}
.lp-section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.lp-section__head--center .lp-section__intro { margin-left: auto; margin-right: auto; }

/* ============================================================
   Feature blocks (Section 2)
   ============================================================ */

.lp-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
}
@media (min-width: 980px) {
  .lp-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4.5rem;
    padding: 3.5rem 0;
  }
  .lp-feature--reverse .lp-feature__media { order: 2; }
  .lp-feature--reverse .lp-feature__copy  { order: 1; }
}
.lp-feature__copy h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: var(--rcp-fw-bold);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.lp-feature__copy p {
  font-size: var(--rcp-text-md);
  color: var(--rcp-fg-muted);
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   Compliance grid (Section 3)
   ============================================================ */

.lp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px)  { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lp-grid { grid-template-columns: repeat(3, 1fr); } }

.lp-card {
  background: #ffffff;
  border: 0;
  border-left: 3px solid var(--rcp-primary);
  border-radius: var(--rcp-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--rcp-mshadow-card);
  transition: transform var(--rcp-m-duration) var(--rcp-ease),
              box-shadow var(--rcp-m-duration) var(--rcp-ease);
}
.lp-card:hover {
  transform: var(--rcp-m-lift);
  box-shadow: var(--rcp-mshadow-card-hover);
}
.lp-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--rcp-primary-50);
  color: var(--rcp-primary-700);
  margin-bottom: 1rem;
}
.lp-card__title {
  font-size: var(--rcp-text-md);
  font-weight: var(--rcp-fw-bold);
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.lp-card__body {
  font-size: var(--rcp-text-base);
  color: var(--rcp-fg-muted);
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}
.lp-grid__footer {
  margin-top: 2rem;
  text-align: center;
  font-size: var(--rcp-text-base);
  color: var(--rcp-fg-muted);
}
.lp-grid__footer a {
  color: var(--rcp-primary-700);
  text-decoration: none;
  font-weight: var(--rcp-fw-semibold);
  border-bottom: 1px solid var(--rcp-primary-200);
}
.lp-grid__footer a:hover { border-bottom-color: var(--rcp-primary); }

/* ============================================================
   Demo CTA (Section 4)
   ============================================================ */

.lp-cta-block {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}
.lp-cta-block p {
  font-size: var(--rcp-text-md);
  color: var(--rcp-fg-muted);
  margin: 0 0 2rem;
  text-wrap: pretty;
}

/* ============================================================
   Researcher profile (Section 5)
   ============================================================ */

.lp-profile {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}
.lp-profile__photo {
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: var(--rcp-radius-2xl);
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #d3e6f3 0%, #eaf3fa 100%);
  box-shadow: var(--rcp-mshadow-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 6px solid #fff;
  padding: 0;
}
.lp-profile__photo::after {
  content: "Photo placeholder";
  position: absolute;
  inset: auto 0 14px;
  text-align: center;
  font-family: var(--rcp-font-mono);
  font-size: 0.65rem;
  color: var(--rcp-primary-700);
  opacity: 0.55;
  letter-spacing: 0.04em;
}
.lp-profile__photo i {
  font-size: 5rem;
  color: var(--rcp-primary);
  opacity: 0.45;
}
.lp-profile__photo picture,
.lp-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.lp-profile__photo img {
  object-fit: cover;
  object-position: center;
}
.lp-profile__photo--has-img { background: #f5f3f0; }
.lp-profile__photo--has-img::after { content: none; }
.lp-profile__name {
  font-size: var(--rcp-text-2xl);
  font-weight: var(--rcp-fw-bold);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}
.lp-profile__role {
  font-size: var(--rcp-text-md);
  color: var(--rcp-fg-muted);
  margin: 0 0 0.25rem;
}
.lp-profile__affiliation {
  font-size: var(--rcp-text-base);
  color: var(--rcp-fg-muted);
  margin: 0 0 2rem;
}
.lp-profile__bio {
  text-align: left;
}
.lp-profile__bio p {
  font-size: var(--rcp-text-md);
  color: #34404e;
  margin: 0 0 1.25rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.lp-academic-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rcp-border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.lp-academic-row__item {
  font-size: var(--rcp-text-sm);
  color: var(--rcp-fg-muted);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.lp-academic-row__num {
  font-weight: var(--rcp-fw-bold);
  color: var(--rcp-fg);
  font-size: var(--rcp-text-base);
}
.lp-academic-row__orcid {
  font-family: var(--rcp-font-mono);
  font-size: 0.8rem;
}

/* ============================================================
   Contact CTA (Section 6) — single mailto button, no form
   ============================================================ */

.lp-contact-cta {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.lp-contact-cta .lp-btn {
  padding: 1rem 1.75rem;
  font-size: var(--rcp-text-md);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.lp-contact-cta__note {
  margin: 1.25rem 0 0;
  font-size: var(--rcp-text-sm);
  color: var(--rcp-fg-muted);
}

/* ============================================================
   Footer
   ============================================================ */

.lp-footer {
  background: var(--rcp-section-navy);
  color: rgba(255,255,255,0.78);
  padding: 4rem 0 2rem;
}
.lp-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .lp-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.lp-footer h4 {
  font-size: var(--rcp-text-xs);
  font-weight: var(--rcp-fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--rcp-tracking-eyebrow);
  color: rgba(255,255,255,0.5);
  margin: 0 0 1rem;
}
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.lp-footer a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: var(--rcp-text-base);
  transition: color var(--rcp-duration) var(--rcp-ease);
}
.lp-footer a:hover { color: #fff; }
.lp-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.lp-footer__brand i {
  color: var(--rcp-sidebar-active);
  font-size: 1.35rem;
}
.lp-footer__brand span {
  font-weight: var(--rcp-fw-bold);
  color: #fff;
  font-size: var(--rcp-text-md);
}
.lp-footer__about p {
  font-size: var(--rcp-text-base);
  margin: 0;
  color: rgba(255,255,255,0.65);
}
.lp-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--rcp-text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  max-width: 56rem;
}

/* ============================================================
   Scroll-triggered fade-in (subtle, ~300ms, no parallax)
   Activated by .is-revealed via IntersectionObserver
   ============================================================ */

.lp-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms var(--rcp-ease), transform 300ms var(--rcp-ease);
}
.lp-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
}
