/* it.cafe/agent: green digital rain, terminal text. All content is plain HTML; the rain is decoration only. */
:root {
  --bg: #000;
  --green: #3cff7a;
  --green-dim: #1f9e48;
  --green-faint: #0d3d1d;
  --text: #c9f7d6;
  --cyan: #19d3c5;
  --red: #ff4b5c;
  --blue: #4b8bff;
  --max: 980px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 15.5px; } }

#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; pointer-events: none; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .85); border-bottom: 1px solid var(--green-faint); backdrop-filter: blur(4px); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 60px; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.nav .logo { justify-self: start; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; font-weight: 700; letter-spacing: .06em; }
.logo img { width: 28px; height: 28px; }
.nav .links { display: flex; gap: 22px; font-size: .9rem; }
.nav .links a { text-decoration: none; }
.nav .langs a { text-decoration: none; padding: 2px 6px; font-size: .85rem; }
.nav .langs a.on { background: var(--green); color: #000; }
@media (max-width: 760px) { .nav { grid-template-columns: 1fr auto; } .nav .links { display: none; } }

/* sections */
section { padding: 96px 0; scroll-margin-top: 70px; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.prompt { color: var(--green-dim); margin-bottom: 18px; font-size: .9rem; }
.prompt::before { content: "> "; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.9rem); line-height: 1.15; color: #fff; font-weight: 700; text-shadow: 0 0 18px rgba(60, 255, 122, .35); }
h1 .g, h2 .g { color: var(--green); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.2; color: #fff; font-weight: 700; }
h3 { font-size: 1.1rem; color: var(--green); }
.lead { margin-top: 22px; font-size: 1.1rem; max-width: 62ch; }
.box { background: rgba(0, 0, 0, .78); border: 1px solid var(--green-faint); padding: 32px; box-shadow: 0 0 40px rgba(60, 255, 122, .06); }
@media (max-width: 600px) { .box { padding: 20px; } }

/* typing intro: the full text is in the HTML; JS only animates it */
.typed { min-height: 3.45em; }
.typed .line { display: block; white-space: pre-wrap; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--green); vertical-align: -.15em; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 44px; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; font: 700 1rem var(--mono); text-decoration: none; color: #fff; border: 2px solid; background: rgba(0, 0, 0, .6); transition: box-shadow .2s, transform .2s; }
.pill i { width: 30px; height: 14px; border-radius: 999px; display: inline-block; }
.pill.red { border-color: var(--red); } .pill.red i { background: linear-gradient(90deg, #ff8a95, var(--red)); }
.pill.blue { border-color: var(--blue); } .pill.blue i { background: linear-gradient(90deg, #9cc0ff, var(--blue)); }
.pill:hover, .pill:focus-visible { transform: translateY(-2px); color: #fff; }
.pill.red:hover { box-shadow: 0 0 24px rgba(255, 75, 92, .6); }
.pill.blue:hover { box-shadow: 0 0 24px rgba(75, 139, 255, .6); }
.hint { margin-top: 18px; font-size: .85rem; color: var(--green-dim); }
kbd { border: 1px solid var(--green-dim); padding: 0 6px; font-family: var(--mono); }

/* human section */
.list { margin-top: 28px; }
.list li { padding: 14px 0; border-bottom: 1px dashed var(--green-faint); display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.list li b { color: #fff; font-weight: 700; }
.list li b::before { content: "[+] "; color: var(--green); }
@media (max-width: 700px) { .list li { grid-template-columns: 1fr; gap: 4px; } }
.btn { display: inline-block; margin-top: 32px; padding: 14px 26px; background: var(--green); color: #000; font: 700 1rem var(--mono); text-decoration: none; border: 2px solid var(--green); }
.btn:hover { background: transparent; color: var(--green); }
.btn.ghost { background: transparent; color: var(--green); margin-left: 12px; }
.btn.ghost:hover { background: var(--green); color: #000; }

/* agent section */
dl.facts { margin-top: 28px; display: grid; grid-template-columns: 200px 1fr; border-top: 1px dashed var(--green-faint); }
dl.facts dt, dl.facts dd { padding: 10px 0; border-bottom: 1px dashed var(--green-faint); }
dl.facts dt { color: var(--green); }
dl.facts dt::after { content: ":"; }
@media (max-width: 700px) { dl.facts { grid-template-columns: 1fr; } dl.facts dt { border-bottom: 0; padding-bottom: 0; } }
.files { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.files a { display: block; padding: 16px; border: 1px solid var(--green-dim); text-decoration: none; background: rgba(0, 0, 0, .6); }
.files a span { display: block; color: var(--text); font-size: .85rem; margin-top: 4px; }
.files a:hover { border-color: var(--green); box-shadow: 0 0 18px rgba(60, 255, 122, .25); }
@media (max-width: 760px) { .files { grid-template-columns: 1fr; } }
pre.code { margin-top: 24px; padding: 18px; background: #031208; border-left: 3px solid var(--green); overflow-x: auto; font: 14px/1.5 var(--mono); color: var(--text); }

/* FAQ */
.faq { border-bottom: 1px dashed var(--green-faint); }
.faq summary { cursor: pointer; padding: 18px 0; color: #fff; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "[ ] "; color: var(--green); }
.faq[open] summary::before { content: "[x] "; }
.faq p { padding: 0 0 20px 4ch; max-width: 75ch; }
.faqs { margin-top: 28px; border-top: 1px dashed var(--green-faint); }

/* console */
.console { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); z-index: 20; background: rgba(0, 8, 2, .96); border: 1px solid var(--green); box-shadow: 0 0 40px rgba(60, 255, 122, .3); }
.console .out { max-height: min(420px, 60vh); overflow-y: auto; padding: 14px 16px 4px; white-space: pre-wrap; font-size: .92rem; }
.console .crumb { color: var(--green); margin-top: 4px; }
.console .echo { color: var(--green-dim); }
.console .navline { color: var(--green-dim); font-size: .85rem; margin-top: 6px; }
.console .logo { color: var(--green); line-height: 1.15; font-size: .78rem; overflow-x: auto; text-shadow: 0 0 8px rgba(60, 255, 122, .5); }
.console .ok { color: #fff; background: #0b3a1a; padding: 6px 8px; margin-top: 6px; border-left: 3px solid var(--green); }
@media (max-width: 600px) { .console .logo { font-size: .6rem; } }
.console input::placeholder { color: var(--green-dim); }
.console .mi { display: block; background: none; border: 0; padding: 2px 0; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.console .mi:hover, .console .mi:focus-visible { color: var(--green); text-decoration: underline; outline: none; }
.console form { display: flex; gap: 8px; padding: 8px 16px 14px; align-items: center; }
.console label { color: var(--green); }
.console input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; outline: none; }
.console .close { background: none; border: 0; color: var(--green-dim); font: inherit; cursor: pointer; }
.open-console { background: none; border: 1px solid var(--green-dim); color: var(--green); font: inherit; font-size: .85rem; padding: 4px 10px; cursor: pointer; }
.open-console:hover { border-color: var(--green); }

footer { position: relative; z-index: 1; padding: 48px 0; border-top: 1px solid var(--green-faint); background: #000; font-size: .82rem; color: var(--green-dim); }
footer p + p { margin-top: 6px; }

/* cookie bar from consent.js */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 760px; margin: 0 auto; background: #021006; border: 1px solid var(--green); color: var(--text); padding: 18px 22px; display: flex; gap: 18px; align-items: center; }
.consent p { font-size: .88rem; }
.consent > div { display: flex; gap: 10px; flex: none; }
.consent .btn { margin: 0; padding: 9px 16px; font-size: .88rem; }
.consent .btn.line { background: transparent; color: var(--green); }
@media (max-width: 640px) { .consent { flex-direction: column; align-items: stretch; } }
.nav .langs { display: flex; gap: 4px; }
.nav-end .open-console, .nav .langs a { height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--green-dim); }
.nav .langs a.on { border-color: var(--green); }
header.site .wrap { max-width: 1200px; padding: 0 32px; }
@media (max-width: 600px) { header.site .wrap { padding: 0 16px; } }
/* switch between the business and EDU agent pages */
.nav-end .switch { height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--cyan); color: #fff; text-decoration: none; font-weight: 700; }
.nav-end .switch svg { width: 12px; height: 12px; }
.nav-end .switch:hover { background: var(--cyan); color: #000; }
@media (max-width: 420px) { .nav-end { gap: 8px; } .nav-end .open-console { display: none; } }

.console .offer { color: #fff; border-left: 3px solid var(--cyan); padding: 4px 8px; margin-top: 4px; }

/* links to other websites: open in a new tab, marked with an arrow */
a.ext::after { content: "\2197"; display: inline-block; margin-left: .2em; font-size: .85em; text-decoration: none; }

/* key bar under the console input: what can be typed right now */
.console .keys { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0 16px 14px; font-size: .82rem; color: var(--green-dim); }
.console .keys button, .console .keys span { background: none; border: 1px solid var(--green-faint); color: var(--text); font: inherit; padding: 3px 8px; }
.console .keys button { cursor: pointer; border-color: var(--green-dim); }
.console .keys button:hover, .console .keys button:focus-visible { border-color: var(--green); color: #fff; outline: none; }
.console .keys b { color: var(--green); font-weight: 700; }
