/* ==========================================================================
   Curizen landing page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
}

.brand { display: inline-flex; flex: none; border-radius: var(--radius-sm); }
.brand img { width: 118px; height: auto; aspect-ratio: 3 / 1; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-left: auto;
}
.site-nav__list { display: flex; align-items: center; gap: var(--sp-1); }
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-pill);
  color: var(--cz-slate-700);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.site-nav__list a:hover { color: var(--text); background: var(--bg-muted); }
.site-nav__list a[aria-current="true"] { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .site-header__inner { gap: var(--sp-4); }
  .site-nav__list a { padding: 0 var(--sp-2); font-size: 0.875rem; }
  .site-nav { gap: var(--sp-3); }
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .lang-switch { margin-left: auto; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 22, 40, 0.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    min-height: 52px;
    padding: 0 var(--sp-2);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .site-nav__list a:hover { background: transparent; }
  .site-nav__cta { min-height: 48px; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); }

.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.caption {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   1 · Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(4rem, 3rem + 4vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(34, 184, 230, 0.10), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--cz-slate-50) 100%);
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 4vw, 5rem);
}

.hero__title { margin-top: var(--sp-5); font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); }
.hero__lead { margin-top: var(--sp-6); max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }

.hero__visual { min-width: 0; }

/* Product preview (decorative, sample data) */
.app-frame {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  font-size: 11px;
  line-height: 1.35;
  user-select: none;
}
.app-frame__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: #0C1524;
  color: #93A2BC;
}
.app-frame__logo { width: 84px; height: auto; margin: 2px 6px 16px; opacity: 0.95; }
.app-frame__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  font-weight: 600;
}
.app-frame__nav .icon { width: 14px; height: 14px; }
.app-frame__nav.is-on { background: rgba(255, 255, 255, 0.08); color: #fff; }

.app-frame__main { min-width: 0; background: #F4F6FA; }
.app-frame__top {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #E2E7EF;
}
.app-frame__crumb { font-size: 13px; font-weight: 700; color: var(--text); }
.app-frame__body { display: grid; gap: 10px; padding: 16px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #E2E7EF;
  min-width: 0;
}
.kpi__k { color: #42506B; font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.kpi__v--risk { color: var(--cz-red-700); }

.mini-panel {
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #E2E7EF;
  overflow: hidden;
  min-width: 0;
}
.mini-panel__t { padding: 10px 12px; border-bottom: 1px solid #EEF1F6; font-weight: 700; }
.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #EEF1F6;
}
.row:last-child { border-bottom: 0; }
.row__i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #EEF1F6;
  color: #42506B;
}
.row__i .icon { width: 14px; height: 14px; }
.row__i--risk { background: var(--cz-red-50); color: var(--cz-red-700); }
.row__txt { display: flex; flex-direction: column; min-width: 0; }
.row__txt b, .row__txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__txt span { color: #77869E; font-size: 10px; }
.row .badge { font-size: 9.5px; min-height: 20px; padding: 1px 8px; }

/* --------------------------------------------------------------------------
   2 · Assets & Vendor Management
   -------------------------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.product__copy .h2 { margin-top: var(--sp-4); }
.product__copy .lead { margin-top: var(--sp-5); max-width: 36rem; }

.product__copy .capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-8);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
}
.capabilities li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.capabilities li > span:last-child { color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
.capabilities b { display: block; margin-bottom: 2px; color: var(--text); font-weight: 650; }
.capabilities__i {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cz-blue-50);
  color: var(--cz-blue-700);
}

.linkage { min-width: 0; }
.linkage__chain {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.linkage__chain::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-6) + var(--sp-4) + 19px);
  top: calc(var(--sp-6) + 36px);
  bottom: calc(var(--sp-6) + 36px);
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--cz-cyan-500) 0 4px, transparent 4px 9px);
  opacity: 0.6;
}
.link-node {
  position: relative;
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}
.link-node__i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  color: var(--cz-slate-700);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.link-node--vendor { background: var(--cz-cyan-50); border-color: var(--cz-cyan-100); }
.link-node--vendor .link-node__i { background: var(--cz-cyan-500); color: var(--cz-navy-950); box-shadow: none; }
.link-node > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.link-node small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.link-node b { font-size: 0.9375rem; font-weight: 650; color: var(--text); }
.linkage .caption { text-align: center; }

/* --------------------------------------------------------------------------
   3 · Token Management (distinct capability within the page)
   -------------------------------------------------------------------------- */
.tm { padding-top: 0; }
.tm__panel {
  padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(34, 184, 230, 0.10), transparent 70%),
    linear-gradient(160deg, #EEF3FF 0%, #F2F8FC 100%);
  border: 1px solid var(--cz-blue-100);
}
.tm__head { max-width: 42rem; }
.tm__head .eyebrow { color: var(--cz-blue-700); }
.tm__head .eyebrow::before { background: var(--cz-blue-600); }
.tm__head .h2 { margin-top: var(--sp-4); }
.tm__head .lead { margin-top: var(--sp-5); }

.tm__paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.tm-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.tm-path::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--path-accent);
}
.tm-path--credits { --path-accent: var(--path-credits); --path-soft: var(--path-credits-soft); --path-text: var(--cz-blue-700); }
.tm-path--tokens { --path-accent: var(--path-tokens); --path-soft: var(--path-tokens-soft); --path-text: var(--path-tokens-text); }
.tm-path__i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-3);
  border-radius: 11px;
  background: var(--path-soft);
  color: var(--path-text);
}
.tm-path__tag {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--path-text);
}
.tm-path .muted { font-size: 0.9375rem; line-height: 1.55; }

.tm__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6) var(--sp-10);
  margin-top: var(--sp-8);
}
.tm__value { max-width: 44rem; color: var(--cz-slate-700); font-size: 1rem; line-height: 1.6; }
.tm__cta { flex: none; min-height: 44px; }
.tm__note {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(41, 98, 255, 0.14);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   4 · Product video
   -------------------------------------------------------------------------- */
#walkthrough { padding-top: 0; }
.video-layout {
  max-width: 980px;
  margin: var(--sp-10) auto 0;
}

.player {
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.player__frame {
  position: relative;
  aspect-ratio: var(--video-ratio, 1920 / 1020);
  background: var(--cz-slate-100);
}
.player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--cz-slate-100);
}
.player.is-enhanced .player__video { cursor: pointer; }

.player__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 40%, rgba(10, 22, 40, 0.16) 100%);
  cursor: pointer;
}
.player__overlay:focus-visible { outline: 3px solid var(--cz-blue-600); outline-offset: -6px; }
.player__big-play {
  display: grid;
  place-items: center;
  width: clamp(56px, 3vw + 44px, 80px);
  height: clamp(56px, 3vw + 44px, 80px);
  border-radius: 50%;
  background: var(--cz-navy-950);
  color: #fff;
  box-shadow: 0 12px 36px rgba(10, 22, 40, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.55);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.player__big-play .icon { fill: currentColor; stroke: none; margin-left: 3px; }
.player__overlay:hover .player__big-play { transform: scale(1.05); background: var(--cz-blue-700); }

.player__message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: rgba(246, 249, 251, 0.96);
  color: var(--text);
  font-weight: 600;
  text-align: center;
}
.player__message > .icon { color: var(--cz-red-700); }

.player__controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 60px;
  padding: var(--sp-2) var(--sp-4);
  border-top: 1px solid var(--line);
  background: #fff;
}
.player__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--cz-slate-700);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.player__btn:hover { background: var(--bg-muted); color: var(--text); }
.player__btn .icon { width: 20px; height: 20px; }
.player__btn--main { width: 44px; height: 44px; background: var(--cz-navy-950); color: #fff; }
.player__btn--main:hover { background: var(--cz-blue-700); color: #fff; }
.player__btn--main .icon { stroke-width: 2.2; }
.player__btn--main use[href="#i-play"] { fill: currentColor; }
.player__time {
  flex: none;
  min-width: 2.6rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--text-2);
  text-align: center;
}

.player__seek {
  --progress: 0%;
  flex: 1;
  min-width: 60px;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.player__seek:disabled { cursor: default; opacity: 0.55; }
.player__seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cz-blue-600) var(--progress), var(--cz-slate-200) var(--progress));
}
.player__seek::-moz-range-track { height: 4px; border-radius: 4px; background: var(--cz-slate-200); }
.player__seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--cz-blue-600); }
.player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cz-blue-600);
  box-shadow: 0 1px 4px rgba(10, 22, 40, 0.3);
}
.player__seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cz-blue-600);
}
.player__seek:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.video-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-6) var(--sp-12);
  align-items: start;
  margin-top: var(--sp-6);
  padding-inline: var(--sp-2);
}
.video-info > p { color: var(--text-2); font-size: 1rem; line-height: 1.6; max-width: 38rem; }
.video-info__meta { display: flex; gap: var(--sp-8); }
.video-info__meta > div { display: flex; flex-direction: column; gap: 2px; }
.video-info__meta dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.video-info__meta dd { font-size: var(--fs-small); font-weight: 650; color: var(--text); white-space: nowrap; }

/* --------------------------------------------------------------------------
   5 · Book an appointment
   -------------------------------------------------------------------------- */
.section--book {
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(34, 184, 230, 0.08), transparent 70%),
    var(--bg-subtle);
  border-top: 1px solid var(--line);
}
.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.book__copy .h2 { margin-top: var(--sp-4); max-width: 16ch; }
.book__copy .lead { margin-top: var(--sp-5); max-width: 28rem; }

.book__form {
  display: grid;
  gap: var(--sp-5);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
}
.form-intro { margin-top: calc(var(--sp-3) * -1); }
.book__submit { width: 100%; margin-top: var(--sp-2); }
.book__submit.is-busy { opacity: 0.7; pointer-events: none; }

.form-status:empty { display: none; }
.form-status {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.form-status:focus { outline: none; }
.form-status .icon { width: 18px; height: 18px; margin-top: 1px; }
.form-status b { display: block; font-weight: 700; }
.form-status--info { background: var(--cz-amber-50); color: #6E460B; border: 1px solid #F1DDB8; }
.form-status--error { background: var(--cz-red-50); color: var(--cz-red-700); border: 1px solid #F2C9C6; }
.form-status--success { background: var(--cz-green-50); color: var(--cz-green-700); border: 1px solid #BFE6D6; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding-block: var(--sp-10); border-top: 1px solid var(--line); }
.site-footer__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-6) var(--sp-12);
  align-items: center;
}
.site-footer__logo { width: 104px; height: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2) var(--sp-6); }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--cz-slate-700);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { grid-column: 1 / -1; padding-top: var(--sp-5); border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__lead { max-width: 36rem; }
  .hero__visual { max-width: 720px; }

  .product { grid-template-columns: minmax(0, 1fr); }
  .linkage { max-width: 560px; }

  .tm__foot { flex-direction: column; align-items: flex-start; }

  .book { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .tm__paths { grid-template-columns: minmax(0, 1fr); }
  .video-info { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .app-frame { grid-template-columns: minmax(0, 1fr); }
  .app-frame__side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product__copy .capabilities { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; }
  .hero__br { display: none; }
  .tm__panel { padding: var(--sp-6); border-radius: var(--radius-xl); }
  .tm-path { padding: var(--sp-6); }
  .linkage__chain { padding: var(--sp-4); }
  .linkage__chain::before { left: calc(var(--sp-4) + var(--sp-4) + 19px); top: calc(var(--sp-4) + 36px); bottom: calc(var(--sp-4) + 36px); }
  .video-info__meta { flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); }
  .player { border-radius: var(--radius-lg); }
  .player__controls { gap: var(--sp-2); padding-inline: var(--sp-3); }
  .player__time { min-width: 2.2rem; }
  .player__btn { width: 36px; height: 36px; }
  .player__btn--main { width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  #player-fullscreen { display: none; }
}
