:root {
  --ink: #14201c;
  --ink-soft: #3a4a44;
  --muted: #6b7a73;
  --paper: #f3f6f2;
  --line: rgba(20, 32, 28, 0.12);
  --signal: #0f8f6b;
  --signal-deep: #0a6b52;
  --glow: rgba(15, 143, 107, 0.22);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(165deg, #eef3ee 0%, var(--paper) 45%, #f7faf7 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.orb.a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  right: -6%;
  top: 8%;
  background: var(--glow);
}

.orb.b {
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  left: -4%;
  bottom: 10%;
  background: rgba(20, 32, 28, 0.07);
}

.shell {
  position: relative;
  z-index: 1;
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-mark {
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  background: linear-gradient(145deg, var(--signal), var(--signal-deep));
  box-shadow: 0 0 0 3px rgba(15, 143, 107, 0.14);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 35% 20% 20% 35%;
  background: #fff;
  clip-path: polygon(0 40%, 55% 40%, 55% 0, 100% 50%, 55% 100%, 55% 60%, 0 60%);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.page {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: stretch;
  padding: 0.35rem 0 0.5rem;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  animation: rise 0.7s var(--ease) both;
}

.brand-hero {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.intro h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: clamp(0.88rem, 1.3vw, 0.98rem);
  max-width: 28ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 143, 107, 0.22);
}

.btn-primary:hover {
  background: var(--signal-deep);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: rgba(15, 143, 107, 0.4);
  background: #fff;
}

.catalog {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(15, 143, 107, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    rgba(228, 235, 228, 0.45);
  backdrop-filter: blur(8px);
  animation: rise 0.75s var(--ease) 0.08s both;
  overflow: hidden;
}

.catalog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.catalog-head p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.software-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.software-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 32, 28, 0.06);
}

.software-empty {
  color: var(--muted);
  font-size: 0.88rem;
  align-content: center;
}

.soft-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.soft-title {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.soft-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.soft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.soft-tag {
  font-size: 0.7rem;
  color: var(--signal-deep);
  border-bottom: 1px solid rgba(15, 143, 107, 0.4);
  line-height: 1.2;
}

.soft-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.soft-site {
  font-size: 0.72rem;
  color: var(--signal-deep);
  border-bottom: 1px solid rgba(15, 143, 107, 0.35);
  flex-shrink: 0;
}

.soft-site:hover {
  color: var(--ink);
}

.site-footer {
  height: 2rem;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .shell {
    height: auto;
    min-height: 100svh;
    max-height: none;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.25rem 0 0.75rem;
  }

  .intro {
    justify-content: flex-start;
  }

  .lead {
    max-width: none;
  }

  .catalog {
    min-height: auto;
  }

  .software-list {
    overflow: visible;
    grid-template-rows: none;
  }

  .soft-summary {
    -webkit-line-clamp: 3;
  }

  .header-actions .btn-ghost {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
