:root {
  --ink: #172229;
  --muted: #667782;
  --paper: #f5f1e8;
  --paper-soft: #fffaf1;
  --line: rgba(23, 34, 41, 0.13);
  --blue: #8fd2ed;
  --blue-deep: #0c6683;
  --green: #2a7b62;
  --moss: #dde7cf;
  --clay: #ec7d5c;
  --charcoal: #101820;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --shadow-soft: 0 24px 70px rgba(22, 37, 46, 0.13);
  --shadow-tight: 0 18px 42px rgba(22, 37, 46, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(143, 210, 237, 0.42), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(236, 125, 92, 0.22), transparent 26rem),
    linear-gradient(135deg, #f7f2e8 0%, #eef4e5 52%, #f5f1e8 100%);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(23, 34, 41, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 41, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

img {
  display: block;
  max-width: 100%;
}

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

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Manrope, sans-serif;
  line-height: 0.98;
  margin: 0;
}

h1 {
  max-width: min(10.8ch, 100%);
  font-size: clamp(3.3rem, 6.8vw, 6.6rem);
  letter-spacing: -0.068em;
  overflow-wrap: normal;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 5.2vw, 5rem);
  letter-spacing: -0.065em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1120px, calc(100% - 28px));
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(250, 247, 238, 0.78);
  box-shadow: 0 12px 32px rgba(21, 31, 38, 0.11);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
}

.topbar nav {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar nav::-webkit-scrollbar {
  display: none;
}

.topbar nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: #31444d;
  font-size: 0.9rem;
  font-weight: 800;
}

.topbar nav a:hover {
  background: rgba(143, 210, 237, 0.42);
}

.language-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  min-width: 76px;
  height: 42px;
  padding: 4px;
  border: 1px solid rgba(23, 34, 41, 0.13);
  border-radius: 999px;
  background: var(--ink);
  cursor: pointer;
}

.language-toggle:hover {
  background: var(--blue-deep);
}

.language-option {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 999px;
  filter: grayscale(0.8);
  font-size: 1.08rem;
  line-height: 1;
  opacity: 0.46;
  transition:
    background 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.language-option.active {
  background: rgba(255, 255, 255, 0.96);
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

.section,
.section-grid {
  width: min(1120px, calc(100% - 32px));
  min-width: 0;
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: clamp(760px, 100svh, 960px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 40px;
  padding: 132px 0 80px;
}

.hero-copy {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.hero-text {
  width: 100%;
  max-width: 660px;
  color: #53646e;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
}

.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-tight);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.74);
}

.hero-visual {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: center;
}

.phone-frame {
  width: min(350px, 76vw);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 42px;
  background: linear-gradient(145deg, #20313a, #111a20);
  box-shadow: 0 35px 90px rgba(19, 34, 44, 0.28);
}

.phone-frame img {
  overflow: hidden;
  aspect-ratio: 9 / 18.6;
  border-radius: 31px;
  object-fit: cover;
  object-position: top center;
}

.section {
  padding: 86px 0;
}

.section-heading {
  display: grid;
  max-width: 790px;
  gap: 18px;
  margin-bottom: 34px;
}

.section-heading p,
.showcase-copy p,
.pipeline-card p,
.field-copy p {
  max-width: 680px;
  font-size: 1.06rem;
}

.feature-card,
.future-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, 0.74);
  box-shadow: var(--shadow-soft);
}

.feature-card p,
.future-grid article p {
  margin-top: 12px;
  font-size: 0.95rem;
}

.feature-grid,
.future-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 250px;
}

.feature-card i {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(143, 210, 237, 0.82), rgba(221, 231, 207, 0.92));
  color: var(--charcoal);
  font-size: 1.72rem;
}

.showcase {
  display: grid;
  min-width: 0;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 32px;
}

.showcase-copy {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 18px;
}

.screen-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
}

.screen-strip figure {
  margin: 0;
}

.screen-strip img {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  border: 9px solid #172229;
  border-radius: 26px;
  box-shadow: var(--shadow-tight);
  object-fit: cover;
  object-position: top center;
}

.screen-strip figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.pipeline-card,
.field-note {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 30px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: var(--shadow-soft);
}

.pipeline-card {
  overflow: hidden;
  align-items: stretch;
  grid-template-columns: 1fr;
  padding: clamp(22px, 4vw, 54px);
}

.pipeline-card > div:first-child,
.field-copy {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.pipeline-card > div:first-child {
  max-width: 920px;
}

.pipeline-visual {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(24px, 2vw, 34px);
  padding: clamp(16px, 2vw, 26px);
  overflow: visible;
  border: 1px solid rgba(23, 34, 41, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 20%, rgba(143, 210, 237, 0.35), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(238, 244, 229, 0.72));
}

.pipeline-node {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: clamp(118px, 11vw, 150px);
  place-items: center;
  gap: 10px;
  padding: clamp(14px, 1.4vw, 18px) clamp(8px, 1vw, 12px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 14px 34px rgba(22, 37, 46, 0.11);
  text-align: center;
}

.pipeline-node i {
  display: grid;
  width: clamp(42px, 4vw, 52px);
  height: clamp(42px, 4vw, 52px);
  place-items: center;
  border-radius: 17px;
  background: rgba(143, 210, 237, 0.55);
  color: var(--charcoal);
  font-size: 1.72rem;
}

.pipeline-node span {
  color: var(--ink);
  max-width: 100%;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 900;
  overflow-wrap: normal;
}

.pipeline-card h2 {
  max-width: min(900px, 100%);
}

.pipeline-card p {
  max-width: 760px;
}

.pipeline-node.final {
  background: var(--charcoal);
}

.pipeline-node.final i {
  background: rgba(143, 210, 237, 0.88);
}

.pipeline-node.final span {
  color: white;
}

@media (min-width: 1180px) {
  .pipeline-node:not(.final)::before,
  .pipeline-node:not(.final)::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
  }

  .pipeline-node:not(.final)::after {
    top: 50%;
    right: calc(clamp(24px, 2vw, 34px) * -1);
    width: clamp(24px, 2vw, 34px);
    height: 2px;
    background: rgba(23, 34, 41, 0.28);
    transform: translateY(-50%);
  }

  .pipeline-node:not(.final)::before {
    top: calc(50% - 5px);
    right: calc(clamp(24px, 2vw, 34px) * -1);
    width: 9px;
    height: 9px;
    border-top: 2px solid rgba(23, 34, 41, 0.42);
    border-right: 2px solid rgba(23, 34, 41, 0.42);
    transform: rotate(45deg);
  }
}

.field-note {
  grid-template-columns: 1.1fr 0.9fr;
}

.field-image img {
  width: 100%;
  max-height: 430px;
  border-radius: 24px;
  object-fit: cover;
}

.future-grid article {
  min-height: 190px;
}

footer {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 42px auto 24px;
  padding: 24px;
  border-radius: 28px;
  background: var(--charcoal);
  color: white;
}

.footer-brand,
.footer-attribution {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.footer-brand-title img {
  width: 40px;
  height: 40px;
}

footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.footer-brand p {
  max-width: 480px;
}

.footer-attribution {
  align-items: flex-end;
}

.footer-attribution p {
  font-weight: 700;
  text-align: right;
}

.liu-logo {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.liu-logo:hover {
  background: white;
  transform: translateY(-2px);
}

.liu-logo img {
  width: clamp(170px, 18vw, 220px);
  height: auto;
}

[data-animate] {
  will-change: transform, opacity;
}

@media (max-width: 980px) {
  .hero,
  .showcase,
  .pipeline-card,
  .field-note {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    max-width: 100%;
  }

  .feature-grid,
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-copy {
    position: static;
  }

  .screen-strip {
    overflow-x: auto;
    grid-template-columns: repeat(5, 180px);
    padding-bottom: 18px;
    overscroll-behavior-x: contain;
  }
}

@media (max-width: 1179px) {
  .pipeline-visual {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pipeline-node:not(.final)::before,
  .pipeline-node:not(.final)::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
  }

  .pipeline-node:not(.final)::after {
    bottom: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: rgba(23, 34, 41, 0.28);
    transform: translateX(-50%);
  }

  .pipeline-node:not(.final)::before {
    bottom: -40px;
    left: calc(50% - 5px);
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(23, 34, 41, 0.42);
    border-bottom: 2px solid rgba(23, 34, 41, 0.42);
    transform: rotate(45deg);
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    border-radius: 28px;
  }

  .brand span {
    display: none;
  }

  .topbar nav {
    flex: 1;
    width: auto;
    justify-content: flex-end;
  }

  .topbar nav a {
    padding: 9px 8px;
    font-size: 0.75rem;
  }

  .language-toggle {
    min-width: 70px;
    height: 38px;
    padding: 3px;
  }

  .language-option {
    width: 29px;
    height: 29px;
    font-size: 1rem;
  }

  .hero {
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(2.8rem, 12.5vw, 4.2rem);
    overflow-wrap: break-word;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10vw, 3.7rem);
  }

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

  .section {
    padding: 64px 0;
  }

  .pipeline-card,
  .field-note {
    padding: 22px;
    border-radius: 28px;
  }

  .pipeline-node {
    min-height: 112px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-attribution {
    width: 100%;
    align-items: flex-start;
  }

  .footer-attribution p {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .topbar {
    width: calc(100% - 16px);
    gap: 6px;
    padding: 8px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .topbar nav a {
    padding: 8px 6px;
    font-size: 0.7rem;
  }

  .language-toggle {
    min-width: 64px;
    height: 34px;
    padding: 2px;
  }

  .language-option {
    width: 27px;
    height: 27px;
    font-size: 0.92rem;
  }

  .section,
  .section-grid {
    width: min(1120px, calc(100% - 22px));
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar nav {
    display: none;
  }

  .brand span {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
