:root {
  color-scheme: light;
  --ink: #16312a;
  --muted: #48635a;
  --paper: #fff;
  --line: #dce9e2;
  --soft: #edf5f0;
  --deep: #0c2923;
  --accent: #0b6e55;
  --mint: #ade9cc;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font: 400 16px/1.55 var(--entry-font-family);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
body { color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 85px; }
a { color: inherit; }
button { cursor: pointer; font: inherit; }
:focus-visible { outline: 2px solid #4cba91; outline-offset: 4px; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.topbar { position: sticky; z-index: 8; top: 0; color: #f4fbf6; background: #0b261f; border-bottom: 1px solid #5e968449; }
.topbar-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 720; font-size: 18px; white-space: nowrap; text-decoration: none; }
.brand-mark { display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 33px; height: 33px; padding: 8px; background: #bcebce; border-radius: 9px; }
.brand-mark i { width: 4px; height: 8px; border-radius: 2px; background: #087961; }
.brand-mark i:nth-child(2) { height: 12px; background: #035745; }
.brand-mark i:nth-child(3) { height: 16px; background: #0a3128; }
.desktop-nav, .footer-inner nav { display: flex; gap: clamp(15px, 3vw, 35px); }
.desktop-nav a, .mobile-nav a, .footer-inner nav a { text-decoration: none; color: #d4e6dc; white-space: nowrap; font-size: 15px; }
.desktop-nav a:hover, .mobile-nav a:hover, .footer-inner nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.top-actions { display: flex; gap: 7px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 7px 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.header-login { min-height: 37px; padding: 5px 10px; font-size: 14px; border-color: #8bbcaf7a; }
.header-login:hover, .outline:hover { background: #21493d; border-color: #a0cbbb; }
.primary { color: #103b30; background: var(--mint); border-color: var(--mint); }
.primary:hover { background: #c6f4dc; border-color: #c6f4dc; }
.outline { color: #f0faf3; border-color: #b3d2c689; background: #1b423851; }
.mobile-nav { position: relative; display: none; }
.mobile-nav summary { list-style: none; cursor: pointer; font-size: 14px; white-space: nowrap; padding: 6px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; z-index: 9; right: 0; top: calc(100% + 9px); min-width: 118px; border: 1px solid #53746a; border-radius: 9px; padding: 4px; background: #11342a; }
.mobile-nav a { display: block; padding: 6px 8px; }

.hero { isolation: isolate; position: relative; overflow: hidden; background: #0c2923; color: #f5fcf7; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero::before { z-index: -2; background: url("assets/product-home-port.png") right 58% / cover no-repeat; opacity: .42; }
.hero::after { z-index: -1; background: linear-gradient(90deg,#08221def 5%,#0b2b24df 43%,#0c2e2661 83%), linear-gradient(0deg,#0d2c25 0%,transparent 38%); }
.hero-inner { padding: 41px 0 16px; }
.hero-main { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(21px,4.8vw,67px); align-items: center; min-height: 420px; }
.hero-copy { min-width: 0; }
.hero-copy h1 { font-weight: 750; font-size: clamp(40px, 4.6vw, 67px); letter-spacing: -.065em; line-height: 1.09; }
.hero-copy h1 em { font-style: normal; color: #bcebd6; }
.hero-copy p { color: #d3e9de; margin: 16px 0 0; font-size: 18px; max-width: 390px; min-height: 55px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-console { min-width: 0; align-self: center; width: 100%; min-height: 368px; border: 1px solid #b2d2c5; border-radius: 17px; overflow: hidden; background: #f7fbf8; color: var(--ink); box-shadow: 0 22px 66px #03150f66; }
.console-inner { min-width: 0; padding: 16px; }
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.console-head strong { font-size: 18px; }
.console-head span { color: #527268; font-size: 14px; white-space: nowrap; }
.console-context { color: var(--muted); margin-top: 11px; font-size: 14px; }
.console-metrics { margin-top: 10px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.console-metrics div { background: #fff; border: 1px solid var(--line); border-radius: 9px; display: grid; align-content: center; min-height: 82px; padding: 8px 9px; }
.console-metrics strong { font-size: clamp(15px, 1.6vw, 23px); font-weight: 720; color: #123c31; overflow-wrap: anywhere; }
.console-metrics small { color: var(--muted); font-size: 14px; }
.console-path { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; padding: 0; margin: 15px 0 0; list-style: none; }
.console-path li { display: grid; gap: 4px; align-content: start; min-width: 0; padding-top: 6px; border-top: 3px solid #c4dfd4; color: #5a7168; font-size: 14px; }
.console-path li.done { color: #225d4c; border-top-color: #54aa8e; }
.console-path li.current { color: #074d39; font-weight: 720; border-top-color: #0d785c; }
.console-summary { display: grid; gap: 4px; margin-top: 14px; padding: 9px 10px; border: 1px solid #d8ebe1; border-radius: 9px; background: #ecf6ee; }
.console-summary strong { color: #164c3c; font-size: 15px; }
.console-summary span { color: #486b5e; font-size: 14px; }
.hero-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 7px; }
.hero-scenes { width: min(100%, 665px); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.hero-scenes button { color: #bfdace; background: transparent; border: 0; border-top: 2px solid #6a9b8978; position: relative; padding: 9px 5px 8px; text-align: left; white-space: nowrap; }
.hero-scenes button::before { position: absolute; content: ""; inset: -2px 0 auto; height: 2px; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.hero-scenes button[aria-selected="true"] { color: #effbf4; font-weight: 650; }
.hero-scenes button[aria-selected="true"]::before { transform: scaleX(1); }
.hero.running .hero-scenes button[aria-selected="true"]::before { animation: progress 7.5s linear both; }
.hero-arrows { display: flex; flex: none; align-items: center; gap: 5px; }
.hero-arrows button { min-width: 33px; min-height: 34px; background: #153e31; color: #edfcf4; border: 1px solid #78a79583; border-radius: 7px; }
.hero-arrows button:hover { background: #225642; }
.hero-arrows button:last-child { min-width: 51px; font-size: 14px; }
.scene-enter { animation: scene-enter .48s var(--ease) both; }
.content-enter { animation: content-enter .37s var(--ease) both; }
@keyframes scene-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes content-enter { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.section { padding: 44px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 11px; margin-bottom: 15px; }
.section h2 { font-size: clamp(25px,3vw,35px); line-height: 1.25; letter-spacing: -.026em; }
.section-heading p { margin-top: 4px; color: var(--muted); }
.section-link { color: var(--accent); font-weight: 680; text-underline-offset: 4px; white-space: nowrap; }
.preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 10px 25px #16403209; }
.preview-tabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: #f2f8f4; border-bottom: 1px solid var(--line); padding: 5px 8px 0; }
.preview-tabs button { border: 1px solid transparent; border-radius: 8px 8px 0 0; background: transparent; color: #4d685e; padding: 6px 10px; white-space: nowrap; min-height: 40px; }
.preview-tabs button[aria-selected="true"] { border-color: #d3e5db; border-bottom-color: #fff; background: #fff; color: #08513c; font-weight: 670; box-shadow: inset 0 3px #399f7b; margin-bottom: -1px; }
.preview-tabs button:hover { color: #075941; }
.preview-body { min-width: 0; }
.preview-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,31%); min-height: 315px; }
.preview-list { min-width: 0; }
.preview-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 14px; }
.preview-top h3, .preview-detail h3 { font-size: 18px; line-height: 1.35; }
.preview-top p, .preview-detail p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.capability-steps { margin: 0; padding: 0 14px 0 36px; }
.capability-steps li { border-bottom: 1px solid var(--line); padding: 12px 4px; }
.capability-steps li::marker { color: var(--accent); font-weight: 670; }
.console-inner .capability-steps { padding-left: 25px; }
.preview-top select { border: 1px solid var(--line); padding: 4px 6px; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; }
.record-heading, .record { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,.75fr); gap: 8px; align-items: center; }
.record-heading { background: #f1f6f3; color: var(--muted); font-size: 14px; padding: 7px 14px; }
.record { width: 100%; border: none; border-bottom: 1px solid #eaf2ee; background: #fff; text-align: left; color: var(--ink); min-height: 46px; padding: 6px 14px; font-size: 15px; }
.record:hover, .record[aria-pressed="true"] { background: #edf7f1; }
.record[aria-pressed="true"] { box-shadow: inset 3px 0 #3d9b7d; }
.record span { min-width: 0; overflow-wrap: anywhere; }
.record small, .pill { color: #16634c; background: #e3f1ea; font-size: 13px; border-radius: 5px; padding: 2px 5px; width: fit-content; }
.record small.pending { color: #80501c; background: #fcf2dc; }
.preview-detail { border-left: 1px solid var(--line); padding: 13px; background: #f7faf8; }
.preview-detail dl { display: grid; gap: 6px; margin-top: 10px; font-size: 14px; }
.preview-detail dl div { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 6px; }
.preview-detail dt { color: var(--muted); }
.preview-detail dd { font-weight: 570; }
.detail-next { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.preview-empty { padding: 14px; color: var(--muted); }
.dashboard { display: grid; grid-template-columns: minmax(0,1fr) 228px; }
.dashboard img { display: block; width: 100%; height: auto; }
.dashboard aside { background: #f7faf8; border-left: 1px solid var(--line); padding: 14px; }
.dashboard aside h3 { font-size: 18px; }
.dashboard aside p { font-size: 15px; color: var(--muted); margin: 6px 0 12px; }

.soft-band { background: var(--soft); }
.route-demo, .module, .integration-grid article { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.route-demo { padding: 14px; }
.route-controls { display: flex; gap: 6px; }
.route-controls button { padding: 5px 11px; border: 1px solid var(--line); color: #335d4f; background: #f5faf7; border-radius: 7px; }
.route-controls button[aria-pressed="true"] { border-color: #83bfaa; background: #e1f2e9; color: #07573f; font-weight: 670; }
.route-flow { display: flex; flex-wrap: wrap; padding: 0; margin: 11px 0 6px; gap: 4px 6px; list-style: none; }
.route-flow li { display: flex; align-items: center; gap: 6px; }
.route-flow li:not(:first-child)::before { content: "→"; color: #4a7c6a; }
.route-flow span { padding: 4px 7px; border-radius: 6px; background: #edf6f0; color: #1d5a48; }
.route-note { color: var(--muted); font-size: 14px; }
.module-grid, .integration-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.module, .integration-grid article { padding: 14px; }
.module { text-decoration: none; position: relative; padding-right: 26px; transition: background-color .22s, border-color .22s, transform .22s var(--ease); }
.module:hover { border-color: #88bea9; background: #f6fbf8; transform: translateY(-2px); }
.module span { position: absolute; top: 11px; right: 11px; color: var(--accent); }
.module h3, .integration-grid h3 { font-size: 18px; }
.module p, .integration-grid p { color: var(--muted); margin-top: 4px; font-size: 15px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.chips span { padding: 1px 6px; color: #275d4c; border: 1px solid #dbece4; border-radius: 6px; background: #eaf4ee; font-size: 14px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 14px 17px; border-radius: var(--radius); color: #f3fbf6; background: #123a30; }
.closing h2 { font-size: 23px; }
footer { color: #f5fbf7; background: #0b261f; }
.footer-inner nav { flex-wrap: wrap; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 40px); }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero-main { gap: 14px; }
  .hero-inner { padding-block: 23px 14px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy p { font-size: 16px; }
  .preview-grid { grid-template-columns: minmax(0,1fr) 245px; }
}
@media (max-width: 630px) {
  .wrap { width: calc(100% - 30px); }
  .topbar-inner { min-height: 57px; gap: 5px; }
  .brand { font-size: 16px; gap: 6px; }
  .brand-mark { width: 29px; height: 29px; padding: 6px; }
  .header-login { font-size: 13px; min-height: 34px; padding-inline: 7px; }
  .top-actions { gap: 3px; }
  .hero-main { grid-template-columns: minmax(0,1fr); }
  .hero-copy h1 { font-size: clamp(38px,10.5vw,55px); }
  .hero-copy p { margin-top: 9px; min-height: 0; }
  .hero-actions { margin-top: 12px; }
  .hero-actions .button { min-height: 42px; padding-inline: 10px; }
  .hero-console { min-height: 0; }
  .console-inner { padding: 10px; }
  .console-head { padding-bottom: 6px; }
  .console-metrics { margin-top: 6px; }
  .console-metrics div { padding: 5px; min-height: 52px; }
  .console-metrics small, .console-path li { font-size: 13px; }
  .console-path { margin-top: 8px; }
  .console-summary { margin-top: 7px; }
  .hero-controls { flex-wrap: wrap; gap: 5px; padding-top: 11px; }
  .hero-scenes { gap: 5px; }
  .hero-scenes button { font-size: 14px; padding: 4px 2px; }
  .hero-arrows { margin-left: auto; }
  .hero-arrows button { min-height: 28px; }
  .section { padding: 23px 0; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 4px; }
  .preview-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; padding-inline: 3px; }
  .preview-tabs button { font-size: 14px; padding-inline: 4px; min-height: 34px; }
  .preview-grid, .dashboard { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .preview-detail, .dashboard aside { border-left: 0; border-top: 1px solid var(--line); }
  .record, .record-heading { padding-inline: 7px; gap: 4px; font-size: 14px; }
  .record small { width: auto; }
  .module-grid, .integration-grid { grid-template-columns: minmax(0,1fr); }
  .footer-inner { padding: 8px 0; align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .scene-enter, .content-enter, .hero.running .hero-scenes button[aria-selected="true"]::before { animation: none; }
  .button, .module { transition: none; }
}
