/* a1-services (2026-10-21): Studio-grade Ecosystem & Services Showcase.
   Aligned with DESIGN.md tokens: page #0f1113, ink #131517, apricot #FFC271, a1-soft #ff4d63.
   Accessible (WCAG 2.2 AA), 44px touch targets on coarse pointers, high contrast, 0 anti-patterns. */

.a1-svc {
  position: relative;
  background: #0f1113;
  color: #faf8f5;
  padding: 6rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
  .a1-svc {
    padding: 8rem 4rem;
  }
}

.a1-svc-inner {
  max-width: 76rem;
  margin: 0 auto;
}

.a1-svc-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffc271;
  margin: 0;
  font-weight: 600;
}

.a1-svc-title {
  margin: 1rem 0 0;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 24ch;
}
.a1-svc-title-em {
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  color: #ffc271;
}

.a1-svc-lead {
  margin: 1.5rem 0 0;
  max-width: 65ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(250, 248, 245, 0.75);
}

/* Category Filter Tabs */
.a1-svc-filter {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.a1-svc-filter-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(250, 248, 245, 0.8);
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 40px;
}

.a1-svc-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.a1-svc-filter-btn:focus-visible {
  outline: 2px solid #ffc271;
  outline-offset: 2px;
}

.a1-svc-filter-btn--active {
  background: #ffc271;
  color: #131517;
  border-color: #ffc271;
  font-weight: 700;
  box-shadow: 0 4px 18px -4px rgba(255, 194, 113, 0.35);
}

/* Services Grid */
.a1-svc-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.a1-svc-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.a1-svc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 194, 113, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.6);
}

.a1-svc-card:focus-within {
  border-color: rgba(255, 194, 113, 0.5);
}

.a1-svc-card--hero {
  border-color: rgba(255, 194, 113, 0.45);
  background: linear-gradient(180deg, rgba(255, 194, 113, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 50px -28px rgba(255, 194, 113, 0.45);
}

.a1-svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.a1-svc-tag-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.a1-svc-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #ffc271;
  color: #131517;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.a1-svc-tag--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(250, 248, 245, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.a1-svc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 194, 113, 0.35);
  background: rgba(255, 194, 113, 0.08);
  color: #ffc271;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.a1-svc-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: rgba(250, 248, 245, 0.4);
  font-weight: 600;
}

.a1-svc-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #faf8f5;
  line-height: 1.25;
}

.a1-svc-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.72);
}

.a1-svc-list {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.a1-svc-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.85);
}

.a1-svc-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ffc271;
  font-weight: bold;
}

.a1-svc-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
}

.a1-svc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 9999px;
  background: #ffc271;
  color: #131517;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  min-height: 44px;
}

.a1-svc-cta:hover {
  transform: translateY(-2px);
  background: #ffe0b2;
}

.a1-svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffc271;
  text-decoration: none;
  min-height: 44px;
  padding: 0.4rem 0;
  transition: color 0.2s, transform 0.2s;
}

.a1-svc-link:hover {
  color: #ffe0b2;
  text-decoration: underline;
  transform: translateX(3px);
}

/* Coarse Pointer Ergonomics (DESIGN.md target: >= 44px) */
@media (pointer: coarse) {
  .a1-svc-filter-btn {
    min-height: 44px;
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
  }
  .a1-svc-cta,
  .a1-svc-link {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a1-svc-card, .a1-svc-cta, .a1-svc-filter-btn, .a1-svc-link {
    transition: none;
  }
}

/* Coming-soon cards: honest roadmap items, visually quieter than live services */
.a1-svc-card--soon {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.02);
}
.a1-svc-card--soon .a1-svc-name,
.a1-svc-card--soon .a1-svc-desc {
  opacity: 0.75;
}

/* Russian Client Geo-Targeted Promo Banner */
.a1-ru-promo {
  position: fixed;
  bottom: calc(1.5rem + var(--cookie-bar-h, 0px));
  right: 1.5rem;
  max-width: 380px;
  background: rgba(19, 21, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 194, 113, 0.45);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.8), 0 0 24px -4px rgba(255, 194, 113, 0.2);
  border-radius: 1.25rem;
  padding: 1.1rem;
  color: #faf8f5;
  z-index: 9995;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: a1RuSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes a1RuSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.a1-ru-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 194, 113, 0.15);
  border: 1px solid rgba(255, 194, 113, 0.35);
  color: #ffc271;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 0.6rem;
}

.a1-ru-promo-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(250, 248, 245, 0.88);
  margin: 0 0 0.85rem;
}

.a1-ru-promo-text strong {
  color: #ffffff;
}

.a1-ru-promo-desc-mobile {
  display: none;
}

.a1-ru-promo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.a1-ru-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffc271;
  color: #131517;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  min-height: 40px;
  transition: transform 0.15s, opacity 0.15s;
}

.a1-ru-promo-cta:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.a1-ru-promo-close {
  background: transparent;
  border: none;
  color: rgba(250, 248, 245, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: color 0.15s, background 0.15s;
}

.a1-ru-promo-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.a1-ru-promo-ack-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #faf8f5;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s;
  white-space: nowrap;
}

.a1-ru-promo-ack-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 194, 113, 0.5);
  color: #ffc271;
}

.a1-ru-promo-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.a1-ru-promo-dot {
  background: transparent;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.a1-ru-promo-dot::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.a1-ru-promo-dot:hover::after {
  background: rgba(255, 255, 255, 0.65);
}

.a1-ru-promo-dot.active::after {
  width: 16px;
  background: #ffc271;
}

@media (max-width: 640px) {
  .a1-ru-promo {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + var(--cookie-bar-h, 0px) + 64px);
    max-width: none;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 16px rgba(255, 194, 113, 0.2);
  }
  .a1-ru-promo-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    margin-bottom: 0.35rem;
  }
  .a1-ru-promo-text {
    font-size: 0.78rem;
    line-height: 1.35;
    margin: 0 0 0.6rem;
  }
  .a1-ru-promo-desc-full {
    display: none;
  }
  .a1-ru-promo-desc-mobile {
    display: inline;
  }
  .a1-ru-promo-actions {
    gap: 0.5rem;
  }
  .a1-ru-promo-cta {
    font-size: 0.75rem;
    padding: 0.45rem 0.8rem;
    min-height: 34px;
  }
  .a1-ru-promo-ack-btn {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
    min-height: 34px;
  }
}
