/* v3 — dense layer: больше контента, больше визуала */

:root {
  --display: "Syne", var(--font);
  --container: min(1320px, 94vw);
}

/* Hero — text only */
.hero--dense {
  min-height: auto;
  overflow: visible;
}
.hero--dense .hero__grid {
  grid-template-columns: 1fr;
  max-width: 40rem;
}
.hero--dense .hero__content {
  padding-bottom: 0.5rem;
}
.hero--dense .hero__lead {
  max-width: none;
}
.hero--dense .hero__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  letter-spacing: -0.04em;
}

/* Dual marquee */
.marquee-row { border-top: 1px solid var(--border); background: rgba(0, 255, 163, 0.02); }
.marquee--fast .marquee__track { animation-duration: 28s; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 35s; }
.marquee--reverse .marquee__track span { color: rgba(0, 255, 163, 0.45); }

/* Hero strip */
.hero-strip {
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0, 255, 163, 0.04), transparent 40%, rgba(0, 212, 255, 0.03));
}
.hero-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero-strip__grid > div {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--border);
  font-size: 0.78rem;
}
.hero-strip__grid > div:last-child { border-right: none; }
.hero-strip__grid .mono {
  display: block;
  font-size: 0.58rem;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}
.hero-strip__grid strong {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Statement band */
.statement-band {
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--accent);
  color: #031a12;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.statement-band__track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}
.statement-band__track span {
  font-family: var(--display);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  padding-right: 3rem;
  white-space: nowrap;
}

/* Section dense */
.section--dense {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(0, 212, 255, 0.04), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Capabilities wall */
.cap-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
}
.cap {
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.cap:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: rgba(0, 255, 163, 0.03);
}
.cap__icon {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  opacity: 0.85;
}
.cap h4 { font-size: 0.78rem; font-weight: 600; margin-bottom: 0.2rem; }
.cap p { font-size: 0.65rem; color: var(--text-muted); line-height: 1.35; }

/* Tabs */
.section--tabs {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.tabs__btn {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tabs__btn:hover { border-color: var(--border-hover); color: var(--text); }
.tabs__btn.is-active {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  color: var(--accent);
}
.tabs__panel { display: none; animation: fadeIn 0.35s var(--ease); }
.tabs__panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  min-height: 220px;
}
.tab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tab-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}
.tab-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.tab-viz {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #08080a;
  padding: 1.25rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.tab-viz--web { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; }
.tab-viz__screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.tab-viz__screen i {
  aspect-ratio: 1.2;
  border-radius: 6px;
  background: rgba(0, 255, 163, 0.08);
  border: 1px solid var(--border);
}
.tab-viz__side { display: flex; flex-direction: column; gap: 6px; }
.tab-viz__side span {
  width: 48px;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.tab-viz--crm { flex-wrap: wrap; }
.tab-viz__kpi {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  text-align: center;
}
.tab-viz__kpi b { display: block; font-size: 1.4rem; color: var(--accent); }
.tab-viz__kpi small { font-family: var(--mono); font-size: 0.55rem; color: var(--text-muted); }
.tab-viz__bars { display: flex; gap: 4px; align-items: flex-end; height: 60px; width: 100%; }
.tab-viz__bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
}
.tab-viz--ai pre {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.tab-viz--ai code span { color: var(--accent); }
.tab-viz--flow {
  font-family: var(--mono);
  font-size: 0.75rem;
  flex-wrap: wrap;
}
.tab-viz--flow span {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}
.tab-viz--flow i { color: var(--accent); opacity: 0.5; }

/* Horizontal scroll showcase */
.section--showcase { padding-bottom: 3rem; overflow: hidden; }
.h-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0 1.5rem;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll.is-dragging { cursor: grabbing; user-select: none; }
.h-scroll__track {
  display: flex;
  gap: 1rem;
  padding-inline: max(3vw, calc((100vw - var(--container)) / 2 + 3vw));
  width: max-content;
}
.mock--wide {
  flex: 0 0 min(420px, 88vw);
  scroll-snap-align: start;
}
.mock--wide .mock__body { min-height: 280px; }
.h-scroll-hint {
  text-align: center;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  opacity: 0.6;
}

/* Extra mock variants */
.mock__body--landing { display: flex; flex-direction: column; gap: 0.65rem; }
.mock__hero-block {
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.12), rgba(0, 212, 255, 0.06));
  border: 1px solid var(--border);
}
.mock__cta-row { display: flex; gap: 0.5rem; align-items: center; }
.mock__cta-row span:first-child {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.cta-pill {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  color: var(--accent);
}
.mock__feat-row { display: flex; gap: 6px; }
.mock__feat-row i {
  flex: 1;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.mock__body--saas { display: grid; grid-template-columns: 48px 1fr; gap: 0.65rem; }
.mock__saas-nav { display: flex; flex-direction: column; gap: 5px; }
.mock__saas-nav span {
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}
.mock__saas-nav span.on { background: var(--accent-dim); border: 1px solid var(--border-hover); }
.mock__saas-main { display: grid; gap: 6px; }
.mock__saas-card {
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.mock__body--n8n {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
}
.n8n-node {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.n8n-node--ai { border-color: var(--border-hover); color: var(--accent); }
.mock__body--n8n > i { color: var(--text-muted); opacity: 0.4; }

/* Comparison table */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.compare__head {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare__head span,
.compare__row span {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--border);
}
.compare__head span:last-child,
.compare__row span:last-child { border-right: none; }
.compare__row span:first-child { font-size: 0.82rem; color: var(--text-muted); }
.compare__row span:not(:first-child) {
  text-align: center;
  font-size: 1rem;
}
.compare__highlight { color: var(--accent); font-weight: 600; }
.compare .yes { color: var(--accent); }
.compare .no { color: rgba(255, 255, 255, 0.2); }
.compare .maybe { color: var(--gold); }

/* Format cards */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.format-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.format-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.format-card--accent {
  border-color: rgba(0, 255, 163, 0.25);
  background: linear-gradient(160deg, rgba(0, 255, 163, 0.06), var(--bg-card));
  box-shadow: 0 0 60px rgba(0, 255, 163, 0.06);
}
.format-card__tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.6rem;
  opacity: 0.8;
}
.format-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.format-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.format-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.format-card li {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  padding-left: 0.85rem;
  position: relative;
}
.format-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.5rem; max-width: 720px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq__item[open] { border-color: var(--border-hover); }
.faq__item summary {
  padding: 1rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
  transition: transform 0.25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 1.15rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Mega footer */
.footer--mega {
  padding: 3rem 0 1.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.footer__brand .logo__mark {
  display: inline-grid;
  margin-bottom: 0.65rem;
}
.footer__brand strong { display: block; font-size: 1rem; margin-bottom: 0.35rem; }
.footer__brand p { font-size: 0.78rem; color: var(--text-muted); max-width: 220px; }
.footer__col .mono {
  display: block;
  font-size: 0.6rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}
.footer__col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer__bottom .mono { font-size: 0.62rem; opacity: 0.6; }

/* Responsive dense */
@media (max-width: 1100px) {
  .cap-wall { grid-template-columns: repeat(4, 1fr); }
  .hero-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .hero-strip__grid > div:nth-child(2) { border-right: none; }
  .hero-strip__grid > div { border-bottom: 1px solid var(--border); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .cap-wall { grid-template-columns: repeat(2, 1fr); }
  .tab-grid { grid-template-columns: 1fr; }
  .format-grid { grid-template-columns: 1fr; }
  .compare__head,
  .compare__row { grid-template-columns: 1.2fr repeat(3, 0.7fr); font-size: 0.75rem; }
  .compare__head span,
  .compare__row span { padding: 0.65rem 0.5rem; }
  .hero-strip__grid { grid-template-columns: 1fr; }
  .hero-strip__grid > div { border-right: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
