/* MyUzCity portal, final layer "Emerald night".
   Deep emerald-black canvas, ivory text, one gold accent. Pearl lives only in materials:
   the titanium phone, the robot, hairline borders. Loaded after portal.css and pages.css. */
:root {
  --bg0: #020A06; --bg1: #04110A; --bg2: #081A11; --bg3: #0E2519;
  --tx: #F4F1E8; --mut: rgba(244, 241, 232, .72); --dim: rgba(244, 241, 232, .5);
  --line: rgba(244, 241, 232, .085); --glass: rgba(244, 241, 232, .035);
  --acc: #EDB862; --acc2: #D99A3A; --ink: #1A1206;
  --em: #34D8A4;
  --card: rgba(7, 24, 15, .8);
  --hair: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(237, 184, 98, .16) 35%, rgba(52, 216, 164, .1) 65%, rgba(255, 255, 255, .05));
  --ti: linear-gradient(var(--fa, 118deg), #161C19 0%, #4C5852 8%, #C9D1CC 14%, #6B7872 21%, #1F2723 36%, #2F3934 55%, #AEB9B2 68%, #F1F4F0 72%, #66736C 80%, #1A201D 100%);
}

/* ---------- browser surfaces ---------- */
html { background: var(--bg1); color-scheme: dark; }
body { background: transparent; color: var(--tx); }
::selection { background: rgba(237, 184, 98, .34); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(244, 241, 232, .2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(244, 241, 232, .16); border-radius: 10px; border: 3px solid var(--bg1); }
::-webkit-scrollbar-thumb:hover { background: rgba(237, 184, 98, .5); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
input, textarea { caret-color: var(--acc); }
a { text-underline-offset: .22em; }
b, .stat b, .facts b, .kp b, .big { font-variant-numeric: tabular-nums; }

/* ---------- canvas: emerald light pooled at the top, nothing hazy over the content ---------- */
.pearl { inset: 0; animation: none; background:
  radial-gradient(55% 45% at 82% -6%, rgba(24, 122, 86, .42), transparent 70%),
  radial-gradient(42% 36% at 4% 8%, rgba(16, 96, 68, .34), transparent 72%),
  radial-gradient(60% 40% at 50% 112%, rgba(14, 86, 62, .26), transparent 70%),
  linear-gradient(180deg, #05150D 0%, #04110A 50%, #030D08 100%); }
.pearl::after { display: none; }
.grain { opacity: .03; }
.story::before { opacity: .22; }
.aurora i { filter: blur(110px); }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(28, 140, 96, .75) 0%, transparent 64%); opacity: .5; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(237, 184, 98, .45) 0%, transparent 60%); opacity: .22; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(18, 104, 92, .8) 0%, transparent 62%); opacity: .34; }

/* the city at night behind the first screen */
.hero-bg { position: absolute; top: 0; left: 50%; width: 100vw; height: 100vh; translate: -50% 0; z-index: -2; pointer-events: none; opacity: .62;
  background: url('/portal/art/city.webp?v=2') 70% 40% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 98%); mask-image: linear-gradient(180deg, #000 35%, transparent 98%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 17, 10, .96) 0%, rgba(4, 17, 10, .78) 34%, rgba(4, 17, 10, .2) 70%, rgba(4, 17, 10, .35) 100%); }
@media (max-width: 960px) { .hero-bg { opacity: .45; height: 100svh; } .hero-bg::after { background: linear-gradient(180deg, rgba(4, 17, 10, .55), rgba(4, 17, 10, .85)); } }

/* ---------- type ---------- */
.hero h1 { color: var(--tx); font-size: clamp(44px, 5vw, 74px); line-height: 1.02; letter-spacing: -.04em; max-width: 11ch; text-wrap: balance; }
.hero h1 span { display: block; }
.hero h1 em { display: block; font-style: normal; color: var(--acc); }
h2 { text-wrap: balance; }
.step.on h2 { text-shadow: none; }
.step .ic, .b .ic, .ai-top .ic { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g, #EDB862) 26%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--g, #EDB862) 70%, transparent); }
.facts b { color: var(--tx); }
.facts b::after { content: ''; display: block; width: 26px; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--g, var(--acc)); }

/* ---------- city search on the first screen ---------- */
.hs { margin-top: 30px; max-width: 580px; position: relative; z-index: 6; }
.hs-f { position: relative; display: flex; align-items: center; height: 66px; padding: 0 8px 0 22px; border-radius: 999px;
  background: rgba(5, 20, 12, .72); box-shadow: inset 0 0 0 1px rgba(244, 241, 232, .14), 0 24px 50px -28px rgba(0, 0, 0, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: box-shadow .25s var(--ease), background .25s; }
.hs-f:focus-within { background: rgba(5, 20, 12, .9); box-shadow: inset 0 0 0 1.5px rgba(237, 184, 98, .7), 0 0 0 6px rgba(237, 184, 98, .12), 0 24px 50px -28px rgba(0, 0, 0, .9); }
.hs-i svg { width: 24px; height: 24px; color: var(--acc); }
.hs-f input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--tx); font: 600 17px Manrope, sans-serif; padding: 0 14px; }
.hs-f input::placeholder { color: rgba(244, 241, 232, .5); }
.hs-f input::-webkit-search-cancel-button { display: none; }
.hs-f input:focus-visible { outline: none; }
.hs-go { height: 50px; padding: 0 20px; gap: 8px; }
.hs-go svg { width: 18px; height: 18px; }
.hs-drop { position: absolute; left: 0; right: 0; top: 76px; padding: 8px; border-radius: 24px; max-height: min(460px, 60vh); overflow-y: auto; overscroll-behavior: contain;
  background: #06160E; box-shadow: inset 0 0 0 1px rgba(244, 241, 232, .1), 0 40px 80px -30px rgba(0, 0, 0, .95);
  animation: hsIn .22s var(--ease); transform-origin: 50% 0; }
@keyframes hsIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.hs-g { padding: 12px 14px 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.hs-it { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 10px 12px; border: 0; border-radius: 16px; background: none; color: var(--tx); text-align: left; cursor: pointer; font: inherit; transition: background .15s; }
.hs-it:hover, .hs-it.on { background: rgba(244, 241, 232, .06); }
.hs-it > svg { width: 18px; height: 18px; color: var(--dim); transition: transform .2s var(--ease), color .2s; }
.hs-it:hover > svg, .hs-it.on > svg { color: var(--acc); transform: translateX(2px); }
.hs-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--g, var(--acc)); background: color-mix(in srgb, var(--g, #EDB862) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g, #EDB862) 28%, transparent); }
.hs-ic svg { width: 22px; height: 22px; }
.hs-it span { display: grid; gap: 2px; min-width: 0; }
.hs-it b { font-size: 15.5px; font-weight: 700; }
.hs-it em { font-style: normal; font-size: 13.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ask { margin-top: 4px; box-shadow: inset 0 1px 0 rgba(244, 241, 232, .07); border-radius: 0 0 16px 16px; }
.hs-ask .hs-ic { --g: #34D8A4; }
.hs-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.hs-pop span { font-size: 13.5px; color: var(--dim); font-weight: 600; margin-right: 2px; }
.hs-pop button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(244, 241, 232, .14); background: rgba(244, 241, 232, .03); color: var(--mut); font: 600 13.5px Manrope, sans-serif; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.hs-pop button:hover { color: var(--tx); border-color: rgba(237, 184, 98, .5); background: rgba(237, 184, 98, .08); }
.hero .cta-row { margin-top: 26px; }
details.kb.hs-hit { outline: 2px solid rgba(237, 184, 98, .55); outline-offset: 10px; border-radius: 12px; }
@media (max-width: 760px) {
  .hs-drop { top: 68px; }
  .hs-f { height: 58px; padding: 0 6px 0 16px; }
  .hs-f input { font-size: 16px; padding: 0 10px; }
  .hs-go { width: 46px; height: 46px; padding: 0; } .hs-go span { display: none; }
  .hs-pop button:nth-of-type(n+4) { display: none; }
}

/* ---------- buttons: polished gold, a soft offset shadow, a real press ---------- */
.btn-acc { background: linear-gradient(180deg, #F8D58F 0%, #EDB862 46%, #DB9C40 100%); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(120, 70, 10, .35), 0 14px 30px -14px rgba(219, 156, 64, .75); }
.btn-acc:hover { background: linear-gradient(180deg, #FBE0A6 0%, #F2C274 46%, #E3A84C 100%); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(120, 70, 10, .35), 0 20px 40px -16px rgba(219, 156, 64, .85); }
.btn-acc:active { transform: translateY(0) scale(.98); }
.btn-ghost { border-color: rgba(244, 241, 232, .2); background: rgba(244, 241, 232, .03); }
.btn-ghost:hover { border-color: rgba(237, 184, 98, .5); background: rgba(237, 184, 98, .07); }
.nav, .nav.solid { background: rgba(4, 17, 10, .72); border: 1px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 1px rgba(244, 241, 232, .08), 0 18px 40px -24px rgba(0, 0, 0, .9); }
.nav.solid { background: rgba(4, 17, 10, .9); }
.langs button.on { background: var(--acc); color: var(--ink); }

/* ---------- hairline borders: one quiet pearl edge for every panel ---------- */
.pb, .pn, .app-card, .hub, .ai-card, .agent { background: linear-gradient(var(--card), var(--card)) padding-box, var(--hair) border-box !important; }
.stat-grid { background: var(--line); }
.stat { background: rgba(5, 19, 12, .92); }
.chip { background: rgba(6, 22, 14, .78); border-color: rgba(244, 241, 232, .12); box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .9); }
.chip .e { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(237, 184, 98, .1); color: var(--acc); }
.chip .e svg { width: 24px; height: 24px; }
.big svg { width: 46px; height: 46px; vertical-align: -6px; color: var(--acc); }
.days b svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--acc); margin-right: 2px; }
.w-wx { background: linear-gradient(160deg, rgba(40, 110, 170, .18), transparent 70%), var(--glass); }

/* ---------- the phone: a real titanium body with depth, glass and a cast shadow ---------- */
.phone-wrap { perspective: 1900px; perspective-origin: 50% 40%; }
.phone { --ry: -19deg; --rx: 6deg; width: 348px; height: 720px; padding: 10px; border-radius: 60px; transform-style: preserve-3d;
  transform: rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(.6deg); transition: transform .9s var(--ease);
  background: var(--ti);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 0 0 2.5px rgba(0, 0, 0, .6), inset 0 0 0 4px rgba(255, 255, 255, .14);
  animation: bob 8s ease-in-out infinite; }
.ph-ex { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; border-radius: inherit; }
.ph-ex i { position: absolute; inset: 0; border-radius: 60px; background: var(--ti); transform: translateZ(calc(var(--z) * -1.4px));
  box-shadow: inset 0 0 0 400px rgba(0, 0, 0, calc(.12 + var(--z) * .035)); }
.ph-ex i:last-child { box-shadow: inset 0 0 0 400px rgba(0, 0, 0, .7), 34px 54px 90px -24px rgba(0, 0, 0, .9), 0 50px 120px -40px color-mix(in srgb, var(--g) 55%, transparent); }
.ph-side { width: 20px; background: linear-gradient(180deg, #2A322E, #9AA7A0 18%, #E6EBE7 30%, #6E7B74 46%, #202824 60%, #B9C3BD 82%, #2A322E); }
.ph-side b { background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .25), rgba(0, 0, 0, .5)); width: 12px; left: 4px; }
.phone::before { transform: translateX(-50%) translateZ(1px); }
.phone iframe { transform: translateZ(.5px); box-shadow: 0 0 0 4px #030504, 0 0 0 5px rgba(255, 255, 255, .1); border-radius: 48px; }
.ph-glare { inset: 10px; border-radius: 48px; transform: translateZ(1px);
  background: linear-gradient(112deg, transparent 26%, rgba(255, 255, 255, .17) 38%, rgba(255, 255, 255, .04) 47%, transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 14%),
    radial-gradient(120% 60% at var(--gx, 30%) -12%, rgba(255, 255, 255, .14), transparent 55%);
  background-size: 240% 100%, 100% 100%, 100% 100%; background-position: var(--gx, 30%) 0, 0 0, 0 0; }
.ph-floor { width: 360px; height: 56px; bottom: -26px; translate: -38% 0; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(10px); }
.phone-wrap::before { background: radial-gradient(circle, color-mix(in srgb, var(--g) 38%, transparent) 0%, color-mix(in srgb, var(--g) 10%, transparent) 40%, transparent 68%); }
.phone-wrap::after { border-color: color-mix(in srgb, var(--g) 26%, transparent); }
.try { transform: translateX(-50%) translateZ(2px); background: rgba(4, 17, 10, .82); }
.mini-phone { background: var(--ti); animation: none; padding: 6px; border-radius: 32px; transform: perspective(800px) rotateY(-16deg) rotateX(5deg); }
.mini-phone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 0 0 2px rgba(0, 0, 0, .5), 7px 3px 0 -1px #3A4540, 18px 34px 50px -24px rgba(0, 0, 0, .9); }
.mp-screen { border-radius: 27px; }
@media (max-width: 960px) {
  .phone-wrap { perspective: 1400px; }
  .phone { --ry: -9deg !important; --rx: 3deg !important; width: min(330px, 80vw); height: min(690px, 168vw); }
  .ph-floor { width: 260px; }
}

/* ---------- catalogue tiles: deeper image grade, gold on hover ---------- */
.tile { box-shadow: inset 0 0 0 1px rgba(244, 241, 232, .07); }
.tile:hover { box-shadow: inset 0 0 0 1px rgba(237, 184, 98, .35), 0 30px 60px -30px rgba(0, 0, 0, .9); }

/* ---------- the assistant: a robot in a dark green suit, code living on its visor ---------- */
.bot { position: relative; aspect-ratio: 2 / 3; --vx: 38.3%; --vy: 12.7%; --vw: 40%; --vh: 22.4%; --mx: 58.6%; --my: 30.1%; perspective: 900px; }
.bot.tiny { aspect-ratio: 1; --vx: 21.1%; --vy: 18.7%; --vw: 57%; --vh: 47.8%; --mx: 50%; --my: 55.8%; }
.bot-in { position: absolute; inset: 0; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--ease); transform-origin: 50% 40%; }
.bot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; user-select: none; }
.bot-visor { position: absolute; left: var(--vx); top: var(--vy); width: var(--vw); height: var(--vh); mix-blend-mode: screen; opacity: .6;
  -webkit-mask: radial-gradient(closest-side, #000 62%, transparent 100%); mask: radial-gradient(closest-side, #000 62%, transparent 100%); pointer-events: none; }
.bot-visor canvas { display: block; width: 100%; height: 100%; }
.bot-mouth { position: absolute; left: var(--mx); top: var(--my); width: calc(var(--vw) * .5); aspect-ratio: 2.4; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(120, 255, 190, .85), rgba(52, 230, 150, .35) 55%, transparent); mix-blend-mode: screen; opacity: 0; }
body.rb-talking .bot-mouth { animation: botTalk .34s ease-in-out infinite alternate; }
@keyframes botTalk { from { opacity: .25; transform: scale(.8, .6); } to { opacity: .95; transform: scale(1.1, 1.25); } }
.bot-visor::after { content: ''; }
.bot-sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 130% 0;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; animation: botSheen 7s var(--ease) 1.5s infinite; }
@keyframes botSheen { 0% { background-position: 130% 0; } 40%, 100% { background-position: -30% 0; } }
.bot.big, .bot.mid { animation: botFloat 7s ease-in-out infinite; }
@keyframes botFloat { 50% { translate: 0 -8px; } }
/* placements */
.agent .bot.big { position: absolute; left: 50%; bottom: 0; height: 97%; width: auto; translate: -50% 0; scale: -1 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(52, 216, 164, .14)); animation: none; }
.agent .bot.big .bot-in, .dock-bot .bot.mid .bot-in { transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) * -1)); }
.agent .bot.big .bot-in { animation: botFloat 7s ease-in-out infinite; }
.agent .ag-ring { top: 30%; width: 380px; height: 380px; }
.agent .ag-id { z-index: 2; }
.dock-bot .bot.mid { position: absolute; left: 50%; bottom: 0; height: 84%; width: auto; translate: -50% 0; scale: -1 1; animation: none; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); }
.dock-bot .bot.mid .bot-in { animation: botFloat 7s ease-in-out infinite; }
.dock-av .bot.tiny { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.dock-av .bot.tiny .bot-img { object-fit: cover; }
.dock-av { background: radial-gradient(circle at 50% 30%, #145238, #04130B 72%); }
.tile-ag .bot.tile { position: absolute; right: 8%; bottom: -14%; height: 128%; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.tile .bot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: auto; transform: none; filter: none; }
.tile:hover .bot img { transform: none; }
@media (max-width: 760px) {
  .dock-bot .bot.mid { left: auto; right: 2%; translate: 0 0; height: 200%; bottom: -128%; }
}
@media (prefers-reduced-motion: reduce) {
  .bot, .bot-in, .bot-sheen, body.rb-talking .bot-mouth { animation: none !important; }
}

/* assistant on narrow screens: keep the panel inside the page */
.ai > * { min-width: 0; }
.ag-id { min-width: 0; } .ag-id b, .ag-id i { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .ai { grid-template-columns: minmax(0, 1fr); }
  .ag-id { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .ag-id b { font-size: 13.5px; } .ag-id i { font-size: 13px; }
}
@media (max-width: 760px) {
  .ai-top { flex-wrap: wrap; } .ai-top > div { flex: 1 1 100%; } .ai-top .ic { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
}
/* keep the floating air-quality chip clear of the headline */
.chip.c2 { left: -30px; top: 560px; }
/* partner form: fields keep their height inside the column labels */
.pt-form input, .pt-form textarea { flex: none; }
.pt-form { background: linear-gradient(180deg, #0F3020, #08200F); }
/* the dock's speech bubble greets once, then steps aside so it never covers content */
.dock-bub { animation: rise .6s var(--ease) both 1.2s, bubOut .5s var(--ease) forwards 9s; }
.dock-btn:hover .dock-bub, .dock-btn:focus-visible .dock-bub { animation: none; opacity: 1; transform: none; }
@keyframes bubOut { to { opacity: 0; transform: translateX(8px); visibility: hidden; } }
