/* ===== Training ID: redesign ===== */

:root {
  --ink: #0F2A44;
  --navy: #1B4F7E;
  --navy-2: #24639A;
  --green: #4CA648;
  --green-ink: #2F7D33;
  --text: #22364B;
  --muted: #5B6B7F;
  --line: #E3E9F0;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FA;
  --mint: #E9F6EA;
  --sky: #E8F1F9;
  --shadow-lg: 0 30px 60px -20px rgba(15, 42, 68, .28), 0 12px 24px -12px rgba(15, 42, 68, .18);
  --shadow-md: 0 14px 30px -12px rgba(15, 42, 68, .25);
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --body: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--head);
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1.06;
  margin: 0;
}

[lang="hi"] {
  font-family: 'Noto Sans Devanagari', var(--body);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}

.btn-sm {
  padding: 10px 20px;
  font-size: .92rem;
}

.btn-primary {
  background: var(--green-ink);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(47, 125, 51, .7);
}

.btn-primary:hover {
  background: #276c2b;
  transform: translateY(-1px);
}

/* ===== Nav ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(15, 42, 68, .5);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1;
  transition: background-color 0.2s, color 0.2s;
}

.nav-toggle:hover {
  background: var(--bg-soft);
  color: var(--green-ink);
}

.nav-btn-mobile {
  display: none;
}

/* ===== Eyebrow / lead ===== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--green-ink);
  background: var(--mint);
  border: 1px solid #cfe9d1;
  border-radius: 999px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(76, 166, 72, .6);
  animation: ping 2.4s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(76, 166, 72, .55); }
  70% { box-shadow: 0 0 0 9px rgba(76, 166, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 166, 72, 0); }
}

.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 540px;
  margin: 22px 0 0;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 900px;
  height: 900px;
  background:
    radial-gradient(closest-side, rgba(36, 99, 154, .12), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(76, 166, 72, .12), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.grad {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 35%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 26px 0 0;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}

.proof li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof i {
  color: var(--green-ink);
}

/* Hero entrance */
[data-hero] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s var(--ease) forwards;
}

[data-hero="1"] { animation-delay: .05s; }
[data-hero="2"] { animation-delay: .15s; }
[data-hero="3"] { animation-delay: .3s; }
[data-hero="4"] { animation-delay: .42s; }
[data-hero="5"] { animation-delay: .52s; }
[data-hero="6"] { animation-delay: .62s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ===== Hero stage ===== */

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
  max-width: 600px;
  justify-self: center;
}

.stage-inner {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit {
  transform-origin: 300px 300px;
}

.orbit-a { animation: spin 90s linear infinite; }
.orbit-b { animation: spin 60s linear infinite reverse; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.links path {
  stroke: url(#linkGrad);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease) forwards;
  animation-delay: .5s;
}

.links path:nth-child(2) { animation-delay: .6s; }
.links path:nth-child(3) { animation-delay: .7s; }
.links path:nth-child(4) { animation-delay: .8s; }
.links path:nth-child(5) { animation-delay: .9s; }
.links path:nth-child(6) { animation-delay: 1s; }
.links path:nth-child(7) { animation-delay: 1.1s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.pulses path {
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: .05 .95;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: flow 3.2s linear infinite, fadeIn .6s 2s forwards;
}

.pulses path:nth-child(2) { animation-delay: .6s, 2.1s; }
.pulses path:nth-child(3) { animation-delay: 1.3s, 2.2s; }
.pulses path:nth-child(4) { animation-delay: 2s, 2.3s; }
.pulses path:nth-child(5) { animation-delay: .9s, 2.4s; }
.pulses path:nth-child(6) { animation-delay: 2.5s, 2.5s; }
.pulses path:nth-child(7) { animation-delay: 1.7s, 2.6s; }

@keyframes flow {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop .7s var(--ease) forwards, bob 6s ease-in-out infinite;
  animation-delay: calc(.4s + var(--d) * .25), var(--d);
}

.node circle {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.5;
  filter: drop-shadow(0 6px 10px rgba(15, 42, 68, .14));
}

.node text {
  font: 700 13px var(--head);
  fill: var(--navy);
  text-anchor: middle;
  letter-spacing: .04em;
}

@keyframes pop {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

/* Phone */
.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  aspect-ratio: 9 / 18.6;
  transform: translate(-50%, -50%);
  padding: 2.2%;
  border-radius: 13% / 6.3%;
  background: linear-gradient(145deg, #1d2f44, #0b1726);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  opacity: 0;
  animation: phoneIn 1.1s .2s var(--ease) forwards;
  container-type: inline-size;
}

@keyframes phoneIn {
  from { opacity: 0; transform: translate(-50%, -44%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 11% / 5.4%;
  background: var(--bg-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 4.3cqw;
  color: var(--text);
}

.qr-wrap {
  position: relative;
  flex: none;
  width: 22cqw;
  height: 22cqw;
  padding: 1.6cqw;
  border-radius: 2.6cqw;
  background: #fff;
  overflow: hidden;
}

.qr {
  width: 100%;
  height: 100%;
}

.qr rect {
  fill: var(--ink);
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(76, 166, 72, 0), rgba(76, 166, 72, .55));
  border-bottom: 2px solid var(--green);
  transform: translateY(-110%);
}

.phone.scan-on .scan {
  animation: scan 5s .3s var(--ease) infinite;
}

@keyframes scan {
  0% { transform: translateY(-110%); }
  25% { transform: translateY(470%); }
  32%, 100% { transform: translateY(470%); opacity: 0; }
}

.qr-ok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(47, 125, 51, .92);
  opacity: 0;
}

.phone.scan-on .qr-ok {
  animation: okFlash 5s .3s infinite;
}

.qr-ok svg {
  width: 70%;
  height: 70%;
}

.tick {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.phone.scan-on .qr-ok .tick {
  animation: tickLoop 5s .3s infinite;
}

@keyframes okFlash {
  0%, 26% { opacity: 0; }
  30%, 62% { opacity: 1; }
  68%, 100% { opacity: 0; }
}

@keyframes tickLoop {
  0%, 29% { stroke-dashoffset: 1; }
  38%, 100% { stroke-dashoffset: 0; }
}

/* Floating cards */
.float {
  position: absolute;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(227, 233, 240, .9);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
}

.float-chat {
  right: -7%;
  top: 44%;
  width: 40%;
  max-width: 250px;
  padding: 14px 16px 15px;
  animation: floatIn .9s 1.1s var(--ease) forwards, drift 7s 2s ease-in-out infinite;
}

.float-verify {
  left: -1%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  animation: floatIn .9s 1.35s var(--ease) forwards, drift 8s 2.4s ease-in-out infinite reverse;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.fc-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-head b {
  display: block;
  font-size: .9rem;
  color: var(--ink);
  line-height: 1.2;
}

.fc-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .74rem;
  color: var(--green-ink);
  font-weight: 600;
  transition: opacity .25s;
}

.fc-av,
.msg-av {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
}

.fc-av {
  width: 34px;
  height: 34px;
  font-size: .78rem;
}

.fc-msg {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 4px 14px 14px 14px;
  background: var(--bg-soft);
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text);
  min-height: 3.2em;
  transition: opacity .3s, filter .3s;
}

.swapping {
  opacity: 0 !important;
  filter: blur(4px);
}

.fv-ic {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-ink);
}

.fv-ic svg {
  width: 26px;
  height: 26px;
}

.fv-ic path:first-child {
  fill: none;
  stroke: rgba(255, 255, 255, .5);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.fv-ic .tick {
  animation: draw .8s 2.1s var(--ease) forwards;
}

.float-verify b {
  display: block;
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.25;
}

.float-verify .st-text span {
  font-size: .78rem;
  color: var(--muted);
}

.av-en { background: #1B4F7E; }
.av-pl { background: #C2410C; }
.av-ro { background: #6D28D9; }
.av-hi { background: #B45309; }
.av-uk { background: #0E7490; }

/* ===== Hero headline rotation ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.h1-fixed {
  display: block;
}

.rotator {
  display: grid;
  margin-top: .04em;
}

.phrase {
  grid-area: 1 / 1;
  color: var(--navy);
  visibility: hidden;
}

.phrase.is-on {
  visibility: visible;
}

.phrase .w {
  display: inline-block;
  white-space: pre;
}

.phrase.is-on .w {
  animation: wordIn .7s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
}

.phrase.is-out {
  visibility: visible;
}

.phrase.is-out .w {
  animation: wordOut .38s ease-in both;
  animation-delay: calc(var(--i) * 20ms);
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(.45em); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes wordOut {
  to { opacity: 0; transform: translateY(-.35em); filter: blur(4px); }
}

/* Green underline that draws under the phrase in view */
.phrase .u {
  background: linear-gradient(var(--green), var(--green)) no-repeat 0 92% / 0% .09em;
  transition: background-size .9s .25s var(--ease);
}

.phrase.is-on .u {
  background-size: 100% .09em;
}

.phrase.final {
  color: var(--ink);
}

.phrase.final em {
  font-style: normal;
  color: var(--green-ink);
}

/* Progress dots under the headline */
.rot-dots {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.rot-dots i {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}

.rot-dots i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}

.rot-dots i.done::after {
  transform: scaleX(1);
}

.rot-dots i.run::after {
  animation: chipBar var(--step, 3s) linear forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
  min-height: 52px;
}

.btn-ghost {
  color: var(--navy);
  background: #fff;
  border: 1.5px solid #cdd8e4;
}

.btn-ghost:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.invite-line {
  margin: 20px 0 0;
  font-size: .92rem;
  color: var(--muted);
}

.invite-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.invite-line a:hover {
  text-decoration: underline;
}

/* ===== Phone screens ===== */

.screens {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(6%);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}

.phone[data-screen="wallet"] .sc-wallet,
.phone[data-screen="feed"] .sc-feed,
.phone[data-screen="chat"] .sc-chat {
  opacity: 1;
  transform: none;
}

/* ---- App look: matches the Training ID app (Poppins, #124773, #EEF3FF) ---- */

.phone-screen {
  --app: #124773;
  --app-bg: #EEF3FF;
  --app-ink: #0f172a;
  --app-text: #475569;
  --app-muted: #64748b;
  --app-line: #e2e8f0;
  background: var(--app-bg);
  font-family: 'Poppins', Verdana, sans-serif;
  color: var(--app-ink);
}

.ap-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.6cqw 6.5cqw 2.4cqw;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 3.6cqw;
}

.ap-notch {
  width: 26cqw;
  height: 6.6cqw;
  border-radius: 99px;
  background: #111;
}

.ap-icons {
  display: flex;
  gap: 1.4cqw;
  font-size: 3cqw;
}

.ap-bar {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 13cqw;
  background: #fff;
}

.ap-title {
  font-size: 4.9cqw;
  font-weight: 500;
  color: #686868;
  letter-spacing: .25cqw;
}

.ap-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 3.4cqw 3.4cqw 0;
}

.ap-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 3.1cqw;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .08);
  padding: 3.6cqw;
}

.ap-card + .ap-card {
  margin-top: 3cqw;
}

.ap-id {
  display: flex;
  align-items: center;
  gap: 3cqw;
}

.ap-av {
  flex: none;
  width: 13cqw;
  height: 13cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3ebf4;
  color: var(--app);
  font-weight: 600;
  font-size: 4.2cqw;
}

.ap-id b {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  font-size: 4cqw;
  font-weight: 700;
}

.ap-id b i {
  color: var(--app);
  font-size: 3.6cqw;
}

.ap-id span {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  font-size: 3cqw;
  color: var(--app-text);
}

.ap-id span i {
  color: var(--app-muted);
}

.dw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.6cqw;
}

.dw-head b {
  display: block;
  font-size: 4cqw;
  font-weight: 700;
}

.dw-head span {
  font-size: 3cqw;
  color: var(--app-muted);
}

.dw-head > i {
  color: var(--app-muted);
  font-size: 3.4cqw;
}

.doc {
  border: 1px solid var(--app-line);
  border-radius: 2cqw;
  padding: 3cqw 3.4cqw;
}

.doc + .doc {
  margin-top: 2.4cqw;
}

.doc-title {
  display: block;
  font-size: 3.7cqw;
  font-weight: 700;
  line-height: 1.3;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4cqw;
  margin-top: 1.4cqw;
}

.pill {
  padding: .4cqw 2.4cqw;
  border-radius: 99px;
  font-size: 2.7cqw;
  font-weight: 600;
  line-height: 1.6;
}

.is-live { background: #ecfdf5; color: #047857; }
.is-warn { background: #fef3c7; color: #92400e; }
.is-muted { background: #f1f5f9; color: #475569; }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8cqw 3.6cqw;
  margin-top: 1.8cqw;
  font-size: 2.8cqw;
  color: var(--app-text);
}

.doc-meta i {
  margin-right: 1.2cqw;
  color: var(--app-muted);
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  margin-top: 2.6cqw;
  padding: 1.6cqw 3.6cqw;
  border-radius: 2cqw;
  background: var(--app);
  color: #fff;
  font-size: 3cqw;
  font-weight: 600;
}

.phone.drop .doc-new {
  animation: docDrop 1s .35s var(--ease) both;
}

@keyframes docDrop {
  0% { opacity: 0; transform: translateY(-8cqw) scale(.96); box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
  60% { opacity: 1; transform: none; box-shadow: 0 0 0 1.4cqw rgba(4, 120, 87, .18); }
  100% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}

/* QR verification sheet */
.ap-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0);
  pointer-events: none;
  transition: background .4s;
}

.ap-sheet {
  width: 100%;
  padding: 4.6cqw 5cqw 7cqw;
  background: #fff;
  border-radius: 5cqw 5cqw 0 0;
  transform: translateY(105%);
  transition: transform .6s var(--ease);
  text-align: center;
}

.phone.scan-on .ap-modal {
  background: rgba(15, 23, 42, .45);
}

.phone.scan-on .ap-sheet {
  transform: none;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 3.9cqw;
}

.sheet-head i {
  color: var(--app-muted);
}

.ap-sheet p {
  margin: 2.4cqw 0 3.4cqw;
  font-size: 3cqw;
  line-height: 1.45;
  color: var(--app-text);
  text-align: left;
}

.qr-frame {
  position: relative;
  width: 44cqw;
  height: 44cqw;
  margin: 0 auto;
  padding: 3cqw;
}

.qr-frame .qr-wrap {
  width: 100%;
  height: 100%;
  border-radius: 1.4cqw;
}

.cn {
  position: absolute;
  width: 8cqw;
  height: 8cqw;
  border: .9cqw solid var(--app);
}

.cn-a { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 2cqw; }
.cn-b { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 2cqw; }
.cn-c { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 2cqw; }
.cn-d { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 2cqw; }

/* News feed */
.ap-seg {
  flex: none;
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--app-line);
}

.ap-seg span {
  flex: 1;
  text-align: center;
  padding: 2.6cqw 0;
  font-size: 3.4cqw;
  font-weight: 600;
  color: var(--app-muted);
}

.ap-seg .on {
  color: #222428;
  box-shadow: inset 0 -.6cqw 0 #222428;
}

.post-card {
  background: #fff;
  border-radius: 3.1cqw;
  box-shadow: 0 1cqw 4cqw rgba(0, 0, 0, .08);
  padding: 3.6cqw;
}

.pc-head {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
}

.pc-logo {
  flex: none;
  width: 10.5cqw;
  height: 10.5cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #124773;
  color: #fff;
  font-weight: 700;
  font-size: 4cqw;
}

.pc-who {
  flex: 1;
  min-width: 0;
}

.pc-who b {
  display: block;
  font-size: 3.4cqw;
  font-weight: 700;
  color: #222428;
  line-height: 1.25;
}

.pc-who span {
  font-size: 2.7cqw;
  color: #92949c;
}

.pc-chat {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.4cqw 2.6cqw;
  border: 1px solid var(--app);
  border-radius: 2cqw;
  color: var(--app);
  font-size: 2.8cqw;
  font-weight: 600;
}

.pc-title {
  display: block;
  margin-top: 3cqw;
  font-size: 3.6cqw;
  font-weight: 700;
  color: #222428;
  line-height: 1.3;
}

.pc-desc {
  margin: 1.4cqw 0 2.6cqw;
  font-size: 3cqw;
  line-height: 1.5;
  color: var(--app-text);
}

.pc-desc span {
  color: var(--app);
  font-weight: 600;
}

.pc-img {
  border-radius: 2cqw;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.pc-img svg {
  width: 100%;
  height: 34cqw;
}

.pc-actions {
  display: flex;
  align-items: center;
  gap: 4cqw;
  margin-top: 2.6cqw;
  font-size: 3cqw;
  font-weight: 600;
  color: #92949c;
}

.pc-actions i {
  margin-right: 1.2cqw;
}

.pc-likes {
  margin-left: auto;
  width: 5.6cqw;
  height: 5.6cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--app);
  color: #fff;
  font-size: 2.6cqw;
}

.pc-likes i {
  margin: 0;
}

/* Chat room */
.cr-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  height: 13cqw;
  padding: 0 3.4cqw;
  background: #fff;
  border-bottom: 1px solid #ddd;
  color: #1e293b;
}

.cr-head > i {
  color: #5f6368;
  font-size: 3.6cqw;
}

.cr-av {
  width: 8.6cqw;
  height: 8.6cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3ebf4;
  color: var(--app);
  font-size: 3.4cqw;
}

.cr-head b {
  font-size: 3.6cqw;
  font-weight: 600;
}

.cr-head .cr-more {
  margin-left: auto;
}

.cr-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 3cqw 3.4cqw;
  background-color: #f1f5f9;
  background-image: radial-gradient(rgba(18, 71, 115, .06) 1px, transparent 1.2px);
  background-size: 4.4cqw 4.4cqw;
  overflow: hidden;
}

.cr-date {
  align-self: center;
  padding: 1.2cqw 3.4cqw;
  border-radius: 2cqw;
  background: #fff;
  color: #54656f;
  font-size: 2.8cqw;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(11, 20, 26, .12);
}

.bub {
  max-width: 84%;
  padding: 1.6cqw 2.6cqw 1.8cqw;
  border-radius: 1.9cqw;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  font-size: 3.2cqw;
  line-height: 1.45;
  color: #111b21;
}

.bub.in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 0;
}

.bub.out {
  align-self: flex-end;
  background: #e3ebf4;
  border-top-right-radius: 0;
}

.bub-name {
  display: block;
  font-size: 2.9cqw;
  font-weight: 600;
  color: var(--app);
}

.bub-tr {
  display: flex;
  gap: 2cqw;
  margin-top: 1cqw;
  font-size: 2.6cqw;
  color: #667781;
}

.bub-tr u {
  text-decoration: none;
  font-weight: 600;
  color: var(--app);
}

.bub-time {
  display: block;
  text-align: right;
  font-size: 2.4cqw;
  color: #667781;
}

.bub-time i {
  margin-left: .8cqw;
  color: #53bdeb;
}

.phone[data-screen="chat"] .bub {
  animation: rise .5s var(--ease) both;
}

.phone[data-screen="chat"] .bub:nth-of-type(2) { animation-delay: .35s; }
.phone[data-screen="chat"] .bub:nth-of-type(3) { animation-delay: .8s; }

.cr-input {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 2cqw 2.8cqw 5cqw;
  background: #f1f5f9;
}

.cr-cap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  height: 10.5cqw;
  padding: 0 3.4cqw;
  border-radius: 6cqw;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 20, 26, .08);
  font-size: 3.2cqw;
  color: #8696a0;
}

.cr-cap i {
  color: #54656f;
}

.cr-send {
  flex: none;
  width: 10.5cqw;
  height: 10.5cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--app);
  color: #fff;
  font-size: 3.8cqw;
}

/* Bottom tab bar */
.ap-tabs {
  flex: none;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--app-line);
  padding-bottom: 4cqw;
}

.ap-tabs span {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8cqw;
  padding: 2.4cqw 0 1cqw;
  font-size: 2.5cqw;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.ap-tabs i {
  font-size: 4.6cqw;
}

.phone[data-screen="wallet"] [data-tab="wallet"],
.phone[data-screen="feed"] [data-tab="feed"] {
  color: var(--app);
  font-weight: 700;
}

.phone[data-screen="wallet"] [data-tab="wallet"]::before,
.phone[data-screen="feed"] [data-tab="feed"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8cqw;
  height: .8cqw;
  transform: translateX(-50%);
  border-radius: 0 0 .8cqw .8cqw;
  background: var(--app);
}

.phone[data-screen="chat"] .ap-tabs {
  display: none;
}

/* Notification banner */
.ps-notif {
  position: absolute;
  z-index: 5;
  top: 12cqw;
  left: 3.4cqw;
  right: 3.4cqw;
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  padding: 2.8cqw 3.4cqw;
  border-radius: 4.6cqw;
  background: rgba(245, 247, 250, .97);
  box-shadow: 0 4cqw 8cqw -3cqw rgba(15, 42, 68, .45);
  opacity: 0;
  transform: translateY(-130%);
  transition: opacity .4s, transform .6s var(--ease);
}

.phone.notif .ps-notif {
  opacity: 1;
  transform: none;
}

.pn-ic {
  flex: none;
  width: 8.6cqw;
  height: 8.6cqw;
  display: grid;
  place-items: center;
  border-radius: 2.2cqw;
  background: var(--app);
  color: #fff;
  font-size: 3.6cqw;
}

.ps-notif div {
  flex: 1;
  min-width: 0;
}

.ps-notif b {
  display: block;
  font-size: 3.1cqw;
}

.ps-notif span {
  display: block;
  font-size: 2.8cqw;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-notif em {
  align-self: flex-start;
  font-style: normal;
  font-size: 2.5cqw;
  color: #8a94a3;
}

/* Status card icons */
.fv-ic {
  position: relative;
  color: #fff;
  font-size: 1.05rem;
}

.st-i {
  position: absolute;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .4s var(--ease);
}

.float-verify[data-kind="cert"] .st-cert,
.float-verify[data-kind="feed"] .st-feed,
.float-verify[data-kind="chat"] .st-chat,
.float-verify[data-kind="verify"] .st-verify {
  opacity: 1;
  transform: none;
}

.st-text {
  transition: opacity .25s;
}

.st-text.swapping {
  filter: none;
}

/* Hide the floating chat card while the phone itself shows the chat */
.float-chat {
  transition: filter .4s;
}

.hero-stage.hide-chat .float-chat {
  filter: opacity(0);
}

/* ===== Marquee ===== */

.marquee {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.mq-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 26px;
  white-space: nowrap;
  font: 700 1.35rem var(--head);
  color: var(--ink);
  letter-spacing: -.01em;
}

.mq-item small {
  font: 500 .76rem var(--body);
  color: var(--muted);
  letter-spacing: 0;
}

.mq-item::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 26px;
  align-self: center;
  border-radius: 50%;
  background: var(--green);
  opacity: .55;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Chat section ===== */

.chat-sec {
  position: relative;
  padding: 120px 0 130px;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(36, 99, 154, .45), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(76, 166, 72, .18), transparent 70%),
    var(--ink);
  color: #C9D6E3;
  overflow: hidden;
}

.chat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wave {
  fill: none;
  stroke-width: 1.3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease);
}

.w1 { stroke: rgba(76, 166, 72, .35); }
.w2 { stroke: rgba(255, 255, 255, .1); transition-delay: .25s; }
.w3 { stroke: rgba(255, 255, 255, .08); transition-delay: .5s; }

.chat-sec.in .wave {
  stroke-dashoffset: 0;
}

.chat-grid {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.chat-sec h2 {
  color: #fff;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
}

.chat-sec .lead {
  color: #B4C3D3;
}

.eyebrow-dark {
  color: #9BE09A;
  background: rgba(76, 166, 72, .12);
  border-color: rgba(76, 166, 72, .3);
}

.stat {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.stat-num {
  font: 800 4.4rem/1 var(--head);
  letter-spacing: -.04em;
  background: linear-gradient(120deg, #fff 20%, #9BE09A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  max-width: 230px;
  font-size: .98rem;
  color: #C9D6E3;
  line-height: 1.45;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 20px;
}

.ticks li {
  display: flex;
  gap: 14px;
}

.tk {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #9BE09A;
  font-size: .9rem;
}

.ticks b {
  display: block;
  color: #fff;
  font-weight: 600;
}

.ticks span {
  font-size: .94rem;
  color: #A9B9CA;
}

/* Chat window */
.chat-win {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
  color: var(--text);
}

.cw-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.cw-head b {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.cw-head span {
  font-size: .82rem;
  color: var(--muted);
}

.cw-av {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #FFF3DC;
  color: #B7791F;
}

.cw-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-ink) !important;
  font-weight: 600;
  font-size: .76rem !important;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2s infinite;
}

.cw-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(#fbfcfd, #f4f7fa);
  min-height: 470px;
}

.msg {
  display: flex;
  gap: 10px;
  max-width: 92%;
}


.msg.enter {
  opacity: 0;
  transform: translateY(12px);
}


.msg-av {
  width: 32px;
  height: 32px;
  font-size: .72rem;
  margin-top: 2px;
}

.msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 4px;
  font-size: .78rem;
}

.msg-meta b {
  color: var(--ink);
  font-size: .84rem;
}

.msg-meta .role {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-ink);
  font-weight: 600;
  transition: opacity .25s;
}

.tag.orig {
  color: var(--muted);
}

.bubble {
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text);
  transition: opacity .28s, filter .28s;
}

.msg.mine {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg.mine .msg-meta {
  justify-content: flex-end;
}

.msg.mine .bubble {
  border-radius: 16px 4px 16px 16px;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb0c2;
  animation: dot 1s infinite;
}

.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

@keyframes dot {
  0%, 60%, 100% { transform: none; opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}


/* ===== Scroll reveal ===== */

.reveal,
.reveal-up,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal-up {
  transform: translateY(60px) scale(.98);
}

.reveal.in,
.reveal-up.in,
.reveal-stagger.in > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.in > :nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > :nth-child(3) { transition-delay: .24s; }









/* ===== Responsive ===== */

@media (max-width: 980px) {
  .hero {
    padding-top: 36px;
  }

  .hero-grid,
  .chat-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    max-width: 520px;
    margin-top: 12px;
  }

  .chat-grid {
    gap: 48px;
  }

  .chat-sec {
    padding: 88px 0 96px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    gap: 14px;
    height: 64px;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a[href="#chat"] {
    display: none;
  }

  .btn-sm {
    padding: 9px 15px;
    font-size: .86rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  .cta-row .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-stage {
    width: calc(100% + 16px);
    margin-left: -8px;
  }

  .float-chat {
    width: 52%;
    right: 0;
    top: 44%;
    padding: 10px 12px 12px;
  }

  .fc-lang {
    font-size: .68rem;
  }

  .fc-msg {
    font-size: .8rem;
    padding: 8px 10px;
  }

  .fc-av {
    width: 28px;
    height: 28px;
    font-size: .68rem;
  }

  .float-verify {
    left: 0;
    bottom: 8%;
    padding: 9px 14px 9px 9px;
  }

  .fv-ic {
    width: 34px;
    height: 34px;
  }

  .float-verify .st-text span {
    display: none;
  }

  .mq-item {
    font-size: 1.1rem;
    padding: 0 18px;
  }

  .stat-num {
    font-size: 3.6rem;
  }

  .cw-body {
    padding: 16px 14px;
    min-height: 0;
  }

  .cw-live {
    display: none !important;
  }

  .msg {
    max-width: 100%;
  }

  .bubble {
    font-size: .9rem;
  }

}

/* ===== Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }

  .pulses,
  .scan,
  .qr-ok,
  .typing {
    display: none !important;
  }

  .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    row-gap: 10px;
  }
}

.rot-dots {
  transition: opacity .6s 1.2s;
}

.rot-dots.complete {
  opacity: 0;
}

.invite-line span {
  display: block;
  margin-bottom: 6px;
}

.invite-line a:first-of-type {
  margin-left: 0;
}

.invite-line a + a {
  margin-left: 18px;
}

.hero .proof {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 32px;
}

@media (max-width: 640px) {
  .float-chat {
    display: none;
  }
}

/* ===== Chat section: one screen, live translation ===== */

@keyframes chipBar {
  to { transform: scaleX(1); }
}

.chat-sec {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vh, 56px) 0;
}

.chat-sec h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
}

.chat-sec .lead {
  font-size: 1.04rem;
  margin-top: 16px;
}

.chat-sec .stat {
  margin-top: 24px;
}

.chat-sec .stat-num {
  font-size: 3.6rem;
}

.chat-sec .ticks {
  margin-top: 24px;
  gap: 14px;
}

.chat-sec .ticks span {
  font-size: .9rem;
}

.chat-sec .eyebrow {
  margin-bottom: 16px;
}

.chat-win {
  display: flex;
  flex-direction: column;
}

.cw-body {
  min-height: 0;
  height: clamp(380px, calc(100vh - 330px), 560px);
  height: clamp(380px, calc(100svh - 330px), 560px);
  gap: 10px;
  padding: 16px 18px;
  overflow: hidden;
  justify-content: flex-start;
}

.msg {
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.msg-main {
  min-width: 0;
}

.msg-meta {
  margin-bottom: 3px;
}

.bubble {
  padding: 8px 13px;
  font-size: .93rem;
  line-height: 1.45;
  transition: background .4s, border-color .4s;
}

.bubble.morphing {
  background: #F2FAF2;
  border-color: #cfe9d1;
}

.bubble .scr {
  color: #2F7D33;
  opacity: .75;
}

.tr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin: 3px 0 0 2px;
  font-size: .76rem;
}

.tr-row .tag {
  color: #667781;
  font-weight: 500;
}

.tr-row .tag.working {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-ink);
  font-weight: 600;
}

.tr-row .tag.working::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(47, 125, 51, .25);
  border-top-color: var(--green-ink);
  animation: spin .8s linear infinite;
}

.tr-row .tag.orig {
  color: #8796a8;
}

.show-orig {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: 600 .76rem var(--body);
  color: var(--navy);
  cursor: pointer;
}

.show-orig:hover {
  text-decoration: underline;
}

.typing-row .typing {
  margin-top: 2px;
}






@media (max-width: 980px) {
  .chat-sec {
    min-height: 0;
    padding: 72px 0 80px;
  }
}

@media (max-width: 640px) {
  .cw-body {
    height: 480px;
  }

}

/* Older messages fade out at the top as the chat scrolls */
.cw-body {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 64px;
  }
}






/* Chat window spans exactly the heading-to-last-line height of the left column */
.chat-grid {
  align-items: stretch;
}

.chat-demo {
  position: relative;
  min-height: 0;
}

.chat-demo .chat-win {
  position: absolute;
  inset: 0;
}

.chat-demo .cw-body {
  flex: 1;
  height: auto;
  transition: opacity .5s;
}

.cw-body.clearing {
  opacity: 0;
}

@media (max-width: 980px) {
  .chat-demo .chat-win {
    position: static;
  }

  .chat-demo .cw-body {
    flex: none;
    height: 480px;
  }
}

/* =====================================================================
   Phase 2 sections
   ===================================================================== */

.sec {
  position: relative;
  padding: 112px 0;
}

.sec-soft {
  background: var(--bg-soft);
}

.sec-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.sec-head .eyebrow {
  margin-bottom: 18px;
}

.sec h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
}

.sec-head .lead {
  margin: 18px auto 0;
  max-width: 620px;
}

/* ---------- How it works ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.steps-line {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 36px;
  height: 4px;
  pointer-events: none;
}

.steps-line svg {
  width: 100%;
  height: 4px;
  overflow: visible;
}

.steps-line .track {
  stroke: var(--line);
  stroke-width: 3;
  stroke-dasharray: .4 1.2;
  stroke-linecap: round;
}

.steps-line .fill {
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--line-off, 1);
}

.step {
  position: relative;
  text-align: center;
}

.step-ic {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--navy);
  font-size: 1.5rem;
  transition: background .5s, color .5s, border-color .5s, transform .5s var(--ease);
}

.step.lit .step-ic {
  background: var(--green-ink);
  border-color: var(--green-ink);
  color: #fff;
  transform: translateY(-4px);
}

.step-num {
  display: block;
  font: 700 .78rem var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 8px;
}

.step h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.step p {
  margin: 0 auto;
  max-width: 250px;
  font-size: .95rem;
  color: var(--muted);
}

.steps-note {
  margin: 56px auto 0;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -20px rgba(15, 42, 68, .35);
}

.steps-note .sn-ic {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green-ink);
  font-size: 1.15rem;
}

.steps-note p {
  margin: 0;
  color: var(--text);
}

.steps-note b {
  color: var(--ink);
}

/* ---------- Split layout (feed, employers) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split .lead {
  margin-top: 18px;
}

.split .eyebrow {
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 16px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-list .ck {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-ink);
  font-size: .78rem;
}

.check-list b {
  display: block;
  color: var(--ink);
}

.check-list span {
  font-size: .95rem;
  color: var(--muted);
}

.split .cta-row {
  margin-top: 34px;
}

/* Feed visual: posts stack in as you scroll */
.feed-visual {
  position: relative;
  max-width: 470px;
  margin: 0 auto;
  width: 100%;
}

.feed-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -4% 8%;
  border-radius: 32px;
  background: linear-gradient(150deg, var(--sky), var(--mint));
  z-index: 0;
}

.fpost {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 18px;
  opacity: 0;
  transform: translateY(40px) rotate(-1.5deg);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
}

.fpost + .fpost {
  margin-top: 16px;
}

.feed-visual.in .fpost {
  opacity: 1;
  transform: none;
}

.feed-visual.in .fpost:nth-child(2) { transition-delay: .18s; }
.feed-visual.in .fpost:nth-child(3) { transition-delay: .36s; }

.fp-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-logo {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}

.fp-who {
  flex: 1;
  min-width: 0;
}

.fp-who b {
  display: block;
  font-size: .95rem;
  color: var(--ink);
}

.fp-who span {
  font-size: .78rem;
  color: var(--muted);
}

.fp-chat {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #124773;
  border-radius: 8px;
  color: #124773;
  font-size: .8rem;
  font-weight: 600;
}

.fp-title {
  display: block;
  margin-top: 12px;
  font: 700 1.02rem var(--head);
  color: var(--ink);
}

.fp-text {
  margin: 6px 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.fp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fp-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: .78rem;
  color: var(--text);
  font-weight: 500;
}

.fp-tags .hot {
  background: var(--mint);
  color: var(--green-ink);
  font-weight: 600;
}

.fp-reach {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: .86rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s .7s var(--ease), transform .7s .7s var(--ease);
}

.feed-visual.in .fp-reach {
  opacity: 1;
  transform: none;
}

.fp-reach i {
  color: #9BE09A;
}

/* ---------- Employers ---------- */

.emp {
  background:
    radial-gradient(50% 70% at 0% 100%, rgba(76, 166, 72, .12), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(36, 99, 154, .1), transparent 70%),
    #fff;
}

.emp-cards {
  display: grid;
  gap: 16px;
}

.emp-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -24px rgba(15, 42, 68, .4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.emp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.emp-ic {
  flex: none;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.2rem;
}

.emp-ic.a { background: #FFF3DC; color: #B7791F; }
.emp-ic.b { background: var(--sky); color: var(--navy); }
.emp-ic.c { background: var(--mint); color: var(--green-ink); }

.emp-card h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.emp-card p {
  margin: 0;
  font-size: .94rem;
  color: var(--muted);
}

/* ---------- Invite (workers) ---------- */

.invite {
  padding: 96px 0;
}

.invite-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(76, 166, 72, .35), transparent 60%),
    linear-gradient(140deg, #1B4F7E, #0F2A44);
  color: #C9D6E3;
  overflow: hidden;
}

.invite-box h2 {
  color: #fff;
}

.invite-box .lead {
  color: #B4C3D3;
  margin-top: 16px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}

.store-btn i {
  font-size: 1.6rem;
  width: 26px;
  text-align: center;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}

.store-btn small {
  font-weight: 400;
  font-size: .72rem;
  color: var(--muted);
}

.invite-web {
  margin: 18px 0 0;
  font-size: .92rem;
}

.invite-web a {
  color: #fff;
  font-weight: 600;
}

.invite-art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

.invite-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.ia-ring {
  fill: none;
  stroke: rgba(255, 255, 255, .18);
  stroke-dasharray: 3 9;
  transform-origin: 150px 150px;
  animation: spin 50s linear infinite;
}

.ia-card {
  transform-box: fill-box;
  transform-origin: center;
}

.invite-box.in .ia-card {
  animation: cardIn .9s var(--ease) both;
}

.invite-box.in .ia-card.c2 { animation-delay: .2s; }
.invite-box.in .ia-card.c3 { animation-delay: .4s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.9); }
  to { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}

.faq-list details[open] {
  border-color: #cfe0d0;
  box-shadow: 0 14px 30px -24px rgba(15, 42, 68, .45);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font: 700 1.04rem var(--head);
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat,
    var(--bg-soft);
  transition: transform .3s var(--ease), background-color .3s;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--mint);
}

.faq-list .ans {
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq-list .ans p {
  margin: 0;
}

/* ---------- Final call to action ---------- */

.final-sec {
  padding: 0 0 112px;
}

.final-box {
  position: relative;
  text-align: center;
  padding: 80px 32px;
  border-radius: 32px;
  background: var(--ink);
  color: #B4C3D3;
  overflow: hidden;
}

.final-box h2 {
  position: relative;
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
}

.final-box .lead {
  position: relative;
  margin: 18px auto 0;
  color: #B4C3D3;
}

.final-box .cta-row {
  position: relative;
  justify-content: center;
}

.final-box .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.final-box .btn-ghost:hover {
  border-color: #fff;
}

.final-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.final-art path {
  fill: none;
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease);
}

.final-box.in .final-art path {
  stroke-dashoffset: 0;
}

/* ---------- Full footer ---------- */

.foot {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: .94rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand img {
  height: 36px;
  width: auto;
}

.foot-brand p {
  margin: 16px 0 0;
  max-width: 300px;
}

.foot h4 {
  margin: 0 0 14px;
  font: 700 .8rem var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.foot a {
  text-decoration: none;
  color: var(--muted);
}

.foot a:hover {
  color: var(--navy);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .sec {
    padding: 80px 0;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }

  .steps-line {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .split-rev .feed-visual {
    order: 2;
  }

  .invite-box {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

  .invite-art {
    max-width: 220px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .sec {
    padding: 64px 0;
  }

  .sec-head {
    margin-bottom: 40px;
  }

  .steps {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .steps-note {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .fp-reach {
    right: 0;
    bottom: -26px;
  }

  .store-btn {
    flex: 1 1 150px;
  }

  .final-sec {
    padding-bottom: 64px;
  }

  .final-box {
    padding: 56px 20px;
    border-radius: 24px;
  }

  .faq-list summary {
    padding: 18px;
    font-size: .98rem;
  }

  .faq-list .ans {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fpost,
  .fp-reach {
    opacity: 1;
    transform: none;
  }

  .steps-line .fill {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 900px) {
  .nav-inner {
    position: relative;
    justify-content: space-between;
  }

  .nav-signup {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -10px rgba(15, 42, 68, 0.15);
    display: none;
    z-index: 99;
  }

  .nav-links.is-open {
    display: flex;
    animation: navDrop 0.25s var(--ease) forwards;
  }

  .nav-links a {
    display: block !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 6px 0;
    color: var(--text);
  }

  .nav-links a:not(:last-child) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }

  .nav-links a.nav-login {
    color: var(--navy);
    font-weight: 700;
  }

  .nav-links a.nav-btn-mobile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
    padding: 12px 24px;
    background: var(--green-ink);
    color: #fff !important;
    border-radius: 999px;
    border-bottom: none !important;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(47, 125, 51, 0.35);
    text-align: center;
  }

  .nav-links a.nav-btn-mobile:hover {
    background: #276c2b;
  }

  .nav-links a::after {
    display: none;
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.invite-box h2,
.final-box h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
}

/* Decorative backdrops may bleed past the edge; never let them widen the page */
.sec,
.invite,
.final-sec {
  overflow-x: clip;
}

/* Footer: brand plus four link columns */
.foot-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
}

.foot .foot-sub {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.foot-bottom .built-on {
  font-size: .8rem;
  color: #94a3b8;
}

.foot-bottom .built-on a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, .5);
  text-underline-offset: 2px;
}

.foot-bottom .built-on a:hover {
  color: var(--navy);
}
