:root {
  --navy: #071b45;
  --blue: #075ee8;
  --blue-2: #0b79ff;
  --cyan: #33d8ff;
  --ink: #10203b;
  --muted: #62708a;
  --line: #dce6f4;
  --surface: #f4f8fe;
  --white: #fff;
  --shadow: 0 20px 60px rgba(16, 54, 118, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#capabilities, #workflow, #products, #contact { scroll-margin-top: 76px; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  width: auto; height: auto; clip: auto; clip-path: none;
  top: 12px; left: 12px; z-index: 100; padding: 10px 14px;
  color: white; background: var(--blue);
}

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: white; border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(5, 23, 59, .94); box-shadow: 0 10px 30px rgba(0,0,0,.16); backdrop-filter: blur(16px); }
.nav-shell { width: min(1180px, calc(100% - 40px)); height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 11px;
  color: var(--cyan); font-weight: 900; letter-spacing: -.08em;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.03));
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 15px; letter-spacing: .06em; }
.brand-copy small { color: #a9c9f8; font-size: 10px; letter-spacing: .12em; }
.desktop-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; color: #c8d9f3; }
.desktop-nav a:hover { color: white; }
.desktop-nav .nav-cta { padding: 11px 18px; color: white; background: var(--blue); border-radius: 8px; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: white; transition: transform .2s, opacity .2s; }
.mobile-nav { display: none; }

.hero {
  position: relative; min-height: 860px; overflow: hidden;
  padding: 152px 0 56px; color: white;
  background:
    radial-gradient(circle at 79% 36%, rgba(11, 121, 255, .28), transparent 32%),
    linear-gradient(120deg, #061633, #071e4e 54%, #062d6e);
}
.hero-bg {
  position: absolute; inset: 0; opacity: .16;
  background: linear-gradient(90deg, #071b45 0%, transparent 58%), url("./assets/grain-bg.jpg") right center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: 120px;
  border: 1px solid rgba(50, 215, 255, .16); border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(50,215,255,.035), 0 0 0 180px rgba(50,215,255,.025);
}
.hero-grid { position: relative; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 64px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
  color: #8fdfff; font-size: 13px; font-weight: 700; letter-spacing: .15em;
}
.eyebrow span { width: 26px; height: 2px; background: currentColor; box-shadow: 8px 0 18px currentColor; }
.eyebrow.dark { color: var(--blue); }
.eyebrow.light { color: #85ddff; justify-content: center; }
.hero h1 { margin: 0; font-size: clamp(42px, 4.2vw, 68px); line-height: 1.14; letter-spacing: -.04em; }
.hero h1 em { display: block; color: #73dfff; font-style: normal; }
.hero-lead { max-width: 620px; margin: 26px 0 0; color: #bfd0e9; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 52px; padding: 0 24px; border: 1px solid transparent;
  border-radius: 8px; font-size: 15px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--blue), #159dff); box-shadow: 0 14px 36px rgba(0, 113, 255, .35); }
.button-primary span { font-size: 22px; }
.button-ghost { border-color: rgba(255,255,255,.3); color: white; background: rgba(255,255,255,.06); }
.trust-list { display: flex; gap: 28px; margin: 28px 0 0; padding: 0; list-style: none; color: #d6e6fb; font-size: 13px; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--cyan); font-weight: 900; }
.hero-visual { position: relative; min-height: 500px; display: flex; align-items: center; }
.hero-visual > img {
  position: relative; z-index: 2; width: 100%; border: 1px solid rgba(132,205,255,.35);
  border-radius: 24px; box-shadow: 0 40px 90px rgba(0,0,0,.45); transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}
.visual-halo { position: absolute; inset: 8% -8%; background: radial-gradient(circle, rgba(39,185,255,.36), transparent 65%); filter: blur(18px); }
.status-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  min-width: 164px; padding: 13px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px; background: rgba(7, 27, 69, .83); box-shadow: 0 12px 30px rgba(0,0,0,.25); backdrop-filter: blur(12px);
}
.status-card strong, .status-card small { display: block; }
.status-card strong { font-size: 13px; }
.status-card small { margin-top: 3px; color: #92b7e8; font-size: 10px; }
.status-online { right: -16px; top: 15%; }
.status-code { bottom: 8%; left: -22px; }
.pulse { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #2ee6ac; box-shadow: 0 0 0 5px rgba(46,230,172,.13); }
.mini-code { width: 24px; height: 24px; background: repeating-linear-gradient(90deg,#60dfff 0 3px,transparent 3px 6px), repeating-linear-gradient(0deg,#60dfff 0 3px,transparent 3px 6px); }
.metric-strip {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 64px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16);
}
.metric-strip article { display: grid; gap: 6px; padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.13); }
.metric-strip article:last-child { border-right: 0; }
.metric-strip strong { color: white; font-size: 34px; line-height: 1; }
.metric-strip strong small { color: #70ddff; font-size: 15px; }
.metric-strip span { color: #9fb4d2; font-size: 12px; }

.section-heading { margin-bottom: 42px; }
.section-heading.narrow { max-width: 760px; }
.section-heading.centered { max-width: 700px; margin-inline: auto; text-align: center; }
.section-heading h2, .scenario-shell h2, .contact h2 {
  margin: 0; font-size: clamp(32px, 3.5vw, 50px); line-height: 1.22; letter-spacing: -.035em;
}
.section-heading p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.value-section { background: white; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  position: relative; min-height: 280px; overflow: hidden; padding: 34px;
  border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, white, #f7fbff);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.value-card:hover { transform: translateY(-6px); border-color: #9fcbff; box-shadow: var(--shadow); }
.value-card .number { position: absolute; right: 28px; top: 22px; color: #dceafb; font-size: 42px; font-weight: 900; }
.line-icon { position: relative; width: 54px; height: 54px; margin-bottom: 45px; border-radius: 15px; background: #e9f3ff; }
.line-icon::before, .line-icon::after { content: ""; position: absolute; border: 2px solid var(--blue); }
.icon-id::before { width: 22px; height: 28px; left: 15px; top: 11px; border-radius: 3px; }
.icon-id::after { width: 12px; height: 2px; left: 21px; top: 25px; border-width: 2px 0; }
.icon-live::before { width: 30px; height: 18px; left: 10px; top: 17px; border-width: 0 0 2px; transform: skewY(-24deg); }
.icon-live::after { width: 7px; height: 7px; left: 28px; top: 13px; border-radius: 50%; background: var(--blue); }
.icon-loop::before { inset: 11px; border-radius: 50%; border-right-color: transparent; }
.icon-loop::after { width: 8px; height: 8px; right: 9px; top: 12px; border-width: 2px 2px 0 0; transform: rotate(25deg); }
.value-card h3 { margin: 0 0 12px; font-size: 22px; }
.value-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.capabilities { background: var(--surface); }
.split-layout { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 70px; }
.media-panel { position: relative; }
.media-panel img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.media-caption {
  position: absolute; right: -28px; bottom: 38px; display: flex; align-items: center; gap: 13px;
  padding: 18px 20px; border-radius: 14px; background: white; box-shadow: 0 18px 50px rgba(14,55,115,.22);
}
.media-caption strong, .media-caption small { display: block; }
.media-caption strong { font-size: 14px; }
.media-caption small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.capability-list { border-top: 1px solid #cedcef; }
.capability-list details { border-bottom: 1px solid #cedcef; }
.capability-list summary { display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 12px; padding: 20px 0; cursor: pointer; list-style: none; }
.capability-list summary::-webkit-details-marker { display: none; }
.capability-list summary span { color: var(--blue); font-size: 12px; font-weight: 800; }
.capability-list summary strong { font-size: 17px; }
.capability-list summary i { position: relative; width: 18px; height: 18px; }
.capability-list summary i::before, .capability-list summary i::after { content: ""; position: absolute; top: 8px; width: 14px; height: 2px; background: #7890af; transition: transform .2s; }
.capability-list summary i::after { transform: rotate(90deg); }
.capability-list details[open] summary i::after { transform: rotate(0); }
.capability-list details p { margin: -3px 0 20px 54px; color: var(--muted); font-size: 14px; line-height: 1.75; }

.workflow { position: relative; overflow: hidden; color: white; background: #071d49; }
.workflow::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 50% 10%, rgba(0,129,255,.3), transparent 38%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: auto, 50px 50px, 50px 50px; }
.workflow .container { position: relative; }
.workflow .section-heading p:not(.eyebrow) { color: #a9bbd7; }
.workflow-list { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 58px 0 0; padding: 0; list-style: none; }
.workflow-list { scrollbar-width: none; }
.workflow-list::-webkit-scrollbar { display: none; }
.workflow-list::before { content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, #26c9ff 15%, #26c9ff 85%, transparent); }
.workflow-list li { position: relative; display: grid; justify-items: center; text-align: center; }
.workflow-list span { position: relative; z-index: 2; display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #3b8fff; border-radius: 50%; color: #71dcff; background: #0a285e; font-size: 13px; font-weight: 800; box-shadow: 0 0 30px rgba(0,144,255,.2); }
.workflow-list strong { margin-top: 22px; font-size: 16px; }
.workflow-list small { margin-top: 8px; max-width: 145px; color: #8fa7c9; font-size: 11px; line-height: 1.6; }
.workflow-result { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 66px; padding: 24px; border: 1px solid rgba(120,201,255,.25); border-radius: 14px; background: rgba(255,255,255,.04); }
.workflow-result > span { color: #67d8ff; font-weight: 800; }
.workflow-result p { margin: 0; color: #a9bbd7; font-size: 13px; }
.workflow-result strong { color: white; font-size: 16px; }

.products { background: white; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr; }
.product-image { position: relative; overflow: hidden; min-height: 300px; background: #edf5ff; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-card.featured .product-image { min-height: 410px; }
.product-card.featured .product-image img { object-position: center 35%; }
.product-image > span { position: absolute; left: 20px; bottom: 18px; padding: 9px 12px; border-radius: 7px; color: white; background: rgba(5, 28, 69, .82); font-size: 12px; backdrop-filter: blur(9px); }
.product-copy { padding: 28px; }
.product-card.featured .product-copy { display: flex; flex-direction: column; justify-content: center; padding: 46px; }
.product-index { margin: 0 0 16px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.product-copy h3 { margin: 0; font-size: 27px; }
.product-copy > p:not(.product-index) { color: var(--muted); font-size: 14px; line-height: 1.75; }
.product-copy ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.product-copy li { padding: 7px 10px; border-radius: 6px; color: #31517d; background: #eef5ff; font-size: 11px; }

.scenarios { padding-top: 0; }
.scenario-shell { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 50px; padding: 48px; border-radius: 20px; background: var(--surface); }
.scenario-shell .eyebrow { margin-bottom: 14px; }
.scenario-shell h2 { font-size: 32px; }
.scenario-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.scenario-tags span { padding: 13px 18px; border: 1px solid #cbdcf1; border-radius: 999px; color: #3f5574; background: white; font-size: 13px; }

.contact { position: relative; overflow: hidden; padding: 100px 0; color: white; background: linear-gradient(120deg, #06205b, #075bc7); }
.contact::before { content:""; position:absolute; inset:0; opacity:.16; background: url("./assets/grain-bg.jpg") center / cover no-repeat; mix-blend-mode: screen; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
.contact .eyebrow { justify-content: flex-start; }
.contact h2 { max-width: 700px; }
.contact-copy > p:not(.eyebrow) { max-width: 620px; color: #c3d8f2; line-height: 1.8; }
.contact-actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.button-white { color: #064aa9; background: white; }
.text-link { color: #b9d9ff; font-size: 13px; }
.company-card { display: grid; gap: 9px; margin: 0; padding: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: rgba(5,30,77,.46); font-style: normal; backdrop-filter: blur(12px); }
.company-label { color: #8de6ff; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.company-card strong { margin-top: 12px; font-size: 20px; }
.company-card p { margin: 0; color: #a9c9eb; font-size: 13px; }
.company-card a { margin-top: 12px; font-size: 28px; font-weight: 800; }
.company-card small { color: #7fa9d9; }

footer { padding: 28px 0; color: #7b8ba3; background: #06142f; font-size: 12px; }
footer .container { display: flex; justify-content: space-between; }
.mobile-cta { display: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .mobile-nav {
    position: fixed; inset: 76px 0 auto; display: grid; gap: 0; padding: 10px 20px 24px;
    background: rgba(5,23,59,.98); transform: translateY(-130%); transition: transform .25s;
  }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a { padding: 17px 4px; border-bottom: 1px solid rgba(255,255,255,.1); color: #d7e7ff; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; padding-top: 128px; }
  .hero-grid, .split-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-visual { min-height: auto; max-width: 640px; margin: auto; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip article:nth-child(2) { border-right: 0; }
  .metric-strip article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 220px; }
  .line-icon { margin-bottom: 28px; }
  .split-layout { gap: 56px; }
  .media-panel { max-width: 640px; }
  .workflow-list { grid-template-columns: repeat(5, minmax(145px, 1fr)); overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
  .workflow-list::before { display: none; }
  .workflow-list li { scroll-snap-align: start; }
  .workflow-result { flex-wrap: wrap; }
  .product-card.featured { display: block; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: auto; }
  .product-card.featured .product-copy { padding: 28px; }
  .scenario-shell { grid-template-columns: 1fr; }
  .contact-grid { gap: 44px; }
}

@media (max-width: 600px) {
  #capabilities, #workflow, #products, #contact { scroll-margin-top: 68px; }
  .container, .nav-shell { width: min(100% - 32px, 1180px); }
  .nav-shell { height: 68px; }
  .brand-copy small { display: none; }
  .mobile-nav { top: 68px; }
  .section { padding: 68px 0; }
  .hero { padding: 112px 0 44px; }
  .hero::before { display: none; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .trust-list { justify-content: space-between; gap: 8px; font-size: 11px; }
  .hero-visual > img { border-radius: 15px; transform: none; }
  .status-card { min-width: 142px; padding: 10px; }
  .status-online { right: -8px; top: -14px; }
  .status-code { left: -7px; bottom: -20px; }
  .metric-strip { margin-top: 58px; }
  .metric-strip article { padding: 20px 14px; }
  .metric-strip strong { font-size: 28px; }
  .metric-strip span { font-size: 10px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2, .contact h2 { font-size: 31px; }
  .section-heading p:not(.eyebrow) { font-size: 14px; }
  .value-card { padding: 26px; }
  .media-panel img { aspect-ratio: 4 / 4.1; border-radius: 16px; }
  .media-caption { right: 12px; bottom: -20px; }
  .capabilities .section-heading { margin-top: 18px; }
  .capability-list summary { grid-template-columns: 32px 1fr 18px; }
  .capability-list summary strong { font-size: 15px; }
  .capability-list details p { margin-left: 44px; }
  .eyebrow { font-size: 11px; letter-spacing: .11em; }
  .workflow-list { margin-top: 40px; }
  .workflow-result { justify-content: flex-start; gap: 16px; padding: 20px; }
  .workflow-result > span { flex-basis: 100%; }
  .product-image, .product-card.featured .product-image { min-height: 260px; }
  .product-copy, .product-card.featured .product-copy { padding: 24px; }
  .product-copy h3 { font-size: 23px; }
  .scenario-shell { gap: 28px; padding: 30px 24px; }
  .scenario-shell h2 { font-size: 28px; }
  .scenario-tags span { padding: 10px 13px; }
  .contact { padding: 72px 0 100px; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .company-card { padding: 26px; }
  .company-card strong { font-size: 17px; }
  .company-card a { font-size: 24px; }
  footer { padding-bottom: 92px; }
  .mobile-cta {
    position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden;
    border: 1px solid rgba(255,255,255,.24); border-radius: 13px; box-shadow: 0 14px 40px rgba(0,0,0,.28);
  }
  .mobile-cta a { display: grid; place-items: center; min-height: 52px; color: white; background: #0a2d65; font-size: 14px; font-weight: 700; }
  .mobile-cta a:last-child { background: linear-gradient(135deg, var(--blue), #1298ff); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
