/* HC-Home — style.css */

:root {
  --bg: #08101d;
  --bg2: #0d1728;
  --card: rgba(18, 28, 48, 0.78);
  --card-strong: rgba(21, 33, 57, 0.92);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eefc;
  --muted: rgba(232, 238, 252, 0.72);
  --faint: rgba(232, 238, 252, 0.48);
  --accent: #7cb9ff;
  --accent-2: #9b7dff;
  --good: #57d38c;
  --warn: #ffcd70;
  --bad: #ff7c7c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 700px at 18% 0%, rgba(124, 185, 255, 0.16), transparent 58%),
    radial-gradient(900px 560px at 82% 12%, rgba(155, 125, 255, 0.13), transparent 54%),
    linear-gradient(180deg, var(--bg), #050912 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

input,
button {
  font: inherit;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(13, 20, 34, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 12px;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 185, 255, 0.25), rgba(155, 125, 255, 0.16));
  border: 1px solid var(--stroke-strong);
  font-size: 18px;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-text strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search input::placeholder {
  color: rgba(232, 238, 252, 0.42);
}

.clock {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(19, 30, 51, 0.88), rgba(12, 20, 37, 0.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-main {
  padding: 30px;
  position: relative;
  isolation: isolate;
  min-height: 330px;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(124, 185, 255, 0.10), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(155, 125, 255, 0.12), transparent 26%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(87, 211, 140, 0.12);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sub {
  margin: 16px 0 0;
  max-width: 64ch;
  font-size: 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.08);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(124, 185, 255, 0.95), rgba(155, 125, 255, 0.92));
  color: #08101d;
  border-color: transparent;
}

.btn.primary:hover {
  background: linear-gradient(135deg, rgba(124, 185, 255, 1), rgba(155, 125, 255, 1));
}

.hero-side {
  display: grid;
  gap: 18px;
}

.status-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-title {
  display: grid;
  gap: 4px;
}

.status-title strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.status-title span {
  font-size: 13px;
  color: var(--muted);
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--stroke);
  color: var(--good);
  background: rgba(87, 211, 140, 0.08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
}

.metric b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  margin-top: 18px;
  padding: 24px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  min-height: 150px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 185, 255, 0.18), rgba(155, 125, 255, 0.12));
  border: 1px solid var(--stroke);
  margin-bottom: 12px;
  font-size: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stack-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stack-item span {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.stack-item small {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 185, 255, 0.14);
  border: 1px solid var(--stroke);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.snapshot {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 18px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.10), rgba(6, 10, 18, 0.62)),
    url('images/homelab.jpg') center/cover no-repeat;
}

.snapshot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
}

.snapshot-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.snapshot-content h2,
.snapshot-content p {
  margin: 0;
}

.snapshot-content h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.snapshot-content p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
}

.footer {
  margin-top: 18px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.footer strong {
  color: var(--text);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, var(--max));
    padding-top: 10px;
  }

  .topbar {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .clock {
    order: 3;
  }

  .hero-main {
    padding: 22px;
  }

  .section {
    padding: 20px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .stack {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
