/* Himosoft mirror — landing page */

:root {
  --bg: #0b0f14;
  --bg-card: #121820;
  --bg-card-hover: #171f2a;
  --border: #1e2936;
  --text: #e6edf3;
  --muted: #8b9cb3;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --brand-green: #4ade80;
  --green: #4ade80;
  --mono: "SF Mono", "Fira Code", "Consolas", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 212, 191, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(74, 222, 128, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.site-brand:hover {
  text-decoration: none;
  color: var(--text);
}

.site-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--muted);
  font-weight: 400;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.55;
}

.footer-brand .license {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-bottom-links a {
  color: var(--muted);
}

.footer-bottom-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.footer-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

nav a {
  color: var(--muted);
  margin-left: 1.25rem;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.code-block .comment {
  color: var(--muted);
}

.code-block .cmd {
  color: var(--green);
}

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.grid.loading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s, background 0.15s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: #2a3a4d;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card .pkg-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.card .tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.card.status-planned {
  opacity: 0.85;
  border-style: dashed;
}

.card.status-missing {
  border-color: #7f1d1d;
}

.card .pkg-version {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.card .tag-item {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.card .tag-item.status-available {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}

.card .tag-item.status-planned {
  color: var(--accent);
  background: var(--accent-soft);
}

.card .deb-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.meta-bar {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.package-search {
  position: relative;
  margin-bottom: 1.25rem;
  max-width: 420px;
}

.package-search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.package-search-input::placeholder {
  color: var(--muted);
}

.package-search-input:hover {
  border-color: #2a3a4d;
}

.package-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.package-search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.package-search-clear:hover {
  color: var(--text);
  background: var(--bg);
}

.search-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.meta-bar time {
  color: var(--text);
}

.hero .code-block.loading {
  color: var(--muted);
  font-style: italic;
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

footer {
  padding: 0;
  border-top: none;
  text-align: left;
}

footer a {
  color: var(--muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  nav {
    display: none;
  }

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

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