/* InjurySOS — Homepage Styles */
/* ================= Injury SOS — Home v2 =================
     Modern restyle. The "pulse" is the system: sonar rings + a
     vital-signs waveform. All color/type from design tokens. */

  :root { color-scheme: light only; }
  html { scroll-behavior: smooth; background: #fff; }
  body { background: var(--surface-card); color: var(--text-body); overflow-x: hidden; }
  section { background: #fff; }
  .wrap { max-width: var(--container-xl); margin: 0 auto; padding: 0 32px; }
  section { padding: 96px 0; position: relative; }
  .band { background: var(--surface-page); }
  a { color: inherit; text-decoration: none; }

  .eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display);
    font-weight: var(--fw-semibold); font-size: var(--text-xs); letter-spacing: var(--tracking-label);
    text-transform: uppercase; color: var(--text-link); }
  .eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-500); position: relative; }
  .eyebrow .live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan-500);
    animation: livepulse 1.8s var(--ease-out) infinite; }
  @keyframes livepulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
  .grad-text { background: var(--gradient-sky); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

  /* ---- buttons ---- */
  .btn { position: relative; display: inline-flex; align-items: center; gap: 9px; justify-content: center; overflow: hidden;
    font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-base); padding: 14px 26px;
    border-radius: var(--radius-pill); cursor: pointer; border: 1px solid transparent; line-height: 1;
    transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
  .btn svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
  .btn:hover svg.arr { transform: translateX(4px); }
  .btn-primary { background: var(--cyan-500); color: #fff; }
  .btn-primary:hover { background: var(--cyan-600); box-shadow: var(--shadow-signal); transform: translateY(-2px); }
  .btn-white { background: #fff; color: var(--navy-700); }
  .btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.22); }
  .btn-ghost-dark { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.4); }
  .btn-ghost-dark:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.7); }
  /* lime "go" — reserved for the highest-priority CTAs */
  .btn-cta { background: var(--lime-500); color: var(--navy-700); }
  .btn-cta:hover { background: #bcc31f; box-shadow: 0 12px 30px rgba(205,211,37,0.45); transform: translateY(-2px); }
  .btn-sm { padding: 10px 20px; font-size: var(--text-sm); }
  /* shine sweep */
  .btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-18deg); }
  .btn:hover::before { left: 140%; transition: left 0.7s var(--ease-out); }

  /* ================= NAV ================= */
  header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; transition: all var(--dur-base) var(--ease-out); }
  header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height var(--dur-base) var(--ease-out); }
  header.scrolled { background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
  header.scrolled .wrap { height: 66px; }
  .brand img { height: 60px; transition: height var(--dur-base) var(--ease-out); display: block; }
  header.scrolled .brand img { height: 48px; }
  /* logo swaps to white knockout while over the dark hero */
  .brand .logo-white { height: 60px; display: block; }
  .brand .logo-color { display: none; }
  header.scrolled .brand .logo-white { display: none; }
  header.scrolled .brand .logo-color { display: block; height: 48px; }
  .navlinks { display: flex; align-items: center; gap: 30px; }
  .navlinks a.link { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: rgba(255,255,255,0.88); transition: color var(--dur-fast); }
  .navlinks a.link:hover { color: #fff; }
  header.scrolled .navlinks a.link { color: var(--text-body); }
  header.scrolled .navlinks a.link:hover { color: var(--cyan-600); }
  .menu-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }
  header.scrolled .menu-toggle { color: var(--navy-600); }

  /* ================= HERO ================= */
  .hero { color: #fff; overflow: hidden; padding: 168px 0 110px;
    background: radial-gradient(120% 130% at 88% 8%, var(--cyan-600) 0%, rgba(0,129,189,0) 46%),
                linear-gradient(118deg, var(--navy-900) 0%, var(--navy-800) 34%, var(--navy-700) 64%, var(--navy-600) 100%); }
  .hero .wrap { position: relative; z-index: 4; }
  .hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center; }
  .hero-logo { height: 104px; display: block; margin: 0 0 6px; filter: drop-shadow(0 8px 22px rgba(0,0,0,0.28)); }

  /* ================= hero background video ================= */
  .hero-video { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
  .hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
  .hero-video.has-video video { display: block; }
  /* balanced overlay — video clearly visible, headline still readable */
  .hero-video .scrim { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, rgba(11,31,46,0.88) 0%, rgba(11,31,46,0.62) 46%, rgba(11,31,46,0.34) 100%); display: none; }
  .hero-video.has-video .scrim { display: block; }
  /* drop hint — only while no video is set */
  .video-drop { position: absolute; right: 28px; bottom: 24px; z-index: 6; display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border: 1.5px dashed rgba(255,255,255,0.45); border-radius: var(--radius-pill);
    background: rgba(11,31,46,0.45); backdrop-filter: blur(6px); color: rgba(255,255,255,0.85);
    font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; cursor: pointer;
    transition: all var(--dur-base) var(--ease-out); }
  .video-drop:hover, .video-drop.over { border-color: var(--lime-500); color: #fff; background: rgba(11,31,46,0.7); }
  .video-drop svg { width: 18px; height: 18px; flex: none; }
  .hero-video.has-video ~ .video-drop, .video-drop.hidden { display: none; }

  /* removed: sonar pulse (replaced by hero background video) */

  /* animated glow blobs */
  .glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 1; pointer-events: none; }
  .glow.g1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--cyan-500), transparent 70%); top: -120px; right: 4%; animation: drift1 16s ease-in-out infinite; }
  .glow.g2 { width: 380px; height: 380px; background: radial-gradient(circle, var(--sky-500), transparent 70%); bottom: -160px; left: 30%; opacity: 0.28; animation: drift2 20s ease-in-out infinite; }
  @keyframes drift1 { 50% { transform: translate(-30px, 40px) scale(1.1); } }
  @keyframes drift2 { 50% { transform: translate(40px, -30px) scale(1.08); } }

  /* radar pulse field behind right column */
  .radar { position: absolute; z-index: 2; top: 50%; right: -60px; transform: translateY(-50%);
    width: 720px; height: 720px; pointer-events: none; }
  .radar .ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16);
    transform: translate(-50%,-50%) scale(0.18); animation: radar 6s var(--ease-out) infinite; }
  @keyframes radar { 0% { transform: translate(-50%,-50%) scale(0.18); opacity: 0; }
    18% { opacity: 0.9; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; } }

  .hero h1 { font-family: var(--font-display); font-weight: var(--fw-bold); color: #fff;
    font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em; margin: 22px 0 0; }
  .hero .lede { font-family: var(--font-body); font-size: clamp(1.08rem, 1.45vw, 1.28rem); line-height: 1.6;
    color: rgba(255,255,255,0.88); margin: 22px 0 0; max-width: 500px; }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
  .hero-note { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 26px; font-family: var(--font-body);
    font-size: var(--text-sm); color: rgba(255,255,255,0.72); }
  .hero-note span { display: inline-flex; align-items: center; gap: 7px; }
  .hero-note svg { width: 15px; height: 15px; color: var(--sky-500); }

  /* vital-signs waveform across hero base */
  .wave { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2; height: 80px; opacity: 0.6; pointer-events: none; }
  .wave svg { width: 100%; height: 100%; }
  .wave path { fill: none; stroke: var(--sky-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(87,180,220,0.6)); }
  .wave .trace { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: trace 4.5s linear infinite; }
  @keyframes trace { to { stroke-dashoffset: 0; } }

  /* hero tracker — translucent glass, floating */
  .tracker { position: relative; z-index: 5; color: #fff;
    background: linear-gradient(152deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
    border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px rgba(11,31,46,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    padding: 20px 26px 22px; animation: bob 6s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-10px); } }
  .tracker h4 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: var(--fw-semibold);
    font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: rgba(255,255,255,0.75); padding: 0 0 14px; }
  .tracker h4 .live { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 0 0 rgba(205,211,37,0.55); animation: blip 1.6s ease-out infinite; }
  @keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(205,211,37,0.55);} 100% { box-shadow: 0 0 0 8px rgba(205,211,37,0);} }
  /* progress rail */
  .tracker-bar { position: relative; height: 7px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.16);
    overflow: visible; margin: 0 0 8px; }
  .tracker-bar i { display: block; position: relative; height: 100%; width: 50%; border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--cyan-500), var(--cyan-300) 55%, var(--lime-500));
    box-shadow: 0 0 14px rgba(0,155,223,0.5); transition: width 0.9s var(--ease-out); }
  .tracker-bar i::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-pill); overflow: hidden;
    background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
    background-size: 200% 100%; animation: barsheen 2.4s linear infinite; }
  @keyframes barsheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
  .tracker-bar i::after { content: ""; position: absolute; right: 0; top: 50%; transform: translate(50%,-50%);
    width: 13px; height: 13px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 3px rgba(205,211,37,0.35), 0 0 14px 3px rgba(205,211,37,0.6); }
  .trow { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.13); }
  .trow:last-child { border-bottom: none; padding-bottom: 2px; }
  .tdot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; transition: all var(--dur-base) var(--ease-out); }
  .tdot svg { width: 16px; height: 16px; }
  .tdot.done { background: var(--cyan-500); color: #fff; box-shadow: 0 0 12px rgba(0,155,223,0.45); }
  .tdot.active { background: rgba(205,211,37,0.15); border: 2px solid var(--lime-500); color: var(--lime-500); position: relative; }
  .tdot.active::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--lime-500); animation: dotpulse 1.8s var(--ease-out) infinite; }
  @keyframes dotpulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
  .tdot.wait { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.55); }
  .trow .lbl { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-sm); color: #fff; }
  .trow .sub { font-family: var(--font-body); font-size: var(--text-xs); color: rgba(255,255,255,0.62); }
  .trow .meta { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-2xs); color: rgba(255,255,255,0.55); }
  .trow .meta.now { color: var(--lime-500); font-weight: 700; }

  /* ================= PULSE DIVIDER ================= */
  .divider { height: 2px; max-width: var(--container-xl); margin: 0 auto; position: relative; overflow: hidden;
    background: linear-gradient(90deg, transparent, var(--border-default), transparent); }
  .divider::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--cyan-500), transparent); animation: sweep 3.5s linear infinite; }
  @keyframes sweep { to { left: 130%; } }

  /* ================= TRUST STRIP — digital watch faces ================= */
  .trust { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
  .trust .cell { position: relative; overflow: hidden; text-align: center; padding: 36px 18px 28px; border-radius: 34px;
    background: radial-gradient(120% 90% at 50% 0%, rgba(0,155,223,0.22) 0%, rgba(0,155,223,0) 55%),
                linear-gradient(165deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
    border: 1.5px solid var(--cyan-400);
    box-shadow: 0 0 0 5px rgba(15,18,40,0.9), 0 0 0 7px rgba(0,155,223,0.5),
                0 18px 44px rgba(11,31,46,0.35), inset 0 0 34px rgba(0,155,223,0.14);
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
  .trust .cell:hover { transform: translateY(-5px);
    box-shadow: 0 0 0 5px rgba(15,18,40,0.9), 0 0 0 7px rgba(0,155,223,0.8),
                0 26px 54px rgba(0,129,189,0.4), inset 0 0 34px rgba(0,155,223,0.22); }
  /* glass reflection — corner glints only */
  .trust .cell::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(130px 130px at 0% 0%, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.08) 45%, transparent 68%),
      radial-gradient(110px 110px at 100% 100%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 45%, transparent 68%); }
  /* tiny status LED */
  .trust .cell::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 9px rgba(205,211,37,0.9); }
  @media (prefers-reduced-motion: no-preference) {
    .trust .cell::before { animation: watchblink 2.2s ease-in-out infinite; }
  }
  @keyframes watchblink { 50% { opacity: 0.25; } }
  .trust .stat { font-family: var(--font-mono); font-weight: 600; font-size: clamp(2.2rem, 3vw, 2.9rem); line-height: 1;
    color: var(--cyan-300); letter-spacing: 0.04em;
    text-shadow: 0 0 16px rgba(0,155,223,0.8), 0 0 42px rgba(0,155,223,0.45); }
  .trust .lbl { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-xs);
    letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.68); margin-top: 13px; line-height: 1.5; }

  /* ================= SECTION HEAD ================= */
  .sec-head { text-align: center; max-width: 700px; margin: 0 auto 58px; }
  .sec-head .sec-logo { height: 150px; display: block; margin: 0 auto 22px; }
  .sec-head h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2rem, 3.2vw, 2.7rem);
    letter-spacing: -0.025em; color: var(--text-strong); margin: 14px 0 0; line-height: 1.08; }
  .sec-head p { font-family: var(--font-body); font-size: var(--text-md); color: var(--text-muted); margin: 16px 0 0; line-height: 1.62; }

  /* ================= STEPS ================= */
  .steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 36px; }
  .step { color: #fff; border: 1px solid rgba(87,180,220,0.35); border-radius: var(--radius-lg);
    background: linear-gradient(152deg, var(--navy-800) 0%, var(--navy-600) 58%, var(--cyan-600) 130%);
    box-shadow: 0 10px 28px rgba(11,31,46,0.18); padding: 30px 24px; position: relative; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); }
  /* tonal sweep across the row — each card a step bluer */
  .step:nth-child(2) { background: linear-gradient(152deg, var(--navy-700) 0%, var(--navy-500) 58%, var(--cyan-500) 130%); }
  .step:nth-child(3) { background: linear-gradient(152deg, var(--navy-600) 0%, var(--cyan-700) 58%, var(--cyan-500) 130%); }
  .step:nth-child(4) { background: linear-gradient(152deg, var(--navy-500) 0%, var(--cyan-600) 58%, var(--cyan-400) 130%); }
  .step:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(11,31,46,0.3); border-color: var(--cyan-300); }
  /* pulsing border ring */
  .step::after { content: ""; position: absolute; inset: -2px; border-radius: var(--radius-lg);
    border: 2px solid var(--cyan-400); opacity: 0; pointer-events: none; }
  @media (prefers-reduced-motion: no-preference) {
    .step::after { animation: cardpulse 3.2s var(--ease-out) infinite; }
    .step:nth-child(2)::after { animation-delay: 0.4s; }
    .step:nth-child(3)::after { animation-delay: 0.8s; }
    .step:nth-child(4)::after { animation-delay: 1.2s; }
  }
  @keyframes cardpulse { 0% { transform: scale(1); opacity: 0.75; } 60%, 100% { transform: scale(1.045); opacity: 0; } }
  .step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--lime-500); color: var(--navy-700);
    font-family: var(--font-mono); font-weight: 700; font-size: var(--text-md); display: flex; align-items: center; justify-content: center; position: relative;
    box-shadow: 0 6px 16px rgba(205,211,37,0.35), inset 0 -2px 0 rgba(11,31,46,0.15); }
  .step .num::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime-500); opacity: 0; }
  .step:hover .num::after { animation: numpulse 1.2s var(--ease-out) infinite; }
  @keyframes numpulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }
  .step h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-md); color: #fff; margin: 18px 0 8px; }
  .step p { font-family: var(--font-body); font-size: var(--text-sm); color: rgba(255,255,255,0.78); line-height: 1.6; }
  .step .connector { position: absolute; top: 50%; transform: translateY(-50%); right: -34px; z-index: 2;
    width: 32px; height: 32px; padding: 6px; box-sizing: border-box; background: #fff; border-radius: 50%;
    color: var(--cyan-600); box-shadow: 0 3px 10px rgba(11,31,46,0.22); }
  .step:last-child .connector { display: none; }

  /* ================= COORDINATION INFOGRAPHIC ================= */
  .coord { display: grid; grid-template-columns: 1fr 350px 1fr; gap: 26px 48px; align-items: center; }
  .coord-col { display: flex; flex-direction: column; gap: 26px; }
  .node { --acc: var(--cyan-500); position: relative; display: flex; gap: 16px; align-items: flex-start;
    background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 9%, #fff) 0%, #fff 60%);
    border: 1px solid color-mix(in srgb, var(--acc) 28%, transparent); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs); padding: 20px 22px;
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); }
  .node:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc); }
  .node.n-sky { --acc: var(--sky-700); }
  .node.n-navy { --acc: var(--navy-500); }
  .node.n-lime { --acc: var(--lime-700); }
  .node.n-deep { --acc: var(--cyan-700); }
  .node.n-steel { --acc: var(--navy-300); }
  .node .ic { width: 48px; height: 48px; flex: none; border-radius: 50%;
    background: color-mix(in srgb, var(--acc) 13%, #fff); color: var(--acc);
    display: flex; align-items: center; justify-content: center; transition: transform var(--dur-base) var(--ease-out); }
  .node:hover .ic { transform: scale(1.1); }
  .node .ic svg { width: 24px; height: 24px; }
  .node h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-base); color: var(--text-strong); margin: 2px 0 5px; }
  .node p { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }
  /* animated flow-lines toward the hub */
  .node::after { content: ""; position: absolute; top: 50%; width: 48px; height: 2px; margin-top: -1px;
    background: repeating-linear-gradient(90deg, var(--acc) 0 6px, transparent 6px 12px); opacity: 0.65; }
  .coord-col.left .node::after { right: -48px; }
  .coord-col.right .node::after { left: -48px; }
  @media (prefers-reduced-motion: no-preference) {
    .coord-col.left .node::after { animation: dashflow 0.9s linear infinite; }
    .coord-col.right .node::after { animation: dashflow 0.9s linear infinite reverse; }
  }
  @keyframes dashflow { to { background-position: 12px 0; } }
  /* central hub */
  .coord-hub { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
  .coord-hub .hring { position: absolute; top: 50%; left: 50%; width: 330px; height: 330px; border-radius: 50%;
    border: 1.5px solid rgba(0,155,223,0.45); transform: translate(-50%,-50%) scale(1); opacity: 0; pointer-events: none; }
  @media (prefers-reduced-motion: no-preference) {
    .coord-hub .hring { animation: hubring 4.2s var(--ease-out) infinite; }
  }
  @keyframes hubring { 0% { transform: translate(-50%,-50%) scale(1); opacity: 0.55; } 100% { transform: translate(-50%,-50%) scale(1.48); opacity: 0; } }
  .coord-hub .disc { position: relative; z-index: 2; width: 330px; height: 330px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px;
    background: radial-gradient(110% 110% at 72% 18%, var(--cyan-600) 0%, rgba(0,129,189,0) 55%),
                linear-gradient(140deg, var(--navy-800) 0%, var(--navy-600) 70%, var(--cyan-700) 130%);
    border: 1px solid rgba(87,180,220,0.45); box-shadow: 0 24px 60px rgba(11,31,46,0.35); }
  .coord-hub .disc img { height: 96px; display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.3)); }
  .coord-hub .disc p { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-md); color: #fff; line-height: 1.3; }
  .coord-hub .disc .free { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--lime-500); color: var(--navy-700); border-radius: var(--radius-pill); padding: 7px 16px; font-weight: 700; }

  /* ================= PORTAL ================= */
  .portal { position: relative; overflow: hidden; border-radius: var(--radius-2xl); color: #fff;
    background: radial-gradient(110% 130% at 92% 12%, var(--cyan-600) 0%, rgba(0,129,189,0) 50%),
                linear-gradient(118deg, var(--navy-800) 0%, var(--navy-700) 46%, var(--navy-600) 100%);
    border: 1px solid rgba(87,180,220,0.35);
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 64px 56px;
    box-shadow: 0 30px 90px rgba(0,129,189,0.32), 0 12px 34px rgba(11,31,46,0.35); }
  /* faint grid texture for a modern, product feel */
  .portal::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 90%); mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 90%); }
  /* animated signal line along the top edge */
  .portal::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg, transparent 0%, var(--cyan-400) 35%, var(--lime-500) 55%, transparent 85%);
    background-size: 220% 100%; opacity: 0.9; }
  @media (prefers-reduced-motion: no-preference) {
    .portal::after { animation: portaledge 5s linear infinite; }
  }
  @keyframes portaledge { from { background-position: 140% 0; } to { background-position: -120% 0; } }
  /* attorney silhouette */
  .portal .psil { position: absolute; bottom: -12px; right: 37%; height: 92%; z-index: 1; pointer-events: none;
    fill: rgba(227,245,253,0.09); }
  .portal .pradar { position: absolute; top: 50%; right: -40px; transform: translateY(-50%); width: 460px; height: 460px; pointer-events: none; z-index: 0; }
  .portal .pradar .ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); transform: translate(-50%,-50%) scale(0.2); animation: radar 6s var(--ease-out) infinite; }
  .portal > div { position: relative; z-index: 2; }
  .portal h2 { font-family: var(--font-display); font-weight: var(--fw-bold); color: #fff; font-size: clamp(2.2rem,3.4vw,3rem); letter-spacing: -0.025em; margin: 16px 0 0; line-height: 1.12; }
  .portal h2 + p { font-family: var(--font-body); font-size: var(--text-md); color: rgba(255,255,255,0.9); margin: 20px 0 0; line-height: 1.7; }
  .checks { list-style: none; margin: 28px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
  .checks li { display: flex; gap: 14px; align-items: flex-start; font-family: var(--font-body); font-size: var(--text-base); color: rgba(255,255,255,0.95); line-height: 1.7; }
  .checks li svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; flex: none; margin-top: -1px;
    color: var(--lime-500); background: linear-gradient(135deg, var(--cyan-500) 0%, var(--navy-500) 100%);
    box-shadow: 0 4px 12px rgba(0,129,189,0.35), inset 0 1px 0 rgba(255,255,255,0.25); }
  .portal .eyebrow { color: var(--sky-500); }
  .login { background: rgba(255,255,255,0.96); border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius-xl); padding: 30px;
    box-shadow: 0 24px 60px rgba(11,31,46,0.45), inset 0 1px 0 #fff; backdrop-filter: blur(8px); color: var(--text-body); }
  .login h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-lg); color: var(--text-strong); }
  .login .muted { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); margin: 4px 0 20px; }
  .field { margin-bottom: 14px; }
  .field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--text-strong); margin-bottom: 6px; }
  .field input { width: 100%; padding: 12px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); font-family: var(--font-body); font-size: var(--text-base); color: var(--text-body); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
  .field input:focus { outline: none; border-color: var(--cyan-500); box-shadow: var(--shadow-focus); }
  .login .btn-primary { width: 100%; margin-top: 6px; }
  .login .help { text-align: center; font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); margin-top: 14px; }
  .login .help a { color: var(--cyan-600); font-weight: 600; }

  /* ================= FOOTER ================= */
  footer { position: relative; overflow: hidden; background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 72px 0 32px; }
  /* user-droppable background image + legibility scrim */
  footer .fbg { position: absolute; inset: 0; z-index: 0; }
  footer .fbg image-slot { display: block; width: 100%; height: 100%; }
  footer .fbg .fscrim { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(87,180,220,0.72) 0%, rgba(58,140,176,0.8) 26%, rgba(35,42,86,0.93) 62%, rgba(15,18,40,0.97) 100%); }
  /* visible drop affordance for the footer background */
  .fbg-drop { position: absolute; right: 28px; bottom: 24px; z-index: 5; display: flex; align-items: center; gap: 10px;
    padding: 11px 17px; border: 1.5px dashed rgba(255,255,255,0.4); border-radius: var(--radius-pill);
    background: rgba(15,18,40,0.6); backdrop-filter: blur(6px); color: rgba(255,255,255,0.82);
    font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; cursor: pointer;
    transition: all var(--dur-base) var(--ease-out); }
  .fbg-drop:hover, .fbg-drop.over { border-color: var(--sky-300); color: #fff; background: rgba(15,18,40,0.85); }
  .fbg-drop svg { width: 18px; height: 18px; flex: none; }
  .fbg-drop.hidden { display: none; }
  footer .fradar { position: absolute; bottom: -260px; left: 50%; transform: translateX(-50%); width: 720px; height: 720px; pointer-events: none; opacity: 0.5; z-index: 1; }
  footer .fradar .ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); transform: translate(-50%,-50%) scale(0.2); animation: radar 7s var(--ease-out) infinite; }
  footer .wrap { position: relative; z-index: 2; }
  .foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
  footer img.flogo { height: 120px; display: block; margin: 0 auto 20px; }
  footer .fabout { font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.6; max-width: 320px; }
  footer h5 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--sky-300); margin-bottom: 16px; }
  .foot-grid h5 { color: var(--lime-500); }
  footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  footer ul li a { font-family: var(--font-body); font-size: var(--text-sm); color: rgba(255,255,255,0.7); transition: color var(--dur-fast); }
  footer ul li a:hover { color: #fff; }
  /* social */
  .social { display: flex; gap: 12px; margin-top: 20px; }
  .social a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.07); color: var(--sky-300);
    transition: all var(--dur-base) var(--ease-out); }
  .social a:hover { background: var(--cyan-500); border-color: var(--cyan-500); color: #fff; transform: translateY(-3px); }
  .social a svg { width: 19px; height: 19px; }
  /* newsletter */
  .fnews { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.14); padding: 28px 0; }
  .fnews h5 { margin-bottom: 6px; }
  .fnews p { font-family: var(--font-body); font-size: var(--text-sm); color: rgba(255,255,255,0.7); max-width: 420px; }
  .fnews form { display: flex; gap: 10px; flex-wrap: wrap; }
  .fnews input { width: 280px; max-width: 100%; padding: 12px 19px; border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #fff;
    font-family: var(--font-body); font-size: var(--text-sm); transition: border-color var(--dur-fast); }
  .fnews input::placeholder { color: rgba(255,255,255,0.5); }
  .fnews input:focus { outline: none; border-color: var(--sky-300); }
  .fnews .thanks { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-sm); color: var(--lime-500); }
  .legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-family: var(--font-body); font-size: var(--text-xs); color: rgba(255,255,255,0.5); line-height: 1.7; }

  /* ================= image slots ================= */
  image-slot { display: block; }
  .photo { padding: 0; }
  .photo .frame { position: relative; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); height: 460px; }
  .photo .frame image-slot { width: 100%; height: 100%; }
  .photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 52px 44px 44px; z-index: 3; pointer-events: none; color: #fff; }
  /* gradient + mask live on a layer BEHIND the text so the text stays full opacity */
  .photo .cap::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background:
      linear-gradient(115deg, rgba(87,180,220,0) 0%, rgba(87,180,220,0.4) 30%, rgba(159,208,233,0.34) 52%, rgba(87,180,220,0.4) 74%, rgba(87,180,220,0) 100%),
      linear-gradient(transparent 0%, rgba(11,31,46,0.6) 32%, rgba(15,18,40,0.96) 100%);
    background-size: 280% 100%, 100% 100%;
    -webkit-mask-image: linear-gradient(transparent, #000 34%); mask-image: linear-gradient(transparent, #000 34%); }
  @media (prefers-reduced-motion: no-preference) {
    .photo .cap::before { animation: capflow 11s ease-in-out infinite alternate; }
  }
  @keyframes capflow { from { background-position: 0% 0, 0 0; } to { background-position: 100% 0, 0 0; } }
  .photo .cap .eyebrow { color: var(--navy-600); font-size: var(--text-base); font-weight: var(--fw-bold); }
  .photo .cap h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.6rem,2.6vw,2.3rem); letter-spacing: -0.025em; margin: 10px 0 0; line-height: 1.06; color: #fff; }
  .photo .cap p { font-family: var(--font-body); font-size: var(--text-base); color: rgba(255,255,255,0.86); margin: 10px 0 0; max-width: 540px; line-height: 1.55; }
  .photo .cap .btn { pointer-events: auto; margin-top: 24px; }
  /* ================= mobile menu dropdown ================= */
  @media (max-width: 820px) {
    .navlinks { display: none; position: absolute; top: 66px; right: 0; left: 0;
      flex-direction: column; align-items: stretch; gap: 0;
      background: #fff; border-bottom: 1px solid var(--border-subtle);
      box-shadow: 0 12px 24px rgba(10,24,40,0.12); padding: 8px 0; z-index: 90; }
    .navlinks.open { display: flex; }
    .navlinks a.link { padding: 15px 22px; border-bottom: 1px solid var(--border-subtle); font-size: 1.05rem; color: var(--navy-700); }
    .navlinks a.link:last-of-type { border-bottom: none; }
    .menu-btn { display: block; }
  }

  /* ================= chat widget ================= */
  .chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 120; width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; border: none;
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%); color: #fff;
    box-shadow: 0 10px 30px rgba(0,155,223,0.45); transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
  .chat-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 38px rgba(0,155,223,0.55); }
  .chat-fab svg { width: 28px; height: 28px; }
  .chat-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan-400);
    animation: fabpulse 2.6s var(--ease-out) infinite; pointer-events: none; }
  @keyframes fabpulse { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.65); opacity: 0; } }
  .chat-fab .dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--lime-500); border: 2.5px solid #fff; }

  .chat-teaser { position: fixed; right: 100px; bottom: 32px; z-index: 120; max-width: 280px;
    background: #fff; color: var(--navy-700); border-radius: 18px 18px 4px 18px; padding: 16px 38px 16px 18px;
    font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.5; box-shadow: 0 14px 40px rgba(15,18,40,0.25);
    border: 1px solid var(--border-subtle); cursor: pointer;
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
  .chat-teaser.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .chat-teaser strong { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--navy-800); display: block; margin-bottom: 3px; }
  .chat-teaser .tx { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border: none; border-radius: 50%;
    background: var(--neutral-100); color: var(--neutral-600); cursor: pointer; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; }
  .chat-teaser .tx:hover { background: var(--neutral-200, #e2e5ec); }

  .chat-panel { position: fixed; right: 24px; bottom: 100px; z-index: 121; width: min(370px, calc(100vw - 32px));
    height: min(540px, calc(100vh - 130px)); display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: var(--radius-xl); box-shadow: 0 30px 80px rgba(15,18,40,0.35);
    border: 1px solid var(--border-subtle);
    opacity: 0; transform: translateY(18px) scale(0.97); pointer-events: none; transform-origin: bottom right;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
  .chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff;
    background: radial-gradient(130% 160% at 90% 0%, var(--cyan-600) 0%, rgba(0,129,189,0) 50%),
                linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%); }
  .chat-head img { height: 34px; }
  .chat-head .ct { flex: 1; min-width: 0; }
  .chat-head .ct strong { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-base); display: block; }
  .chat-head .ct span { font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 6px; }
  .chat-head .ct span i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); display: inline-block;
    box-shadow: 0 0 0 0 rgba(205,211,37,0.6); animation: livedot 2s infinite; }
  @keyframes livedot { 0% { box-shadow: 0 0 0 0 rgba(205,211,37,0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(205,211,37,0); } }
  .chat-head .cx { width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(255,255,255,0.14);
    color: #fff; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast); }
  .chat-head .cx:hover { background: rgba(255,255,255,0.26); }

  .chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: var(--neutral-50, #f5f6f9);
    display: flex; flex-direction: column; gap: 10px; }
  .msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-family: var(--font-body);
    font-size: var(--text-sm); line-height: 1.5; }
  .msg.bot { align-self: flex-start; background: #fff; color: var(--navy-800); border: 1px solid var(--border-subtle); border-bottom-left-radius: 5px; }
  .msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); color: #fff; border-bottom-right-radius: 5px; }
  .msg.typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
  .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--neutral-400, #b0b6c4); animation: tdot 1.1s infinite; }
  .msg.typing i:nth-child(2) { animation-delay: 0.15s; }
  .msg.typing i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

  .chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--neutral-50, #f5f6f9); }
  .chat-chips button { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 13px;
    padding: 8px 15px; border-radius: var(--radius-pill); border: 1px solid var(--cyan-500); background: #fff;
    color: var(--cyan-700, var(--cyan-600)); cursor: pointer; transition: all var(--dur-fast); }
  .chat-chips button:hover { background: var(--cyan-500); color: #fff; }

  .chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border-subtle); background: #fff; }
  .chat-input input { flex: 1; min-width: 0; padding: 12px 17px; border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle); background: var(--neutral-50, #f5f6f9);
    font-family: var(--font-body); font-size: var(--text-sm); color: var(--navy-800); }
  .chat-input input:focus { outline: none; border-color: var(--cyan-500); }
  .chat-input button { width: 46px; height: 46px; flex: none; border: none; border-radius: 50%; cursor: pointer;
    background: var(--lime-500); color: var(--navy-700); display: flex; align-items: center; justify-content: center;
    transition: transform var(--dur-fast), background var(--dur-fast); }
  .chat-input button:hover { background: #bcc31f; transform: scale(1.07); }
  .chat-input button svg { width: 20px; height: 20px; }

  /* ================= scroll invite modal ================= */
  .smodal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(15,18,40,0.55); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease-out); }
  .smodal-backdrop.show { opacity: 1; pointer-events: auto; }
  .smodal { position: relative; width: min(500px, 100%); background: #fff; border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: 0 40px 100px rgba(15,18,40,0.45); text-align: center;
    transform: translateY(26px) scale(0.96); transition: transform 0.35s var(--ease-out); }
  .smodal-backdrop.show .smodal { transform: translateY(0) scale(1); }
  .smodal .stop { position: relative; padding: 32px 30px 26px; color: #fff; overflow: hidden;
    background: radial-gradient(130% 170% at 88% 0%, var(--cyan-600) 0%, rgba(0,129,189,0) 52%),
                linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%); }
  /* faint tech grid */
  .smodal .stop::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(130% 110% at 50% 0%, #000 30%, transparent 92%); mask-image: radial-gradient(130% 110% at 50% 0%, #000 30%, transparent 92%); }
  /* animated signal line along the top edge */
  .smodal .stop::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--cyan-400) 35%, var(--lime-500) 55%, transparent 85%);
    background-size: 220% 100%; }
  @media (prefers-reduced-motion: no-preference) {
    .smodal .stop::after { animation: portaledge 5s linear infinite; }
  }
  /* agent avatar with pulse rings */
  .smodal .sagent { position: relative; width: 92px; height: 92px; margin: 0 auto 16px; z-index: 1; }
  .smodal .sagent .av { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
    background: linear-gradient(150deg, var(--cyan-400) 0%, var(--cyan-600) 45%, var(--navy-600) 100%);
    border: 2px solid rgba(255,255,255,0.4); box-shadow: 0 10px 30px rgba(0,155,223,0.4); }
  .smodal .sagent svg { width: 66px; height: 66px; display: block; fill: rgba(231,246,253,0.95); }
  .smodal .sagent .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan-400); opacity: 0; pointer-events: none; }
  @media (prefers-reduced-motion: no-preference) {
    .smodal .sagent .ring { animation: fabpulse 2.8s var(--ease-out) infinite; }
    .smodal .sagent .ring.r2 { animation-delay: 1.4s; }
  }
  .smodal .sagent .sdot { position: absolute; bottom: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--lime-500); border: 3px solid var(--navy-800); }
  @media (prefers-reduced-motion: no-preference) { .smodal .sagent .sdot { animation: livedot 2s infinite; } }
  .smodal .skicker { position: relative; z-index: 1; display: block; font-family: var(--font-display); font-weight: var(--fw-semibold);
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime-500); margin-bottom: 8px; }
  .smodal .stop h3 { position: relative; z-index: 1; font-family: var(--font-display); font-weight: var(--fw-light, 300);
    font-size: 1.8rem; letter-spacing: -0.02em; line-height: 1.12; color: var(--sky-300); }
  .smodal .stop h3 em { font-style: normal; font-weight: var(--fw-bold); color: #fff; }
  .smodal .sx { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.14); color: #fff; cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast); }
  .smodal .sx:hover { background: rgba(255,255,255,0.28); }
  .smodal .sbody { padding: 26px 34px 32px; }
  .smodal .sbody p { font-family: var(--font-body); font-size: var(--text-base); color: var(--neutral-700, #4a4f5e); line-height: 1.7; margin: 0 0 8px; }
  .smodal .sbody p strong { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--navy-700); }
  .smodal .sbody p .hl { font-style: normal; font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--cyan-600);
    background: linear-gradient(transparent 62%, rgba(205,211,37,0.4) 62%); padding: 0 2px; }
  .smodal .salt { font-size: var(--text-sm); color: var(--neutral-600); margin-bottom: 22px !important; }
  .smodal .sbtns { display: flex; flex-direction: column; gap: 11px; align-items: stretch; }
  .smodal .sbtns .btn { width: 100%; }
  .smodal .btn-signin { background: #fff; color: var(--navy-600); border: 1.5px solid var(--navy-300); }
  .smodal .btn-signin:hover { background: var(--navy-50); border-color: var(--navy-500); }
  .smodal .skeep { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--text-sm);
    color: var(--neutral-600); background: none; border: none; cursor: pointer; margin-top: 14px; text-decoration: underline; text-underline-offset: 3px; }
  .smodal .skeep:hover { color: var(--cyan-600); }

/* ================= reveal — soft fade-down ================= */
  .reveal { opacity: 0; transform: translateY(-26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .stagger > * { opacity: 0; transform: translateY(-22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .stagger.in > * { opacity: 1; transform: none; }
  .stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
  .stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
  .stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
  .stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
  .stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  }

  /* ================= responsive ================= */
  @media (max-width: 980px) {
    .hero { padding: 140px 0 90px; }
    .hero-grid, .portal { grid-template-columns: 1fr; }
    .radar, .portal .pradar, .portal .psil { display: none; }
    .steps { grid-template-columns: 1fr 1fr; }
    .step .connector { display: none; }
    .coord { grid-template-columns: 1fr; gap: 26px; }
    .coord-hub { order: -1; min-height: 0; padding: 30px 0 56px; }
    .node::after { display: none; }
    .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 22px;
      background: rgba(15,18,40,0.97); backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(255,255,255,0.12); box-shadow: 0 24px 50px rgba(15,18,40,0.45); }
    .navlinks.open { display: flex; }
    .navlinks a.link, header.scrolled .navlinks a.link { color: rgba(255,255,255,0.92); font-size: var(--text-base); padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .navlinks a.link:hover, header.scrolled .navlinks a.link:hover { color: var(--sky-300); }
    .navlinks .btn { margin-top: 16px; justify-content: center; }
    .menu-toggle { display: inline-flex; }
    .portal { padding: 40px; }
  }
  @media (max-width: 600px) {
    .wrap { padding: 0 20px; }
    .hero-logo { height: 76px; }
    section { padding: 64px 0; }
    .steps, .trust, .foot-grid { grid-template-columns: 1fr; }
    .coord-hub .disc, .coord-hub .hring { width: 270px; height: 270px; }
    .trust { gap: 18px; }
  }
  /* language switch */
  .lang-switch { display: inline-flex; gap: 2px; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-pill); overflow: hidden; }
  .lang-switch button { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: var(--fw-semibold);
    font-size: var(--text-2xs); letter-spacing: 0.06em; padding: 6px 11px; border: none; background: transparent; color: rgba(255,255,255,0.82);
    cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
  .lang-switch button svg { width: 18px; height: 12px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
  .lang-switch button.on { background: var(--cyan-500); color: #fff; }
  header.scrolled .lang-switch { border-color: var(--border-subtle); }
  header.scrolled .lang-switch button { color: var(--text-muted); }
  header.scrolled .lang-switch button.on { color: #fff; }
  @media (max-width: 980px) { .lang-switch { margin-top: 14px; align-self: flex-start; } }
/* ================= legal / content pages (privacy, terms) ================= */
.legal-hero { color: #fff; padding: 150px 0 60px;
  background: radial-gradient(120% 150% at 88% 0%, var(--cyan-600) 0%, rgba(0,129,189,0) 48%),
              linear-gradient(118deg, var(--navy-900) 0%, var(--navy-800) 38%, var(--navy-700) 100%); }
.legal-hero h1 { font-family: var(--font-display); font-weight: var(--fw-bold); color: #fff;
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; margin: 8px 0 0; }
.legal-updated { font-family: var(--font-mono); font-size: var(--text-sm); color: rgba(255,255,255,0.7); margin-top: 14px; }
.legal-body { background: var(--surface-page); padding: 64px 0 84px; }
.prose { max-width: 820px; margin: 0 auto; font-family: var(--font-body); color: var(--text-body);
  font-size: var(--text-base); line-height: 1.72; }
.prose > p:first-child { font-size: var(--text-lg); color: var(--text-strong); }
.prose h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--text-strong);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.25; margin: 38px 0 12px;
  padding-top: 22px; border-top: 1px solid var(--border-subtle); }
.prose h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--text-strong);
  font-size: var(--text-base); margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 8px 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--cyan-600); font-weight: 600; word-break: break-word; }
.prose a:hover { text-decoration: underline; }
@media (max-width: 600px) { .legal-hero { padding: 124px 0 44px; } .legal-body { padding: 44px 0 60px; } }

/* --- production image fills (replace design-time <image-slot> web component) --- */
.photo .frame .slot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
footer .fbg .slot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
