:root {
  color-scheme: light;
  --ink: #10151d;
  --muted: #596473;
  --line: rgba(24, 34, 46, 0.14);
  --panel: #ffffff;
  --paper: #f3f6f8;
  --paper-warm: #f7f4ee;
  --deep: #090d12;
  --deep-2: #111820;
  --cyan: #16c7d7;
  --teal: #0c8f9b;
  --green: #78d35d;
  --amber: #d0a13d;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(6, 14, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 48px;
  color: var(--white);
  background: rgba(7, 11, 16, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 180ms ease,
    height 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(8, 12, 16, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  width: 184px;
  height: 40px;
  overflow: hidden;
}

.brand img {
  width: 178px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transition: width 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #071014;
  background: var(--cyan);
  border-radius: 4px;
}

.site-nav .nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-dark {
  color: var(--white);
  background: var(--deep);
}

.section-light {
  background: var(--paper);
}

.section-neutral {
  background: var(--paper-warm);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 132px 0 92px;
  background:
    linear-gradient(90deg, rgba(6, 9, 13, 0.96) 0%, rgba(8, 13, 18, 0.88) 36%, rgba(8, 13, 18, 0.48) 64%, rgba(8, 13, 18, 0.9) 100%),
    linear-gradient(180deg, #071017 0%, #0e151b 54%, #080b0f 100%);
}

#photonCanvas {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-media {
  position: absolute;
  z-index: -3;
  top: 10%;
  right: -1%;
  width: 58%;
  height: 78%;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 54%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 54%, #000 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 86% center;
  filter: saturate(1.06) contrast(1.08);
}

.hero-scan {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.15;
}

.hero-scan::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 0%, rgba(22, 199, 215, 0.22) 48%, transparent 56%);
  transform: translateX(-52%);
  animation: sweep 7s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-left: max(48px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: 80px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--white);
  font-size: 28px;
  line-height: 1.32;
  font-weight: 700;
}

.hero-copy {
  max-width: 610px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #071014;
  background: var(--cyan);
  border-color: var(--cyan);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-floor {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  overflow: hidden;
  opacity: 0.8;
}

.hero-floor span {
  position: absolute;
  left: 50%;
  bottom: -95px;
  width: 76vw;
  height: 190px;
  border: 1px solid rgba(22, 199, 215, 0.24);
  transform: translateX(-50%) perspective(740px) rotateX(68deg);
}

.hero-floor span:nth-child(2) {
  width: 54vw;
  border-color: rgba(120, 211, 93, 0.22);
}

.hero-floor span:nth-child(3) {
  width: 32vw;
  border-color: rgba(208, 161, 61, 0.26);
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.metric {
  min-height: 132px;
  padding: 30px 34px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--teal);
  font-size: 34px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.capability,
.products,
.applications,
.subsidiary,
.news,
.contact {
  padding: 104px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading.narrow {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.capability-grid article {
  min-height: 258px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(18, 32, 48, 0.08);
}

.capability-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #071014;
  font-weight: 800;
  background: var(--cyan);
  border-radius: 6px;
}

.capability-grid h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.product-console {
  overflow: hidden;
  background: #111820;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tab-list button {
  min-height: 58px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tab-list button:last-child {
  border-right: 0;
}

.tab-list button[aria-selected="true"] {
  color: #061014;
  background: var(--cyan);
  font-weight: 800;
}

.product-stage {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  min-height: 480px;
}

.product-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #0b1118;
}

.product-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, rgba(22, 199, 215, 0.16), transparent 52%),
    linear-gradient(180deg, transparent, rgba(8, 12, 17, 0.78));
  pointer-events: none;
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
  transition:
    transform 260ms ease,
    opacity 260ms ease;
}

.product-visual img.is-swapping {
  opacity: 0.15;
  transform: scale(1.02);
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.product-copy h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
}

.product-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.spec-grid span {
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.product-cards article {
  min-height: 326px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-cards img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  padding: 8px;
  background: #f7f9fb;
  border: 1px solid rgba(16, 21, 29, 0.08);
  border-radius: 6px;
}

.product-cards h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.product-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.applications {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.94), rgba(8, 12, 18, 0.98)),
    url("assets/images/isense-banner-3.jpg") center / cover;
}

.applications::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(22, 199, 215, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(22, 199, 215, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.42;
}

.applications .section-inner {
  position: relative;
}

.applications .section-heading p,
.applications .section-heading h2 {
  color: var(--white);
}

.application-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.application-map article {
  min-height: 276px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.application-map span {
  color: var(--amber);
  font-size: 14px;
  font-weight: 800;
}

.application-map h3 {
  margin: 62px 0 12px;
  color: var(--white);
  font-size: 22px;
}

.application-map p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.subsidiary-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
  align-items: center;
}

.hp-logo {
  width: 142px;
  margin-bottom: 30px;
}

.subsidiary-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.16;
}

.subsidiary-copy p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--muted);
}

.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.module-list span {
  padding: 8px 12px;
  color: var(--teal);
  background: rgba(22, 199, 215, 0.1);
  border: 1px solid rgba(22, 199, 215, 0.22);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.subsidiary-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 246px;
  gap: 14px;
}

.subsidiary-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 28, 44, 0.12);
}

.subsidiary-gallery figure:first-child {
  grid-row: span 2;
}

.subsidiary-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.subsidiary-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  color: var(--white);
  font-size: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

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

.news-grid article {
  overflow: hidden;
  min-height: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-grid img {
  width: 100%;
  height: 208px;
  object-fit: cover;
}

.news-grid div {
  padding: 24px;
}

.news-grid span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.news-grid h3 {
  margin: 12px 0 12px;
  font-size: 21px;
  line-height: 1.36;
}

.news-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(7, 11, 16, 0.96) 0%, rgba(7, 11, 16, 0.88) 54%, rgba(7, 11, 16, 0.72) 100%),
    url("assets/images/hp-contact-bg.jpg") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: start;
}

.contact h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.16;
}

.contact p:not(.eyebrow) {
  max-width: 530px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.contact-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.contact-panel dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-panel div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-panel div:last-child {
  border-bottom: 0;
}

.contact-panel dt {
  color: var(--cyan);
  font-weight: 800;
}

.contact-panel dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  background: #05070a;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.footer-inner p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sweep {
  0%,
  42% {
    transform: translateX(-70%);
  }
  70%,
  100% {
    transform: translateX(70%);
  }
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 24px;
  }

  .site-nav {
    gap: 18px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .hero-lead {
    font-size: 24px;
  }

  .metric-band,
  .product-cards,
  .application-map {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .subsidiary-layout,
  .contact-layout,
  .product-stage {
    grid-template-columns: 1fr;
  }

  .product-copy {
    padding: 34px;
  }

  .product-visual img {
    min-height: 360px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .brand {
    width: 150px;
  }

  .brand img {
    width: 146px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--white);
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 18px 20px;
    background: rgba(8, 12, 16, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-top: 14px;
  }

  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: 760px;
    padding: 104px 0 72px;
    align-items: flex-start;
  }

  .hero-media {
    top: 44%;
    right: -18%;
    width: 118%;
    height: 44%;
    opacity: 0.58;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 44%, #000 62%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 44%, #000 62%, #000 100%);
  }

  .hero-media img {
    object-position: 76% center;
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-lead {
    max-width: 340px;
    font-size: 20px;
  }

  .hero-copy {
    max-width: 350px;
    font-size: 16px;
  }

  .metric-band,
  .capability-grid,
  .product-cards,
  .application-map,
  .subsidiary-gallery,
  .tab-list,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 104px;
    padding: 24px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability,
  .products,
  .applications,
  .subsidiary,
  .news,
  .contact {
    padding: 72px 0;
  }

  .section-heading h2,
  .subsidiary-copy h2,
  .contact h2 {
    font-size: 32px;
  }

  .capability-grid article {
    min-height: auto;
    padding: 22px;
  }

  .tab-list button {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .product-visual img {
    min-height: 280px;
  }

  .product-copy {
    padding: 26px;
  }

  .product-copy h3 {
    font-size: 27px;
  }

  .application-map article {
    min-height: 224px;
  }

  .application-map h3 {
    margin-top: 44px;
  }

  .subsidiary-gallery {
    grid-auto-rows: 230px;
  }

  .subsidiary-gallery figure:first-child {
    grid-row: auto;
  }

  .contact-panel {
    padding: 20px;
  }

  .contact-panel div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    display: grid;
    text-align: left;
  }
}

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