/*
 * Inflowx domestic site — Typeless-inspired visual system.
 * The structure and business content remain original; this layer only reshapes
 * typography, spacing, motion and presentation around the idea of information flow.
 */

:root {
  --paper: #ffffff;
  --paper-soft: #f4f4f2;
  --paper-warm: #f7f6f1;
  --black: #121212;
  --gray-1: #5f5f5b;
  --gray-2: #92928f;
  --gray-3: #dededb;
  --brand: #596444;
  --brand-soft: #e8eadf;
  --maxw: 1280px;
}

html { background: var(--paper); }

body {
  background: var(--paper);
  color: var(--black);
  font-family: "HarmonyOS Sans SC", "MiSans", "OPPO Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

::selection { color: #fff; background: var(--black); }
:focus-visible { outline-color: var(--black); }
.serif { font-family: inherit; }
.wrap { max-width: var(--maxw); padding-inline: 40px; }

/* Navigation */
header {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: rgba(18, 18, 18, .07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .68);
}

.nav { height: 88px; }
.brand { gap: 10px; color: var(--black); font-size: 23px; font-weight: 720; letter-spacing: -.7px; }
.brand small { color: var(--gray-2); font-size: 12px; font-weight: 550; letter-spacing: .02em; }
.logo-mark {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  filter: grayscale(1) contrast(235%) brightness(1.11);
}
.nav-links { gap: 34px; }
.nav-links a { color: var(--black); font-size: 15px; font-weight: 570; }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--black);
  transition: right .24s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--black); }
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--black);
}
.nav-cta:hover { background: #323232; transform: translateY(-1px); }
.nav-mobile-actions { display: none; align-items: center; gap: 8px; }
.mobile-cta { padding: 11px 18px; border-radius: 999px; color: #fff; background: var(--black); font-size: 14px; font-weight: 650; }

/* Hero */
.hero {
  min-height: auto;
  padding: 188px 0 42px;
  display: block;
}
.hero-grid { display: block; }
.hero-grid > div:first-child { max-width: 1020px; margin: 0 auto; text-align: center; }
.eyebrow {
  margin-bottom: 30px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--gray-1);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
}
.hero h1 {
  margin-bottom: 34px;
  color: var(--black);
  font-size: clamp(72px, 8.8vw, 128px);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: .94;
}
.hero h1 em { color: var(--gray-2); font-style: normal; }
.hero p.lead {
  max-width: 770px;
  margin: 0 auto 34px;
  color: var(--gray-2);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 430;
  line-height: 1.65;
}
.hero p.lead strong { color: var(--black); font-weight: 650; }
.hero-cta { justify-content: center; gap: 12px; }
.btn { padding: 14px 27px; border-radius: 999px; font-size: 15px; font-weight: 650; }
.btn-primary { color: #fff; background: var(--black); }
.btn-primary:hover { background: #323232; }
.btn-ghost { color: var(--black); border-color: var(--gray-3); background: #fff; }
.btn-ghost:hover { color: var(--black); border-color: var(--black); }

/* The memorable moment: human judgment and AI execution exchange a live signal. */
.hero-art {
  width: 100%;
  height: 590px;
  margin-top: 112px;
  border: 1px solid rgba(18, 18, 18, .07);
  border-radius: 36px;
  background: #f7f7f5;
  overflow: hidden;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .08);
}
.hero-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
  filter: grayscale(1) contrast(.94);
  mix-blend-mode: multiply;
}
.flow-demo { position: absolute; inset: 0; display: grid; place-items: center; }
.flow-axis {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(18,18,18,.2) 0 5px, transparent 5px 12px);
}
.flow-signal {
  position: absolute;
  top: calc(50% - 7px);
  left: 18%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 0 0 8px rgba(255,255,255,.62);
  animation: signal-flow 3.2s cubic-bezier(.65,0,.35,1) infinite;
}
.flow-node {
  position: absolute;
  top: 50%;
  width: 238px;
  padding: 24px 26px;
  border: 1px solid rgba(18,18,18,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 22px 60px rgba(36,40,35,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-50%);
}
.flow-human { left: 6%; }
.flow-ai { right: 6%; }
.flow-node .flow-kicker { display: block; margin-bottom: 7px; color: var(--gray-2); font-size: 12px; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; }
.flow-node b { display: block; margin-bottom: 7px; font-size: 23px; letter-spacing: -.04em; }
.flow-node p { color: var(--gray-1); font-size: 14px; }
.flow-core {
  position: relative;
  z-index: 2;
  min-width: 176px;
  padding: 20px 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--black);
  box-shadow: 0 18px 48px rgba(18,18,18,.2);
  text-align: center;
}
.flow-core b { display: block; font-size: 16px; letter-spacing: .01em; }
.flow-core span { display: block; margin-top: 2px; color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.flow-core .flow-pulse { display: none; }
.flow-pulse i { display: block; width: 3px; height: 8px; border-radius: 3px; background: #fff; animation: pulse 1.1s ease-in-out infinite alternate; }
.flow-pulse i:nth-child(2), .flow-pulse i:nth-child(6) { height: 15px; animation-delay: -.4s; }
.flow-pulse i:nth-child(3), .flow-pulse i:nth-child(5) { height: 20px; animation-delay: -.2s; }
.flow-pulse i:nth-child(4) { height: 12px; animation-delay: -.7s; }
.flow-caption { position: absolute; left: 0; right: 0; bottom: 35px; color: rgba(18,18,18,.58); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-align: center; }

@keyframes signal-flow {
  0% { left: 18%; transform: scale(.72); opacity: .25; }
  18% { opacity: 1; }
  50% { transform: scale(1.15); }
  82% { opacity: 1; }
  100% { left: calc(82% - 14px); transform: scale(.72); opacity: .25; }
}
@keyframes pulse { to { height: 4px; opacity: .5; } }

/* Proof strip */
.strip { border: 0; background: #fff; }
.strip-in { display: grid; grid-template-columns: 1.35fr repeat(4, .7fr); gap: 10px; padding: 18px 0 0; }
.strip-in > span:first-child,
.strip-items b {
  min-height: 104px;
  padding: 20px;
  border-radius: 20px;
  background: var(--paper-soft);
  color: var(--black);
  display: flex;
  align-items: flex-end;
}
.strip-in > span:first-child { font-size: 17px; font-weight: 620; line-height: 1.35; }
.strip-items { display: contents; }
.strip-items b { font-size: 14px; font-weight: 650; }

/* Shared section rhythm */
section { padding: 158px 0; }
section[id] { scroll-margin-top: 88px; }
.sec-head,
.portfolio-head { max-width: 980px; margin: 0 auto 88px; text-align: center; }
.sec-head { max-width: 1200px; }
.sec-head .tag {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--gray-1);
  background: var(--paper-soft);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .08em;
}
.sec-head h2,
.portfolio-head h2 {
  color: var(--black);
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 640;
  letter-spacing: -.07em;
  line-height: .98;
}
.sec-head h2 {
  white-space: nowrap;
  font-size: clamp(58px, 7vw, 96px);
}
.sec-head h2 br,
.portfolio-head h2 br { display: none; }
.sec-head p,
.portfolio-head p { max-width: 700px; margin: 28px auto 0; color: var(--gray-2); font-size: 19px; line-height: 1.65; }

/* Capabilities become full-width editorial rows rather than generic cards. */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  min-height: 520px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  grid-template-rows: 1fr;
  column-gap: 70px;
  align-items: stretch;
  border: 0;
  border-radius: 30px;
  background: var(--paper-soft);
  box-shadow: none;
  overflow: hidden;
}
.card:hover { border: 0; box-shadow: none; transform: none; }
.card .ico {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 484px;
  margin: 0;
  padding: 34px;
  border-radius: 22px;
  background: #fff;
}
.card .ico img { filter: none; opacity: 1; object-fit: cover; }
.card-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin-right: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-copy h3 { margin-bottom: 16px; font-size: clamp(30px, 3.1vw, 48px); font-weight: 650; letter-spacing: -.055em; line-height: 1.05; }
.card-copy > p { color: var(--gray-1); font-size: 16px; line-height: 1.65; }
.card-copy ul { margin-top: 22px; gap: 11px; }
.card li { color: var(--gray-1); font-size: 14px; }
.card li::before { width: 5px; height: 5px; background: var(--black); }
.card:nth-child(even) { grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); }
.card:nth-child(even) .ico { grid-column: 2; }
.card:nth-child(even) .card-copy { grid-column: 1; margin-right: 0; margin-left: 42px; }

/* Product portfolio */
.portfolio { padding-top: 100px; }
.product-showcase { grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr); gap: 18px; }
.product-link {
  border: 0;
  border-radius: 30px;
  background: var(--paper-soft);
  box-shadow: none;
}
.product-link:hover { border: 0; box-shadow: none; transform: translateY(-4px); }
.product-link--featured .product-media { min-height: 470px; border: 18px solid var(--paper-soft); border-bottom: 0; border-radius: 30px 30px 18px 18px; background: #fff; }
.product-link:not(.product-link--featured) { min-height: 285px; grid-template-columns: 1fr; grid-template-rows: 1.12fr .88fr; }
.product-link:not(.product-link--featured) .product-media { border: 14px solid var(--paper-soft); border-bottom: 0; border-radius: 28px 28px 14px 14px; background: #fff; }
.product-media img { filter: saturate(.78) contrast(.96); }
.product-link--enterprise .product-media {
  padding: 18px;
  display: block;
  background: var(--black);
}
.enterprise-gallery {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.enterprise-gallery img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: left top;
  filter: saturate(.9) contrast(.98);
  box-shadow: 0 18px 42px rgba(0,0,0,.2);
}
.product-copy { padding: 30px 34px 34px; }
.product-link--featured .product-copy { padding: 34px 38px 40px; }
.product-copy h3,
.product-link--featured .product-copy h3 { color: var(--black); font-size: 32px; font-weight: 660; letter-spacing: -.05em; }
.product-copy p { color: var(--gray-1); line-height: 1.65; }
.product-visit { color: var(--black); }

/* One active product above, three swappable product modules below. */
.product-explorer { display: grid; gap: 18px; }
.product-stage {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(340px, .66fr);
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper-soft);
  transition: transform .28s ease;
}
.product-stage:hover { transform: translateY(-3px); }
.product-stage-media {
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  background: #fff;
}
.product-stage-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
  filter: saturate(.82) contrast(.97);
}
.product-stage-media.is-multi {
  padding: 16px;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: var(--black);
}
.product-stage-media.is-multi > img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  object-position: left top;
  filter: saturate(.9) contrast(.98);
}
.product-stage-copy {
  padding: 58px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-stage-kicker {
  margin-bottom: 20px;
  color: var(--gray-2);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .1em;
}
.product-stage-copy h3 {
  margin-bottom: 20px;
  color: var(--black);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 660;
  letter-spacing: -.06em;
  line-height: 1.02;
}
.product-stage-copy p { color: var(--gray-1); font-size: 16px; line-height: 1.75; }
.product-stage-copy .product-visit { margin-top: 30px; }
.product-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-switch {
  min-width: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--paper-soft);
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}
.product-switch:hover {
  transform: translateY(-3px);
  border-color: rgba(18,18,18,.14);
  background: #fff;
}
.product-switch-media { height: 176px; margin: 12px 12px 0; overflow: hidden; border-radius: 15px; background: #fff; }
.product-switch-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: left center; filter: saturate(.8) contrast(.97); }
.product-switch-copy { padding: 22px 24px 26px; }
.product-switch-copy > span { display: block; margin-bottom: 7px; color: var(--gray-2); font-size: 11px; font-weight: 680; letter-spacing: .1em; }
.product-switch-copy h3 { margin-bottom: 7px; font-size: 27px; font-weight: 650; letter-spacing: -.045em; }
.product-switch-copy p { color: var(--gray-1); font-size: 14px; }

/* Company statement */
#about { padding: 100px 0; }
.block-olive {
  padding: 108px 88px;
  border-radius: 36px;
  color: #fff;
  background: var(--black);
}
.block-olive::after {
  right: -110px;
  top: auto;
  bottom: -150px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(160,176,128,.2), transparent 66%);
}
.about-grid { grid-template-columns: 1.25fr .75fr; gap: 84px; }
.about-grid h2 { margin-bottom: 30px; font-size: clamp(46px, 5vw, 76px); font-weight: 640; letter-spacing: -.065em; line-height: 1.02; }
.about-grid h2 span { display: block; }
.about-grid p { color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.75; }
.about-grid .hl { color: #fff; }
.vlist { gap: 0; }
.vrow { padding: 23px 0; border-bottom-color: rgba(255,255,255,.14); }
.vrow .vk { color: rgba(255,255,255,.42); }
.vrow h3 { font-size: 17px; }
.vrow p { color: rgba(255,255,255,.5); }

/* Contact */
#contact { padding: 170px 0 150px; }
.contact-grid { grid-template-columns: 1fr; justify-items: center; gap: 60px; text-align: center; }
.contact-grid h2 { max-width: 980px; margin: 0 auto 26px; font-size: clamp(62px, 7.7vw, 112px); font-weight: 640; letter-spacing: -.075em; line-height: .97; }
.contact-grid h2 em { color: var(--gray-2); font-style: normal; }
.contact-grid p { max-width: 680px; margin: 0 auto 32px; color: var(--gray-2); }
.contact-card {
  width: min(760px, 100%);
  padding: 34px 40px;
  border: 0;
  border-radius: 26px;
  background: var(--paper-soft);
  text-align: left;
}
.contact-card .mail { color: var(--black); }

/* Footer */
footer { padding: 72px 0 42px; border-top-color: var(--gray-3); background: #fff; }
.foot-brand p,
.foot .col a,
.foot .col span,
.copy { color: var(--gray-2); }
.foot .col h2 { color: var(--black); }

/* Reveal remains visible without JavaScript and has a deterministic fallback. */
.reveal { opacity: 1; transform: none; }
.js .reveal { transform: translateY(28px); }
.js .reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .flow-signal,
  .flow-pulse i { animation: none; }
}

@media (max-width: 980px) {
  .wrap { padding-inline: 28px; }
  .hero { padding-top: 160px; }
  .hero-art { height: 540px; }
  .flow-node { width: 200px; }
  .flow-human { left: 3%; }
  .flow-ai { right: 3%; }
  .strip-in { grid-template-columns: repeat(4, 1fr); }
  .strip-in > span:first-child { grid-column: 1 / -1; min-height: 78px; }
  .card,
  .card:nth-child(even) { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; gap: 0; }
  .card .ico,
  .card:nth-child(even) .ico { grid-column: 1; grid-row: 1; height: 390px; }
  .card-copy,
  .card:nth-child(even) .card-copy { grid-column: 1; grid-row: 2; margin: 0 32px; padding: 38px 0 36px; }
  .card-copy ul { margin-bottom: 0; }
  .product-showcase { grid-template-columns: 1fr; grid-template-rows: auto; }
  .product-link--featured { grid-row: auto; }
  .product-stage { grid-template-columns: 1fr; }
  .product-stage-media { min-height: 390px; }
  .product-stage-copy { padding: 42px 38px 46px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav { height: 76px; }
  .nav-mobile-actions { display: flex; }
  .nav-links {
    top: 68px;
    padding: 14px;
    border-color: var(--gray-3);
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 50px rgba(18,18,18,.1);
  }
  .nav-links .nav-cta { border-radius: 999px; }
  .burger { margin-right: -8px; }
  .hero { padding-top: 132px; }
  section { padding: 112px 0; }
  .block-olive { padding: 72px 54px; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 20px; }
  .brand { font-size: 19px; }
  .logo-mark { width: 34px; height: 34px; }
  .hero { padding: 126px 0 24px; }
  .eyebrow { margin-bottom: 24px; }
  .hero h1 { margin-bottom: 28px; font-size: clamp(54px, 17.5vw, 72px); line-height: .94; }
  .hero p.lead { font-size: 16px; line-height: 1.7; }
  .hero-art { height: 610px; margin-top: 78px; border-radius: 26px; }
  .hero-art > img { inset: 0; width: 100%; height: 100%; opacity: .72; object-position: center; }
  .flow-axis { top: 50%; left: 50%; right: auto; width: 2px; height: 58%; transform: translate(-50%, -50%); background: repeating-linear-gradient(180deg, rgba(18,18,18,.2) 0 5px, transparent 5px 12px); }
  .flow-signal { top: 21%; left: calc(50% - 7px); animation: signal-flow-mobile 3.2s cubic-bezier(.65,0,.35,1) infinite; }
  .flow-node { top: auto; left: 24px; right: 24px; width: auto; transform: none; text-align: center; }
  .flow-human { top: 28px; }
  .flow-ai { top: auto; bottom: 28px; }
  .flow-core { min-width: 164px; }
  .flow-caption { bottom: 14px; display: none; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .strip-in > span:first-child { min-height: 96px; }
  .strip-in > span:first-child,
  .strip-items b { min-height: 86px; border-radius: 18px; }
  .sec-head,
  .portfolio-head { margin-bottom: 58px; }
  .sec-head h2,
  .portfolio-head h2 { font-size: clamp(50px, 16vw, 68px); }
  .sec-head h2 { font-size: clamp(28px, 8.6vw, 34px); letter-spacing: -.055em; }
  .sec-head p,
  .portfolio-head p { margin-top: 22px; font-size: 16px; }
  .card { padding: 12px; border-radius: 24px; }
  .card .ico,
  .card:nth-child(even) .ico { height: 280px; padding: 20px; border-radius: 18px; }
  .card-copy,
  .card:nth-child(even) .card-copy { margin-inline: 16px; padding: 30px 0 26px; }
  .card-copy h3 { font-size: 31px; }
  .product-link,
  .product-link--featured { border-radius: 24px; }
  .product-link--featured .product-media { min-height: 270px; border-width: 12px; }
  .product-link--enterprise .product-media { padding: 12px; }
  .enterprise-gallery { display: block; }
  .enterprise-gallery img { height: auto; }
  .enterprise-gallery img + img { display: none; }
  .product-copy,
  .product-link--featured .product-copy { padding: 26px; }
  .product-stage { min-height: 0; border-radius: 24px; }
  .product-stage-media { min-height: 230px; }
  .product-stage-media.is-multi { display: block; padding: 12px; }
  .product-stage-media.is-multi > img { height: 206px; }
  .product-stage-media.is-multi > img + img { display: none; }
  .product-stage-copy { padding: 30px 26px 34px; }
  .product-stage-copy h3 { font-size: 34px; }
  .product-stage-kicker { margin-bottom: 14px; }
  .product-switcher { grid-template-columns: 1fr; gap: 12px; }
  .product-switch { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(140px, .92fr); border-radius: 20px; }
  .product-switch-media { height: 150px; margin: 10px 0 10px 10px; }
  .product-switch-copy { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
  .product-switch-copy h3 { font-size: 23px; }
  .block-olive { padding: 58px 28px; border-radius: 28px; }
  .about-grid { gap: 40px; }
  .about-grid h2 { font-size: clamp(28px, 8.8vw, 36px); line-height: 1.04; }
  .about-grid h2 span { white-space: nowrap; }
  #contact { padding: 120px 0 110px; }
  .contact-grid h2 { font-size: clamp(54px, 16.5vw, 72px); }
  .contact-card { padding: 28px 22px; border-radius: 22px; }
  .contact-card .mail { font-size: 19px; }
}

@keyframes signal-flow-mobile {
  0% { top: 21%; transform: scale(.72); opacity: .25; }
  18% { opacity: 1; }
  50% { transform: scale(1.15); }
  82% { opacity: 1; }
  100% { top: calc(79% - 14px); transform: scale(.72); opacity: .25; }
}
