/* buildly.cc holding page */

:root {
  --bg: #16171B;
  --surface: #202228;
  --border: #363941;
  --line: #2C2F36;
  --text: #FFFFFF;
  --body: #D5D9E0;
  --muted: #A9AEB8;
  --soft: #C4C9D1;
  --blue: #1766DB;
  --blue-light: #7DB9FF;
  --blue-pale: #B5D8FF;
  --gutter: clamp(20px, 5vw, 40px);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(min(760px, 120vw) min(480px, 80vh) at 50% 42%, rgba(23, 102, 219, 0.22), rgba(23, 102, 219, 0) 70%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Top bar */
.bar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: clamp(64px, 10vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: clamp(20px, 4.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dot { color: #4C9AFF; }

.domain {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--soft);
}

/* Centre */
.hero {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 56px) var(--gutter) clamp(48px, 9vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(18px, 3vh, 26px);
}

.pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-pale);
  background: rgba(23, 102, 219, 0.16);
  border: 1px solid rgba(111, 178, 242, 0.35);
  border-radius: 99px;
  padding: 6px 14px 6px 10px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.accent { color: var(--blue-light); }

.lede {
  margin: 0;
  max-width: 580px;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

.status {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-family: var(--mono);
  font-size: clamp(14px, 2vw, 15px);
  color: var(--soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}

.prompt { color: var(--blue-light); }
.sep { color: var(--muted); }

.cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: var(--blue-light);
  opacity: 0.8;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* 404 page */
a.logo { color: var(--text); text-decoration: none; }

.pill-dot-warn { background: #FFB86B; }

.status-error { gap: 12px; }
.req { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.path { color: var(--text); }
.code {
  flex: none;
  color: #FFC48A;
  border: 1px solid rgba(255, 184, 107, 0.5);
  border-radius: 99px;
  padding: 1px 9px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: #2F7AEB; }
a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 6px; }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Phones */
@media (max-width: 480px) {
  .domain { font-size: 13px; }
  .status { padding: 12px 14px; gap: 8px; }
  .foot { flex-direction: column; align-items: center; text-align: center; }
  .btn { width: 100%; }
}

/* Very narrow (older / folded phones) */
@media (max-width: 340px) {
  .domain { display: none; }
  .pill { font-size: 12px; }
}

/* Short screens: small phones, and phones in landscape */
@media (max-height: 640px) {
  .bar { min-height: 56px; }
  .hero { padding-top: 12px; padding-bottom: 20px; gap: 14px; }
  .foot { padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

@media (max-height: 520px) and (orientation: landscape) {
  h1 { font-size: clamp(30px, 5.6vw, 52px); }
  .lede { font-size: 15px; }
  .status { padding: 10px 14px; }
  .pill { padding-top: 4px; padding-bottom: 4px; }
  .hero { gap: 10px; padding-bottom: 14px; }
  .btn { min-height: 44px; }
}

/* Large and ultra-wide displays */
@media (min-width: 1920px) {
  h1 { font-size: 96px; }
  .lede { font-size: 22px; max-width: 640px; }
  .hero { max-width: 880px; }
}

@media (min-width: 2400px) {
  .bar, .foot { max-width: 1600px; }
  .domain, .foot { font-size: 16px; }
  .logo { font-size: 30px; }
  h1 { font-size: 124px; }
  .lede { font-size: 26px; max-width: 780px; }
  .hero { max-width: 1100px; gap: 34px; }
  .pill { font-size: 16px; padding: 8px 18px 8px 14px; }
  .status { font-size: 18px; padding: 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
