/* sys.box – landing card */

:root {
  --bg: #f3f7f6;
  --card: #ffffff;
  --card-2: #f4f8f7;
  --line: #dde6e4;
  --text: #0b0c0e;
  --muted: #4a5554;
  --navy: #184865;
  --teal: #178b88;
  --accent: #147a78;
  --glow: rgba(23, 139, 136, 0.16);
  --shadow: 0 18px 50px rgba(16, 40, 48, 0.10), 0 2px 8px rgba(16, 40, 48, 0.05);
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --theme-color: #f3f7f6;
}

html[data-theme="dark"] {
  --bg: #0b1c24;
  --card: #122830;
  --card-2: rgba(28, 80, 84, 0.35);
  --line: #244a52;
  --text: #f1f5f4;
  --muted: #a8c4c2;
  --navy: #184865;
  --teal: #178b88;
  --accent: #5fd4c8;
  --glow: rgba(23, 139, 136, 0.24);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(36, 74, 82, 0.7);
  --theme-color: #0b1c24;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 17px/1.6 var(--sans);
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 8px; top: 8px; }

/* Atmospheric background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, var(--glow), transparent 70%),
    var(--bg);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("hex-grid-light.svg");
  background-size: 64px 111px;
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 10%, transparent 72%);
}
html[data-theme="dark"] .page-bg::after {
  background-image: url("hex-grid-dark.svg");
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 13px/1 var(--sans);
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 9px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 40, 48, 0.06);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}
.theme-toggle .ti {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.theme-toggle .label-light { display: none; }
html[data-theme="dark"] .theme-toggle .label-dark { display: none; }
html[data-theme="dark"] .theme-toggle .label-light { display: inline; }

/* Layout */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 48px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 44px 36px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 28px;
  line-height: 1;
}
.brand .mark {
  display: block;
  width: 92px;
  height: auto;
  flex: none;
}
.wordmark {
  font-weight: 700;
  font-size: clamp(40px, 11vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--navy);
}
html[data-theme="dark"] .wordmark { color: #f1f5f4; }
.wordmark .tld {
  background: linear-gradient(105deg, #1a6f78 0%, #178b88 50%, #1aae9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .wordmark .tld {
  background: linear-gradient(105deg, #3dbdb4 0%, #5fd4c8 60%, #7ee0d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .brand .mark {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 4px rgba(95, 212, 200, 0.28));
}

.prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.prompt .p { color: var(--accent); }
.cursor {
  display: inline-block;
  width: .55em;
  height: 1em;
  background: #e0061a;
  vertical-align: -2px;
  margin-left: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1.1s steps(1, end) infinite; }
}
@keyframes blink {
  50% { opacity: 0; }
}

h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lead {
  margin: 14px auto 0;
  max-width: 42em;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
}
.lead .handle {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.nowrap { white-space: nowrap; }

.chips {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.chips li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-2);
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}
.chips .icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hosted {
  display: block;
  margin-top: 32px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
  color: var(--text);
  text-align: center;
  transition: border-color .15s, transform .15s;
}
.hosted:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.hosted .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 400;
}
.hosted .unixio {
  display: block;
  height: 44px;
  width: auto;
  margin: 0 auto 10px;
}
.hosted .tag {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}
.hosted .services {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
html[data-theme="dark"] .unixio-light { display: none; }
html[data-theme="light"] .unixio-dark { display: none; }
.unixio-dark { display: none; }
html[data-theme="dark"] .unixio-dark { display: block; }

@media (prefers-reduced-motion: reduce) {
  .hosted { transition: none; }
  .hosted:hover { transform: none; }
  .cursor { animation: none; }
  html[data-theme="dark"] .brand .mark { filter: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  main { padding: 72px 16px 32px; }
  .card { padding: 32px 22px 26px; }
  .brand { margin-bottom: 22px; gap: 12px; }
  .brand .mark { width: 72px; }
  .lead { font-size: 15.5px; }
  .chips { gap: 8px; }
  .chips li { font-size: 13.5px; padding: 9px 10px; }
  .theme-toggle { top: 12px; right: 12px; }
}

/* No-JS: follow the system scheme when data-theme is unset */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #0b1c24;
    --card: #122830;
    --card-2: rgba(28, 80, 84, 0.35);
    --line: #244a52;
    --text: #f1f5f4;
    --muted: #a8c4c2;
    --navy: #184865;
    --teal: #178b88;
    --accent: #5fd4c8;
    --glow: rgba(23, 139, 136, 0.24);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(36, 74, 82, 0.7);
    --theme-color: #0b1c24;
  }
  html:not([data-theme]) .page-bg::after { background-image: url("hex-grid-dark.svg"); }
  html:not([data-theme]) .wordmark { color: #f1f5f4; }
  html:not([data-theme]) .wordmark .tld {
    background: linear-gradient(105deg, #3dbdb4 0%, #5fd4c8 60%, #7ee0d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  html:not([data-theme]) .brand .mark {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 4px rgba(95, 212, 200, 0.28));
  }
  html:not([data-theme]) .unixio-light { display: none; }
  html:not([data-theme]) .unixio-dark { display: block; }
  html:not([data-theme]) .theme-toggle .icon-moon { display: none; }
  html:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme]) .theme-toggle .label-dark { display: none; }
  html:not([data-theme]) .theme-toggle .label-light { display: inline; }
}

.hosted .unixio { transition: transform .15s, filter .15s; }
.hosted:hover .unixio { transform: scale(1.04); filter: drop-shadow(0 0 6px rgba(26,154,138,.35)); }
.hosted:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
