/*
  Warm intros from unicorn founders — v3 (16.10).
  The visual language of the agent landing (prototypes/agent-landing-hero/grid.html) and fundraisly.com:
  ink #0c0c10, one blue light source, glass surfaces with a gradient hairline, Inter. Blue = brand and actions;
  warm orange = the warm intro only. The 3D world (canvas) carries the grid: flat on its floor, lit around your startup.
*/
:root {
  --ink: #0c0c10;
  --blue: #2e5eff;
  --blue-soft: #5d7cff;
  --blue-light: #7db0ff;
  --warm-1: #ffb347;
  --warm-2: #ff6b5c;
  --text: #f5f6fa;
  --body: #c4cad9;
  --muted: #8d94a8;
  --hair: rgba(255, 255, 255, .08);
  --hair-strong: rgba(255, 255, 255, .16);
  --radius-card: 16px;
  --radius-ctl: 10px;
  --top: 76px;
  --foot: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--ink); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- atmosphere: one light source under the world ---------- */
.decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.layer { position: absolute; }
.glow { left: var(--light-x, 68%); top: var(--light-y, 56%); width: 1100px; height: 760px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(46, 94, 255, .26), rgba(46, 94, 255, .09) 52%, transparent 100%); }
.glow-warm { left: var(--light-x, 68%); top: calc(var(--light-y, 56%) - 18%); width: 520px; height: 380px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 140, 90, .07), transparent); mix-blend-mode: screen; }
.sky { inset: 0; background: radial-gradient(760px 320px at 24% 18%, rgba(140, 160, 255, .07), transparent 70%); }
.vignette { inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 22%, transparent 82%, rgba(0, 0, 0, .45)), radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .45) 100%); }
.grain { inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><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 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- header / footer ---------- */
.top { position: relative; z-index: 4; height: var(--top); display: flex; align-items: center; padding: 0 40px; }
.brand { display: block; line-height: 0; }
.logo { height: 32px; width: auto; }
.foot { position: relative; z-index: 4; height: var(--foot); display: flex; align-items: center; gap: 24px; padding: 0 40px; font-size: 13px; line-height: 19px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; flex: 1; display: flex; align-items: center; min-height: 600px; }
.copy { position: relative; z-index: 3; width: min(560px, 42vw); margin-left: 80px; padding: 24px 0 40px; }

/* the status line: quiet — a small static dot, muted text, a barely-there hairline (it was too strong an anchor) */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted);
  background: rgba(255, 255, 255, .025); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.pill .sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .1); }
.pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--warm-1), var(--warm-2)); opacity: .85; }

h1 { margin-top: 24px; font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -.045em; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 40%, #c9d1ea 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 .accent { background: linear-gradient(180deg, #c7d2ff 0%, #6e8bff 70%, #4b6dff 100%); -webkit-background-clip: text; background-clip: text; }

/* waitlist: one glass bar, lit from below like the agent composer */
.join { margin-top: 40px; }
.bar { position: relative; height: 60px; padding: 6px; border-radius: 14px; display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(16, 18, 34, .92), rgba(12, 14, 30, .88)); backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px -22px rgba(46, 94, 255, .7), 0 0 0 1px rgba(0, 0, 0, .4); }
.bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 40%, rgba(125, 160, 255, .75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bar::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(220, 230, 255, .9), transparent); }
.bar:focus-within::before { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1) 45%, rgba(140, 170, 255, .95)); }
.field { position: relative; flex: 1 1 0; min-width: 0; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-radius: 10px; cursor: text; }
.field:nth-child(3) { flex-grow: 1.3; }   /* the deck link: the longer hint */
.field .ico { width: 18px; height: 18px; flex: none; color: #7f86a0; }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; line-height: 21px; color: var(--text); }
.field input::placeholder { color: #8a91a8; }
.field:focus-within .ico { color: var(--blue-light); }
.bar .div { width: 1px; height: 28px; flex: none; background: var(--hair-strong); }
.btn-primary { flex: none; height: 48px; padding: 0 18px 0 20px; border: 0; border-radius: var(--radius-ctl); display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; color: #fff; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #4d74ff, var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(46, 94, 255, .6), 0 8px 24px -8px rgba(46, 94, 255, .8);
  transition: filter .12s, transform .12s; }
.btn-primary svg { width: 18px; height: 18px; transition: transform .2s; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.waitlist.busy .btn-primary { pointer-events: none; filter: saturate(.7) brightness(.9); }
.waitlist.busy .btn-primary svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { margin-top: 12px; font-size: 13px; line-height: 19px; color: #ff9d8f; }
.waitlist.invalid .bar { animation: nudge .3s; }
.waitlist.invalid .bar::before { background: linear-gradient(180deg, rgba(255, 157, 143, .55), rgba(255, 157, 143, .2)); }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* joined */
.done { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 14px; position: relative;
  background: linear-gradient(180deg, rgba(255, 179, 71, .10), rgba(255, 107, 92, .04));
  box-shadow: inset 0 1px 0 rgba(255, 220, 190, .14), 0 0 0 1px rgba(255, 160, 110, .28), 0 22px 60px -26px rgba(255, 128, 80, .55); }
.done-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #1a0f08;
  background: linear-gradient(135deg, var(--warm-1), var(--warm-2)); box-shadow: 0 0 18px rgba(255, 128, 80, .6); }
.done-ico svg { width: 22px; height: 22px; }
.done-title { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.done-text { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--body); }
.done-text b { font-weight: 600; color: var(--text); word-break: break-all; }
.done-text b.plain { font-weight: inherit; color: inherit; }
.done.enter { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.done.enter .done-ico { animation: pop .5s .12s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }

/* proof */
.proof { margin-top: 48px; display: flex; align-items: center; gap: 24px; }
.ph { height: 44px; width: auto; flex: none; }
.stats { display: grid; gap: 2px; padding-left: 24px; box-shadow: inset 1px 0 0 var(--hair); }
.stat { font-size: 15px; line-height: 21px; color: var(--muted); white-space: nowrap; }
.stat b { font-weight: 700; color: var(--text); }

/* ---------- the world (canvas + labels) ---------- */
.visual { position: absolute; z-index: 1; left: 0; right: 0; top: calc(-1 * var(--top)); bottom: calc(-1 * var(--foot)); overflow: hidden; pointer-events: none; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-width: 981px) {   /* the world fades out before it reaches the copy column */
  #world, .labels { -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--mask-x, 640px) - 10px), #000 calc(var(--mask-x, 640px) + 70px));
                            mask-image: linear-gradient(90deg, transparent calc(var(--mask-x, 640px) - 10px), #000 calc(var(--mask-x, 640px) + 70px)); }
}
.labels { position: absolute; inset: 0; overflow: hidden; }
.lb { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; will-change: transform, opacity; }
/* chips and cards: the glass of the agent landing */
.lb-chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--body);
  background: linear-gradient(180deg, rgba(30, 34, 58, .88), rgba(15, 17, 31, .88)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.lb-chip b { font-weight: 600; color: var(--text); }
.lb-chip .x { color: #ff8a8a; font-weight: 700; }
.lb-chip svg.ok { width: 11px; height: 11px; flex: none; fill: none; stroke: var(--blue-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-chip.reply { color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(125, 160, 255, .4); }
.lb-chip.you { color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(125, 160, 255, .45), 0 0 18px -4px rgba(46, 94, 255, .7); }
.lb-chip.val { height: 24px; padding: 0 9px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.lb-chip.result { color: #ffd6b8; box-shadow: inset 0 1px 0 rgba(255, 220, 190, .14), 0 0 0 1px rgba(255, 160, 110, .4); }
.lb-chip.result::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--warm-1), var(--warm-2)); box-shadow: 0 0 10px rgba(255, 128, 80, .9); }
.lb-chip.warmline { color: var(--body); box-shadow: inset 0 1px 0 rgba(255, 220, 190, .12), 0 0 0 1px rgba(255, 160, 110, .35); }
.lb-chip.warmline b { color: #ffc49a; }
.lb-card { padding: 12px 14px 13px; border-radius: 14px; background: linear-gradient(180deg, rgba(24, 27, 46, .94), rgba(13, 15, 28, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(255, 170, 110, .38), 0 18px 40px -18px rgba(255, 120, 60, .5); }
.lb-card .k { font-size: 10.5px; line-height: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lb-card .t1 { margin-top: 8px; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.lb-card .t2 { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.015em; color: #ffb98a; }
.lb-fund { display: flex; align-items: flex-end; justify-content: center; height: 30px; }
.lb-fund img { display: block; width: auto; opacity: .88; filter: brightness(0) invert(1); }   /* every logo in one white, like the old chips */
.lb-fund img.lg-sequoia { height: 12px; }
.lb-fund img.lg-accel { height: 21px; }
.lb-fund img.lg-a16z { height: 28px; }
.lb-fund img.lg-lightspeed { height: 19px; }
.lb-fund img.lg-insight { height: 24px; }
.lb-fund img.lg-balderton { height: 22px; }
.lb-fund img.lg-northzone { height: 11px; }
.lb-fund img.lg-khosla { height: 13px; }

/* the story: a caption under the world — six bars and one quiet line, centred on the graphic */
.story { position: absolute; left: var(--story-x, 70%); bottom: calc(var(--foot) + 22px); width: min(400px, 32vw); transform: translateX(-50%);
  text-align: center; pointer-events: auto; }
.story::before { content: ""; position: absolute; z-index: -1; inset: -18px -36px -14px -36px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(12, 12, 16, .82) 45%, rgba(12, 12, 16, 0)); }
.story-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: 168px; margin: 0 auto 10px; }
.story-bar button { position: relative; height: 12px; border: 0; background: none; cursor: pointer; }
.story-bar button::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.story-bar button i { position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 2px; background: var(--blue-light); transform: scaleX(0); transform-origin: left center; }
.story-bar button:hover::before { background: rgba(255, 255, 255, .26); }
.story-bar button:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.story-t { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: -.005em; color: var(--body); text-wrap: balance; transition: opacity .25s, transform .25s; }
.story-t.swap { opacity: 0; transform: translateY(3px); }

/* ---------- demo review bar ---------- */
.review { position: fixed; z-index: 50; right: 20px; bottom: 16px; display: flex; gap: 6px; padding: 5px; border-radius: 12px;
  background: rgba(20, 22, 36, .9); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 40px -10px rgba(0, 0, 0, .8); }
.rv { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--body); }
.rv:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.rv svg { width: 14px; height: 14px; }
.rv .i-play { display: none; }
.review.paused .rv .i-play { display: block; }
.review.paused .rv .i-pause { display: none; }
/* the two versions of the page, for the team to compare */
.vswitch { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.vs { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.vs:hover { color: var(--text); }
.vs.on { color: var(--text); background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.rv-sep { width: 1px; margin: 6px 1px; background: rgba(255, 255, 255, .1); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .copy { margin-left: 56px; width: min(520px, 45vw); }
  h1 { font-size: 56px; line-height: 60px; }
}
@media (max-height: 760px) and (min-width: 981px) {
  h1 { font-size: 52px; line-height: 56px; }
  .join { margin-top: 30px; }
  .proof { margin-top: 32px; }
  .story { bottom: calc(var(--foot) + 10px); }
}
@media (max-width: 980px) {
  :root { --top: 64px; }
  body { display: block; }
  .top { padding: 0 24px; }
  .hero { display: block; min-height: 0; }
  .copy { width: auto; max-width: 600px; margin: 0; padding: 16px 24px 8px; }
  .visual { position: relative; top: 0; bottom: auto; height: clamp(440px, 118vw, 640px); margin-top: 8px; }
  .story { left: 50%; bottom: 16px; width: min(400px, calc(100% - 48px)); }
  .foot { padding: 0 24px; }
  .glow { --light-x: 50%; }
}
@media (max-width: 600px) {
  :root { --top: 56px; --foot: 64px; }
  .top { padding: 0 16px; }
  .logo { height: 26px; }
  .copy { padding: 8px 16px 4px; }
  .pill { font-size: 12px; height: 28px; }
  h1 { margin-top: 18px; font-size: 40px; line-height: 44px; letter-spacing: -.04em; }
  .join { margin-top: 28px; }
  .bar { height: auto; flex-direction: column; align-items: stretch; padding: 6px; gap: 0; }
  .bar .div { width: auto; height: 1px; margin: 0 10px; }
  .field { flex: none; height: 50px; }
  .btn-primary { margin-top: 6px; justify-content: center; height: 50px; }
  .proof { margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .ph { height: 36px; }
  .stats { padding-left: 0; box-shadow: none; }
  .stat { white-space: normal; }
  .visual { height: clamp(430px, 128vw, 560px); }
  .story { bottom: 12px; width: calc(100% - 32px); }
  .story::before { inset: -14px -8px -10px -8px; }
  .story-t { font-size: 13px; line-height: 18px; }
  .lb-card .t1, .lb-card .t2 { font-size: 14px; line-height: 18px; }
  .lb-card { padding: 9px 11px 10px; }
  .lb-chip { font-size: 11px; height: 22px; padding: 0 8px; }
  .lb-chip.val { height: 20px; padding: 0 7px; }
  .lb-fund { height: 22px; }
  .lb-fund img { transform: scale(.72); transform-origin: center bottom; }
  .foot { flex-wrap: wrap; gap: 4px 20px; align-content: center; padding: 0 16px; }
  .review { left: 8px; right: 8px; bottom: 8px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* #decor = background only (Figma export) */
html.decor-only .top, html.decor-only .hero > *, html.decor-only .foot, html.decor-only .review { visibility: hidden; }
