/*
 * LoongValve desktop homepage.
 * Every layout rule is scoped to the existing desktop .pc_ container.
 */

@media (min-width: 769px) {
  body:has(.loong-home) {
    overflow-x: hidden;
    color: #17263a;
    background: #fff;
  }

  .loong-home,
  .loong-home * {
    box-sizing: border-box;
  }

  .loong-home {
    --loong-navy: #062d55;
    --loong-navy-dark: #031d37;
    --loong-blue: #086bff;
    --loong-sky: #38a9ff;
    --loong-ink: #142235;
    --loong-muted: #657487;
    --loong-line: #dce4ec;
    --loong-pale: #f2f6fa;
    --loong-white: #fff;
    width: 100%;
    overflow: hidden;
    background: #fff;
    font-family: Poppins, Arial, sans-serif;
  }

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

  .loong-home a {
    text-decoration: none;
  }

  .loong-shell {
    width: min(1500px, calc(100% - 64px));
    margin: 0 auto;
  }

  .loong-section {
    padding: 78px 0;
  }

  .loong-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--loong-blue);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .loong-kicker::before {
    content: '';
    width: 30px;
    height: 2px;
    background: currentColor;
  }

  .loong-kicker-light {
    color: #66c5ff;
  }

  .loong-section-head {
    margin-bottom: 38px;
  }

  .loong-section-head-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    align-items: end;
    gap: 60px;
  }

  .loong-section-head h2 {
    max-width: 820px;
    margin: 0;
    color: var(--loong-navy);
    font-size: 42px;
    line-height: 1.16;
    font-weight: 750;
    letter-spacing: 0;
  }

  .loong-section-head > p,
  .loong-section-head-centered > p {
    margin: 0;
    color: var(--loong-muted);
    font-size: 15px;
    line-height: 1.75;
  }

  .loong-section-head-light h2,
  .loong-section-head-light > p {
    color: #fff;
  }

  .loong-section-head-light > p {
    color: rgba(255, 255, 255, 0.72);
  }

  .loong-section-head-centered {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .loong-section-head-centered .loong-kicker {
    justify-content: center;
  }

  .loong-section-head-centered h2 {
    margin: 0 auto 16px;
  }

  .loong-hero {
    position: relative;
    height: 92vh;
    min-height: 680px;
    max-height: 980px;
    overflow: hidden;
    isolation: isolate;
    background: var(--loong-navy-dark);
  }

  .loong-hero-media,
  .loong-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .loong-hero-media {
    z-index: -2;
    object-fit: cover;
    object-position: center;
  }

  .loong-hero-shade {
    z-index: -1;
    background:
      linear-gradient(90deg, rgba(1, 14, 27, 0.97) 0%, rgba(3, 26, 49, 0.91) 34%, rgba(3, 28, 52, 0.46) 58%, rgba(3, 25, 48, 0.08) 100%),
      linear-gradient(0deg, rgba(2, 19, 37, 0.44) 0%, transparent 46%);
  }

  .loong-hero-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 98px;
  }

  .loong-hero-copy {
    width: min(710px, 52%);
    color: #fff;
  }

  .loong-hero h1 {
    max-width: 690px;
    margin: 0 0 24px;
    color: #fff;
    font-size: 62px;
    line-height: 1.06;
    font-weight: 760;
    letter-spacing: 0;
  }

  .loong-hero-copy > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.75;
  }

  .loong-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
  }

  .loong-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }

  .loong-button:hover {
    transform: translateY(-2px);
  }

  .loong-button-primary {
    color: #fff;
    background: var(--loong-blue);
    border-color: var(--loong-blue);
    box-shadow: 0 12px 28px rgba(8, 107, 255, 0.24);
  }

  .loong-button-primary:hover {
    color: var(--loong-navy);
    background: #fff;
    border-color: #fff;
  }

  .loong-button-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(4, 30, 57, 0.24);
  }

  .loong-button-outline:hover {
    color: var(--loong-navy);
    background: #fff;
    border-color: #fff;
  }

  .loong-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin: 38px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    list-style: none;
  }

  .loong-hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 600;
  }

  .loong-hero-points i {
    color: #69c7ff;
    font-size: 17px;
  }

  .loong-categories {
    background: #fff;
  }

  .loong-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .loong-category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--loong-line);
    border-radius: 4px;
    color: var(--loong-ink);
    background: #fff;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  }

  .loong-category-card:hover {
    z-index: 1;
    border-color: rgba(8, 107, 255, 0.46);
    box-shadow: 0 18px 42px rgba(6, 45, 85, 0.11);
    transform: translateY(-4px);
  }

  .loong-category-media {
    display: block;
    aspect-ratio: 4 / 2.65;
    overflow: hidden;
    background: #edf2f7;
  }

  .loong-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
  }

  .loong-category-card:hover .loong-category-media img {
    transform: scale(1.035);
  }

  .loong-category-info {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 13px 15px;
  }

  .loong-category-info > i:first-child {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d8e7f8;
    border-radius: 4px;
    color: var(--loong-blue);
    background: #f3f8fe;
    font-size: 19px;
  }

  .loong-category-info strong,
  .loong-category-info small {
    display: block;
  }

  .loong-category-info strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
  }

  .loong-category-info small {
    margin-top: 5px;
    color: #7a8795;
    font-size: 11px;
    line-height: 1.2;
  }

  .loong-category-arrow {
    justify-self: end;
    color: #93a0ad;
    font-size: 18px;
    transition: color 0.25s ease, transform 0.25s ease;
  }

  .loong-category-card:hover .loong-category-arrow {
    color: var(--loong-blue);
    transform: translate(2px, -2px);
  }

  .loong-section-action {
    margin-top: 30px;
    text-align: center;
  }

  .loong-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 6px;
    border-bottom: 1px solid #b9c7d5;
    color: var(--loong-navy);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.25s ease, border-color 0.25s ease;
  }

  .loong-text-link:hover {
    color: var(--loong-blue);
    border-color: var(--loong-blue);
  }

  .loong-manufacturing {
    position: relative;
    background: var(--loong-navy-dark);
  }

  .loong-manufacturing::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
  }

  .loong-manufacturing .loong-shell {
    position: relative;
  }

  .loong-factory-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 212px;
    gap: 14px;
  }

  .loong-factory-card {
    position: relative;
    grid-column: span 5;
    overflow: hidden;
    margin: 0;
    border-radius: 4px;
    background: #0d3152;
  }

  .loong-factory-card-main {
    grid-column: span 7;
    grid-row: span 2;
  }

  .loong-factory-card:nth-child(n + 4) {
    grid-column: span 4;
  }

  .loong-factory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
  }

  .loong-factory-card-main img {
    object-position: center;
  }

  .loong-factory-card:hover img {
    transform: scale(1.025);
  }

  .loong-factory-card::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(2, 17, 32, 0.85), transparent);
  }

  .loong-factory-card figcaption {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .loong-factory-card figcaption i {
    color: #69c7ff;
    font-size: 18px;
  }

  .loong-capability-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.12);
  }

  .loong-capability-strip > div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    min-height: 104px;
    padding: 22px;
    background: #082947;
  }

  .loong-capability-strip i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(104, 197, 255, 0.3);
    border-radius: 4px;
    color: #69c7ff;
    font-size: 20px;
  }

  .loong-capability-strip span,
  .loong-capability-strip strong {
    display: block;
  }

  .loong-capability-strip strong {
    margin-bottom: 5px;
    color: #fff;
    font-size: 13px;
  }

  .loong-capability-strip span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    line-height: 1.55;
  }

  .loong-products {
    background: var(--loong-pale);
  }

  .loong-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .loong-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  }

  .loong-product-card:hover {
    border-color: rgba(8, 107, 255, 0.38);
    box-shadow: 0 18px 38px rgba(6, 45, 85, 0.1);
    transform: translateY(-4px);
  }

  .loong-product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    background: #edf2f6;
  }

  .loong-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
  }

  .loong-product-card:hover .loong-product-image img {
    transform: scale(1.035);
  }

  .loong-product-image > span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 3px;
    color: #fff;
    background: rgba(6, 45, 85, 0.92);
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .loong-product-card:hover .loong-product-image > span {
    opacity: 1;
    transform: none;
  }

  .loong-product-body {
    min-height: 102px;
    padding: 18px;
  }

  .loong-product-body p {
    min-height: 15px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--loong-blue);
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .loong-product-body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
  }

  .loong-product-body h3 a {
    color: var(--loong-ink);
  }

  .loong-product-body h3 a:hover {
    color: var(--loong-blue);
  }

  .loong-empty-state {
    grid-column: 1 / -1;
    padding: 40px;
    border: 1px solid var(--loong-line);
    color: var(--loong-muted);
    background: #fff;
    text-align: center;
  }

  .loong-applications {
    background: var(--loong-navy);
  }

  .loong-application-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .loong-application-card {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: 4px;
    background: #092746;
  }

  .loong-application-card::after {
    content: '';
    position: absolute;
    inset: 30% 0 0;
    background: linear-gradient(0deg, rgba(2, 17, 32, 0.98), rgba(2, 17, 32, 0.14));
  }

  .loong-application-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
  }

  .loong-application-card:hover > img {
    transform: scale(1.03);
  }

  .loong-application-card > div {
    position: absolute;
    right: 28px;
    bottom: 26px;
    left: 28px;
    z-index: 1;
  }

  .loong-application-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 23px;
    line-height: 1.2;
  }

  .loong-application-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.7;
  }

  .loong-application-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #68c5ff;
    font-size: 11px;
    font-weight: 700;
  }

  .loong-custom-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;
    padding: 26px 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #082947;
  }

  .loong-custom-band > div {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .loong-custom-band img {
    width: 58px;
    height: 58px;
    padding: 5px;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
  }

  .loong-custom-band p,
  .loong-custom-band strong,
  .loong-custom-band span {
    display: block;
    margin: 0;
  }

  .loong-custom-band strong {
    color: #fff;
    font-size: 15px;
  }

  .loong-custom-band span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    line-height: 1.6;
  }

  .loong-custom-band .loong-button {
    flex: 0 0 auto;
  }

  .loong-process {
    background: #fff;
  }

  .loong-process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }

  .loong-process-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    right: 9%;
    left: 9%;
    height: 1px;
    background: #c9d7e5;
  }

  .loong-process-card {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0 12px;
    text-align: center;
  }

  .loong-process-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    place-items: center;
    border: 1px solid #c9dff6;
    border-radius: 50%;
    color: var(--loong-blue);
    background: #fff;
    box-shadow: 0 0 0 8px #fff;
    font-size: 25px;
  }

  .loong-process-card h3 {
    min-height: 42px;
    margin: 0 0 9px;
    color: var(--loong-navy);
    font-size: 15px;
    line-height: 1.4;
  }

  .loong-process-card p {
    margin: 0;
    color: var(--loong-muted);
    font-size: 11px;
    line-height: 1.65;
  }

  body:has(.loong-home) .cs-section {
    padding: 76px 32px 82px;
    background: var(--loong-pale);
  }

  body:has(.loong-home) .cs-container {
    width: min(1500px, 100%);
  }

  body:has(.loong-home) .cs-header {
    margin-bottom: 36px;
  }

  body:has(.loong-home) .cs-eyebrow {
    color: var(--loong-blue);
    letter-spacing: 0;
  }

  body:has(.loong-home) .cs-eyebrow::before,
  body:has(.loong-home) .cs-eyebrow::after {
    background: #9bb6d1;
  }

  body:has(.loong-home) .cs-title {
    color: var(--loong-navy);
    letter-spacing: 0;
  }

  body:has(.loong-home) .cs-card {
    border-color: #dbe4ed;
    border-radius: 4px;
  }

  body:has(.loong-home) .cs-card::before {
    background: var(--loong-blue);
  }

  body:has(.loong-home) .cs-card:hover,
  body:has(.loong-home) .cs-card.is-active {
    border-color: rgba(8, 107, 255, 0.32);
    box-shadow: 0 18px 40px rgba(6, 45, 85, 0.12);
  }

  body:has(.loong-home) .cs-status {
    border-radius: 3px;
  }

  @media (max-width: 1200px) {
    .loong-shell {
      width: min(100% - 40px, 1180px);
    }

    .loong-section {
      padding: 66px 0;
    }

    .loong-section-head-row {
      gap: 34px;
    }

    .loong-section-head h2 {
      font-size: 36px;
    }

    .loong-hero h1 {
      font-size: 52px;
    }

    .loong-hero-copy {
      width: 58%;
    }

    .loong-category-grid,
    .loong-product-grid {
      gap: 12px;
    }

    .loong-category-info {
      grid-template-columns: 34px minmax(0, 1fr) 16px;
      gap: 9px;
      padding: 11px;
    }

    .loong-category-info > i:first-child {
      width: 34px;
      height: 34px;
    }

    .loong-factory-grid {
      grid-auto-rows: 180px;
    }

    .loong-capability-strip > div {
      padding: 17px 14px;
    }

    .loong-application-card {
      min-height: 410px;
    }

    .loong-application-card > div {
      right: 20px;
      bottom: 20px;
      left: 20px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .loong-home *,
    .loong-home *::before,
    .loong-home *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}
