/* ==========================================================================
   Audit Brands - Dark Theme Styles
   ========================================================================== */

:root {
  --bg-primary: #0f1117;
  --bg-secondary: #161820;
  --bg-card: #1c1e28;
  --bg-card-hover: #22242f;
  --text-primary: #ffffff;
  --text-secondary: #a0a3b1;
  --text-muted: #6b6e7b;
  --accent: #0389ff;
  --accent-hover: #0070d6;
  --border-color: #2a2d3a;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* Navigation */
.navbar {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  padding: 1rem 0;
  transition: all 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--border-color);
  padding: 0.6rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-right: 0.4rem;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-radius: 8px;
  font-weight: 600;
  border-width: 2px;
}

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

/* Hero */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(160deg, #0f1117 0%, #141828 50%, #0f1117 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(3, 137, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.hero-heading {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.py-section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--bg-secondary);
}

.section-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Value Cards */
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: all 0.3s;
  height: 100%;
}

.value-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.value-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Network Cards */
.network-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  transition: all 0.3s;
  height: 100%;
}

.network-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.network-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: 8px;
}

.network-card h6 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* How It Works */
.how-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.how-step h6 {
  margin-bottom: 0.25rem;
}

.how-step p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Metrics */
.metric-card {
  padding: 2rem 1rem;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Ad Format Cards */
.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  height: 100%;
}

.format-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.format-preview {
  margin-bottom: 1.25rem;
}

.ad-mock {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  position: relative;
}

.ad-mock-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.ad-mock-image {
  background: var(--bg-card-hover);
  border-radius: 6px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.ad-mock-text .ad-mock-title {
  height: 10px;
  width: 70%;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.ad-mock-text .ad-mock-body {
  height: 8px;
  width: 90%;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.4rem;
  opacity: 0.6;
}

.ad-mock-text .ad-mock-body.short {
  width: 50%;
}

.ad-mock-text .ad-mock-cta {
  height: 24px;
  width: 80px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 0.75rem;
  opacity: 0.7;
}

.ad-mock-video {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-mock-play {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.7;
}

.ad-mock-text-only {
  min-height: 140px;
}

.format-card h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.format-card .badge {
  font-weight: 500;
  font-size: 0.75rem;
}

/* FAQ Accordion */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:not(.collapsed) {
  background: var(--bg-card-hover);
  color: var(--accent);
}

.accordion-body {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0 1.5rem 1.25rem;
}

/* Contact Form */
.form-control,
.form-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-control:focus,
.form-select:focus {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(3, 137, 255, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select {
  color: var(--text-muted);
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-hr {
  border-color: var(--border-color);
  margin: 2rem 0 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
  .py-section {
    padding: 4rem 0;
  }

  .navbar-collapse {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
  }

  .navbar-collapse .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575px) {
  .hero-section {
    min-height: 90vh;
  }

  .py-section {
    padding: 3rem 0;
  }

  .network-logo {
    width: 48px;
    height: 48px;
  }
}
