/* Motion layer: globe hero, scroll story, holographic scanner, reveals.
   Everything still reads fine without JS or with "reduce motion". */
.mono { font-family: var(--font-mono); }
.cyan-text { color: #4FC3F7; text-shadow: 0 0 24px rgba(79, 195, 247, .45); }
.eyebrow-cyan { color: #4FC3F7; }

/* moving gold dot grid + film grain behind everything */
.fx-grid { position: fixed; inset: -40px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(200, 164, 93, .16) 1px, transparent 1.4px); background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  animation: grid-drift 40s linear infinite; }
@keyframes grid-drift { to { transform: translate(34px, 34px); } }
.fx-grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-8px, 6px); } 50% { transform: translate(6px, -4px); } 75% { transform: translate(-4px, -8px); } }
body { background: radial-gradient(ellipse 120% 60% at 50% 0%, #15120c, var(--black) 60%) fixed; }
main section, .nav { position: relative; }
.section-alt { background: rgba(17, 17, 17, .72); }

/* hero globe */
.hero-globe { padding-right: 0; min-height: 520px; display: grid; place-items: center; }
.globe { position: relative; width: min(100%, 620px); aspect-ratio: 1; }
.globe canvas { width: 100%; height: 100%; display: block; }
.globe-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(200, 164, 93, .22); animation: spin 60s linear infinite; pointer-events: none; }
.globe-ring::after { content: ''; position: absolute; inset: -9%; border-radius: 50%; border: 1px solid rgba(200, 164, 93, .08); }
@keyframes spin { to { transform: rotate(360deg); } }
.globe-pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -120%); font: 600 11px/1 var(--font-mono); letter-spacing: .08em; white-space: nowrap;
  color: #1c1810; background: linear-gradient(90deg, #c8a45d, #e8d9a8); padding: 6px 9px; border-radius: 7px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 18px rgba(216, 184, 115, .35); opacity: 0; transition: opacity .35s; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: #d8b873; transform: translateX(-50%) rotate(45deg); }
.pin.on { opacity: 1; }
.hero-globe .frame-phone { position: absolute; left: 0; bottom: -10px; width: 26%; max-width: 190px; z-index: 2; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.globe-tag { position: absolute; right: 0; bottom: 0; font-size: 10px; letter-spacing: .2em; color: rgba(200, 164, 93, .7); }
.globe-tag::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; margin-right: 8px; box-shadow: 0 0 10px #4ade80; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* headline types in */
.type-in .ch { display: inline-block; opacity: 0; transform: translateY(.45em) skewY(6deg); filter: blur(6px);
  animation: ch-in .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.type-in .gold-text .ch { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }

/* reveals */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* feature cards: cursor light + tilt */
.feature { position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease, border-color .25s; will-change: transform; }
.feature::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(216, 184, 115, .16), transparent 60%); }
.feature:hover::before { opacity: 1; }
.feature:hover { border-color: rgba(200, 164, 93, .55); }

/* agent bot chat types itself */
.phone-chat .pc-msg, .phone-chat .pc-app { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .45s, transform .45s; }
.phone-chat .pc-msg.in, .phone-chat .pc-app.in { opacity: 1; transform: none; }
.pc-typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #1f2c34; width: max-content; margin: 4px 0; }
.pc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9ab; animation: dot 1s infinite; }
.pc-typing i:nth-child(2) { animation-delay: .15s; } .pc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }

/* scroll story */
.story { padding: 70px 0; }
.story-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; }
.story-dots { grid-row: 3; display: flex; gap: 8px; margin-top: 26px; }
.story-dots button { width: 34px; height: 4px; border: 0; border-radius: 4px; background: rgba(200,164,93,.25); padding: 0; cursor: pointer; overflow: hidden; position: relative; }
.story-dots button i { position: absolute; inset: 0; width: 0; background: var(--gold); }
.story-dots button.is-on i { animation: fill 3.6s linear forwards; }
.story-steps { display: grid; grid-template-rows: auto auto auto; }
.story-steps > .eyebrow { grid-row: 1; }
.story-step { grid-row: 2; grid-column: 1; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; }
.story-step.is-on { opacity: 1; transform: none; }
.story-step span { color: var(--gold); font-size: 13px; letter-spacing: .2em; }
.story-step h3 { font-size: clamp(30px, 5vw, 56px); margin: 8px 0 14px; letter-spacing: -.01em; }
.story-step p { color: var(--muted); max-width: 42ch; font-size: 17px; }
.story-stage { position: relative; height: min(70vh, 640px); perspective: 1400px; display: grid; place-items: center; }
.story-phone { position: relative; height: 100%; aspect-ratio: 780 / 1688; border-radius: 42px; padding: 10px; transform-style: preserve-3d;
  background: linear-gradient(145deg, #4a4540, #161513 40%, #2c2925); box-shadow: 0 0 0 1.5px #5f5850 inset, 0 60px 120px rgba(0, 0, 0, .75), 0 0 80px rgba(216, 184, 115, .14);
  transform: rotateY(var(--ry, -18deg)) rotateX(var(--rx, 6deg)); }
.story-phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; object-position: top; border-radius: 33px;
  opacity: 0; transform: translateZ(1px) scale(1.04); transition: opacity .6s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.story-phone img.is-on { opacity: 1; transform: translateZ(1px); }
.story-scan { position: absolute; inset: 10px; border-radius: 33px; overflow: hidden; pointer-events: none; }
.story-scan::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(216, 184, 115, .14), transparent); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }
.story-tag { position: absolute; font: 800 12px var(--font-title); letter-spacing: .06em; color: #1c1810; background: #d8b873; padding: 9px 13px; border-radius: 9px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5); opacity: 0; transform: translateX(20px) scale(.9); transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.story-tag.is-on { opacity: 1; transform: none; }
.story-tag[data-step="0"] { right: 4%; top: 30%; } .story-tag[data-step="1"] { left: 4%; top: 22%; } .story-tag[data-step="2"] { right: 2%; top: 55%; }

/* holographic scanner */
.holo { background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(79, 195, 247, .09), transparent 70%); }
.holo-grid { display: grid; gap: 22px; margin-top: 36px; }
.holo-card { margin: 0; position: relative; padding: 18px; border-radius: 20px; background: rgba(6, 14, 20, .75);
  border: 1px solid rgba(79, 195, 247, .28); box-shadow: 0 0 0 1px rgba(79, 195, 247, .06) inset, 0 0 60px rgba(79, 195, 247, .08); overflow: hidden; }
.holo-card::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(79, 195, 247, .05) 0 1px, transparent 1px 4px); }
.holo-card canvas { width: 100%; height: auto; display: block; }
.holo-card figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 12px; }
.holo-card figcaption strong { font-family: var(--font-title); }
.holo-card figcaption span { color: var(--muted); font-size: 14px; }
.holo-card figcaption em { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: .25em; color: rgba(79, 195, 247, .7); }
.radar-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: 11px; letter-spacing: .12em; color: #cfe9f5; }
.radar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tracker { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.tracker video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tracker-chip { position: absolute; top: 12px; right: 12px; font-size: 11px; letter-spacing: .14em; color: #d8b873; background: rgba(10, 9, 7, .75); padding: 7px 11px; border-radius: 8px; }
.tracker::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(216, 184, 115, .35); border-radius: 12px; pointer-events: none; }

/* final call: the gold mark */
.cta-logo { width: 150px; height: 150px; margin: 0 auto 14px; filter: drop-shadow(0 18px 40px rgba(216, 184, 115, .35)); animation: logo 9s ease-in-out infinite; }
@keyframes logo { 0%, 100% { transform: perspective(600px) rotateY(-22deg) translateY(0); } 50% { transform: perspective(600px) rotateY(22deg) translateY(-8px); } }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; padding-top: 0; }
  .holo-grid { grid-template-columns: 1fr 1.25fr; align-items: stretch; }
}
@media (max-width: 899px) {
  .hero-globe { min-height: 0; }
  .globe-tag { display: none; }
  .hero-globe .frame-phone { width: 24%; }
  .story-stage { height: 52vh; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-grid, .fx-grain, .float, .globe-ring, .cta-logo, .story-scan::after { animation: none !important; }
  .rv, .type-in .ch, .phone-chat .pc-msg, .phone-chat .pc-app { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
}

/* features as a "Transfer Desk brain": a core wired to every feature */
.brain { position: relative; margin-top: 34px; }
.brain-stage { position: relative; width: 100%; height: 700px; }
.brain svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.brain-wire { fill: none; stroke: rgba(200, 164, 93, .35); stroke-width: 1.4; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .2, 1), stroke .3s; }
.brain.on .brain-wire { stroke-dashoffset: 0; }
.brain-wire.hot { stroke: #e2c992; stroke-width: 2.2; filter: drop-shadow(0 0 6px rgba(226, 201, 146, .8)); }
.brain-pulse { fill: #fff1c8; filter: drop-shadow(0 0 6px #e2c992); opacity: 0; }
.brain.live .brain-pulse { opacity: 1; }
.brain-core { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: transform 1s cubic-bezier(.2, .9, .2, 1.2), opacity .6s; display: grid; place-items: center; z-index: 2; }
.brain.on .brain-core { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.brain-core::before { content: ''; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 184, 115, .35), rgba(216, 184, 115, .05) 60%, transparent 70%); animation: breathe 3.2s ease-in-out infinite; }
.brain-core .r1, .brain-core .r2 { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(216, 184, 115, .45); animation: spin 24s linear infinite; }
.brain-core .r2 { inset: 12%; border-style: solid; border-color: rgba(216, 184, 115, .18); border-top-color: #e2c992; animation-duration: 6s; animation-direction: reverse; }
.brain-core img { width: 58%; height: auto; position: relative; filter: drop-shadow(0 10px 30px rgba(216, 184, 115, .45)); animation: logo 9s ease-in-out infinite; }
.brain-core span { position: absolute; bottom: -26px; font: 600 11px var(--font-mono); letter-spacing: .3em; color: var(--gold); white-space: nowrap; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.brain-node { position: absolute; transform: translate(-50%, -50%) scale(.4); opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; z-index: 2; transition: transform .5s cubic-bezier(.2, .9, .2, 1.3), opacity .4s; width: 120px; }
.brain-node.in { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.brain-node .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(17, 15, 11, .92);
  border: 1px solid rgba(200, 164, 93, .4); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: all .3s; }
.brain-node .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; position: static; }
.brain-node b { font: 700 12.5px/1.25 var(--font-title); text-align: center; color: #d9d3c5; transition: color .3s; }
.brain-node.hot .ic { background: linear-gradient(135deg, #8e6b32, #e8d9a8); border-color: #e8d9a8; box-shadow: 0 0 0 6px rgba(216, 184, 115, .12), 0 0 36px rgba(216, 184, 115, .55); transform: scale(1.12); }
.brain-node.hot .ic svg { stroke: #1c1810; }
.brain-node.hot b { color: #f5ead0; }
.brain-detail { position: relative; max-width: 640px; margin: 18px auto 0; min-height: 140px; padding: 22px 24px; border-radius: 18px; text-align: center;
  background: rgba(17, 15, 11, .85); border: 1px solid rgba(200, 164, 93, .35); box-shadow: 0 0 60px rgba(216, 184, 115, .08); }
.brain-detail .k { font: 600 11px var(--font-mono); letter-spacing: .25em; color: var(--gold); }
.brain-detail h3 { margin: 8px 0 8px; font-size: 22px; }
.brain-detail p { color: var(--muted); }
.brain-detail .swap { animation: swap .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.brain-detail .bar { position: absolute; left: 24px; right: 24px; bottom: 10px; height: 2px; background: rgba(200, 164, 93, .15); border-radius: 2px; overflow: hidden; }
.brain-detail .bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.brain-detail .bar i.run { animation: fill 3.6s linear forwards; }
@keyframes fill { to { width: 100%; } }
@media (max-width: 899px) {
  .brain-stage { height: 600px; }
  .brain-core { width: 132px; height: 132px; }
  .brain-node { width: 84px; gap: 5px; }
  .brain-node .ic { width: 44px; height: 44px; border-radius: 12px; }
  .brain-node .ic svg { width: 21px; height: 21px; }
  .brain-node b { font-size: 10.5px; }
  .brain-detail { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .brain-wire { stroke-dashoffset: 0 !important; transition: none; } .brain-core, .brain-node { opacity: 1 !important; transform: translate(-50%, -50%) !important; transition: none; }
}
