/*!
 * ============================================================================
 * Copyright (c) 2026 ATH SOLUTIONS (PTY) LTD. All rights reserved.
 * KwaZulu-Natal, Republic of South Africa.
 * ============================================================================
 *
 * @BEGIN Developer Log Header Block
 * @FILENAME: marketing.css
 * @TITLE: CERBEATH - Marketing Landing Page Stylesheet
 * @DESCRIPTION: Page-specific stylesheet for the public "/" landing page (layouts/marketing.php,
 *               views/pages/landing.php). Loaded via meta.php's $aPageStyles hook rather than
 *               main.css, since these rules (dark hero, statute-numbered feature grid, ledger
 *               motif) are only ever used on one page. References design-tokens.css exclusively -
 *               no hardcoded hex values.
 * @AUTHOR: Ary van der Pijl
 * @COMPANY: ATH SOLUTIONS (PTY) LTD
 * @WEBSITE: https://www.ath.solutions/
 * @EMAIL: info@ath.solutions
 * @COPYRIGHT: All Rights Reserved
 * @LICENSE: ATH SOLUTIONS - PROPRIETARY SOFTWARE LICENCE AGREEMENT (https://www.ath.solutions/documents/ath_solutions_software_licence_agreement.pdf)
 *
 * BEGIN CHANGELOG
 * @IMPORTANT NOTICE: Developers working on these files MUST update and maintain the Developers Change Log, failure to do is not an option:
 * !==================================================================================================================================================================
 * VERSION 1.0.1
 * + File Created | Ary van der Pijl | 2026-08-12 | ATH-LEM-CERB-009 | Initial marketing landing page stylesheet
 * ==================================================================================================================================================================!
 * END CHANGELOG
 */

/* ─── Topbar ─────────────────────────────────────────────────────────────── */

.mkt-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background: #000000;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.18);
}

.mkt-topbar__logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.mkt-topbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.mkt-topbar__link {
  color: rgba(240, 244, 249, 0.7);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color var(--transition-base);
}

.mkt-topbar__link:hover {
  color: var(--color-gold-400);
}

.mkt-topbar__cta {
  --bs-btn-color: var(--color-navy-900);
  --bs-btn-bg: var(--color-gold-600);
  --bs-btn-border-color: var(--color-gold-600);
  --bs-btn-hover-bg: var(--color-gold-500);
  --bs-btn-hover-border-color: var(--color-gold-500);
  --bs-btn-hover-color: var(--color-navy-900);
  font-weight: var(--fw-semibold);
}

/* ─── Logo  ───────────────────────────────────────────────────────────────── */
.mkt-image {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  padding: clamp(var(--space-12), 10vw, 120px) var(--space-8) clamp(var(--space-12), 8vw, 96px);
}
.mkt-image-logo {
  max-width: 560px;
  display: block;
  margin-left: auto;
  margin-right: auto;  
}
/* ─── Hero ───────────────────────────────────────────────────────────────── */

.mkt-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(184, 134, 11, 0.20), transparent 60%),
    linear-gradient(165deg, var(--color-navy-900) 0%, var(--color-navy-800) 45%, var(--color-navy-700) 100%);
  color: #fff;
  padding: clamp(var(--space-12), 10vw, 120px) var(--space-8) clamp(var(--space-12), 8vw, 96px);
}

/* Faint diagonal hairline grid - evokes a ledger/statute page, not decoration for its own sake */
.mkt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg,
      rgba(184, 134, 11, 0.05) 0px,
      rgba(184, 134, 11, 0.05) 1px,
      transparent 1px,
      transparent 88px);
  pointer-events: none;
}

.mkt-hero__inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--space-12);
  align-items: center;
}

.mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-gold-400);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: mktRise 700ms ease forwards;
}

.mkt-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-gold-400);
}

.mkt-hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
  opacity: 0;
  animation: mktRise 700ms ease 120ms forwards;
}

.mkt-hero__title em {
  font-style: normal;
  color: var(--color-gold-500);
}

.mkt-hero__lede {
  font-size: var(--text-xl);
  line-height: var(--lh-loose);
  color: rgba(240, 244, 249, 0.75);
  max-width: 560px;
  margin: 0 0 var(--space-8);
  opacity: 0;
  animation: mktRise 700ms ease 220ms forwards;
}

.mkt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
  animation: mktRise 700ms ease 320ms forwards;
}

.btn-gold {
  --bs-btn-color: var(--color-navy-900);
  --bs-btn-bg: var(--color-gold-600);
  --bs-btn-border-color: var(--color-gold-600);
  --bs-btn-hover-bg: var(--color-gold-500);
  --bs-btn-hover-border-color: var(--color-gold-500);
  --bs-btn-hover-color: var(--color-navy-900);
  font-weight: var(--fw-semibold);
  box-shadow: 0 8px 30px rgba(184, 134, 11, 0.25);
}

.btn-ghost {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.3);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.5);
}

@keyframes mktRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Ledger panel (illustrative, not a product screenshot) ──────────────── */

.mkt-ledger {
  background: rgba(19, 30, 53, 0.75);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  animation: mktRise 700ms ease 420ms forwards;
}

.mkt-ledger__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mkt-ledger__head-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 244, 249, 0.5);
}

.mkt-ledger__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
}

.mkt-ledger__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.mkt-ledger__row:last-of-type {
  border-bottom: none;
}

.mkt-ledger__key {
  color: rgba(240, 244, 249, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mkt-ledger__pill {
  flex-shrink: 0;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: var(--fw-semibold);
}

.mkt-ledger__pill--active {
  background: var(--stat-green-bg);
  color: var(--stat-green-color);
}

.mkt-ledger__pill--expiring {
  background: var(--stat-gold-bg);
  color: var(--stat-gold-color);
}

.mkt-ledger__pill--suspended {
  background: var(--stat-amber-bg);
  color: var(--stat-amber-color);
}

.mkt-ledger__pill--revoked {
  background: var(--stat-red-bg);
  color: var(--stat-red-color);
}

.mkt-ledger__caption {
  margin: var(--space-4) 0 0;
  font-size: var(--text-xs);
  color: rgba(240, 244, 249, 0.4);
  font-style: italic;
}

/* ─── Stat strip ─────────────────────────────────────────────────────────── */

.mkt-stats {
  background: var(--color-navy-900);
  border-top: 1px solid rgba(184, 134, 11, 0.18);
  padding: var(--space-8);
}

.mkt-stats__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  text-align: center;
}

.mkt-stat__value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--color-gold-500);
  margin: 0;
}

.mkt-stat__label {
  font-size: var(--text-sm);
  color: rgba(240, 244, 249, 0.55);
  margin: var(--space-1) 0 0;
}

/* ─── Section shell ──────────────────────────────────────────────────────── */

.mkt-section {
  padding: clamp(var(--space-12), 8vw, 96px) var(--space-8);
}

.mkt-section--dark {
  background: var(--color-navy-800);
  color: #fff;
}

.mkt-section__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.mkt-section__head {
  max-width: 640px;
  margin: 0 0 var(--space-10);
}

.mkt-section__eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-text-on-light);
  margin-bottom: var(--space-3);
}

.mkt-section--dark .mkt-section__eyebrow {
  color: var(--color-gold-400);
}

.mkt-section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--color-text);
}

.mkt-section--dark .mkt-section__title {
  color: #fff;
}

.mkt-section__lede {
  font-size: var(--text-lg);
  line-height: var(--lh-loose);
  color: var(--color-text-muted);
  margin: 0;
}

.mkt-section--dark .mkt-section__lede {
  color: rgba(240, 244, 249, 0.65);
}

/* ─── Statute-numbered feature grid ──────────────────────────────────────── */

.mkt-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--color-border-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mkt-feature {
  background: var(--color-surface);
  padding: var(--space-8);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease, background var(--transition-base);
}

.mkt-feature.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mkt-feature:hover {
  background: var(--color-primary-light);
}

.mkt-feature__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent-text-on-light);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

.mkt-feature__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.mkt-feature__body {
  font-size: var(--text-md);
  line-height: var(--lh-loose);
  color: var(--color-text-muted);
  margin: 0;
}

/* ─── Compliance band ────────────────────────────────────────────────────── */

.mkt-compliance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.mkt-compliance__badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--radius-md);
  background: rgba(184, 134, 11, 0.06);
  flex: 1 1 260px;
}

.mkt-compliance__badge-code {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: var(--text-lg);
  color: var(--color-gold-400);
  flex-shrink: 0;
}

.mkt-compliance__badge-text {
  font-size: var(--text-sm);
  color: rgba(240, 244, 249, 0.7);
  line-height: var(--lh-normal);
}

/* ─── Final CTA band ─────────────────────────────────────────────────────── */

.mkt-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy-700), var(--color-navy-900));
  color: #fff;
  padding: clamp(var(--space-12), 8vw, 96px) var(--space-8);
  text-align: center;
}

.mkt-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.22), transparent 60%);
  pointer-events: none;
}

.mkt-cta__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.mkt-cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}

.mkt-cta__lede {
  font-size: var(--text-lg);
  color: rgba(240, 244, 249, 0.7);
  margin: 0 0 var(--space-8);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
  .mkt-hero__inner {
    grid-template-columns: 1fr;
  }

  .mkt-ledger {
    max-width: 420px;
  }
}

@media (max-width: 576px) {

  .mkt-topbar,
  .mkt-hero,
  .mkt-section,
  .mkt-cta {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}