/* ==========================================================================
   Adam Tech — tokens
   ========================================================================== */
:root {
  --bg: #080c14;
  --bg-raise: #0e141f;
  --surface: #121a27;
  --surface-hover: #17202e;
  --border: #232e3f;
  --border-soft: #1a2331;

  --text: #e9edf3;
  --text-muted: #8a96a8;
  --text-faint: #566072;

  --accent: #59e6a9;
  --accent-dim: #2f8f6d;
  --accent-amber: #ffb454;
  --accent-coral: #ff6b57;

  --radius: 10px;
  --radius-sm: 6px;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1080px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(89, 230, 169, 0.07), transparent),
    radial-gradient(ellipse 700px 400px at 100% 0%, rgba(255, 180, 84, 0.05), transparent);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

::selection { background: var(--accent-dim); color: #06120d; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(8, 12, 20, 0.82);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 10px rgba(89, 230, 169, 0.7);
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0; 
position: relative;
top: 8px;   
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 4px 0;
}

.main-nav a:hover { color: var(--text); }

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 190px;
}

.header-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
}

.header-search input::placeholder { color: var(--text-faint); }

.header-search svg { flex-shrink: 0; color: var(--text-faint); }

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-search { min-width: 0; flex: 1; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--border-soft);
  background-image:
    linear-gradient(to left, var(--bg) 42%, rgba(8, 12, 20, 0.75) 62%, transparent 100%),
    url("hero-bg.svg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  border-inline-start: 2px solid var(--border);
  padding-inline-start: 14px;
}

.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}

.hero-stat span {
  font-size: 13px;
  color: var(--text-faint);
}
.hero-telegram {
  position: absolute;
  left: 288px;
  top: 53.5%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.hero-telegram:hover {
  transform: translateY(-50%) scale(1.08);
  border-color: var(--accent);
}

/* ==========================================================================
   Category tabs
   ========================================================================== */
.tabs {
  display: flex;
  gap: 6px;
  padding: 22px 0;
  overflow-x: auto;
}

.tab {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tab:hover { color: var(--text); border-color: var(--text-faint); }

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #06120d;
  font-weight: 600;
}

/* ==========================================================================
   Manifest list (the item rows)
   ========================================================================== */
.manifest {
  border-top: 1px solid var(--border-soft);
}

.manifest-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 15px;
}

.item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.item-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.item-icon img { width: 100%; height: 100%; object-fit: cover; }

.item-main h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

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

.item-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-amber);
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 4px;
  padding: 1px 6px;
  margin-inline-start: 8px;
  vertical-align: middle;
}

.item-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: end;
  line-height: 1.9;
  white-space: nowrap;
  display: none;
}

@media (min-width: 640px) {
  .item-meta { display: block; }
}

.item-meta div span { color: var(--text-muted); }

.btn-install {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #06120d;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.btn-install:hover { filter: brightness(1.08); }

@media (max-width: 560px) {
  .item-row {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "icon main"
      "install install";
    row-gap: 12px;
  }
  .item-icon { grid-area: icon; width: 48px; height: 48px; }
  .item-main { grid-area: main; }
  .btn-install { grid-area: install; width: 100%; }
}

/* ==========================================================================
   Notice / disclaimer
   ========================================================================== */
.notice {
  margin: 56px 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0 48px;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

/* ==========================================================================
   Detail modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop.open { display: flex; }

@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
}

.modal {
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px;
}

@media (min-width: 640px) {
  .modal { border-radius: 16px; }
}

.modal-close {
  float: inline-end;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.modal-head .item-icon { width: 64px; height: 64px; }

.modal-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px;
}

.modal-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.modal-body p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 22px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.modal-meta-grid div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.modal-meta-grid span {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.modal-meta-grid b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
