/* ============================================================
   BRAIN AFRICA LABS
   TikTok Audit Dashboard
   AUDIT.CSS — V1
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-soft: #0d131d;
  --card: #101823;
  --card-hover: #151f2d;

  --text: #f5f7fb;
  --muted: #9aa7b8;

  --border: rgba(255, 255, 255, 0.09);

  --primary: #fe2c55;
  --primary-dark: #d91f46;

  --secondary: #25f4ee;

  --success: #36d399;
  --warning: #fbbf24;
  --danger: #f87171;

  --radius: 18px;
  --max-width: 1180px;
}

/* ------------------------------------------------------------
   RESET
------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    radial-gradient(
      circle at top right,
      rgba(37, 244, 238, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at top left,
      rgba(254, 44, 85, 0.08),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   LINKS
------------------------------------------------------------ */

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

a:hover {
  text-decoration: none;
}

/* ------------------------------------------------------------
   NAVBAR
------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(16px);

  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: auto;

  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;

  object-fit: contain;

  border-radius: 12px;
}

.brand strong {
  display: block;

  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand span {
  display: block;

  margin-top: 1px;

  color: var(--muted);

  font-size: 12px;
}

.links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.links a {
  padding: 9px 14px;

  border-radius: 10px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 600;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ------------------------------------------------------------
   MAIN
------------------------------------------------------------ */

.wrap {
  width: min(var(--max-width), calc(100% - 40px));
  margin: auto;

  padding: 70px 0 50px;
}

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */

.hero {
  position: relative;

  padding: 48px;

  margin-bottom: 28px;

  border: 1px solid var(--border);
  border-radius: 26px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(254, 44, 85, 0.13),
      rgba(37, 244, 238, 0.06)
    ),
    var(--card);

  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.25);
}

.hero::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  right: -100px;
  top: -120px;

  border-radius: 50%;

  background: rgba(37, 244, 238, 0.08);

  filter: blur(10px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;

  padding: 6px 11px;

  margin-bottom: 14px;

  border: 1px solid rgba(37, 244, 238, 0.25);
  border-radius: 999px;

  background: rgba(37, 244, 238, 0.06);

  color: var(--secondary);

  font-size: 11px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;

  font-size: clamp(34px, 5vw, 58px);

  line-height: 1.05;

  letter-spacing: -0.045em;
}

.hero p {
  max-width: 720px;

  margin: 18px 0 0;

  color: var(--muted);

  font-size: 16px;
}

/* ------------------------------------------------------------
   GRID
------------------------------------------------------------ */

.grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-bottom: 22px;
}

/* ------------------------------------------------------------
   CARDS
------------------------------------------------------------ */

.card {
  padding: 26px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--card);

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);

  background: var(--card-hover);

  border-color: rgba(255, 255, 255, 0.15);
}

.card h2 {
  margin: 0 0 10px;

  font-size: 19px;
  line-height: 1.25;

  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

/* ------------------------------------------------------------
   BUTTONS
------------------------------------------------------------ */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding: 10px 17px;

  margin-top: 14px;

  border-radius: 11px;

  font-size: 13px;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: white;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );

  box-shadow:
    0 8px 25px rgba(254, 44, 85, 0.22);
}

.btn.secondary {
  color: var(--text);

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------------
   AUDIT JOURNEY
------------------------------------------------------------ */

.steps {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;

  margin-top: 22px;
}

.step {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 17px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.025);
}

.step .num {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #8b1e43
    );

  color: white;

  font-size: 13px;
  font-weight: 900;
}

.step b {
  display: block;

  margin-top: 2px;

  font-size: 14px;
}

.step p {
  margin: 4px 0 0;

  font-size: 12px;
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */

.footer {
  width: min(var(--max-width), calc(100% - 40px));

  margin: auto;

  padding: 30px 0 40px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: 12px;

  text-align: center;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 850px) {

  .nav-inner {
    width: min(100% - 24px, var(--max-width));

    flex-direction: column;

    align-items: flex-start;

    padding: 14px 0;
  }

  .links {
    width: 100%;

    overflow-x: auto;
  }

  .wrap {
    width: min(100% - 24px, var(--max-width));

    padding-top: 30px;
  }

  .hero {
    padding: 30px 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .card {
    padding: 21px;
  }

  .footer {
    width: calc(100% - 24px);
  }
}
