/* Yo!Notify — concept-hybrid: светлый сайт + тёмный продукт, техно-панели */

:root {
  --blue: #276ae7;
  --blue-2: #4f8cff;
  --yellow: #ffd84d;
  --bg: #e8ecf2;
  --panel: #0d1a2d;
  --text: #0b1220;
  --muted: #64748b;
  --line: rgba(13, 26, 45, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-h: 78px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Светлый фон + тонкая сетка */
.page--hybrid {
  color: var(--text);
  background-color: var(--bg);
  background-image:
    url("../img/deco-grid.svg"),
    linear-gradient(180deg, #f4f7fb 0%, #e8ecf2 40%, #e2e7ef 100%);
  background-size: 280px 280px, auto;
  background-repeat: repeat, no-repeat;
}

.page--hybrid.menu-open {
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(39, 106, 231, 0.38);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.btn--ghost:hover {
  border-color: rgba(39, 106, 231, 0.35);
}

.btn--lg {
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
}

/* Шапка: светлая «панель» с жёлтым акцентом */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 216, 77, 0.35);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow:
    0 1px 0 rgba(255, 216, 77, 0.35),
    0 14px 34px rgba(15, 23, 42, 0.12);
}

.site-header--simple .menu-toggle {
  display: none;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 216, 77, 0.45), 0 8px 22px rgba(39, 106, 231, 0.25);
}

.brand__name {
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.menu-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav__link {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--blue);
}

.site-nav__cta {
  white-space: nowrap;
}

.section {
  padding: 4.75rem 0;
  position: relative;
}

/* Техно-полоса слева у ключевых секций */
.page--hybrid .section--directions,
.page--hybrid .section--features {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(13, 26, 45, 0.06);
}

.page--hybrid .section--directions::before,
.page--hybrid .section--features::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.5rem;
  bottom: 2.5rem;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, var(--yellow), var(--blue));
  box-shadow: 0 0 18px rgba(79, 140, 255, 0.35);
}

.page--hybrid .section--directions::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 2rem;
  width: 48px;
  height: 160px;
  background: url("../img/panel-accent.svg") center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 560px;
}

.section-head__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Hero: угловые скобки + асимметричный отступ */
.hero {
  padding-top: 3.75rem;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(39, 106, 231, 0.35);
  pointer-events: none;
}

.hero::before {
  top: 1.5rem;
  left: max(0px, calc(50% - min(var(--container), calc(100% - 2rem)) / 2 - 12px));
  border-right: none;
  border-bottom: none;
}

.hero::after {
  bottom: 2rem;
  right: max(0px, calc(50% - min(var(--container), calc(100% - 2rem)) / 2 - 12px));
  border-left: none;
  border-top: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.25rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c4a00;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 77, 0.55);
  background: rgba(255, 216, 77, 0.22);
  margin-bottom: 0.85rem;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 1.55rem + 2.6vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero__accent {
  color: var(--blue);
  text-shadow: 0 0 1px rgba(39, 106, 231, 0.15);
}

.hero__lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Тёмный mockup «как продукт» на светлом фоне */
.mockup {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(13, 26, 45, 0.35);
  background: linear-gradient(165deg, rgba(13, 26, 45, 0.98), rgba(7, 17, 31, 0.94));
  box-shadow:
    0 0 0 1px rgba(255, 216, 77, 0.18),
    0 28px 60px rgba(10, 24, 52, 0.55);
  overflow: hidden;
  position: relative;
}

.mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(79, 140, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.mockup__chrome {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}

.mockup__dots {
  display: flex;
  gap: 0.35rem;
}

.mockup__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.mockup__dots span:first-child {
  background: var(--yellow);
}

.mockup__model-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a2205;
  background: rgba(255, 216, 77, 0.95);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.mockup__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 380px;
}

.mockup__aside {
  border-right: 1px solid var(--line-dark);
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}

.mockup__aside-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 0.65rem;
}

.mockup__thread {
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid transparent;
  margin-bottom: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
}

.mockup__thread--active {
  color: #f4f7fb;
  border-color: rgba(79, 140, 255, 0.5);
  background: rgba(79, 140, 255, 0.16);
}

.mockup__main {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mockup__chip {
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
}

.mockup__chip--on {
  color: #fff4c2;
  border-color: rgba(255, 216, 77, 0.55);
  background: rgba(255, 216, 77, 0.14);
}

.mockup__stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mockup__msg {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.86rem;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  color: #dfe8f5;
}

.mockup__msg--user {
  margin-left: auto;
  border-color: rgba(79, 140, 255, 0.5);
  background: rgba(79, 140, 255, 0.18);
  color: #f0f5ff;
}

.mockup__msg--ai {
  border-color: rgba(255, 216, 77, 0.35);
  background: rgba(255, 216, 77, 0.08);
  color: #faf6e8;
}

.mockup__footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-dark);
}

.mockup__token {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1c2604;
  background: rgba(255, 216, 77, 0.92);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.mockup__input {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}

/* Карточки направлений — светлые «плитки» */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#directions,
#models,
#features {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

#dir-chats,
#dir-agents,
#dir-images {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.dir-card {
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dir-card:hover {
  transform: translateY(-4px) translateX(2px);
  border-color: rgba(39, 106, 231, 0.35);
  box-shadow: 0 16px 36px rgba(39, 106, 231, 0.18);
}

.dir-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  color: var(--blue);
  border: 1px solid rgba(39, 106, 231, 0.28);
  background: rgba(39, 106, 231, 0.1);
}

.dir-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.dir-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}

.model-card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.model-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.model-card__name {
  margin: 0;
  font-size: 1rem;
}

.model-card__provider {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.model-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
}

.badge--live {
  color: #0f6d3f;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.badge--test {
  color: #8a6d00;
  border-color: rgba(255, 216, 77, 0.55);
  background: rgba(255, 216, 77, 0.22);
}

.badge--soon {
  color: var(--blue);
  border-color: rgba(39, 106, 231, 0.28);
  background: rgba(39, 106, 231, 0.1);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.feat-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13, 26, 45, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 236, 242, 0.9));
}

.feat-card__icon {
  color: var(--blue-2);
  margin-bottom: 0.55rem;
}

.feat-card__title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.feat-card__text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.section--cta {
  padding-bottom: 5rem;
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.35rem, 2vw, 2rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(13, 26, 45, 0.12);
  background:
    linear-gradient(120deg, rgba(13, 26, 45, 0.96), rgba(39, 106, 231, 0.55)),
    #0d1a2d;
  color: #f4f7fb;
  box-shadow: 0 24px 50px rgba(10, 24, 52, 0.45);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 216, 77, 0.12), transparent 45%);
  pointer-events: none;
}

.cta-panel__copy {
  position: relative;
  z-index: 1;
}

.cta-panel__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  letter-spacing: -0.02em;
}

.cta-panel__text {
  margin: 0;
  color: #cbd5e1;
  max-width: 28rem;
  font-size: 0.95rem;
}

.cta-panel .btn--primary {
  position: relative;
  z-index: 1;
}

.site-footer {
  border-top: 1px solid rgba(13, 26, 45, 0.1);
  padding: 1.25rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.75);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer__nav a:hover {
  color: var(--blue);
}

.page--docs .docs-hero {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.docs-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.6rem;
}

.docs-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 1.4rem + 2vw, 2.75rem);
  letter-spacing: -0.03em;
}

.docs-hero__text {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.docs-list-section {
  padding-top: 1rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.doc-card {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 150px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 106, 231, 0.35);
}

.doc-card__title {
  margin: 0;
  font-size: 1.02rem;
}

.doc-card__text {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.doc-card__link {
  align-self: flex-start;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 106, 231, 0.35);
  background: rgba(39, 106, 231, 0.1);
  color: var(--blue);
}

.doc-card__link:hover {
  background: rgba(39, 106, 231, 0.16);
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page--hybrid .section--directions::after {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 72px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav__cta {
    width: 100%;
    justify-content: center;
  }

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

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

  .hero::before,
  .hero::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

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

  .mockup__aside {
    border-right: none;
    border-bottom: 1px solid var(--line-dark);
  }
}
