/* JustSayNotFIX — оформление в общем стиле justsaynot.ru.
   Разметка и хуки app.js не менялись: status-card, release-item, dot-* и прочее
   создаются скриптом, поэтому их классы описаны здесь полностью. */

:root {
  --ink-950: #05060a;
  --ink-900: #0a0c14;
  --ink-800: #141826;
  --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;
  --red-400: #ff8080;
  --amber-400: #ffc971;

  --line: rgba(255, 255, 255, 0.085);
  --panel: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  --shadow: 0 1px 0 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.9);

  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;
  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%);
}

body > * { position: relative; z-index: 1; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink-800);
}
.skip-link:focus { left: 12px; z-index: 50; }

h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- спонсор */

.sponsor-strip {
  max-width: 1120px;
  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-header {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-400), var(--accent-500));
  box-shadow: 0 8px 24px -8px rgba(68, 96, 224, 0.7);
}
.brand-mark svg { width: 20px; height: 20px; fill: #05060a; }
.brand-mark .brand-cut { fill: none; stroke: #05060a; stroke-width: 3; stroke-linecap: round; }
.brand-accent { color: var(--brand-400); }

.site-header nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.site-header nav a {
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink-300);
  transition: background-color 150ms ease, color 150ms ease;
}
.site-header nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink-100); }

.header-action {
  padding: 8px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  transition: background-color 150ms ease;
}
.header-action:hover { background: rgba(255, 255, 255, 0.1); }

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

main { max-width: 1120px; margin: 0 auto; padding: 0 24px 72px; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0 56px;
}

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

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
  font-weight: 600;
}

.gradient {
  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;
  max-width: 560px;
  font-size: 15px;
  color: var(--ink-300);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* ------------------------------------------------------------------ кнопки */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: filter 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button-primary {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(68, 96, 224, 0.9);
}
.button-primary:hover { filter: brightness(1.1); }

.button-secondary,
.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-100);
}
.button-secondary:hover,
.button-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(124, 156, 255, 0.35); }

.button-light { background: var(--ink-100); color: var(--ink-950); font-weight: 600; }
.button-light:hover { filter: brightness(1.05); }

.button[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ------------------------------------------------- карточка приложения */

.product-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-700); }
.window-bar span { margin-left: 8px; font-size: 12px; color: var(--ink-500); }

.product-layout { display: flex; }

.mini-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.mini-logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-400), var(--accent-500));
  color: #05060a;
  font-size: 13px;
  font-weight: 700;
}
.mini-sidebar b { width: 20px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }

.product-main { flex: 1; padding: 14px; display: grid; gap: 10px; }

.product-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-heading small { display: block; font-size: 10px; letter-spacing: 0.08em; color: var(--ink-500); }
.product-heading strong { font-size: 14px; }

.status-pill {
  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: 10px;
  font-weight: 600;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.profile-row.active { border-color: rgba(124, 156, 255, 0.35); background: rgba(124, 156, 255, 0.08); }
.profile-row .flag {
  display: grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-200);
}
.profile-row div { flex: 1; min-width: 0; }
.profile-row b { display: block; font-size: 12.5px; }
.profile-row small { font-size: 10.5px; color: var(--ink-500); }
.profile-row em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-400);
}

.route-preview {
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.route-preview > small { font-size: 10px; letter-spacing: 0.08em; color: var(--ink-500); }
.route-preview > div { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.route-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(124, 156, 255, 0.15);
  color: var(--brand-400);
}
.route-preview p { flex: 1; margin: 0; font-size: 12.5px; }
.route-preview p small { color: var(--ink-500); }
.route-preview i { font-style: normal; color: var(--ink-500); }

.product-main button {
  margin-top: 2px;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}

/* ----------------------------------------------------------------- секции */

.section { padding: 56px 0 0; }

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.section-heading.narrow { justify-content: flex-start; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 600; }
.section-heading p { margin: 0; max-width: 420px; font-size: 13.5px; color: var(--ink-300); }

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-400);
}

/* ------------------------------------------------------------ возможности */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.feature-grid article {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}
.feature-grid article:hover { transform: translateY(-3px); border-color: rgba(124, 156, 255, 0.35); }

.feature-number {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-700);
}

.feature-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 18px;
}

.feature-grid h3 { margin: 0; font-size: 15px; font-weight: 600; }
.feature-grid p { margin: 8px 0 0; font-size: 13px; color: var(--ink-300); }

/* -------------------------------------------------------------- загрузки */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}
.download-card:hover { transform: translateY(-3px); border-color: rgba(124, 156, 255, 0.35); }
.download-card.recommended { border-color: rgba(124, 156, 255, 0.4); }

.recommend-label {
  position: absolute;
  top: -1px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-200);
}
.windows-icon { grid-template-columns: 1fr 1fr; gap: 3px; padding: 12px; }
.windows-icon i { display: block; width: 100%; height: 100%; background: var(--brand-400); border-radius: 1px; }
.apple-icon { font-size: 20px; }

.download-copy span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; color: var(--ink-500); }
.download-copy h3 { margin: 5px 0 0; font-size: 16px; font-weight: 600; }
.download-copy p { margin: 8px 0 0; font-size: 13px; color: var(--ink-300); }

.release-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.release-version { font-size: 13px; font-weight: 600; }
.release-size { font-size: 12px; color: var(--ink-500); font-variant-numeric: tabular-nums; }

.download-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-500);
}

/* ---------------------------------------------------------------- статус */

.overall-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--ink-200);
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-500); flex-shrink: 0; }
.dot-green { background: var(--accent-400); box-shadow: 0 0 8px rgba(79, 214, 196, 0.6); }
.dot-yellow { background: var(--amber-400); box-shadow: 0 0 8px rgba(255, 201, 113, 0.5); }
.dot-red { background: var(--red-400); box-shadow: 0 0 8px rgba(255, 128, 128, 0.5); }
.dot-muted { background: var(--ink-500); }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

/* .status-card и .status-card-top создаются в app.js */
.status-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.status-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.status-card-top h3 { margin: 0; font-size: 14px; font-weight: 600; }
.status-card-top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-300);
}
.status-card p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-500);
}
.status-card p b { font-weight: 500; color: var(--ink-300); }
.status-card p span { font-variant-numeric: tabular-nums; }

.status-skeleton {
  height: 96px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.status-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.status-footer button {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-100);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.status-footer button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.status-footer button:disabled { opacity: 0.5; cursor: default; }

/* ------------------------------------------------------------ обновления */

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

.release-placeholder { font-size: 13px; color: var(--ink-500); }

/* .release-item, .release-tag, .release-title, .release-detail создаются в app.js */
.release-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.release-tag {
  grid-row: span 2;
  align-self: start;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(124, 156, 255, 0.28);
  background: rgba(91, 124, 250, 0.15);
  color: var(--brand-400);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.release-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.release-title h3 { margin: 0; font-size: 15px; font-weight: 600; }
.release-title time { font-size: 12px; color: var(--ink-500); }

.release-detail p { margin: 0 0 8px; font-size: 13px; color: var(--ink-300); }
.release-detail ul { margin: 0; padding-left: 18px; }
.release-detail li { font-size: 13px; color: var(--ink-300); margin-bottom: 4px; }

/* ------------------------------------------------------------- завершение */

.closing-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(124, 156, 255, 0.28);
  background:
    linear-gradient(150deg, rgba(124, 156, 255, 0.14), rgba(79, 214, 196, 0.05) 60%),
    rgba(10, 12, 20, 0.6);
}
.closing-card h2 { margin: 6px 0 0; font-size: 24px; font-weight: 600; }
.closing-card p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-300); }

/* -------------------------------------------------------- другие проекты */

.family { margin-top: 48px; }
.family-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.family-links a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brand-400);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.family-links a:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(124, 156, 255, 0.35); }
.family-links small { font-family: Inter, sans-serif; color: var(--ink-500); }

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

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--ink-500);
}
footer p { margin: 0; }
footer a { color: var(--ink-300); }
footer p a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }
footer div { display: flex; gap: 16px; }
footer div a:hover { color: var(--ink-100); }
.footer-brand { font-size: 14px; }

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 28px 0 40px; }
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
  .header-action { margin-left: auto; }
}

@media (max-width: 560px) {
  .sponsor-inner { padding: 14px; }
  .sponsor-cta { width: 100%; text-align: center; }
  .release-item { grid-template-columns: 1fr; }
  .release-tag { grid-row: auto; justify-self: start; }
  .closing-card { padding: 22px; }
}

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