/* Anonymous welcome page (www/index.html). Self-contained: the page does not
   extend the Frappe website shell, so nothing here leaks into other routes. */
.iam-welcome {
  --iw-blue-500: #3b82f6;
  --iw-blue-800: #1530a8;
  --iw-cyan: #38e1ff;
  --iw-violet: #8b7bff;
  --iw-night: #040a24;
  margin: 0;
  min-height: 100vh;
  color: #fff;
  background: var(--iw-night);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
.iam-welcome *, .iam-welcome *::before, .iam-welcome *::after { box-sizing: border-box; }
.iam-welcome svg { flex: none; }
.iam-welcome a { text-decoration: none; }

.iw-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1100px 720px at 78% 38%, rgba(37, 99, 235, .55), transparent 62%),
    radial-gradient(700px 520px at 8% 0%, rgba(56, 225, 255, .16), transparent 60%),
    radial-gradient(900px 600px at 30% 110%, rgba(139, 123, 255, .22), transparent 60%),
    linear-gradient(160deg, #061247 0%, #071036 45%, var(--iw-night) 100%);
}
.iw-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.iw-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(147, 197, 253, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(147, 197, 253, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 30%, transparent 80%);
}
.iw-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.iw-glow-a { top: 18%; right: 14%; width: 420px; height: 420px; background: rgba(59, 130, 246, .45); animation: iw-drift 14s ease-in-out infinite alternate; }
.iw-glow-b { bottom: -10%; left: 30%; width: 360px; height: 360px; background: rgba(56, 225, 255, .16); animation: iw-drift 18s ease-in-out infinite alternate-reverse; }
.iw-rings { position: absolute; right: -260px; bottom: -360px; width: 900px; height: 900px; border: 1px solid rgba(147, 197, 253, .14); border-radius: 50%; box-shadow: 0 0 0 90px rgba(147, 197, 253, .035), 0 0 0 180px rgba(147, 197, 253, .025); pointer-events: none; }

.iw-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: min(1280px, 100%); margin: 0 auto; padding: 28px 40px; }
.iw-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.iw-brand-mark { width: 38px; height: 38px; }
.iw-nav-actions { display: flex; align-items: center; gap: 8px; }
.iw-nav-link { padding: 10px 16px; border-radius: 10px; color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 600; }
.iw-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.iw-nav-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 10px; color: #fff; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 700; backdrop-filter: blur(8px); transition: background .2s; }
.iw-nav-cta:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.iw-nav-cta svg { width: 16px; height: 16px; }

.iw-hero { position: relative; z-index: 2; display: grid; flex: 1; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px; width: min(1280px, 100%); margin: 0 auto; padding: 24px 40px 40px; }
.iw-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #dbe7ff; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.iw-chip svg { width: 16px; height: 16px; color: var(--iw-cyan); }
.iw-copy h1 { margin: 26px 0 22px; font-size: clamp(40px, 4.8vw, 72px); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
.iw-gradient { background: linear-gradient(92deg, #fff 0%, #a9c8ff 38%, var(--iw-cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iw-copy > p { max-width: 560px; margin: 0; color: rgba(222, 232, 255, .78); font-size: 17px; line-height: 1.85; }
.iw-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.iw-btn-primary { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 14px; color: var(--iw-blue-800); background: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 18px 50px rgba(37, 99, 235, .45), inset 0 -2px 0 rgba(29, 78, 216, .12); transition: transform .2s, box-shadow .2s; }
.iw-btn-primary:hover { color: var(--iw-blue-800); transform: translateY(-2px); box-shadow: 0 24px 60px rgba(37, 99, 235, .55); }
.iw-btn-primary svg { width: 19px; height: 19px; transition: transform .2s; }
.iw-btn-primary:hover svg { transform: translateX(3px); }
.iw-btn-ghost { display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .06); font-size: 16px; font-weight: 700; backdrop-filter: blur(8px); }
.iw-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.iw-btn-primary:focus-visible, .iw-btn-ghost:focus-visible, .iw-nav-cta:focus-visible, .iw-nav-link:focus-visible, .iw-brand:focus-visible { outline: 2px solid var(--iw-cyan); outline-offset: 3px; }
.iw-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 0; list-style: none; color: rgba(222, 232, 255, .78); font-size: 14px; }
.iw-trust li { display: inline-flex; align-items: center; gap: 8px; }
.iw-trust svg { width: 18px; height: 18px; color: var(--iw-cyan); }

/* Decorative workbench illustration. */
.iw-visual { position: relative; height: min(560px, 62vh); min-height: 440px; perspective: 1400px; }
.iw-console { position: absolute; top: 50%; left: 50%; width: 460px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; background: linear-gradient(150deg, rgba(30, 58, 160, .72), rgba(8, 18, 60, .78)); box-shadow: 0 40px 100px rgba(2, 6, 30, .6), 0 0 80px rgba(59, 130, 246, .35), inset 0 1px 0 rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translate(-50%, -50%) rotateY(-14deg) rotateX(6deg); animation: iw-tilt 9s ease-in-out infinite alternate; }
.iw-console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.iw-console-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.iw-console-bar i:first-child { background: #60a5fa; }
.iw-console-bar span { margin-left: 8px; color: rgba(222, 232, 255, .72); font-size: 12px; font-weight: 700; }
.iw-console-body { display: flex; }
.iw-console-side { display: flex; flex-direction: column; gap: 12px; padding: 18px 14px; border-right: 1px solid rgba(255, 255, 255, .08); }
.iw-console-side b { display: block; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.iw-console-side b.is-on { background: linear-gradient(135deg, var(--iw-blue-500), var(--iw-cyan)); box-shadow: 0 0 18px rgba(56, 225, 255, .5); }
.iw-console-main { flex: 1; min-width: 0; padding: 18px; }
.iw-console-ask { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid rgba(56, 225, 255, .35); border-radius: 12px; color: #e6efff; background: rgba(56, 225, 255, .08); font-size: 13px; }
.iw-console-ask svg { width: 16px; height: 16px; color: var(--iw-cyan); }
.iw-typing { display: inline-block; overflow: hidden; border-right: 2px solid var(--iw-cyan); white-space: nowrap; animation: iw-type 4s steps(12) infinite, iw-caret .8s step-end infinite; }
.iw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.iw-tile { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.iw-tile small { display: block; color: rgba(222, 232, 255, .6); font-size: 11px; }
.iw-tile strong { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; }
.iw-tile em { display: inline-block; margin-top: 4px; font-size: 11px; font-style: normal; }
.iw-tile.is-blue { box-shadow: inset 0 2px 0 #3b82f6; } .iw-tile.is-blue em { color: #93c5fd; }
.iw-tile.is-violet { box-shadow: inset 0 2px 0 var(--iw-violet); } .iw-tile.is-violet em { color: #c4b5fd; }
.iw-tile.is-cyan { box-shadow: inset 0 2px 0 var(--iw-cyan); } .iw-tile.is-cyan em { color: var(--iw-cyan); }
.iw-chart { height: 96px; margin-top: 14px; padding-top: 6px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.iw-chart svg { display: block; width: 100%; height: 100%; }
.iw-chart-line { stroke-dasharray: 420; stroke-dashoffset: 420; filter: drop-shadow(0 0 6px rgba(56, 225, 255, .7)); animation: iw-draw 3.2s ease-out forwards; }

.iw-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; background: linear-gradient(140deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); box-shadow: 0 20px 50px rgba(2, 6, 30, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: iw-float 7s ease-in-out infinite; }
.iw-float strong { display: block; font-size: 14px; }
.iw-float small { display: block; margin-top: 3px; color: rgba(222, 232, 255, .68); font-size: 12px; }
.iw-float-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #34d399, #059669); }
.iw-float-icon svg { width: 20px; height: 20px; }
.iw-float-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); }
.iw-float-identity { top: 8%; left: 0; }
.iw-float-role { top: 2%; right: 0; display: block; width: 200px; animation-delay: -2.4s; }
.iw-float-role small { margin: 0 0 10px; }
.iw-bars { display: grid; gap: 7px; }
.iw-bars i { display: block; width: var(--w); height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--iw-cyan), var(--iw-blue-500)); }
.iw-bars i:nth-child(2) { background: linear-gradient(90deg, var(--iw-violet), var(--iw-blue-500)); }
.iw-bars i:nth-child(3) { background: rgba(255, 255, 255, .3); }
.iw-float-space { bottom: 6%; left: 8%; animation-delay: -4.6s; }
.iw-avatars { display: flex; }
.iw-avatars b { display: grid; width: 34px; height: 34px; margin-left: -8px; place-items: center; border: 2px solid #12286e; border-radius: 50%; font-size: 10px; font-weight: 800; }
.iw-avatars b:first-child { margin-left: 0; background: #2563eb; }
.iw-avatars b:nth-child(2) { background: #7c3aed; }
.iw-avatars b:nth-child(3) { background: #0891b2; }

.iw-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px 40px 30px; color: rgba(222, 232, 255, .5); font-size: 12px; }
.iw-foot span { display: inline-flex; align-items: center; gap: 6px; }
.iw-foot svg { width: 14px; height: 14px; }
.iw-foot-sep { width: 1px; height: 12px; background: rgba(222, 232, 255, .25); }

@keyframes iw-tilt { to { transform: translate(-50%, -52%) rotateY(-8deg) rotateX(3deg); } }
@keyframes iw-type { 0% { max-width: 0; } 45%, 85% { max-width: 13em; } 100% { max-width: 0; } }
@keyframes iw-caret { 50% { border-color: transparent; } }
@keyframes iw-draw { to { stroke-dashoffset: 0; } }
@keyframes iw-float { 50% { transform: translateY(-12px); } }
@keyframes iw-drift { to { transform: translate(-40px, 30px) scale(1.08); } }

@media (max-width: 1080px) {
  .iw-hero { grid-template-columns: 1fr; text-align: center; }
  .iw-copy > p { margin: 0 auto; }
  .iw-actions, .iw-trust { justify-content: center; }
  .iw-visual { height: 420px; min-height: 0; margin-top: 10px; }
  .iw-console { width: 420px; }
  .iw-float-identity { left: 6%; } .iw-float-role { right: 4%; } .iw-float-space { left: 14%; }
}

@media (max-width: 640px) {
  .iw-nav { padding: 20px 16px; }
  .iw-nav-link { display: none; }
  .iw-hero { padding: 12px 16px 24px; }
  .iw-copy h1 { font-size: 40px; }
  .iw-copy > p { font-size: 15px; }
  .iw-actions { flex-direction: column; }
  .iw-btn-primary, .iw-btn-ghost { justify-content: center; width: 100%; }
  .iw-trust { gap: 10px 18px; font-size: 13px; }
  .iw-visual { height: 340px; }
  .iw-console { width: 300px; transform: translate(-50%, -50%); animation: none; }
  .iw-console-side { display: none; }
  .iw-console-main { padding: 14px; }
  .iw-tile { padding: 10px 8px; } .iw-tile strong { font-size: 18px; }
  .iw-chart { height: 70px; }
  .iw-float-identity { top: 0; left: 0; } .iw-float-role, .iw-float-space { display: none; }
  .iw-foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .iam-welcome *, .iam-welcome *::before, .iam-welcome *::after { animation: none !important; transition: none !important; }
  .iw-typing { border-right: 0; }
  .iw-chart-line { stroke-dashoffset: 0; }
}
