/* Nbset Marketing Site — Gleb Kuznetsov design system */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--gleb-font-body);
  font-size: var(--gleb-text-base);
  line-height: var(--gleb-leading-normal);
  color: var(--gleb-fg-primary);
  background: var(--gleb-canvas-0);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--gleb-accent-cyan);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gleb-space-6);
}

.container-narrow { max-width: 720px; }

/* ── Nav ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--gleb-z-overlay);
  border-bottom: 1px solid var(--gleb-border-subtle);
  background: oklch(0.08 0.015 270 / 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--gleb-font-display);
  font-size: var(--gleb-text-xl);
  font-weight: 600;
  letter-spacing: var(--gleb-tracking-tight);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gleb-space-8);
}

.nav-links a {
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-secondary);
  transition: color var(--gleb-duration-fast);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gleb-fg-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gleb-fg-primary);
  cursor: pointer;
  padding: 8px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--gleb-radius-pill);
  font-size: var(--gleb-text-sm);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform var(--gleb-duration-fast) var(--gleb-ease-spring),
    box-shadow var(--gleb-duration-normal);
}

.btn-primary {
  background: var(--gleb-accent-cyan);
  color: var(--gleb-canvas-0);
  box-shadow: var(--gleb-shadow-glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 50px oklch(0.72 0.14 230 / 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gleb-fg-primary);
  border: 1px solid var(--gleb-glass-border);
}

.btn-ghost:hover {
  background: var(--gleb-glass-bg);
}

.btn-sm { padding: 8px 18px; font-size: var(--gleb-text-xs); }

/* ── Typography ── */
.eyebrow {
  font-size: var(--gleb-text-xs);
  font-weight: 500;
  letter-spacing: var(--gleb-tracking-wide);
  text-transform: uppercase;
  color: var(--gleb-accent-cyan);
}

.lead {
  font-size: var(--gleb-text-lg);
  color: var(--gleb-fg-secondary);
  line-height: var(--gleb-leading-relaxed);
}

.section-title {
  font-family: var(--gleb-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: var(--gleb-tracking-tight);
  line-height: var(--gleb-leading-tight);
}

.section-desc {
  margin-top: var(--gleb-space-4);
  color: var(--gleb-fg-secondary);
  line-height: var(--gleb-leading-relaxed);
  max-width: 560px;
}

.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

.accent { color: var(--gleb-accent-cyan); }

/* ── Sections ── */
.page-main { padding-top: 64px; }

.section {
  padding: var(--gleb-space-20) 0;
}

.section-alt {
  background: var(--gleb-canvas-1);
  border-block: 1px solid var(--gleb-border-subtle);
}

.section-warm {
  background: var(--gleb-warm-bg);
  color: var(--gleb-warm-fg);
}

.section-warm .lead,
.section-warm .section-desc { color: oklch(0.35 0.03 270); }

.section-warm .eyebrow { color: var(--gleb-warm-accent); }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--gleb-space-12);
  padding: var(--gleb-space-16) 0 var(--gleb-space-20);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gleb-space-3);
  margin-top: var(--gleb-space-8);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pick-stack {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 420px;
}

.pick-card {
  position: absolute;
  width: 100%;
  padding: var(--gleb-space-6);
  border-radius: var(--gleb-radius-xl);
}

.pick-card-1 {
  top: 0;
  z-index: 3;
  transform: rotate(-2deg);
}

.pick-card-2 {
  top: 24px;
  z-index: 2;
  opacity: 0.6;
  transform: scale(0.96) rotate(2deg);
}

.pick-card-3 {
  top: 48px;
  z-index: 1;
  opacity: 0.35;
  transform: scale(0.92);
}

.pick-apy {
  font-family: var(--gleb-font-display);
  font-size: var(--gleb-text-4xl);
  font-weight: 600;
  color: var(--gleb-accent-cyan);
  margin-top: var(--gleb-space-4);
  letter-spacing: var(--gleb-tracking-tight);
}

.pick-meta {
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-muted);
  margin-top: var(--gleb-space-2);
}

/* ── Journey steps ── */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gleb-space-4);
  counter-reset: journey;
}

.journey-step {
  padding: var(--gleb-space-6);
  border-radius: var(--gleb-radius-lg);
  position: relative;
}

.journey-step::before {
  counter-increment: journey;
  content: counter(journey);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(0.72 0.14 230 / 0.15);
  border: 1px solid var(--gleb-border-glow);
  font-size: var(--gleb-text-sm);
  font-weight: 600;
  color: var(--gleb-accent-cyan);
  margin-bottom: var(--gleb-space-4);
}

.journey-step h3 {
  font-family: var(--gleb-font-display);
  font-size: var(--gleb-text-lg);
  font-weight: 600;
  margin-bottom: var(--gleb-space-2);
}

.journey-step p {
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-secondary);
  line-height: var(--gleb-leading-relaxed);
}

.journey-connector {
  display: none;
}

/* ── Cards grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gleb-space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gleb-space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gleb-space-4); }

.card {
  padding: var(--gleb-space-6);
  border-radius: var(--gleb-radius-lg);
  transition: transform var(--gleb-duration-normal), border-color var(--gleb-duration-normal);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gleb-border-glow);
}

.card h3 {
  font-family: var(--gleb-font-display);
  font-size: var(--gleb-text-lg);
  font-weight: 600;
  margin-bottom: var(--gleb-space-2);
}

.card p {
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-secondary);
  line-height: var(--gleb-leading-relaxed);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--gleb-space-4);
  font-size: var(--gleb-text-sm);
  font-weight: 500;
  color: var(--gleb-accent-cyan);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--gleb-radius-md);
  display: grid;
  place-items: center;
  margin-bottom: var(--gleb-space-4);
  background: oklch(0.72 0.14 230 / 0.1);
  border: 1px solid var(--gleb-border-glow);
  font-size: 18px;
  color: var(--gleb-accent-cyan);
}

/* ── Problem / contrast ── */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gleb-space-6);
}

.contrast-bad {
  opacity: 0.7;
  border-color: oklch(0.62 0.2 25 / 0.2);
}

.contrast-bad h3 { color: var(--gleb-danger); }

.contrast-good h3 { color: var(--gleb-success); }

/* ── Stats ── */
.stat-value {
  font-family: var(--gleb-font-display);
  font-size: var(--gleb-text-3xl);
  font-weight: 600;
  letter-spacing: var(--gleb-tracking-tight);
  color: var(--gleb-accent-cyan);
}

.stat-label {
  font-size: var(--gleb-text-xs);
  color: var(--gleb-fg-muted);
  margin-top: var(--gleb-space-1);
  text-transform: uppercase;
  letter-spacing: var(--gleb-tracking-wide);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gleb-space-6);
  align-items: stretch;
}

.pricing-card {
  padding: var(--gleb-space-8) var(--gleb-space-6);
  border-radius: var(--gleb-radius-xl);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--gleb-border-glow);
  box-shadow: var(--gleb-shadow-glow-cyan);
}

.pricing-name {
  font-family: var(--gleb-font-display);
  font-size: var(--gleb-text-xl);
  font-weight: 600;
}

.pricing-price {
  font-family: var(--gleb-font-display);
  font-size: var(--gleb-text-4xl);
  font-weight: 600;
  margin-top: var(--gleb-space-4);
  letter-spacing: var(--gleb-tracking-tight);
}

.pricing-price span {
  font-size: var(--gleb-text-base);
  font-weight: 400;
  color: var(--gleb-fg-muted);
}

.pricing-desc {
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-secondary);
  margin-top: var(--gleb-space-2);
  line-height: var(--gleb-leading-relaxed);
}

.pricing-features {
  margin-top: var(--gleb-space-6);
  flex: 1;
}

.pricing-features li {
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-secondary);
  padding: var(--gleb-space-2) 0;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gleb-success);
  font-weight: 600;
}

.pricing-card .btn { margin-top: var(--gleb-space-6); width: 100%; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--gleb-border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gleb-space-4);
  padding: var(--gleb-space-5) 0;
  background: none;
  border: none;
  color: var(--gleb-fg-primary);
  font-family: var(--gleb-font-display);
  font-size: var(--gleb-text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--gleb-duration-normal);
  color: var(--gleb-fg-muted);
}

.faq-item[open] .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  padding-bottom: var(--gleb-space-5);
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-secondary);
  line-height: var(--gleb-leading-relaxed);
}

.faq-answer a { color: var(--gleb-accent-cyan); text-decoration: underline; }

/* ── Product feature blocks ── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gleb-space-12);
  align-items: center;
  padding: var(--gleb-space-12) 0;
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-mock {
  padding: var(--gleb-space-8);
  border-radius: var(--gleb-radius-xl);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-list {
  margin-top: var(--gleb-space-4);
}

.feature-list li {
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-secondary);
  padding: var(--gleb-space-2) 0;
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gleb-accent-cyan);
  transform: translateY(-50%);
}

/* ── CTA band ── */
.cta-band {
  text-align: center;
  padding: var(--gleb-space-16) var(--gleb-space-6);
  border-radius: var(--gleb-radius-2xl);
  margin: 0 var(--gleb-space-6);
  max-width: 1068px;
  margin-inline: auto;
}

.cta-band .section-desc { margin-inline: auto; }

.cta-band .btn { margin-top: var(--gleb-space-6); }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: var(--gleb-text-xs);
  color: var(--gleb-fg-muted);
  padding: var(--gleb-space-6) 0;
}

.breadcrumb a:hover { color: var(--gleb-accent-cyan); }

.breadcrumb span { margin: 0 0.5em; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: var(--gleb-space-12) 0 var(--gleb-space-16);
  text-align: center;
}

.page-hero .lead {
  max-width: 560px;
  margin: var(--gleb-space-4) auto 0;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--gleb-border-subtle);
  padding: var(--gleb-space-12) 0 var(--gleb-space-8);
  margin-top: var(--gleb-space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gleb-space-8);
}

.footer-brand p {
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-muted);
  margin-top: var(--gleb-space-3);
  line-height: var(--gleb-leading-relaxed);
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--gleb-text-xs);
  font-weight: 600;
  letter-spacing: var(--gleb-tracking-wide);
  text-transform: uppercase;
  color: var(--gleb-fg-muted);
  margin-bottom: var(--gleb-space-4);
}

.footer-col a {
  display: block;
  font-size: var(--gleb-text-sm);
  color: var(--gleb-fg-secondary);
  padding: var(--gleb-space-1) 0;
  transition: color var(--gleb-duration-fast);
}

.footer-col a:hover { color: var(--gleb-accent-cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gleb-space-4);
  margin-top: var(--gleb-space-10);
  padding-top: var(--gleb-space-6);
  border-top: 1px solid var(--gleb-border-subtle);
  font-size: var(--gleb-text-xs);
  color: var(--gleb-fg-muted);
}

/* ── Agent bubble ── */
.agent-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--gleb-radius-pill);
  font-size: var(--gleb-text-xs);
  font-weight: 500;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gleb-success);
  box-shadow: 0 0 8px var(--gleb-success);
}

/* ── Status ring ── */
.status-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gleb-accent-cyan);
  box-shadow: var(--gleb-shadow-glow-cyan);
  font-size: var(--gleb-text-xs);
  font-weight: 600;
  color: var(--gleb-accent-cyan);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: var(--gleb-space-6);
    background: var(--gleb-canvas-1);
    border-bottom: 1px solid var(--gleb-border-subtle);
    gap: var(--gleb-space-4);
  }
  .nav-toggle { display: block; }

  .hero,
  .feature-block,
  .contrast-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .journey,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { text-align: center; min-height: auto; padding-top: var(--gleb-space-10); }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .pick-stack { height: 360px; max-width: 300px; margin: 0 auto; }

  .feature-block.reverse { direction: ltr; }
  .footer-grid { gap: var(--gleb-space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .gleb-animate-breathe,
  .gleb-animate-glow,
  .gleb-animate-float { animation: none; }
  html { scroll-behavior: auto; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
