/* =============================================
   HYDROSENSE — Landing Page v2
   ============================================= */

/* ── Hero ──────────────────────────────────── */
.lp-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 64px;
}
.lp-hero__bg {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.lp-particles-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.lp-hero__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.lp-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.lp-hero__accent {
  background: linear-gradient(90deg, #52B788, #40B4C4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Rotating text ──────────────────────────── */
.lp-hero__rotating-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  min-height: 28px;
}
.lp-rotating-prefix {
  color: var(--green-lime);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.lp-rotating-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--aqua);
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lp-phrase--out {
  opacity: 0;
  transform: translateY(-8px);
}
.lp-phrase--in {
  animation: phraseIn 0.4s ease forwards;
}
@keyframes phraseIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-hero__sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
.lp-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ── Stats strip ────────────────────────────── */
.lp-hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.lp-stat__val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-lime);
  letter-spacing: -0.02em;
  min-width: 48px;
}
.lp-stat__lbl {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.lp-stat__sep {
  width: 1px; height: 36px;
  background: rgba(82,183,136,0.2);
}

/* ── Wave dividers ──────────────────────────── */
.lp-wave {
  line-height: 0;
  margin-bottom: -2px;
}
.lp-wave svg { display: block; width: 100%; }
.lp-wave--flip { transform: rotate(180deg); margin-top: -2px; margin-bottom: 0; }

/* ── Sections ───────────────────────────────── */
.lp-section { padding: 72px 0; }
.lp-section--dark {
  background: var(--bg-card);
}
.lp-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
}
.lp-section__inner--center { text-align: center; }
.lp-section__inner--center .section-eyebrow,
.lp-section__inner--center .section-sub {
  margin-left: auto; margin-right: auto;
}
.lp-section__inner--center .section-sub { text-align: center; max-width: 480px; }

/* ── Scroll reveal ──────────────────────────── */
.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lp-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Flow ───────────────────────────────────── */
.lp-flow {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.lp-flow__step {
  flex: 1; min-width: 200px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  background: var(--bg-dark);
  border: 1px solid rgba(82,183,136,0.12);
  border-radius: var(--radius-md);
}
.lp-flow__step--anim {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease,
              box-shadow 0.25s ease, border-color 0.25s ease;
}
.lp-flow__step--anim.lp-visible { opacity: 1; transform: translateY(0) scale(1); }
.lp-flow__step--anim:hover {
  transform: translateY(-6px) scale(1.03) !important;
  border-color: rgba(82,183,136,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 1;
}
.lp-flow__step--anim:nth-child(1) { transition-delay: 0.05s; }
.lp-flow__step--anim:nth-child(3) { transition-delay: 0.20s; }
.lp-flow__step--anim:nth-child(5) { transition-delay: 0.35s; }
.lp-flow__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.lp-flow__icon--green { background: rgba(82,183,136,0.12); }
.lp-flow__icon--aqua  { background: rgba(64,180,196,0.12); }
.lp-flow__title { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--off-white); }
.lp-flow__desc  { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.lp-flow__arrow { font-size: 1.5rem; color: rgba(82,183,136,0.3); align-self: center; padding: 0 4px; }

/* ── Impact grid ────────────────────────────── */
.lp-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.lp-impact-card {
  background: var(--bg-card);
  border: 1px solid rgba(82,183,136,0.1);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.lp-impact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(82,183,136,0.3);
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}
.lp-impact-icon { font-size: 2rem; margin-bottom: 4px; }
.lp-impact-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-lime);
  letter-spacing: -0.03em;
  line-height: 1;
}
.lp-impact-label {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--off-white);
}
.lp-impact-desc { font-size: .74rem; color: var(--muted); }

/* ── Tech grid ──────────────────────────────── */
.lp-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
  text-align: left;
}
.lp-tech-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.lp-tech-card:hover { transform: translateY(-3px); border-color: rgba(82,183,136,0.3); }
.lp-tech-card__icon { font-size: 1.8rem; display: block; }
.lp-tech-card__name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--off-white); }
.lp-tech-card__desc { font-size: .83rem; color: var(--muted); line-height: 1.5; }

/* ── Team ───────────────────────────────────── */
.lp-creator-wrap { display: flex; flex-direction: column; gap: 28px; }
.lp-creator-header { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-upn-logo {
  flex-shrink: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(82,183,136,0.2);
}
.lp-creator-header__text { display: flex; flex-direction: column; gap: 4px; }
.lp-creator__name { font-size: clamp(1.4rem,2.5vw,2rem); letter-spacing: -.02em; margin-bottom: 4px; }
.lp-creator__role { font-size: .85rem; color: var(--aqua); font-family: var(--font-display); font-weight: 500; }

.lp-team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.lp-team-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lp-team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82,183,136,0.3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.lp-team-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff;
}
.lp-team-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lp-team-info strong { font-family: var(--font-display); font-size: .9rem; color: var(--off-white); }
.lp-team-info span   { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.lp-team-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.lp-creator-bio { padding: 28px; }
.lp-creator-bio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.lp-creator-bio__title {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.lp-creator__bio  { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.lp-creator__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Footer ─────────────────────────────────── */
.lp-footer { border-top: 1px solid rgba(82,183,136,0.1); padding: 32px 0; }
.lp-footer__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.lp-footer__copy { font-size: .78rem; color: var(--muted); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1000px) {
  .lp-impact-grid { grid-template-columns: repeat(2,1fr); }
  .lp-tech-grid   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .lp-hero        { padding: 60px 32px; }
  .lp-section__inner { padding: 0 32px; }
  .lp-team-grid   { grid-template-columns: 1fr 1fr; }
  .lp-creator-bio__grid { grid-template-columns: 1fr; gap: 20px; }
  .lp-flow        { flex-direction: column; }
  .lp-flow__arrow { transform: rotate(90deg); align-self: center; }
  .lp-footer__inner { padding: 0 32px; flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .lp-hero        { padding: 40px 20px; }
  .lp-section__inner { padding: 0 20px; }
  .lp-tech-grid   { grid-template-columns: 1fr; }
  .lp-team-grid   { grid-template-columns: 1fr; }
  .lp-impact-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Team Carousel ──────────────────────────── */
.lp-carousel-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow: hidden;
}

.lp-carousel-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  cursor: default;
  transition: transform 0.22s ease, border-color 0.22s ease,
              box-shadow 0.22s ease, opacity 0.4s ease;
}
.lp-carousel-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(82,183,136,0.35);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* ── Dots ───────────────────────────────────── */
.lp-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.lp-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(82,183,136,0.2);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lp-carousel-dot.active,
.lp-carousel-dot:hover {
  background: var(--green-lime);
  transform: scale(1.3);
}

@media (max-width: 700px) {
  .lp-carousel-track { grid-template-columns: 1fr 1fr; }
  .lp-carousel-track .lp-carousel-card:last-child { display: none; }
}
@media (max-width: 480px) {
  .lp-carousel-track { grid-template-columns: 1fr; }
  .lp-carousel-track .lp-carousel-card:not(:first-child) { display: none; }
}

/* ── Architecture diagram ───────────────────── */
.lp-arch-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.lp-arch-canvas {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(82,183,136,0.12);
  background: rgba(13,31,24,0.6);
  width: 100%;
  max-width: 900px;
  display: block;
}