/* justsaynot.ru — лендинг проектов.
   Палитра и приёмы те же, что в file.justsaynot.ru и imgur.justsaynot.ru. */

:root {
  --ink-950: #05060a;
  --ink-900: #0a0c14;
  --ink-700: #1d2233;
  --ink-500: #3d4560;
  --ink-300: #8b94b0;
  --ink-200: #b8c0d8;
  --ink-100: #e6eaf5;

  --brand-400: #7c9cff;
  --brand-500: #5b7cfa;
  --brand-600: #4460e0;
  --accent-400: #4fd6c4;
  --accent-500: #22c0ad;
  --gold-400: #ffc971;
  --gold-500: #f0a93b;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--ink-950);
  color: var(--ink-100);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Мягкое свечение фона — как на остальных сервисах */
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(91, 124, 250, 0.18), transparent 62%),
    radial-gradient(900px 520px at 88% 4%, rgba(79, 214, 196, 0.11), transparent 58%);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(124, 156, 255, 0.35);
}

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

/* ------------------------------------------------------------------ шапка */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-400), var(--accent-500));
  color: var(--ink-950);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px -8px rgba(68, 96, 224, 0.7);
}

.logo-dim {
  color: var(--ink-500);
}

.header-nav {
  display: flex;
  gap: 4px;
}

.header-nav a {
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink-300);
  transition: background-color 150ms ease, color 150ms ease;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-100);
}

/* ------------------------------------------------------------------- герой */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.hero {
  padding: 44px 0 40px;
  max-width: 720px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--ink-300);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-400);
  box-shadow: 0 0 0 0 rgba(79, 214, 196, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(79, 214, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 214, 196, 0);
  }
}

h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.gradient {
  display: block;
  background: linear-gradient(100deg, #e6eaf5 5%, var(--brand-400) 50%, var(--accent-400) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--ink-300);
  max-width: 560px;
}

/* ---------------------------------------------------------------- карточки */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

/* Цветной акцент у каждого сервиса */
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  opacity: 0.85;
}

.card-file::before {
  background: linear-gradient(90deg, transparent, var(--brand-400), transparent);
}
.card-imgur::before {
  background: linear-gradient(90deg, transparent, var(--accent-400), transparent);
}
.card-fix::before {
  background: linear-gradient(90deg, transparent, #c08bff, transparent);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 156, 255, 0.35);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 70px -30px rgba(0, 0, 0, 1);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 20px;
}

.card-badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(79, 214, 196, 0.25);
  background: rgba(34, 192, 173, 0.14);
  color: var(--accent-400);
  font-size: 11px;
  font-weight: 500;
}

.card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-host {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--brand-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.card-text {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-300);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.card-tags li {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: var(--ink-200);
}

.card-go {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-200);
  transition: color 150ms ease;
}

.card:hover .card-go {
  color: var(--brand-400);
}

/* ----------------------------------------------------------------- спонсор */
/* Полоса стоит выше шапки; оформление общее с fix.justsaynot.ru */

.sponsor-strip {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.sponsor-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 14px 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(240, 169, 59, 0.28);
  background:
    linear-gradient(150deg, rgba(255, 201, 113, 0.12), rgba(255, 201, 113, 0.02) 55%),
    rgba(10, 12, 20, 0.7);
  transition: border-color 180ms ease, transform 180ms ease;
}

.sponsor-inner:hover {
  border-color: rgba(240, 169, 59, 0.5);
  transform: translateY(-2px);
}

.sponsor-glow {
  position: absolute;
  top: -120%;
  right: -5%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 169, 59, 0.18), transparent 65%);
  pointer-events: none;
}

.sponsor-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 169, 59, 0.3);
  background: rgba(240, 169, 59, 0.12);
  color: var(--gold-400);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sponsor-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sponsor-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #241703;
  font-size: 19px;
  box-shadow: 0 8px 22px -8px rgba(240, 169, 59, 0.75);
}

.sponsor-names {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sponsor-names b {
  font-size: 15px;
  font-weight: 700;
}

.sponsor-names small {
  font-size: 11px;
  color: var(--gold-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sponsor-pitch {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink-300);
}

.sponsor-pitch b {
  color: var(--gold-400);
}

.sponsor-cta {
  padding: 8px 15px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: #241703;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(240, 169, 59, 0.8);
}

.sponsor-inner:hover .sponsor-cta {
  filter: brightness(1.08);
}

/* ------------------------------------------------------------------ подвал */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--ink-500);
}

.footer-sponsor a {
  color: var(--gold-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .hero {
    padding: 32px 0 28px;
  }
  .sponsor-inner {
    padding: 14px;
  }
  .sponsor-cta {
    width: 100%;
    text-align: center;
  }
}

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