/* ABC Mechanical — Blog & Inner Page Shared Styles
   Lives at /assets/blog.css. Loaded by every /insights/*.html page. */

:root {
  --abc-black: #121216;
  --abc-carbon: #2D2D2F;
  --abc-steel: #3A3F45;
  --abc-red: #FF2828;
  --abc-red-glow: #FF4040;
  --abc-white: #F4F6F8;
}

html { scroll-behavior: smooth; }
body {
  background: var(--abc-black);
  color: var(--abc-white);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display {
  font-family: 'Rajdhani', system-ui, sans-serif;
  letter-spacing: 0.02em;
}

/* HUD GRID */
.hud-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 40, 40, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 40, 40, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

.diagonal-streak {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--abc-red), transparent);
  transform: rotate(-12deg);
  pointer-events: none;
  opacity: 0.5;
}

.glow-edge {
  box-shadow: 0 0 24px rgba(255, 40, 40, 0.35), inset 0 0 0 1px rgba(255, 40, 40, 0.4);
}

/* BUTTONS */
.btn-primary {
  background: var(--abc-red);
  color: white;
  border: 1px solid var(--abc-red);
  padding: 18px 36px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 16px;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .btn-primary { font-size: 18px; padding: 20px 44px; }
}
.btn-primary.compact { padding: 12px 22px; font-size: 14px; }
@media (min-width: 1024px) { .btn-primary.compact { font-size: 15px; padding: 14px 26px; } }
.btn-primary:hover {
  background: var(--abc-red-glow);
  box-shadow: 0 0 30px rgba(255, 40, 40, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--abc-white);
  border: 1px solid rgba(244, 246, 248, 0.3);
  padding: 18px 36px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .btn-secondary { font-size: 18px; padding: 20px 44px; }
}
.btn-secondary:hover {
  border-color: var(--abc-red);
  color: var(--abc-white);
  box-shadow: 0 0 20px rgba(255, 40, 40, 0.25);
}

/* MOBILE MENU */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open { transform: translateX(0); }
body.menu-open { overflow: hidden; }

/* CARD */
.card-frame {
  background: rgba(45, 45, 47, 0.4);
  border: 1px solid rgba(244, 246, 248, 0.08);
  transition: all 0.3s ease;
  position: relative;
}
.card-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 40, 40, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 40, 40, 0.15);
}

/* LOGO — clean, no glow per client preference */
.logo-glow img {
  transition: filter 0.3s ease;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* CIRCUIT BG */
.circuit-bg {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 40, 40, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 40, 40, 0.04) 0%, transparent 40%);
}

/* STICKY NAV BACKDROP */
nav.scrolled {
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 40, 40, 0.2);
}

/* ============================================================
   ARTICLE-SPECIFIC TYPOGRAPHY (.prose)
   Long-form reading. Max ~70ch line length. Big headers, well-spaced lists.
============================================================ */

.prose {
  color: rgba(244, 246, 248, 0.85);
  font-size: 18px;
  line-height: 1.75;
  max-width: 70ch;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .prose { font-size: 19px; }
}

.prose > * + * { margin-top: 1.4em; }

.prose h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--abc-white);
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(255, 40, 40, 0.2);
}
@media (min-width: 1024px) {
  .prose h2 { font-size: 2.5rem; }
}

.prose h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--abc-white);
  margin-top: 2em;
  margin-bottom: 0.5em;
}
@media (min-width: 1024px) {
  .prose h3 { font-size: 1.6rem; }
}

.prose h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--abc-red);
  margin-top: 1.8em;
  margin-bottom: 0.3em;
}

.prose strong, .prose b {
  color: var(--abc-white);
  font-weight: 600;
}

.prose a {
  color: var(--abc-red);
  border-bottom: 1px solid rgba(255, 40, 40, 0.4);
  padding-bottom: 1px;
  transition: all 0.2s ease;
}
.prose a:hover {
  color: var(--abc-red-glow);
  border-bottom-color: var(--abc-red);
}

.prose ul, .prose ol {
  padding-left: 1.5em;
}
.prose ul li {
  list-style: none;
  position: relative;
  padding-left: 1.2em;
  margin-top: 0.5em;
}
.prose ul li::before {
  content: '▸';
  color: var(--abc-red);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}
.prose ol {
  list-style: none;
  counter-reset: list;
  padding-left: 0;
}
.prose ol li {
  counter-increment: list;
  position: relative;
  padding-left: 2.6em;
  margin-top: 0.7em;
}
.prose ol li::before {
  content: counter(list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--abc-red);
  font-size: 1.1em;
  letter-spacing: 0.05em;
}

.prose blockquote {
  border-left: 3px solid var(--abc-red);
  padding-left: 1.5em;
  margin-left: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  color: rgba(244, 246, 248, 0.7);
  font-style: italic;
  font-size: 1.05em;
}

.prose code {
  background: rgba(255, 40, 40, 0.12);
  color: var(--abc-red);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9em;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(255, 40, 40, 0.25);
  margin: 3em 0;
}

/* QUICK ANSWER block — the GEO TLDR box */
.quick-answer {
  background: linear-gradient(135deg, rgba(255, 40, 40, 0.08) 0%, rgba(45, 45, 47, 0.4) 100%);
  border: 1px solid rgba(255, 40, 40, 0.4);
  padding: 1.5em 1.8em;
  margin: 2.5em auto;
  max-width: 70ch;
  position: relative;
}
.quick-answer::before {
  content: 'QUICK ANSWER';
  position: absolute;
  top: -0.7em;
  left: 1em;
  background: var(--abc-black);
  color: var(--abc-red);
  padding: 0 0.8em;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.3em;
}
.quick-answer p {
  margin: 0;
  font-size: 1.08em;
  line-height: 1.7;
}

/* CALLOUT */
.callout {
  background: rgba(45, 45, 47, 0.5);
  border-left: 3px solid var(--abc-red);
  padding: 1.2em 1.5em;
  margin: 2em auto;
  max-width: 70ch;
}

/* PROSE FAQ — uses the same details/summary pattern as the homepage FAQ */
.prose-faq {
  max-width: 70ch;
  margin: 0 auto;
}
.prose-faq details {
  background: rgba(45, 45, 47, 0.4);
  border: 1px solid rgba(244, 246, 248, 0.08);
  padding: 1.2em 1.5em;
  margin-top: 0.75em;
  transition: all 0.3s ease;
}
.prose-faq details:hover {
  border-color: rgba(255, 40, 40, 0.4);
}
.prose-faq summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.15em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  list-style: none;
}
.prose-faq summary::-webkit-details-marker { display: none; }
.prose-faq summary::after {
  content: '+';
  color: var(--abc-red);
  font-size: 1.6em;
  font-weight: 300;
  transition: transform 0.3s ease;
}
.prose-faq details[open] summary::after { transform: rotate(45deg); }
.prose-faq details > p {
  margin-top: 1em;
  color: rgba(244, 246, 248, 0.75);
  line-height: 1.7;
}

/* REDUCE MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   BRAND-GUIDE HUD ELEMENTS — added per client request
============================================================ */

/* Parallax background section (used for audience block w/ R_C_Background)
   Implementation: JS-driven translateY on scroll for visible parallax movement.
   Image is stretched 130% tall so the translation never reveals empty space. */
.parallax-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -15% 0;
  height: 130%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
  will-change: transform;
  transition: transform 0.05s linear;
}

/* Overlay set so the image shows ~35% opacity (overlay = ~65% black).
   Top + bottom edges blend slightly heavier into surrounding black sections. */
.parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,18,22,0.78) 0%, rgba(18,18,22,0.65) 25%, rgba(18,18,22,0.65) 75%, rgba(18,18,22,0.78) 100%);
}

/* HUD corner frame — 4-corner accent, used on cards / blocks */
.hud-corners {
  position: relative;
}
.hud-corners::before,
.hud-corners::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--abc-red);
  pointer-events: none;
  opacity: 0.85;
}
.hud-corners::before {
  top: 8px; left: 8px;
  border-right: none;
  border-bottom: none;
}
.hud-corners::after {
  bottom: 8px; right: 8px;
  border-left: none;
  border-top: none;
}

/* Brand-style section eyebrow with side line accents (per brand guide §2.2) */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--abc-red);
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--abc-red);
  display: inline-block;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .section-eyebrow { font-size: 1rem; }
  .section-eyebrow::before, .section-eyebrow::after { width: 38px; }
}

/* Circuit path SVG decoration — subtle accent for blocks */
.circuit-line {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
}

/* Diagonal cut top/bottom for sections (motif #4 from brand guide) */
.cut-bottom-r {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 24px));
}
.cut-top-l {
  clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
}

/* Soft red side glow accents used along section edges */
.edge-glow-l {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--abc-red), transparent);
  opacity: 0.6;
  pointer-events: none;
}
.edge-glow-r {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--abc-red), transparent);
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================================
   NAV DROPDOWN — desktop hover/focus, mobile inline-expand
============================================================ */
.has-dropdown {
  position: relative;
}
.has-dropdown > .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  cursor: pointer;
  user-select: none;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  transition: color 0.2s ease;
}
.has-dropdown > .dropdown-trigger:hover,
.has-dropdown:hover > .dropdown-trigger,
.has-dropdown:focus-within > .dropdown-trigger {
  color: var(--abc-red);
}
.has-dropdown .dropdown-chevron {
  transition: transform 0.25s ease;
}
.has-dropdown:hover .dropdown-chevron,
.has-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
}

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: rgba(18, 18, 22, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 40, 40, 0.45);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 40, 40, 0.15);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* HUD corners on the dropdown panel */
.has-dropdown .dropdown::before,
.has-dropdown .dropdown::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.has-dropdown .dropdown::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--abc-red);
  border-left: 2px solid var(--abc-red);
}
.has-dropdown .dropdown::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--abc-red);
  border-right: 2px solid var(--abc-red);
}
.has-dropdown .dropdown a {
  display: block;
  padding: 14px 18px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--abc-white);
  transition: all 0.2s ease;
  white-space: nowrap;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.has-dropdown .dropdown a:hover {
  background: rgba(255, 40, 40, 0.1);
  color: var(--abc-red);
  border-left-color: var(--abc-red);
  padding-left: 22px;
}

/* Mobile dropdown — inline expand */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--abc-white);
}
.mobile-dropdown-toggle .dropdown-chevron {
  transition: transform 0.3s ease;
}
.mobile-dropdown.open .mobile-dropdown-toggle .dropdown-chevron {
  transform: rotate(180deg);
}
.mobile-dropdown-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.mobile-dropdown.open .mobile-dropdown-panel {
  display: flex;
}

/* Tagline pill (Tron-style) used in heroes and key sections */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1.2em;
  border: 1px solid rgba(255, 40, 40, 0.4);
  border-radius: 999px;
  background: rgba(255, 40, 40, 0.06);
  backdrop-filter: blur(8px);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.875rem;
}
.tag-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--abc-red);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(255, 40, 40, 0); }
  50%      { opacity: 1; box-shadow: 0 0 12px 3px rgba(255, 40, 40, 0.5); }
}
