/* =====================================================================
   Nexos marketing site — brand-aligned styles.
   Palette mirrors /Users/danmboya/git/dan/java/Nexos/design-tokens.json
   (navy #234055 primary + orange #E86D2C accent extracted from the logo).
   ===================================================================== */

:root {
  /* brand */
  --navy:        #234055;
  --navy-deep:   #14242F;
  --navy-soft:   #3E5868;
  --accent:      #E86D2C;
  --accent-deep: #cf5a1d;
  --accent-soft: #FCE3D3;

  /* surfaces + text */
  --page:    #F6F8FA;
  --card:    #FFFFFF;
  --subtle:  #EDF1F4;
  --tint:    #E3EAF0;
  --text:    #0E1F2A;
  --text-2:  #4A5E6E;
  --muted:   #8395A3;

  /* lines */
  --border:  #DCE3E9;
  --border-strong: #BCC8D2;

  /* shape */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14,31,42,.05);
  --shadow-md: 0 8px 24px rgba(14,31,42,.08);
  --shadow-lg: 0 24px 48px rgba(14,31,42,.14);

  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-braces against any sub-pixel overflow on small screens */
}

h1, h2, h3, h4, p { overflow-wrap: break-word; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* -------------------------- Buttons -------------------------- */
.btn {
  --btn-bg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  background: var(--btn-bg); color: #fff;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { --btn-bg: var(--navy); }
.btn-accent  { --btn-bg: var(--accent); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost   { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn-ghost:hover { background: #fff; }
.btn-light   { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); }

/* -------------------------- Header -------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.brand-word { font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--navy); }
.brand-x { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { font-weight: 500; color: var(--text-2); font-size: 15px; transition: color .15s; }
.nav-link:hover { color: var(--navy); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  border: 1px solid var(--border); background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------- Hero -------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232,109,44,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--page) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 72px 24px 84px;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; color: var(--text); }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); margin: 20px 0 28px; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; gap: 20px 28px; list-style: none; padding: 0; margin: 40px 0 0; flex-wrap: wrap; }
.hero-trust li { display: flex; flex-direction: column; min-width: 0; }
.hero-trust strong { font-size: 22px; color: var(--navy); font-weight: 800; }
.hero-trust span { font-size: 13px; color: var(--muted); }

.hero-art { display: flex; justify-content: center; }
.network { width: min(420px, 90%); filter: drop-shadow(0 30px 40px rgba(14,31,42,.18)); }
.network circle { transform-origin: center; animation: floaty 6s ease-in-out infinite; }
.network circle:nth-child(2n) { animation-delay: -2s; }
.network circle:nth-child(3n) { animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .network circle { animation: none; } }

/* -------------------------- Sections -------------------------- */
.section { padding: 84px 0; }
.section-tint { background: var(--subtle); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-sub { color: var(--text-2); margin-top: 14px; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 760px; }
.about-grid p { font-size: 17px; color: var(--text-2); margin: 0; }

/* ---- 4-step consumer journey (phone mockups) ---- */
.journey-eyebrow {
  margin: 48px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep); text-align: center;
}
.journey {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.journey-step { position: relative; display: flex; flex-direction: column; align-items: center; }
/* connector chevron between steps (desktop only) */
.journey-step:not(:last-child)::after {
  content: "›"; position: absolute; top: 168px; right: -16px; z-index: 1;
  font-size: 30px; line-height: 1; font-weight: 700; color: var(--border-strong, #c9d2da);
}

/* phone frame — upright, smaller sibling of the hero .phone */
.j-phone {
  position: relative; width: 100%; max-width: 196px; padding: 7px;
  border-radius: 30px; background: linear-gradient(160deg, #25404f 0%, #0E1F2A 60%);
  box-shadow: 0 20px 38px rgba(14,31,42,.24), inset 0 0 0 1px rgba(255,255,255,.06);
}
.j-phone .phone-notch { width: 58px; height: 14px; top: 13px; }
.j-phone .phone-screen { border-radius: 24px; aspect-ratio: 9 / 18; }

/* caption under each phone */
.journey-cap { text-align: center; margin-top: 16px; max-width: 230px; }
.journey-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; margin-bottom: 8px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 800;
}
.journey-cap h3 { font-size: 15px; font-weight: 800; margin: 0 0 4px; color: var(--text); }
.journey-cap p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.5; }

/* in-screen UI bits unique to the journey */
.j-lede { margin: 0 0 12px; font-size: 9.5px; line-height: 1.45; color: var(--text-2); }
.j-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.j-chips-center { justify-content: center; margin-bottom: 14px; }
.j-chip {
  font-size: 9px; font-weight: 700; padding: 5px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--text-2); box-shadow: var(--shadow-sm);
}
.j-chip-trade { background: var(--accent); border-color: transparent; color: #fff; }
.j-filter { display: flex; gap: 6px; margin-bottom: 12px; }
.j-filter-pill {
  flex: 1; text-align: center; font-size: 9px; font-weight: 700; padding: 6px 8px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep);
}
.j-badge {
  font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 6px; border-radius: 999px; white-space: nowrap;
}
.j-verified { background: rgba(22,163,74,.14); color: #16A34A; }

.j-profile { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 14px; }
.j-ava-lg { width: 46px; height: 46px; font-size: 15px; margin-bottom: 8px; }
.j-profile-type { display: inline-flex; align-items: center; gap: 4px;
  font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin-bottom: 3px; }
.j-tick { display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 8px; }
.j-profile-name { font-size: 13px; font-weight: 800; color: var(--text); }
.j-profile-role { font-size: 9.5px; color: var(--muted); margin: 2px 0 8px; }
.j-cta {
  margin-top: 4px; text-align: center; font-size: 10.5px; font-weight: 800; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 9px; box-shadow: var(--shadow-sm);
}
.j-contact-chat-btn {
  text-align: center; font-size: 10.5px; font-weight: 800; color: #fff;
  background: var(--accent); border-radius: 12px; padding: 10px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.j-contact { display: flex; gap: 8px; margin: 0 0 12px; }
.j-contact-btn {
  flex: 1; text-align: center; font-size: 10px; font-weight: 800; padding: 9px 6px;
  border-radius: 12px;
}
.j-contact-call { background: #fff; border: 1px solid var(--navy); color: var(--navy); }
.j-contact-copy {
  display: inline-flex; align-items: center; justify-content: center; width: 36px;
  border-radius: 12px; background: #fff; border: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
.j-note {
  font-size: 9px; line-height: 1.5; color: var(--muted); text-align: center;
  background: var(--subtle, #f1f4f7); border-radius: 10px; padding: 8px 9px; margin: 0;
}

@media (max-width: 900px) {
  .journey { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
  .journey-step:not(:last-child)::after { display: none; }
}
@media (max-width: 520px) {
  .journey { grid-template-columns: 1fr; }
}

/* -------------------------- Cards (Why) -------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-cta {
  background: linear-gradient(140deg, var(--navy), var(--navy-deep)); color: #fff; border: none;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.card-cta h3, .card-cta p { color: #fff; }
.card-cta p { opacity: .85; }
.card-cta .btn { align-self: flex-start; }

/* -------------------------- Steps -------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-weight: 800; font-size: 18px;
  color: #fff; background: var(--accent); margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); margin: 0; font-size: 15px; }

/* -------------------------- Portals (dark) -------------------------- */
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.on-dark h2 { color: #fff; }
.on-dark .section-sub { color: rgba(255,255,255,.8); }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portal-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 32px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .18s ease, background .18s ease, border-color .18s;
}
.portal-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.portal-card h3 { color: #fff; font-size: 21px; }
.portal-card p { color: rgba(255,255,255,.78); margin: 0 0 8px; font-size: 15px; }
.portal-card .btn { margin-top: auto; min-width: 170px; }
.portal-icon {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
}
.portal-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portal-featured { background: rgba(232,109,44,.16); border-color: rgba(232,109,44,.5); }
.portal-featured .portal-icon { background: var(--accent); }
.portal-featured:hover { background: rgba(232,109,44,.22); }

/* button with leading icon (Android download) */
.btn-android svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-ios svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.js-ios-link.is-soon { cursor: default; opacity: .85; }
.js-ios-link.is-soon .soon-badge {
  margin-left: .5rem; padding: .1rem .45rem; border-radius: 999px;
  font-size: .68em; font-weight: 600; letter-spacing: .02em; line-height: 1.4;
  background: rgba(127, 127, 127, .18); color: inherit;
}

/* App download band (inside the dark portals section) */
.app-band {
  margin-top: 40px; padding: 28px 32px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.app-band-text h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.app-band-text p { color: rgba(255,255,255,.78); margin: 0; font-size: 15px; max-width: 52ch; }

/* -------------------------- Contact -------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-intro h2 { font-size: clamp(24px, 3vw, 34px); }
.contact-intro p { color: var(--text-2); font-size: 16px; margin: 16px 0 24px; }
.contact-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.contact-points svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--text); }
.req { color: var(--accent-deep); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(35,64,85,.15);
}
.field.invalid input, .field.invalid textarea { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.error { display: block; color: #DC2626; font-size: 13px; margin-top: 6px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 16px 0 0; font-size: 14px; font-weight: 500; }
.form-status.ok  { color: #16A34A; }
.form-status.bad { color: #DC2626; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* -------------------------- Footer -------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 24px 40px; }
.footer-word { color: #fff; font-size: 24px; }
.footer-brand p { margin: 14px 0 0; max-width: 32ch; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,.72); font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar .container { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 13px; color: rgba(255,255,255,.6); }
.back-top:hover { color: var(--accent); }

/* -------------------------- Animations -------------------------- */
/* ---- Scroll-reveal: elements get .reveal + a direction variant up front, then
   .in when scrolled into view. Per-item stagger via the inline --d delay (JS). ---- */
.reveal {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.up    { transform: translateY(30px); }
.reveal.scale { transform: translateY(22px) scale(.94); }
.reveal.left  { transform: translateX(-34px); }
.reveal.right { transform: translateX(34px); }
.reveal.in    { opacity: 1; transform: none; }   /* after variants → wins at equal specificity */

/* ---- Hero entrance: children fade-up in sequence on first paint (no JS needed) ---- */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroArtIn  { from { opacity: 0; transform: scale(.9) translateY(12px); } to { opacity: 1; transform: none; } }
.hero-grid { position: relative; z-index: 1; }
.hero-copy > * { opacity: 0; animation: heroFadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy > .eyebrow       { animation-delay: .05s; }
.hero-copy > h1             { animation-delay: .16s; }
.hero-copy > .lede          { animation-delay: .30s; }
.hero-copy > .hero-actions  { animation-delay: .44s; }
.hero-copy > .hero-trust    { animation-delay: .58s; }
.hero-art { opacity: 0; animation: heroArtIn .9s .25s cubic-bezier(.2,.7,.2,1) forwards; }

/* ---- Drifting colour blobs behind the hero ---- */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(64px); z-index: 0; pointer-events: none;
}
.hero::before { width: 440px; height: 440px; background: rgba(232,109,44,.18); top: -130px; right: -70px; animation: drift1 16s ease-in-out infinite; }
.hero::after  { width: 380px; height: 380px; background: rgba(35,64,85,.16);  bottom: -150px; left: -70px; animation: drift2 19s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-34px,30px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-22px) scale(1.08); } }

/* ---- Network motif: connectors draw in, nodes keep floating (float set inline earlier) ---- */
.network line { stroke-dasharray: 170; stroke-dashoffset: 170; animation: drawLine 1.1s .55s cubic-bezier(.6,.1,.2,1) forwards; }
.network line:nth-of-type(even) { animation-delay: .75s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ---- Hover micro-interactions ---- */
.card-icon   { transition: transform .28s ease, box-shadow .28s ease; }
.card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }
.step-num    { transition: transform .28s ease; }
.step:hover .step-num { transform: scale(1.12) rotate(-4deg); }
.portal-icon { transition: transform .28s ease; }
.portal-card:hover .portal-icon { transform: translateY(-5px) scale(1.06); }

/* ---- Button sheen sweep on hover ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn:hover::after { left: 140%; }

/* ---- Header shadow once scrolled + nav underline grow ---- */
.site-header.scrolled { box-shadow: 0 6px 24px rgba(14,31,42,.08); }
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ---- Reading-progress bar pinned to the very top ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  transition: width .12s linear;
}

/* ---- Expanding "signal" rings + travelling light on the hero network ---- */
.network .ping { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ping 3.4s cubic-bezier(.2,.6,.3,1) infinite; }
.network .ping-2 { animation-delay: 1.1s; }
.network .ping-3 { animation-delay: 2.2s; stroke: #6FA0BC; }
@keyframes ping {
  0%   { transform: scale(.55); opacity: .55; }
  70%  { opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.network .spark { offset-path: path('M135 180 L185 120'); offset-rotate: 0deg; opacity: 0; animation: spark 2.8s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(232,109,44,.9)); }
.network .spark-2 { offset-path: path('M135 215 L185 160'); animation-delay: 1.4s; }
@keyframes spark {
  0%   { offset-distance: 0%;   opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---- Scroll-reveal gets a soft blur-in for extra depth ---- */
.reveal { filter: blur(8px); }
.reveal.in { filter: blur(0); }

/* ---- Section kicker grows an accent rule as the heading reveals ---- */
.kicker { position: relative; display: inline-block; }
.kicker::after {
  content: ''; position: absolute; left: 0; bottom: -8px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .7s .25s cubic-bezier(.2,.7,.2,1);
}
.section-head.center .kicker::after { left: 50%; transform: translateX(-50%); }
.reveal.in .kicker::after, .section-head.in .kicker::after { width: 38px; }

/* ---- Cards reveal an accent top-edge on hover ---- */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.card:hover::before { transform: scaleX(1); }

/* ---- Portal cards (dark section) get a warm glow + stronger lift ---- */
.portal-card { transition: transform .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease; }
.portal-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,.28); border-color: rgba(232,109,44,.5); }

/* ---- Gentle attention pulse on the primary call-to-action ---- */
.btn-cta-pulse { animation: ctaPulse 2.6s ease-in-out infinite; }
.btn-cta-pulse:hover { animation-play-state: paused; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,109,44,.45); }
  50%      { box-shadow: 0 0 0 10px rgba(232,109,44,0); }
}

/* ---- The logo "X" breathes a subtle accent glow ---- */
.brand-x { display: inline-block; animation: xGlow 4s ease-in-out infinite; }
@keyframes xGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(232,109,44,0); transform: translateY(0); }
  50%      { text-shadow: 0 0 14px rgba(232,109,44,.55); transform: translateY(-1px); }
}

/* ---- Count-up stats pop as they finish ---- */
.hero-trust.in strong { animation: statPop .5s .2s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes statPop { from { transform: scale(.8); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; filter: none !important; }
  .hero-copy > *, .hero-art { opacity: 1 !important; animation: none !important; }
  .network line { stroke-dashoffset: 0 !important; animation: none !important; }
  .network circle, .hero::before, .hero::after,
  .network .ping, .network .spark, .btn-cta-pulse, .brand-x, .hero-trust strong,
  .phone-front, .phone-back { animation: none !important; }
  .network .ping, .network .spark { display: none; }
  .btn::after, .nav-link::after { display: none; }
  .kicker::after, .card::before { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Hero app preview — two phone mockups of the mobile dashboards
   ============================================================ */
.phones { position: relative; width: min(430px, 100%); min-height: 560px; margin: 0 auto; }
.phone {
  position: absolute; width: 234px; padding: 9px;
  border-radius: 38px;
  background: linear-gradient(160deg, #25404f 0%, #0E1F2A 60%);
  box-shadow: 0 30px 60px rgba(14,31,42,.34), 0 10px 22px rgba(14,31,42,.22),
              inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 18px; background: #0a161e; border-radius: 0 0 12px 12px; z-index: 3;
}
.phone-back  { left: 4%;  top: 4px;  transform: rotate(-7deg); z-index: 1; }
.phone-front { right: 2%; top: 78px; transform: rotate(4deg);  z-index: 2; }

.phone-screen {
  position: relative; overflow: hidden; border-radius: 30px;
  background: var(--page); aspect-ratio: 9 / 19; font-size: 11px; line-height: 1.35;
}

/* status + app bar */
.pm-status { display: flex; justify-content: space-between; align-items: center;
  padding: 7px 16px 3px; font-size: 9px; font-weight: 700; color: var(--text); }
.pm-dots { letter-spacing: -1px; color: var(--text-2); }
.pm-appbar { display: flex; justify-content: space-between; align-items: center;
  padding: 6px 14px 10px; background: #fff; border-bottom: 1px solid var(--subtle); }
.pm-logo { font-weight: 800; font-size: 13px; letter-spacing: -0.02em; color: var(--navy); }
.pm-x { color: var(--accent); }
.pm-bell { font-size: 13px; }
.pm-avatar, .pm-ava {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 9px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--navy-soft), var(--navy)); }
.pm-ava-2 { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }

/* body */
.pm-body { padding: 12px 14px 16px; }
.pm-greet { margin: 2px 0 10px; font-size: 15px; font-weight: 800; color: var(--text); }
.pm-chip { display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.pm-chip-pro { background: var(--accent-soft); color: var(--accent-deep); }
.pm-search { display: flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 13px;
  color: var(--muted); font-size: 10.5px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.pm-h { margin: 0 0 8px; font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }

.pm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pm-stats-3 { grid-template-columns: 1fr 1fr 1fr; }
.pm-stat { background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 8px; box-shadow: var(--shadow-sm); }
.pm-stat b { display: block; font-size: 18px; font-weight: 800; color: var(--accent); line-height: 1; }
.pm-stat span { display: block; margin-top: 4px; font-size: 8.5px; color: var(--text-2); }

.pm-sub { background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff; border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.pm-sub-top { display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 10.5px; }
.pm-pill { background: rgba(232,109,44,.25); color: #FFD9B0; border-radius: 999px;
  padding: 2px 8px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.pm-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.18); margin: 10px 0 6px; overflow: hidden; }
.pm-bar i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb070); }
.pm-sub-note { font-size: 8.5px; color: rgba(255,255,255,.7); }

.pm-row { display: flex; align-items: center; gap: 9px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px;
  box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.pm-row-txt { flex: 1; min-width: 0; }
.pm-row-txt b { display: block; font-size: 10.5px; color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.pm-row-txt span { display: block; font-size: 8.5px; color: var(--muted); }
.pm-ico { font-size: 14px; }
.pm-amt { font-size: 10.5px; font-weight: 800; color: var(--accent-deep); white-space: nowrap; }
.pm-new { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.pm-go { font-size: 16px; color: var(--muted); }

/* float the two phones gently, out of phase */
.phone-front { animation: phoneFloatA 7s ease-in-out infinite; }
.phone-back  { animation: phoneFloatB 8s ease-in-out infinite; }
@keyframes phoneFloatA { 0%,100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-12px); } }
@keyframes phoneFloatB { 0%,100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(10px); } }

/* -------------------------- Responsive -------------------------- */
@media (max-width: 920px) {
  /* Lead with the message on small screens; show the app preview below it.
     minmax(0,1fr) stops the phones' min(430px,100%) width from stretching the
     single column past the viewport (which used to push the trust strip off-screen). */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 40px; }
  .hero-art { order: 0; margin-top: 4px; }
  .phones { transform: none; width: 100%; max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; }
  .cards, .steps, .portal-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--subtle); }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  /* Trust strip as an even 3-up grid so the third stat never clips off-screen. */
  .hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; margin-top: 30px; }
  .hero-trust li { min-width: 0; }
  .hero-trust strong { font-size: 20px; }
  .hero-trust span { font-size: 12px; overflow-wrap: anywhere; }
  /* Compact, correctly-sized phone pair (fixed positions → predictable height). */
  .phones { min-height: 486px; }
  .phone { width: 202px; }
  .phone-back { left: 0; top: 8px; }
  .phone-front { right: 0; top: 60px; }
  .cards, .steps, .portal-grid, .footer-inner { grid-template-columns: 1fr; }
  .footer-bar .container { flex-direction: column; gap: 8px; }
  .app-band { flex-direction: column; text-align: center; }
  .app-band .btn { width: 100%; }
}

/* -------------------------- Footer legal links -------------------------- */
.footer-legal { display: flex; gap: 18px; align-items: center; }
.footer-legal a { color: rgba(255,255,255,.6); font-size: 13px; transition: color .15s; }
.footer-legal a:hover { color: var(--accent); }

/* -------------------------- Legal document page -------------------------- */
.legal-main { padding: 56px 0 80px; background: var(--page); }
.legal-wrap { max-width: 820px; }
.legal-back { display: inline-block; margin-bottom: 18px; color: var(--text-2);
  font-size: 14px; font-weight: 600; transition: color .15s; }
.legal-back:hover { color: var(--accent); }
.legal-main h1 { font-size: clamp(28px, 4vw, 40px); color: var(--text); }
.legal-meta { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px;
  border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.legal-tabs a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--text-2); background: var(--subtle); transition: background .15s, color .15s; }
.legal-tabs a:hover { color: var(--navy); background: var(--tint); }
.legal-tabs a.active { color: #fff; background: var(--navy); }

.legal-body { color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.legal-body h1, .legal-body h2, .legal-body h3, .legal-body h4 {
  color: var(--text); margin: 32px 0 12px; line-height: 1.3; }
.legal-body h1 { font-size: 26px; }
.legal-body h2 { font-size: 21px; }
.legal-body h3 { font-size: 17px; }
.legal-body h4 { font-size: 15px; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin: 0 0 8px; }
.legal-body a { color: var(--accent-deep); text-decoration: underline; }
.legal-body code { background: var(--subtle); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.legal-body hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.legal-body strong { color: var(--text); }
.legal-loading { color: var(--muted); }

/* -------------------------- Popular services (chip cloud) -------------------------- */
.chip-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 18px; font-weight: 600; font-size: 15px; color: var(--text-2);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}
.chip::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  flex: none; transition: transform .16s ease;
}
.chip:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md);
  border-color: var(--accent); color: var(--navy); background: #fff;
}
.chip:hover::before { transform: scale(1.5); }
.service-note { text-align: center; color: var(--muted); font-size: 14px; margin: 30px 0 0; }

/* -------------------------- App showcase (light + dark) -------------------------- */
.theme-band { background: linear-gradient(165deg, #eef3f6 0%, #dde7ee 100%); }
.ui-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
.ui-card {
  --c-bg: #fff; --c-bar: #fff; --c-surface: #f4f7f9; --c-text: var(--text); --c-text2: #4A5E6E;
  --c-border: var(--border); --c-line: var(--subtle);
  border-radius: 20px; overflow: hidden; border: 1px solid var(--c-border);
  background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ui-card:hover { transform: translateY(-5px); }
.ui-dark {
  --c-bg: #14242F; --c-bar: #1b3340; --c-surface: rgba(255,255,255,.05); --c-text: #fff;
  --c-text2: rgba(255,255,255,.62); --c-border: rgba(255,255,255,.10); --c-line: rgba(255,255,255,.08);
}
.ui-bar { display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; background: var(--c-bar); border-bottom: 1px solid var(--c-line); }
.ui-logo { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--c-text); }
.ui-x { color: var(--accent); }
.ui-theme { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-text2); border: 1px solid var(--c-border); border-radius: 999px; padding: 4px 11px; }
.ui-body { padding: 22px 20px 24px; }
.ui-greet { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--c-text); }
.ui-meta { margin: 0 0 16px; font-size: 13px; color: var(--c-text2); }
.ui-h { margin: 4px 0 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text2); }

.ui-search { display: flex; align-items: center; gap: 9px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: 999px; padding: 11px 15px;
  color: var(--c-text2); font-size: 13px; margin-bottom: 16px; }
.ui-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ui-lead { display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); margin-bottom: 10px; }
.ui-ava { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy)); }
.ui-ava.alt { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.ui-lead-txt { flex: 1; min-width: 0; }
.ui-lead-txt b { display: block; font-size: 13px; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-lead-txt span { display: block; font-size: 11.5px; color: var(--c-text2); }
.ui-lead-acts { display: flex; gap: 6px; flex: none; }
.ui-act { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 6px 9px; border-radius: 8px; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); }
.ui-act svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-act.accent { background: var(--accent); color: #fff; border-color: var(--accent); }

.ui-sub { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; padding: 13px 15px; margin-bottom: 16px; }
.ui-sub-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; color: var(--c-text); }
.ui-badge { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: #258a59; background: rgba(46,160,103,.16); border-radius: 999px; padding: 3px 9px; }
.ui-dark .ui-badge { color: #5fd39b; }
.ui-bar2 { height: 5px; border-radius: 999px; background: var(--c-border); margin: 10px 0 7px; overflow: hidden; }
.ui-bar2 i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #ffb070); }
.ui-sub-note { font-size: 11px; color: var(--c-text2); }

.ui-note { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: var(--c-text2); }

/* -------------------------- FAQ -------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 22px; box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 0; font-weight: 600; font-size: 16.5px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--accent); border-radius: 2px;
}
.faq-mark::before { width: 14px; height: 2px; }
.faq-mark::after  { width: 2px; height: 14px; transition: transform .22s ease; }
.faq-item[open] .faq-mark::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-answer { padding: 0 0 22px; }
.faq-answer p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.faq-cta { text-align: center; color: var(--text-2); margin: 32px 0 0; font-size: 15px; }
.faq-cta a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; }

@media (max-width: 720px) {
  .ui-showcase { grid-template-columns: 1fr; gap: 20px; max-width: 430px; }
}
@media (max-width: 560px) {
  .chip { padding: 9px 14px; font-size: 14px; }
  .chip-cloud { gap: 9px; }
}
