/* ==========================================================================
   Nayaship home page. Loaded only on "/" (HomeController pageCss).
   Palette and shared components: site.css. Animations stop for
   prefers-reduced-motion (bottom of this file + site.js pauses the SVG).
   ========================================================================== */

.page-home .section { padding: var(--s-8) 0; }
.section__head--center { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--on-dark); }
.eyebrow--light::before { background: var(--coral-lt); }

/* ---------- hero ---------- */

.h-hero {
  position: relative;
  overflow: hidden;
  padding: var(--s-8) 0 calc(var(--s-8) + var(--s-3));
  color: #c6d4e4;
  background:
    radial-gradient(700px 420px at 88% 8%, rgba(253, 123, 89, .18), transparent 62%),
    radial-gradient(800px 520px at 0% 100%, rgba(33, 118, 201, .35), transparent 60%),
    linear-gradient(155deg, #081c33 0%, #0a2342 55%, #0b2a4e 100%);
}
.h-hero::before {   /* dotted chart grid */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
  pointer-events: none;
}
.h-hero::after {    /* soft horizon line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 46, .35));
  pointer-events: none;
}
.h-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }

.h-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: var(--fs-small); font-weight: 600; color: #dce7f3; white-space: nowrap;
}
.h-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-lt); box-shadow: 0 0 0 4px rgba(255, 138, 106, .22); }
.h-hero h1 { margin-bottom: 22px; font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); color: var(--white); text-wrap: initial; }
.h-grad { white-space: nowrap; background: linear-gradient(90deg, #ff8a6a, #ffb39e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero__sub { max-width: 560px; margin-bottom: 34px; font-size: var(--fs-lg); line-height: 1.6; color: #c6d4e4; }
.h-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; font-size: var(--fs-ui); color: #c6d4e4; }
.h-hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.h-hero__ticks svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(158, 197, 236, .16); color: var(--on-dark); }

/* live shipment card */
.h-live { position: relative; padding: 58px 0 62px; }
.h-live__card {
  position: relative; z-index: 1;
  padding: 20px 22px 18px;
  border-radius: 16px; background: var(--white); color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.h-live__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.h-live__label { display: block; font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.h-live__title { display: block; margin-top: 4px; font-size: var(--fs-lg); font-weight: 700; color: var(--ink); letter-spacing: var(--ls-sub); }
.h-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: #fff4e0; color: #9a4f0a; font-size: var(--fs-label); font-weight: 700; white-space: nowrap; }
.h-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: hPulse 1.6s ease-in-out infinite; }

.h-map { display: block; width: 100%; height: auto; border-radius: 10px; background: #f3f7fc; }
.h-port text { font: 600 12px var(--sans); fill: #0b2440; }
.h-port .h-port__code { font: 500 10.5px var(--mono); fill: #64707e; }

.h-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 16px 0 8px; padding: 0; list-style: none; font-size: var(--fs-label); font-weight: 600; color: var(--muted); text-align: center; }
.h-step span { display: block; width: 12px; height: 12px; margin: 0 auto 6px; border: 2px solid #c9d6e5; border-radius: 50%; background: var(--white); }
.h-step--1 span { animation: hStep1 10s linear infinite; }
.h-step--2 span { animation: hStep2 10s linear infinite; }
.h-step--3 span { animation: hStep3 10s linear infinite; }
.h-step--4 span { animation: hStep4 10s linear infinite; }
.h-step--5 span { animation: hStep5 10s linear infinite; }
.h-track { height: 4px; border-radius: 4px; background: #e6edf5; overflow: hidden; }
.h-track__fill { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #1c66ad, #2176c9); animation: hTrack 10s linear infinite; }

.h-live__facts { display: grid; grid-template-columns: 1.35fr .9fr 1.15fr; gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.h-live__facts dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--faint); }
.h-live__facts dd { margin: 3px 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }

.h-toast {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  min-width: 248px; padding: 11px 15px 11px 11px;
  border-radius: 12px; background: var(--white);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45), 0 0 0 1px rgba(11, 36, 64, .05);
  font-size: var(--fs-small); line-height: 1.3; color: var(--text);
  opacity: 0; animation: hToast 10.5s ease-in-out infinite both;
}
.h-toast b { display: block; color: var(--ink); font-size: var(--fs-small); }
.h-toast small { color: var(--muted); }
.h-toast--1 { top: -28px; right: -12px; animation-delay: .6s; }
.h-toast--2 { top: 54%; left: -36px; animation-delay: 4.1s; }
.h-toast--3 { bottom: 0; left: 24px; animation-delay: 7.6s; }
.h-toast__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; font-weight: 700; }
.h-toast__icon svg { width: 18px; height: 18px; }
.h-toast__icon--blue { background: var(--blue-soft); color: var(--accent); }
.h-toast__icon--navy { background: #eef1f4; color: var(--ink); }
.h-toast__icon--gold { background: #fdf1dc; color: #9a4f0a; font-size: var(--fs-ui); }

@keyframes hPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 153, 47, .5); } 50% { box-shadow: 0 0 0 5px rgba(224, 153, 47, 0); } }
@keyframes hTrack { 0% { width: 4%; } 85% { width: 100%; } 100% { width: 100%; } }
@keyframes hToast { 0% { opacity: 0; transform: translateY(10px) scale(.97); } 4%, 28% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes hStep1 { 0%, 100% { background: #2176c9; border-color: #2176c9; } }
@keyframes hStep2 { 0%, 17% { background: #fff; border-color: #c9d6e5; } 18%, 100% { background: #2176c9; border-color: #2176c9; } }
@keyframes hStep3 { 0%, 34% { background: #fff; border-color: #c9d6e5; } 35%, 100% { background: #2176c9; border-color: #2176c9; } }
@keyframes hStep4 { 0%, 67% { background: #fff; border-color: #c9d6e5; } 68%, 100% { background: #2176c9; border-color: #2176c9; } }
@keyframes hStep5 { 0%, 84% { background: #fff; border-color: #c9d6e5; } 85%, 100% { background: #2176c9; border-color: #2176c9; } }

/* ---------- fact strip under the hero ---------- */

.h-strip { position: relative; z-index: 2; margin-top: -64px; }
.h-strip__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden;
}
.h-strip__grid div { padding: 24px 26px; border-left: 1px solid var(--line-soft); }
.h-strip__grid div:first-child { border-left: 0; }
.h-strip__grid dt { font-size: var(--fs-h1); font-weight: 700; letter-spacing: var(--ls-head); color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.h-strip__grid dd { margin: 4px 0 0; font-size: var(--fs-ui); color: var(--muted); }

/* ---------- problem → one record ---------- */

.h-problem { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.h-problem h2 { margin-bottom: 18px; }
.h-problem__fix { padding: 16px 18px; border-left: 3px solid var(--navy); border-radius: 0 var(--r) var(--r) 0; background: var(--blue-soft); color: var(--ink); }
.h-problem__fix b { color: var(--accent); }
.h-merge { display: grid; grid-template-columns: 150px 1fr 170px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fbfdff, var(--paper)); }
.h-merge__tools { display: grid; gap: 14px; }
.h-merge__tools span { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font-size: var(--fs-small); font-weight: 600; color: var(--muted); text-align: center; box-shadow: var(--shadow-sm); text-decoration: line-through; text-decoration-color: rgba(180, 35, 24, .45); }
.h-merge__lines { width: 100%; height: 100%; min-height: 230px; }
.h-merge__lines path { animation: hDash 1.6s linear infinite; }
.h-merge__one { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; border-radius: 14px; background: linear-gradient(135deg, var(--night), var(--night-2)); color: var(--white); text-align: center; box-shadow: var(--shadow); }
.h-merge__one .brand__mark { width: 46px; height: 46px; background: rgba(255, 255, 255, .12); box-shadow: none; }
.h-merge__one b { font-size: var(--fs-lg); color: var(--white); }
.h-merge__one small { font-size: var(--fs-small); color: #9fd9d1; }
@keyframes hDash { to { stroke-dashoffset: -18; } }

/* ---------- product tour ---------- */

.h-tour { background: linear-gradient(180deg, var(--paper), var(--white) 70%); border-top: 1px solid var(--line-soft); }
.h-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: center; gap: 6px; margin: 0 auto 36px; padding: 6px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); }
.h-tab { flex: none; white-space: nowrap; min-height: 42px; padding: 0 18px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: var(--fs-ui); font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.h-tab:hover { color: var(--ink); background: var(--paper); }
.h-tab.is-on { background: var(--navy); color: var(--white); box-shadow: 0 6px 14px -8px rgba(33, 118, 201, .7); }
.h-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
.h-panel + .h-panel { margin-top: 64px; }
.js .h-panel + .h-panel { margin-top: 0; }
.h-panel[hidden] { display: none; }
.h-panel__copy h3 { margin-bottom: 12px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: var(--ls-head); }
.h-panel__copy p { color: var(--text); }
.h-list { list-style: none; margin: 18px 0 0; padding: 0; }
.h-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.h-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--blue-soft); color: var(--accent); }
.h-list--light li { color: #dce7f3; }
.h-list--light svg { background: rgba(158, 197, 236, .16); color: var(--on-dark); }
/* .h-browser moved to site.css: /product, /area and /blog use it too. */

/* ---------- flow ---------- */

.h-flow-section { background: var(--white); }
.h-flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.h-flow::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--navy) 0 40%, var(--line) 40% 100%); background-size: 200% 100%; animation: hFlow 6s linear infinite; }
.h-flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.h-flow__icon { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.h-flow__icon svg { width: 28px; height: 28px; }
.h-flow li:nth-child(odd) .h-flow__icon { color: var(--accent); }
.h-flow b { font-size: var(--fs-ui); color: var(--ink); }
.h-flow small { margin-top: 4px; font-size: var(--fs-small); color: var(--muted); }
@keyframes hFlow { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- facts ---------- */

.h-facts { counter-reset: fact; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.h-facts li { position: relative; padding: 20px 22px 20px 70px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: var(--fs-ui); line-height: 1.55; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.h-facts li:hover { border-color: #b9cde3; box-shadow: var(--shadow); }
.h-facts li::before { counter-increment: fact; content: counter(fact, decimal-leading-zero); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--accent); font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
.h-facts b { color: var(--ink); }

/* ---------- pricing cards (home) ---------- */

.page-home .table-wrap { border-radius: 12px; }

/* ---------- testimonials ---------- */

.h-voices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 370px)); justify-content: center; gap: var(--s-4); }
.h-voice { display: flex; flex-direction: column; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.h-voice__mark { width: 30px; height: 22px; margin-bottom: 14px; color: var(--navy); }
.h-voice blockquote { flex: 1; margin: 0 0 22px; font-size: var(--fs-body); line-height: 1.6; color: var(--ink); }
.h-voice figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.h-voice__avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #2176c9, #0a2342); color: var(--white); font-weight: 700; font-size: var(--fs-ui); }
.h-voice figcaption b { display: block; color: var(--ink); }
.h-voice figcaption small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-small); line-height: 1.4; }

/* ---------- how you start ---------- */

.h-start { counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.h-start li { position: relative; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.h-start li::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--blue-soft); color: var(--accent); font-weight: 700; }
.h-start b { display: block; margin-bottom: 6px; font-size: var(--fs-lg); color: var(--ink); }
.h-start p { margin: 0; font-size: var(--fs-ui); }
.h-limits { margin: 28px 0 0; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 12px; font-size: var(--fs-ui); color: var(--muted); }
.h-limits b { color: var(--ink); }

/* ---------- demo ---------- */

.h-demo {
  padding: var(--s-8) 0;
  color: #c6d4e4;
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(253, 123, 89, .16), transparent 60%),
    linear-gradient(150deg, #081c33, #0a2342 60%, #0b2a4e);
}
.h-demo__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.h-demo h2 { color: var(--white); margin-bottom: 16px; }
.h-demo__copy p { font-size: var(--fs-body); }
.h-demo__mail { margin-top: 22px; font-size: var(--fs-ui) !important; color: #9fb0c3; }
.h-demo__mail a { color: var(--on-dark); }
.h-demo .form-card { border: 0; border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .h-hero__grid, .h-problem, .h-demo__grid, .h-panel { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .h-live { max-width: 620px; padding: 58px 0 62px; }
  .h-toast--2 { left: -8px; }
  .h-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .h-flow::before { display: none; }
  .h-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .h-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-strip__grid div:nth-child(3) { border-left: 0; }
  .h-strip__grid div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .h-facts { grid-template-columns: minmax(0, 1fr); }
  .h-merge { grid-template-columns: 120px 1fr 130px; padding: 18px; }
}

@media (max-width: 640px) {
  .page-home .section, .h-demo { padding: var(--s-7) 0; }
  .h-hero { padding: var(--s-6) 0 calc(var(--s-8) + var(--s-2)); }
  .h-chip { white-space: normal; }
  .h-voices__grid { grid-template-columns: minmax(0, 1fr); }
  .h-hero__cta .btn { width: 100%; }
  .h-live__card { padding: 16px 14px 14px; }
  .h-live__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .h-steps { font-size: var(--fs-label); }
  .h-toast { min-width: 0; max-width: 250px; padding: 9px 12px 9px 9px; }
  .h-live { padding: 54px 0 58px; }
  .h-toast { display: none; }
  .h-toast--3 { left: 0; bottom: 0; }
  .h-strip__grid div { padding: 18px 16px; }
  .h-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
  .h-tab { flex: none; padding: 0 14px; }
  .h-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-start { grid-template-columns: minmax(0, 1fr); }
  .h-facts li { padding: 18px 18px 18px 64px; }
  .h-merge { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .h-merge__tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-merge__lines { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .h-status__dot, .h-track__fill, .h-merge__lines path, .h-flow::before,
  .h-step span, .h-toast { animation: none !important; }
  .h-track__fill { width: 55%; }
  .h-toast { opacity: 1; }
  .h-toast--2, .h-toast--3 { display: none; }
  .h-step--1 span, .h-step--2 span, .h-step--3 span { background: #2176c9; border-color: #2176c9; }
}

/* Book a demo page (demo.php): the dark demo band as the page's hero */
.h-demo h1 { color: var(--white); margin-bottom: 16px; font-size: var(--fs-h1); line-height: var(--lh-h1); }
.h-demo--page { padding-top: var(--s-7); }
.h-panel__copy .link-arrow { display: inline-block; margin-top: 14px; }
.h-voice .h-voice__avatar--icon { background: var(--blue-soft); color: var(--accent); }
.h-voices__grid:has(.h-voice--example) { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
@media (max-width: 860px) { .h-voices__grid:has(.h-voice--example) { grid-template-columns: 1fr; } }
