/* ProSoftIP — narwal product page */

/* ---------- hero ---------- */
.nw-hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: flex-end; isolation: isolate; }
.nw-hero-media { position: absolute; inset: 0; z-index: 0; background: var(--ink-0) url("../video/narwal-hero.jpg") center / cover no-repeat; }
.nw-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--d-cinema) var(--ease-out-quart); }
.nw-video.is-ready { opacity: 1; }
html.rm .nw-video { display: none; }
.nw-hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,12,20,.55) 0%, rgba(11,12,20,.15) 35%, rgba(11,12,20,.72) 78%, var(--ink-0) 100%),
  linear-gradient(90deg, rgba(11,12,20,.70) 0%, rgba(11,12,20,.30) 55%, rgba(11,12,20,0) 100%); }
.nw-hero-in { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 72px; }
@media (min-width: 1024px) { .nw-hero-in { padding-top: 120px; padding-bottom: 96px; } }
.nw-hero-copy { max-width: 760px; }
.nw-mark { width: 28px; height: 28px; }
.nw-hl { font-weight: 800; font-size: clamp(44px, 8vw, 96px); line-height: .96; letter-spacing: -.035em; color: var(--paper); margin: 0; }
@media (min-width: 1024px) { .nw-hl { font-size: clamp(64px, 6.2vw, 96px); } }
.nw-hl-line { display: block; }
.nw-hl-accent { color: var(--violet-lt); }
html.js-motion .nw-hero [data-boot], html.js-motion .nw-hl-line { opacity: 0; }
html.rm .nw-hero [data-boot], html.rm .nw-hl-line { opacity: 1 !important; }
.nw-video-toggle { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 50%; background: rgba(11,12,20,.6); backdrop-filter: blur(8px); color: var(--paper); }
.nw-video-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nw-video-toggle .ic-play { display: none; }
.nw-video-toggle[aria-pressed="true"] .ic-play { display: block; }
.nw-video-toggle[aria-pressed="true"] .ic-pause { display: none; }
html.rm .nw-video-toggle, .nw-hero.no-video .nw-video-toggle { display: none; }

/* ---------- 01 recording replay ---------- */
.nw-rec { position: relative; background: var(--ink-1); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.nw-rec-svg { display: block; width: 100%; height: 100%; }
.rec-bg { fill: #0D1020; }
.rec-bar { fill: #141830; }
.rec-dot { fill: var(--rule-strong); }
.rec-url { fill: #0B0C14; }
.rec-url-txt, .rec-txt { fill: #2A2F47; }
.rec-txt-strong { fill: #4A5070; }
.rec-side { fill: #0F1326; }
.rec-h { fill: #3B4062; transition: fill var(--d-fast) var(--ease-out-quart); }
.rec-h.is-hot { fill: var(--violet-lt); }
.rec-chip { fill: #151A33; stroke: var(--rule); }
.rec-card { fill: #121630; stroke: var(--rule); }
.rec-row { fill: var(--rule); }
.rec-btn { fill: #1E1740; stroke: var(--violet); stroke-opacity: .5; transition: fill var(--d-micro) var(--ease-out-quart); }
.rec-btn.is-pressed { fill: var(--violet); }
.rec-mark { fill: rgba(252,71,34,.10); stroke: #FC4722; stroke-width: 2; opacity: 0; }
.rec-box { fill: rgba(252,71,34,.06); stroke: #FC4722; stroke-width: 2; stroke-dasharray: 8 6; opacity: 0; }
.rec-trail { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; opacity: .55; filter: drop-shadow(0 0 6px rgba(0,255,102,.6)); }
.rec-ptr-ring { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: .6; }
.rec-ptr-dot { fill: var(--paper); }
html.rm .rec-mark, html.rm .rec-box { opacity: 1; }
html.rm .rec-box { width: 744px; height: 108px; }
html.rm .rec-trail { display: none; }
.nw-rec-hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(180deg, rgba(13,16,32,0), rgba(13,16,32,.92) 40%); pointer-events: none; }
.nw-wave { display: inline-flex; align-items: center; gap: 2px; height: 22px; flex: none; }
.nw-wave i { display: block; width: 3px; height: 4px; border-radius: 2px; background: var(--signal); opacity: .5; transform-origin: center; }
.nw-wave.is-live i { animation: nw-wave 900ms ease-in-out infinite alternate; opacity: 1; }
.nw-wave.is-live i:nth-child(2n) { animation-duration: 700ms; } .nw-wave.is-live i:nth-child(3n) { animation-duration: 1100ms; } .nw-wave.is-live i:nth-child(5n) { animation-duration: 800ms; }
@keyframes nw-wave { from { transform: scaleY(1); } to { transform: scaleY(4.5); } }
.nw-cap { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: rgba(11,12,20,.8); font-size: 14px; color: var(--paper); opacity: 0; transform: translateY(6px); transition: opacity var(--d-fast) var(--ease-out-quart), transform var(--d-fast) var(--ease-out-quart); }
.nw-cap.is-on { opacity: 1; transform: none; }
html.rm .nw-cap { opacity: 1; transform: none; }
.nw-cap-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-lt); flex: none; }
.nw-cap-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-tc { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--fog); flex: none; }
.nw-tc-dot { width: 8px; height: 8px; border-radius: 50%; background: #FC4722; box-shadow: 0 0 0 3px rgba(252,71,34,.2); }
.nw-rec.is-running .nw-tc-dot { animation: nw-blink 1.2s steps(2, start) infinite; }
@keyframes nw-blink { to { opacity: .25; } }
.nw-replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); transition: color var(--d-micro) var(--ease-out-quart), border-color var(--d-micro) var(--ease-out-quart); }
.nw-replay:hover { color: var(--paper); border-color: var(--violet-lt); }
.nw-replay svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nw-replay-sm { min-height: 28px; padding: 0 10px; font-size: 11px; border-color: transparent; }
.nw-tracks { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 1024px) { .nw-tracks { margin-top: 0; border-left: 1px solid var(--rule-strong); padding-left: 28px; } }
.nw-track .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-lt); }
.nw-track .t { font-weight: 600; font-size: 20px; color: var(--paper); margin-top: 6px; letter-spacing: -.01em; }
.nw-track .d { font-size: 15px; color: var(--fog); margin-top: 6px; max-width: 44ch; }

/* ---------- 02 walkthrough ---------- */
.nw-term .term-bar { gap: 10px; }
.nw-term .term-bar > span:not(.term-dots) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-term-body { min-height: 19em; font-size: 13px; }
@media (max-width: 640px) { .nw-term-body { font-size: 12px; min-height: 24em; } }
html.js-motion .nw-term-body.is-armed { color: transparent; }
.nw-tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.nw-tree li { display: flex; justify-content: space-between; gap: 12px; min-height: 30px; align-items: center; border-bottom: 1px solid var(--rule); }
.nw-tree li:last-child { border-bottom: 0; }
.nw-tree .f { color: var(--paper); white-space: nowrap; }
.nw-tree .c { color: var(--slate); font-family: var(--font-sans); font-size: 13px; text-align: right; }

/* ---------- 03 flow ---------- */
.nw-flow { position: relative; }
.nw-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; position: relative; }
.nw-flow-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); overflow: hidden; }
.nw-flow-line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(180deg, var(--violet), var(--signal)); transform-origin: top; transform: scaleY(0); }
html.rm .nw-flow-line i { transform: none; }
.nw-fs { position: relative; padding-left: 36px; }
.nw-fs-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rule-strong); background: var(--ink-0); transition: border-color var(--d-fast) var(--ease-out-quart), background-color var(--d-fast) var(--ease-out-quart), box-shadow var(--d-fast) var(--ease-out-quart); }
.nw-fs.is-on .nw-fs-dot { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 6px rgba(0,255,102,.12); }
html.rm .nw-fs .nw-fs-dot { border-color: var(--signal); background: var(--signal); }
.nw-fs .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.nw-fs .t { font-weight: 700; font-size: 20px; color: var(--paper); margin-top: 6px; letter-spacing: -.01em; }
.nw-fs .d { font-size: 15px; color: var(--fog); margin-top: 6px; max-width: 32ch; }
.nw-fs.is-on .k { color: var(--violet-lt); }
@media (min-width: 1024px) {
  .nw-flow-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .nw-flow-line { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .nw-flow-line i { background: linear-gradient(90deg, var(--violet), var(--signal)); transform-origin: left; transform: scaleX(0); }
  .nw-fs { padding-left: 0; padding-top: 36px; }
  .nw-fs-dot { top: 0; left: 0; }
}
.nw-ticket { margin-top: 10px; background: var(--ink-1); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 14px; display: grid; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity var(--d-base) var(--ease-out-expo), transform var(--d-base) var(--ease-out-expo), border-color var(--d-base) var(--ease-out-expo); }
.nw-fs.is-on .nw-ticket, html.rm .nw-ticket { opacity: 1; transform: none; }
.nw-fs.is-on .nw-ticket { border-color: var(--rule-strong); }
.nw-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nw-ticket-title { font-weight: 600; font-size: 15px; color: var(--paper); line-height: 1.35; min-height: 2.7em; }
.nw-pr { display: inline-grid; grid-template-columns: 18px 1fr; gap: 6px 10px; align-items: center; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--ink-1); color: var(--paper); font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity var(--d-base) var(--ease-out-expo), transform var(--d-base) var(--ease-out-expo); }
.nw-fs.is-on .nw-pr, html.rm .nw-pr { opacity: 1; transform: none; }
.nw-pr svg { width: 18px; height: 18px; stroke: var(--violet-lt); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nw-pr-state { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.nw-pr-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); transition: background-color var(--d-fast) var(--ease-out-quart); }
.nw-pr-state.is-merged { color: var(--violet-lt); }
.nw-pr-state.is-merged::before { background: var(--violet-lt); }
html.rm .nw-pr-state { color: var(--violet-lt); } html.rm .nw-pr-state::before { background: var(--violet-lt); }

/* ---------- 04 privacy ---------- */
.nw-priv { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .nw-priv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nw-priv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nw-pv { background: var(--ink-0); padding: 28px; }
.nw-pv-ic { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--rule-strong); display: grid; place-items: center; margin-bottom: 18px; }
.nw-pv-ic svg { width: 20px; height: 20px; stroke: var(--signal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nw-pv .t { font-weight: 600; font-size: 19px; color: var(--paper); letter-spacing: -.01em; }
.nw-pv .d { font-size: 15px; color: var(--fog); margin-top: 8px; max-width: 40ch; }
