/* Anomali vendor page (partner/anomali.php) */

:root {
  --color-anomali: #0077fd;
  --color-anomali-dark: #0057c7;
  --color-anomali-accent: #3aff9f;
  --anm-night: #080c14;
  --anm-card: #111827;
  --anm-ink: #111827;
  --anm-muted: #55606f;
  --anm-light: #f3f6fb;
  --anm-line: #e2e8f0;
  --anm-radius: 16px;
}

body {
  overflow-x: hidden;
}

.vendor-color {
  color: var(--color-anomali);
}

.bg-vendor-color {
  background-color: var(--color-anomali);
}

.anm-page p {
  font-size: 1rem;
  line-height: 1.7;
}

.anm-page h1 {
  margin-bottom: 1.1rem;
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.anm-page .anm-h2 {
  margin-bottom: 0.9rem;
  color: var(--anm-ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.anm-page .anm-h2.vendor-color {
  color: var(--color-anomali);
}

.anm-page .anm-dark .anm-h2 {
  color: #fff;
}

.anm-page .anm-lead {
  max-width: 50rem;
  margin: 0 auto 1rem;
  color: rgba(255, 255, 255, 0.72);
}

/* sections */
.anm-section {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
  background: #fff;
}

.anm-light {
  background: var(--anm-light);
}

.anm-dark {
  background: var(--anm-night);
}

.anm-section.anm-head {
  padding-bottom: 0 !important;
}

.anm-section.anm-tabs {
  padding-top: 2rem !important;
}

.anm-section p {
  color: var(--anm-muted);
}

.anm-section.anm-dark p {
  color: rgba(255, 255, 255, 0.75);
}

/* buttons */
.anm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--color-anomali-accent);
  border-radius: 8px;
  background: var(--color-anomali-accent);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.anm-btn:hover,
.anm-btn:focus-visible {
  border-color: #2de08a;
  background: #2de08a;
  color: #000;
}

.anm-btn:focus-visible {
  outline: 3px solid rgba(58, 255, 159, 0.4);
  outline-offset: 3px;
}

/* hero */
.anm-hero {
  position: relative;
  overflow: hidden;
  background: #000;
}

.anm-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.anm-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 20, 0.92) 0%, rgba(8, 12, 20, 0.55) 55%, rgba(8, 12, 20, 0.15) 100%);
}

.anm-hero .container {
  position: relative;
  z-index: 1;
}

.anm-hero .row {
  min-height: 500px;
}

.anm-hero-body {
  padding: 3rem 0;
}

.anm-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 28px;
  margin-bottom: 1.5rem;
}

.anm-page .anm-hero-body p {
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

/* platform cards */
.anm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--anm-radius);
  background: var(--anm-card);
  transition: border-color 0.25s;
}

.anm-card:hover {
  border-color: var(--color-anomali);
}

.anm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: rgba(0, 119, 253, 0.16);
}

.anm-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.anm-card h3 {
  margin-bottom: 0.7rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.anm-page .anm-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* product cards */
.anm-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--anm-line);
  border-radius: var(--anm-radius);
  background: #fff;
  transition: border-color 0.25s;
}

.anm-product:hover {
  border-color: var(--color-anomali);
}

.anm-product-img {
  height: 180px;
  overflow: hidden;
}

.anm-product-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.anm-product:hover .anm-product-img img {
  transform: scale(1.06);
}

.anm-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem 1.5rem 1.5rem;
}

.anm-product h3 {
  margin-bottom: 0.7rem;
  color: var(--anm-ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.anm-page .anm-product p {
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* audience tabs */
.anm-nav {
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.anm-nav .nav-link {
  padding: 0.65rem 1.3rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.anm-nav .nav-link:hover {
  border-color: var(--color-anomali-accent);
  color: #fff;
}

.anm-nav .nav-link.active {
  border-color: var(--color-anomali-accent);
  background: var(--color-anomali-accent);
  color: #000;
}

.anm-tabs .tab-pane {
  overflow-x: hidden;
}

.anm-tabs .tab-content h3 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
}

.anm-tabs .anm-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--color-anomali-accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.anm-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--anm-radius);
}

@media (max-width: 767px) {

  .anm-section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .anm-section.anm-head {
    padding-bottom: 0 !important;
  }

  .anm-section.anm-tabs {
    padding-top: 1.5rem !important;
  }

  .anm-hero .row {
    min-height: 0;
  }

  .anm-hero::after {
    background: rgba(8, 12, 20, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {

  .anm-btn,
  .anm-card,
  .anm-product,
  .anm-product-img img,
  .anm-nav .nav-link {
    transition: none;
  }

  .anm-product:hover .anm-product-img img {
    transform: none;
  }

  .anm-hero video {
    display: none;
  }
}
