/* AlertWeb site v3 — global polish (all pages) */

.landing {
  --aw-accent-from: #0ea5e9;
  --aw-accent-to: #14b8a6;
}

/* Scroll progress */
.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--aw-accent-from), var(--aw-accent-to));
  box-shadow: 0 0 12px var(--aw-glow, rgba(14, 165, 233, 0.5));
  pointer-events: none;
}

/* Header CTA */
.btn-header-cta {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

@media (min-width: 900px) {
  .btn-header-cta { display: inline-flex; }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: #94a3b8;
}

.breadcrumbs a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover { color: #38bdf8; }

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: #475569;
}

/* Page hero v3 — stats row */
.page-hero--v3 {
  position: relative;
  overflow: hidden;
}

.page-hero--v3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
}

.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.page-hero__stats li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

.page-hero__stats strong {
  color: #fff;
  margin-right: 0.25rem;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta__card {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  color: #e2e8f0;
  font-size: 0.8rem;
  max-width: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.floating-cta__card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 0.88rem;
}

.floating-cta .btn { font-size: 0.85rem; }

/* Feature filter tabs */
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.feature-tab {
  appearance: none;
  border: 1px solid var(--aw-border);
  background: var(--aw-surface);
  color: var(--aw-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.feature-tab:hover {
  border-color: color-mix(in srgb, var(--aw-accent-from) 40%, var(--aw-border));
  color: var(--aw-text);
}

.feature-tab.is-active {
  background: linear-gradient(135deg, var(--aw-accent-from), var(--aw-accent-to));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(14, 165, 233, 0.45);
}

.feature-card-v2[data-cat] {
  transition: opacity 0.25s, transform 0.25s;
}

.feature-card-v2.is-hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.feature-grid-v2--filtered {
  position: relative;
  min-height: 200px;
}

/* Platform interactive legend */
.platform-legend {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1.25rem;
}

.platform-legend__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--aw-border);
  background: var(--aw-surface);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.platform-legend__item:hover,
.platform-legend__item.is-active {
  border-color: color-mix(in srgb, var(--aw-accent-from) 45%, var(--aw-border));
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
}

.platform-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Docs v3 */
.doc-body.landing .site-header {
  background: rgba(5, 10, 18, 0.88);
}

.doc-body .page-hero {
  padding: 3.5rem 0 2.5rem;
}

.doc-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.doc-hub-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: 1.15rem;
  border: 1px solid var(--aw-border);
  background: var(--aw-surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.doc-hub-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--aw-accent-from) 35%, var(--aw-border));
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.1);
}

.doc-hub-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.doc-hub-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--aw-text);
}

.doc-hub-card p {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  color: var(--aw-muted);
  line-height: 1.55;
}

.doc-hub-card__arrow {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--aw-accent-from);
}

.doc-hub-card {
  position: relative;
  overflow: hidden;
}

.doc-hub-card__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-badge--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.doc-badge--live {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  animation: doc-pulse 2.5s ease-in-out infinite;
}

.doc-badge--soon {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

@keyframes doc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.docs-live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.docs-live-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.78rem;
  color: #94a3b8;
}

.docs-live-strip__item strong {
  color: #e2e8f0;
  font-weight: 600;
}

.docs-live-strip__item a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.docs-live-strip__item a:hover { text-decoration: underline; }

.docs-live-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.docs-live-strip__item.is-live .docs-live-strip__dot {
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: doc-pulse 2s ease-in-out infinite;
}

.docs-live-strip__dot--accent { background: #38bdf8; }
.docs-live-strip__dot--green { background: #4ade80; }
.docs-live-strip__dot--amber { background: #fbbf24; }

.doc-api-objects {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid var(--aw-border);
  background: var(--aw-surface);
}

.doc-api-objects__title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aw-muted);
}

.object-gallery--compact {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.65rem;
}

.object-gallery--compact .object-tile {
  padding: 0.85rem 0.65rem;
}

.object-gallery--compact .object-tile__visual {
  width: 48px;
  height: 48px;
  margin-bottom: 0.55rem;
}

.object-gallery--compact .object-tile__visual svg {
  width: 28px;
  height: 28px;
}

.object-gallery--compact .object-tile__icon {
  font-size: 1.35rem;
}

.object-gallery--compact .object-tile__name {
  font-size: 0.82rem;
}

.object-gallery--compact .object-tile__meta {
  font-size: 0.68rem;
}

.doc-sidebar {
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.doc-content pre,
.doc-content code {
  border-radius: 0.5rem;
}

/* Legal / prose pages */
.legal-hero-note {
  max-width: 40rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(14, 165, 233, 0.08);
  font-size: 0.88rem;
  color: #94a3b8;
}

/* Reseller tier visual */
.reseller-ladder {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.reseller-rung {
  padding: 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid var(--aw-border);
  background: var(--aw-surface);
  text-align: center;
  transition: transform 0.2s;
}

.reseller-rung:hover { transform: translateY(-3px); }

.reseller-rung--active {
  border-color: color-mix(in srgb, var(--aw-accent-from) 40%, var(--aw-border));
  box-shadow: 0 16px 48px rgba(14, 165, 233, 0.12);
}

/* Mini tariff strip on inner pages */
.tariff-strip {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #0f172a, #0c4a6e 60%, #134e4a);
  color: #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tariff-strip p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 28rem;
}

.tariff-strip strong { color: #fff; }

/* Subpage CTA — ensure on all pages */
.page-cta-band {
  margin: 0 0 3rem;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0c4a6e 0%, #0f172a 50%, #134e4a 100%);
  color: #e2e8f0;
}

.page-cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
}

.page-cta-band p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  font-size: 0.92rem;
  color: #94a3b8;
}

.page-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta { transition: none; }
  .feature-card-v2 { transition: none; }
}
