/* awesomeprojects.tech: the address bar is the brand. Gradient lives only on the name. */
:root {
  --ink: #0b1020;
  --deep: #16123a;
  --plum: #2a0f3d;
  --mint: #7cf7d4;
  --peri: #7aa8ff;
  --pink: #ff7ad9;
  --text: #e6ebff;
  --muted: #8f98c2;
  --line: rgb(201 212 255 / 0.12);
  --grad: linear-gradient(90deg, var(--mint), var(--peri) 50%, var(--pink));
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: min(1120px, 100% - 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--body);
  color: var(--text);
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgb(122 168 255 / 0.18), transparent 70%),
    linear-gradient(160deg, var(--ink), var(--deep) 55%, var(--plum));
  background-attachment: fixed;
  min-height: 100vh;
}
body::before { /* the banner's grid */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.45;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 80%);
}
a { color: var(--peri); text-underline-offset: 3px; }
a:hover { color: var(--mint); }
code, .mono { font-family: var(--mono); }
code { font-size: 0.9em; background: rgb(122 168 255 / 0.1); padding: 0.1em 0.35em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--mint); color: var(--ink); padding: 0.5rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }
h2 { font: 800 clamp(1.8rem, 3.5vw, 2.6rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h3 { font: 600 1.05rem/1.3 var(--body); margin: 0 0 0.35rem; }

/* ─── Top ─── */
.top { width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 0; gap: 1rem; }
.brand { font: 800 1.1rem var(--mono); color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--muted); }
.top nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--text); }
.top nav .gh { color: var(--text); border: 1px solid var(--line); padding: 0.2rem 0.8rem; border-radius: 999px; }

/* ─── Hero: the address bar ─── */
.hero { width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) 0 3.5rem; }
.eyebrow { color: var(--muted); font-weight: 500; margin: 0 0 1.4rem; }
.bar {
  display: flex; align-items: baseline; flex-wrap: wrap;
  font: 800 clamp(1.6rem, 5.4vw, 4.4rem)/1.15 var(--mono);
  letter-spacing: -0.04em;
  padding: 0.35em 0.5em;
  border-radius: 18px;
  background: rgb(11 16 32 / 0.6);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgb(122 168 255 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.04);
  cursor: text;
}
.bar:focus-within { border-color: rgb(124 247 212 / 0.45); }
.scheme { color: var(--muted); font-weight: 400; font-size: 0.55em; letter-spacing: 0; margin-right: 0.25em; align-self: center; }
.zone { color: var(--text); opacity: 0.92; }
.slot { position: relative; display: inline-grid; min-width: 2ch; }
.sizer, .slot input { grid-area: 1 / 1; font: inherit; letter-spacing: inherit; white-space: pre; }
.sizer { visibility: hidden; padding-right: 0.1ch; }
.slot input {
  width: 100%; border: 0; outline: 0; padding: 0; margin: 0; min-width: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  caret-color: var(--mint);
}
.slot input::placeholder { color: rgb(143 152 194 / 0.45); -webkit-text-fill-color: rgb(143 152 194 / 0.45); }

.answer { display: block; font: 400 clamp(0.85rem, 1.6vw, 1.05rem)/1.6 var(--mono); color: var(--muted); margin: 1.2rem 0 0 0.6rem; min-height: 1.7em; }
.answer .semi { color: rgb(143 152 194 / 0.6); }
.answer .ok { color: var(--mint); }
.answer .no { color: var(--pink); }
.answer .warn { color: #ffd479; }
.hero-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.8rem; flex-wrap: wrap; }
.stat { color: var(--muted); font: 400 0.85rem var(--mono); }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 1rem var(--body); border-radius: 12px; padding: 0.8rem 1.3rem; border: 1px solid var(--line); color: var(--text); background: rgb(255 255 255 / 0.04); text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s, opacity 0.15s; }
.btn.primary { background: var(--mint); color: var(--ink); border-color: transparent; }
.btn.primary:hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-1px); background: #a5ffe6; color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ─── Wizard ─── */
.wizard { width: var(--wrap); margin: 0 auto 5rem; padding: 2rem; border-radius: 22px; background: rgb(22 18 58 / 0.55); border: 1px solid var(--line); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hosts { border: 0; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.7rem; }
.host { position: relative; }
.host input { position: absolute; opacity: 0; pointer-events: none; }
.host label { display: block; height: 100%; padding: 0.9rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: rgb(11 16 32 / 0.5); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.host label b { display: block; font-weight: 600; }
.host label small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; display: block; margin-top: 0.2rem; }
.host input:checked + label { border-color: var(--mint); background: rgb(124 247 212 / 0.07); }
.host input:focus-visible + label { outline: 2px solid var(--mint); outline-offset: 2px; }
.host label:hover { border-color: rgb(124 247 212 / 0.4); }
.details { margin-top: 1.8rem; display: grid; gap: 1.2rem; max-width: 760px; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input { width: 100%; font: 400 1rem var(--mono); color: var(--text); background: rgb(11 16 32 / 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; }
.field input:focus { border-color: var(--mint); outline: 0; }
.help { color: var(--muted); font-size: 0.88rem; margin: 0.35rem 0 0; }
.repo-card { margin-top: 0.7rem; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgb(11 16 32 / 0.5); font-size: 0.92rem; }
.repo-card .bad { color: var(--pink); }
.repo-card .note { color: #ffd479; display: block; margin-top: 0.3rem; }
.record { border-radius: 12px; border: 1px dashed rgb(124 247 212 / 0.35); overflow: hidden; }
.record-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; font: 400 0.75rem var(--mono); color: var(--muted); padding: 0.5rem 0.9rem; border-bottom: 1px dashed rgb(124 247 212 / 0.2); text-transform: lowercase; }
.record pre { margin: 0; padding: 0.9rem; font-size: 0.95rem; white-space: pre-wrap; word-break: break-all; color: var(--mint); }
.send { display: grid; gap: 0.4rem; justify-items: start; }

/* ─── How ─── */
.how { width: var(--wrap); margin: 0 auto 6rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.how h2 { grid-column: 1 / -1; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; font: 600 0.9rem var(--mono); border: 1px solid var(--line); color: var(--mint); }
.steps p { margin: 0; color: var(--muted); }
.bot { margin: 0; border-radius: 14px; border: 1px solid var(--line); background: rgb(11 16 32 / 0.65); overflow: hidden; font-size: 0.9rem; }
.bot figcaption { padding: 0.6rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.bot .dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--grad); }
.bot .tag { border: 1px solid var(--line); border-radius: 999px; padding: 0 0.45rem; font-size: 0.72rem; }
.bot-body { padding: 0.9rem 1rem 1rem; }
.bot-title { font-weight: 600; margin: 0 0 0.6rem; }
.bot table { border-collapse: collapse; width: 100%; }
.bot td { padding: 0.3rem 0.4rem; border-top: 1px solid var(--line); vertical-align: top; }
.bot td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.bot td:nth-child(3) { color: var(--muted); }

/* ─── The zone ─── */
.zone-list, .commands { width: var(--wrap); margin: 0 auto 6rem; }
.zone-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.zone-sub { color: var(--muted); margin: 0 0 1.2rem; }
.filter input { font: 400 0.9rem var(--mono); color: var(--text); background: rgb(11 16 32 / 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.8rem; width: min(320px, 80vw); }
.zonefile { border-radius: 16px; border: 1px solid var(--line); background: rgb(11 16 32 / 0.7); padding: 1rem 0; font-size: 0.88rem; overflow-x: auto; }
.zf-row { display: grid; grid-template-columns: minmax(9rem, 1.1fr) 4.5rem minmax(12rem, 1.6fr) minmax(12rem, 2fr); gap: 1rem; padding: 0.35rem 1.2rem; white-space: nowrap; }
.zf-row:hover { background: rgb(122 168 255 / 0.06); }
.zf-row a { color: var(--text); text-decoration: none; }
.zf-row a:hover { color: var(--mint); text-decoration: underline; }
.zf-type { color: var(--pink); }
.zf-target { color: var(--peri); overflow: hidden; text-overflow: ellipsis; }
.zf-note { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.zf-comment { color: rgb(143 152 194 / 0.7); padding: 0.35rem 1.2rem; }

/* ─── Commands ─── */
.cmd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.cmds { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; font-size: 0.92rem; }
.cmds dt { font: 600 0.88rem var(--mono); color: var(--mint); }
.cmds dd { margin: 0; color: var(--muted); }

.foot { width: var(--wrap); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* ─── Motion ─── */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero > :nth-child(2) { animation-delay: 0.05s; }
  .hero > :nth-child(3) { animation-delay: 0.12s; }
  .hero > :nth-child(4) { animation-delay: 0.2s; }
  .hero > :nth-child(5) { animation-delay: 0.28s; }
  .wizard:not([hidden]) { animation: rise 0.45s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ─── Small screens ─── */
@media (max-width: 820px) {
  .how, .cmd-cols { grid-template-columns: 1fr; }
  .top nav a:not(.gh) { display: none; }
  .zf-row { grid-template-columns: minmax(8rem, 1fr) 4rem minmax(10rem, 1.4fr); }
  .zf-note { display: none; }
  .wizard { padding: 1.3rem; }
  .hosts { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .host label { padding: 0.7rem 0.75rem; }
  .host label small { font-size: 0.76rem; }
  .scheme { display: none; }
}
