/* G2K AI Review Agent demo - same brand system as the trading portal */
@font-face { font-family: "Sora"; src: url("/static/sora-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #07080f; --panel: rgba(20,22,44,.72); --text: #eef0fb; --muted: #9aa0c3; --dim: #6f749c;
  --border: rgba(255,255,255,.08); --border-strong: rgba(255,255,255,.15);
  --violet: #7c6cff; --cyan: #22d3ee; --good: #34d399; --bad: #f87171; --warn: #fbbf24;
  --grad: linear-gradient(120deg, #a78bfa 0%, #7c6cff 35%, #22d3ee 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
h1, h2, h3, .brand-name, .title, .page-title { font-family: "Sora", system-ui, sans-serif; letter-spacing: -.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shimmer { background-size: 200% 100%; animation: shine 4s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.muted { color: var(--muted); } .small { font-size: 13px; } .hint { color: var(--dim); font-size: 12.5px; }
.err { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.35); color: #fca5a5; animation: pop .3s ease-out; }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(124,108,255,.45); }

/* background: particle network + drifting blobs */
.net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #7c6cff; top: -160px; left: -140px; }
.b2 { width: 440px; height: 440px; background: #22d3ee; bottom: -180px; right: -120px; opacity: .3; animation-delay: -6s; }
.b3 { width: 300px; height: 300px; background: #a78bfa; top: 40%; right: 18%; opacity: .18; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

/* brand + 3D logo */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name { font-weight: 700; font-size: 18px; }
.brand-sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.logo3d { position: relative; width: 50px; height: 50px; flex: none; perspective: 400px; display: grid; place-items: center; }
.g2k-logo { position: relative; z-index: 2; width: 100%; height: 100%; overflow: visible; animation: turn 7s ease-in-out infinite, glow 3s ease-in-out infinite; }
@keyframes turn { 0%,100% { transform: rotateY(-16deg) rotateX(6deg); } 50% { transform: rotateY(16deg) rotateX(-4deg) translateY(-3px); } }
@keyframes glow { 0%,100% { filter: drop-shadow(0 6px 14px rgba(124,108,255,.4)); } 50% { filter: drop-shadow(0 6px 24px rgba(34,211,238,.6)); } }
.g2k-logo .pin { opacity: .35; animation: pin 1.8s ease-in-out infinite; }
.g2k-logo .pin:nth-child(2) { animation-delay: .15s; } .g2k-logo .pin:nth-child(3) { animation-delay: .3s; }
.g2k-logo .pin:nth-child(4) { animation-delay: .45s; } .g2k-logo .pin:nth-child(5) { animation-delay: .6s; }
.g2k-logo .pin:nth-child(6) { animation-delay: .75s; } .g2k-logo .pin:nth-child(7) { animation-delay: .9s; }
.g2k-logo .pin:nth-child(8) { animation-delay: 1.05s; } .g2k-logo .pin:nth-child(9) { animation-delay: 1.2s; }
.g2k-logo .pin:nth-child(10) { animation-delay: 1.35s; } .g2k-logo .pin:nth-child(11) { animation-delay: 1.5s; }
.g2k-logo .pin:nth-child(12) { animation-delay: 1.65s; }
@keyframes pin { 0%,70%,100% { opacity: .35; } 20% { opacity: 1; } }
.g2k-logo .ai path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease-out .5s forwards; }
.g2k-logo .ai path:nth-child(2) { animation-delay: 1.1s; } .g2k-logo .ai path:nth-child(3) { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.g2k-logo .led { animation: led 2s ease-in-out infinite; } @keyframes led { 50% { opacity: .25; } }
.halo { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.45), rgba(34,211,238,.15) 45%, transparent 70%);
  filter: blur(6px); animation: halo 3s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.15); opacity: .7; } }
.ring { position: absolute; inset: -14%; z-index: 1; border-radius: 50%; border: 1.5px solid transparent;
  border-top-color: rgba(34,211,238,.9); border-right-color: rgba(167,139,250,.6); transform: rotateX(68deg); animation: ring 3.2s linear infinite; }
@keyframes ring { to { transform: rotateX(68deg) rotateZ(360deg); } }

/* cards */
.card { position: relative; background: linear-gradient(180deg, rgba(23,25,46,.8), rgba(12,13,26,.86)); border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 26px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0deg, rgba(167,139,250,.85) 40deg, rgba(34,211,238,.85) 80deg, transparent 130deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 6s linear infinite; opacity: .8; }
@keyframes orbit { to { --ang: 360deg; } }

/* inputs + buttons */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; } .field > span { font-size: 13px; font-weight: 500; color: #c9cce6; }
.input { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 50px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s, background .2s; }
.input:focus-within { border-color: rgba(124,108,255,.8); background: rgba(124,108,255,.06); box-shadow: 0 0 0 4px rgba(124,108,255,.18); }
.input::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.input:focus-within::after { transform: scaleX(1); }
.input svg { width: 18px; height: 18px; fill: var(--dim); flex: none; } .input:focus-within svg { fill: #a78bfa; }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.input input::placeholder { color: var(--dim); }
.input input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px #15172b inset; }
.eye { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px;
  border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 600 15px "Sora", system-ui, sans-serif; transition: transform .15s, box-shadow .2s, opacity .2s, background-position .4s; }
.btn.primary { background: var(--grad); background-size: 160% 100%; box-shadow: 0 12px 30px -10px rgba(124,108,255,.8); }
.btn.primary:hover:not(:disabled) { background-position: 100% 0; box-shadow: 0 16px 40px -10px rgba(34,211,238,.55); }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: sweep 3.6s ease-in-out 1.5s infinite; }
@keyframes sweep { 0% { left: -60%; } 45%,100% { left: 130%; } }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; } .btn:disabled::after { display: none; }
.btn.big { height: 56px; font-size: 16px; }
.btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.btn.ghost:hover { border-color: rgba(167,139,250,.6); background: rgba(124,108,255,.1); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #d4d7ee; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #7c6cff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

/* login */
.login-shell { min-height: 100vh; min-height: 100dvh; max-width: 1240px; margin: 0 auto; padding: 40px 24px 20px;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; justify-items: center; }
.hero { display: none; }
.login-card { width: min(440px, 100%); }
.card-brand { margin-bottom: 26px; }
.title { font-size: 28px; margin: 0 0 6px; } .login-card .muted { margin: 0 0 22px; }
.login-card .btn { width: 100%; margin-top: 4px; }
.copy { text-align: center; color: var(--dim); font-size: 12px; margin: 0 0 24px; }
@media (min-width: 960px) {
  .login-shell { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .hero { display: block; justify-self: start; max-width: 560px; }
  .card-brand { display: none; }
  .login-card { justify-self: end; }
}
.hero .brand { margin-bottom: 34px; } .hero .logo3d { width: 62px; height: 62px; }
.hero-title { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.05; font-weight: 800; margin: 0 0 18px; }
.hero-lead { color: var(--muted); font-size: 17px; margin: 0 0 30px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feats li { display: flex; align-items: center; gap: 14px; }
.feats b { display: block; font-weight: 600; } .feats small { color: var(--dim); font-size: 13px; }
.fi { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #c4b5fd;
  background: linear-gradient(140deg, rgba(124,108,255,.22), rgba(34,211,238,.12)); border: 1px solid rgba(167,139,250,.3); transition: transform .3s; }
.feats li:hover .fi { transform: translateY(-2px) rotate(-6deg); }

/* app pages */
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 24px; background: rgba(7,8,15,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.top .logo3d { width: 40px; height: 40px; } .top .brand-name { font-size: 16px; }
.top-r { display: flex; align-items: center; gap: 10px; }
.quota.low { color: #fcd34d; border-color: rgba(251,191,36,.4); } .quota.out { color: #fca5a5; border-color: rgba(248,113,113,.5); }
.wrap { max-width: 920px; margin: 0 auto; padding: 28px 20px 60px; display: grid; gap: 20px; }
.page-title { font-size: 32px; font-weight: 800; margin: 0 0 6px; }
.intro p { margin: 0; max-width: 720px; }
.step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .step-h h2 { margin: 0; font-size: 19px; }
.num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 15px "Sora"; background: var(--grad); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(124,108,255,.8); }
.step.disabled { opacity: .45; pointer-events: none; filter: saturate(.6); }
.step { transition: opacity .4s, filter .4s; }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .grow { flex: 1 1 280px; }
.hint { margin: 10px 2px 0; }
.results { display: grid; gap: 10px; margin-top: 16px; }
.result { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; text-align: left; padding: 12px; border-radius: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--text); cursor: pointer; font: inherit;
  animation: rowIn .45s cubic-bezier(.2,.8,.2,1) both; transition: border-color .2s, transform .2s, background .2s; }
.result:hover { border-color: rgba(167,139,250,.55); transform: translateY(-2px); background: rgba(124,108,255,.07); }
.result.on { border-color: rgba(34,211,238,.8); background: rgba(34,211,238,.07); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.result img, .result .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 26px; }
.result b { display: block; font-size: 15px; } .result small { color: var(--muted); display: block; }
.stars { color: var(--warn); font-weight: 700; white-space: nowrap; font-size: 14px; } .stars em { color: var(--dim); font-style: normal; font-weight: 400; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.picked { margin-bottom: 16px; }
.picked .result { cursor: default; animation: none; }
.recent { display: grid; gap: 10px; }
.recent a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.recent a:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.recent small { color: var(--muted); grid-column: 1 / -1; }
.sec-h { font-size: 15px; margin: 6px 0 12px; }
.badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #c4b5fd; background: rgba(124,108,255,.16); border: 1px solid rgba(167,139,250,.35); white-space: nowrap; }
.badge.done { color: #6ee7b7; background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.35); }
.badge.failed { color: #fca5a5; background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.35); }
.badge.running { animation: breathe 2s ease-in-out infinite; } @keyframes breathe { 50% { box-shadow: 0 0 0 5px rgba(124,108,255,.15); } }

/* job progress */
.back { color: var(--muted); text-decoration: none; font-size: 14px; width: fit-content; } .back:hover { color: var(--text); }
.job-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.job-h p { margin: 0; }
.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin: 22px 0; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); background-size: 200% 100%;
  transition: width .8s cubic-bezier(.2,.8,.2,1); animation: shine 2s linear infinite; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; color: var(--dim); transition: color .3s, background .3s; }
.steps li .ic { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.15); transition: all .3s; }
.steps li.now { color: var(--text); background: rgba(124,108,255,.08); }
.steps li.now .ic { border-color: transparent; background: conic-gradient(#7c6cff, #22d3ee, #7c6cff); animation: spin 1.2s linear infinite; }
.steps li.now .ic::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #12142a; }
.steps li.ok { color: #d7dbf3; } .steps li.ok .ic { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.6); color: var(--good); animation: pop .35s ease-out; }
.steps li.ok .ic::after { content: "✓"; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.job-detail { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.files { margin-top: 22px; display: grid; gap: 10px; animation: pop .5s ease-out; }
.files h3 { margin: 0 0 4px; font-size: 16px; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03);
  color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.file:hover { border-color: rgba(34,211,238,.6); transform: translateY(-2px); background: rgba(34,211,238,.06); }
.file .pdf { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 700 11px "Sora"; background: rgba(248,113,113,.15); color: #fca5a5; }
.file b { display: block; } .file small { color: var(--muted); }
.success { padding: 16px 18px; border-radius: 16px; background: linear-gradient(120deg, rgba(52,211,153,.14), rgba(34,211,238,.08)); border: 1px solid rgba(52,211,153,.35); }
.success b { color: #6ee7b7; }

/* entrance */
.reveal { animation: reveal .7s cubic-bezier(.2,.8,.2,1) both; }
.reveal:nth-child(2) { animation-delay: .08s; } .reveal:nth-child(3) { animation-delay: .16s; } .reveal:nth-child(4) { animation-delay: .24s; }
.feats .reveal:nth-child(1) { animation-delay: .5s; } .feats .reveal:nth-child(2) { animation-delay: .6s; } .feats .reveal:nth-child(3) { animation-delay: .7s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.shake { animation: shake .45s ease-in-out; }
@keyframes shake { 15%,55% { translate: -9px 0; } 35%,75% { translate: 9px 0; } 90% { translate: -3px 0; } }

@media (max-width: 640px) {
  .card { padding: 20px; border-radius: 18px; } .page-title { font-size: 26px; }
  .result { grid-template-columns: 48px 1fr; } .result img, .result .ph { width: 48px; height: 48px; } .result .stars { grid-column: 2; }
  .top { padding: 10px 14px; } .top .brand-sub { display: none; }
  .blob { filter: blur(60px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .g2k-logo .ai path { stroke-dashoffset: 0; } .g2k-logo .pin { opacity: 1; }
}
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .2; } }
