/* aigenta.one/me: the same glass as the app demo on the landing (aigenta-one/src/style.css). */
:root {
  --bg: #000;
  --ink: #f4f5fb;
  --mute: #8a8fa8;
  --dim: #555a70;
  --line: rgba(255, 255, 255, 0.09);
  --blue: #2f3bff;
  --blue-2: #6b74ff;
  --volt: #d8ff3c;
  --green: #3ddc84;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
body {
  color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* what the glass sits on: the landing's water (water-gl.js), calm, with the landing's grain */
#field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
/* without WebGL: the landing's still deep blue */
.fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none;
  background:
    radial-gradient(60% 55% at 30% 70%, rgba(26,32,110,.55), transparent 70%),
    radial-gradient(55% 50% at 75% 30%, rgba(20,26,90,.5), transparent 70%),
    radial-gradient(40% 50% at 50% 35%, rgba(47,59,255,.28), transparent 70%);
}
body.no-gl .fallback { display: block; }
body.no-gl #field { display: none; }
.grain {
  position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  opacity: .1; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  animation: grain .5s steps(1) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-37px, 23px); }
  50% { transform: translate(51px, -41px); } 75% { transform: translate(-19px, -63px); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

.shell {
  position: relative; z-index: 1; min-height: 100vh; padding: 28px 24px;
  display: grid; grid-template-columns: 54px minmax(0, 1180px) 54px; justify-content: center; align-items: center; gap: 14px;
}

/* the rail: a few small bubbles on a thin vertical glass bar, left of the dashboard */
.rail {
  justify-self: start; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; border-radius: 999px; align-self: center;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.rail-gap { height: 18px; }
.bubble {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0,0,0,.45); color: var(--mute); font-size: 13px; font-weight: 600;
  transition: color .2s, background .2s, border-color .2s;
}
.bubble:hover, .bubble.on { color: var(--ink); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.bubble svg { width: 16px; height: 16px; fill: currentColor; }
.bubble.mark { display: flex; align-items: center; justify-content: center; white-space: nowrap; cursor: default; color: var(--ink); background: none; border: 0; font-size: 16px; letter-spacing: -0.03em; }
.bubble.mark b { color: var(--volt); }
.bubble.avatar { color: var(--ink); }
.frame {
  border-radius: 28px; padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 60px 140px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
}

/* the dock */
.dock {
  display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid var(--line); font-size: 14px;
}
.brand { font-weight: 600; letter-spacing: -0.03em; padding: 0 14px 0 10px; }
.brand b { color: var(--volt); }
.tab { border: 0; background: none; cursor: pointer; color: var(--mute); padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: color .25s, background .25s; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); background: rgba(255,255,255,.08); }
.mic {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(120,140,255,.35); background: rgba(47,59,255,.18); border-radius: 999px; padding: 6px 16px 6px 6px;
  transition: background .25s;
}
.mic:hover { background: rgba(47,59,255,.32); }
.mic svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--ink); fill: #000; }

/* screens */
.screens { margin-top: 12px; min-height: 600px; }
.screen { display: none; }
.screen.on { display: grid; gap: 12px; animation: screenIn .5s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: start; }
.stack { display: grid; gap: 12px; }
.panel { border-radius: 20px; background: rgba(0,0,0,.42); border: 1px solid var(--line); padding: 20px; }
.panel h2 { font-size: 13px; color: var(--mute); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.empty { margin-top: 18px; color: var(--dim); font-size: 14px; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpis.four { grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 16px; display: grid; gap: 4px; align-content: start; min-height: 120px; }
.kpi small { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mute); }
.kpi b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--mute); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.dot.ok { background: var(--green); }

/* Today: greeting, what was done, what waits */
.hello { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; padding: 6px 6px 2px; }
.feed { list-style: none; margin-top: 12px; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.feed li:first-child { border-top: 0; }
.feed li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); transform: translateY(-1px); }
.feed li.site_up::before, .feed li.payment::before, .feed li.ssl::before { background: var(--green); }
.feed li.site_down::before, .feed li.payment_failed::before { background: #ff6b6b; }
.feed li.none { display: block; color: var(--dim); }
.feed li.none::before { display: none; }
.feed time { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed [data-go] { cursor: pointer; }
.feed [data-go]:hover span { color: var(--ink); text-decoration: underline; }
.needs li { font-size: 14px; }
.needs li.none { color: var(--dim); }

/* the site, framed like a browser */
.browser { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #0b0d14; display: grid; grid-template-rows: auto 1fr; min-height: 520px; }
.bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,.05); font-size: 12px; color: var(--mute); }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.06); }
.view { position: relative; display: grid; place-items: center; color: var(--dim); overflow: hidden; background: #fff; }
/* the site drawn at desktop width (1440px) and scaled down to the frame */
.view iframe { position: absolute; top: 0; left: 0; width: 1440px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); pointer-events: auto; }

/* marketing: three panels, and share bars */
.thirds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.bars { list-style: none; margin-top: 14px; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.bars li span { color: var(--mute); font-variant-numeric: tabular-nums; }
.bars li i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bars li i::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.none { color: var(--dim); font-size: 14px; }

/* invitations: what a tab will hold once something is connected */
.invites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.invite { display: grid; gap: 10px; align-content: start; }
.invite b { font-size: 17px; font-weight: 600; }
.invite .price { color: var(--mute); font-size: 13px; }
.invite .state { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); }
.invite .ctl { display: flex; align-items: center; gap: 8px; }
.step { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--ink); cursor: pointer; font-size: 16px; line-height: 1; transition: background .2s; }
.step:hover { background: rgba(255,255,255,.14); }
.step[data-armed] { width: auto; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,90,90,.18); border-color: rgba(255,120,120,.35); }
.step:disabled { opacity: .5; cursor: default; }
.qty { min-width: 28px; text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.invite.active .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pill {
  justify-self: start; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: var(--ink); color: #000; transition: transform .15s, background .2s;
}
.pill:hover { background: #fff; }
.pill:active { transform: scale(.96); }
.pill.ghost { background: rgba(255,255,255,.07); color: var(--ink); }

.list { list-style: none; margin-top: 12px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.05); }
.list li:first-child { border-top: 0; }
.list span { color: var(--mute); }

/* login: one glass card on the water */
[hidden] { display: none !important; }
.login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card { width: min(420px, 100%); padding: 32px; display: grid; gap: 18px; }
.card .brand { padding: 0; font-size: 17px; }
.card h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.step { display: grid; gap: 10px; }
.field {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 16px; border-radius: 14px;
  background: rgba(0,0,0,.45); border: 1px solid var(--line); outline: none; transition: border-color .2s;
}
.field:focus { border-color: rgba(120,140,255,.6); }
.field.code { font-size: 28px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.pill.wide { justify-self: stretch; padding: 13px; font-size: 15px; text-align: center; }
.pill:disabled { opacity: .5; cursor: default; }
.link { border: 0; background: none; cursor: pointer; color: var(--mute); font-size: 14px; justify-self: center; }
.link:hover { color: var(--ink); }
.msg { min-height: 20px; font-size: 14px; color: var(--mute); text-align: center; }
.msg.err { color: #ff8a8a; }

/* profile */
.profile { display: grid; gap: 14px; }
.profile label { display: grid; gap: 6px; font-size: 13px; color: var(--mute); }
.profile .field:disabled { color: var(--mute); }
.profile .hint { font-size: 13px; color: var(--mute); }
.profile .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.list a { color: var(--ink); }
.list a:hover { text-decoration: underline; }
.profile .msg { text-align: left; min-height: 0; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; align-items: start; }
  .rail { flex-direction: row; justify-self: center; }
  .rail-gap { height: auto; width: 18px; }
  .dock { overflow-x: auto; scrollbar-width: none; }
  .mic span { display: none; }
  .cols, .invites, .kpis.four, .thirds { grid-template-columns: 1fr; }
}
