/* ==========================================================================
   MARKET MAESTRO — THEME V2
   2026 Visual Overhaul: CSS Foundation
   Architecture firm × Performance agency
   ========================================================================== */

/* ─────────────────────────────────────────────
   PART 1-A: CSS Custom Properties (Design Tokens)
   ───────────────────────────────────────────── */
:root {
  /* Background */
  --bg-primary:        #0A0A0F;
  --bg-secondary:      #111118;
  --bg-surface:        #16161F;
  --bg-surface-hover:  #1C1C28;

  /* Borders */
  --border-subtle:     rgba(255, 255, 255, 0.06);
  --border-accent:     rgba(255, 92, 26, 0.4);

  /* Text */
  --text-primary:      #F0F0F0;
  --text-secondary:    #8A8A9A;

  /* Accent */
  --accent:            #FF5C1A;
  --accent-glow:       rgba(255, 92, 26, 0.15);
  --accent-glow-strong: rgba(255, 92, 26, 0.35);
  --blueprint-line:    rgba(255, 92, 26, 0.35);

  /* Network pattern background for cutting-edge aesthetic */
  --network-pattern:   url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3C/defs%3E%3C!-- Dots --%3E%3Ccircle cx='20' cy='20' r='2' fill='%23FF5C1A' opacity='0.12'/%3E%3Ccircle cx='60' cy='35' r='2' fill='%23FF5C1A' opacity='0.1'/%3E%3Ccircle cx='100' cy='60' r='2' fill='%23FF5C1A' opacity='0.12'/%3E%3Ccircle cx='40' cy='85' r='2' fill='%23FF5C1A' opacity='0.1'/%3E%3Ccircle cx='90' cy='100' r='2' fill='%23FF5C1A' opacity='0.11'/%3E%3Ccircle cx='15' cy='65' r='2' fill='%23FF5C1A' opacity='0.09'/%3E%3C!-- Connecting lines --%3E%3Cline x1='20' y1='20' x2='60' y2='35' stroke='%23FF5C1A' stroke-width='0.7' opacity='0.08'/%3E%3Cline x1='60' y1='35' x2='100' y2='60' stroke='%23FF5C1A' stroke-width='0.7' opacity='0.08'/%3E%3Cline x1='100' y1='60' x2='40' y2='85' stroke='%23FF5C1A' stroke-width='0.7' opacity='0.07'/%3E%3Cline x1='40' y1='85' x2='90' y2='100' stroke='%23FF5C1A' stroke-width='0.7' opacity='0.07'/%3E%3Cline x1='20' y1='20' x2='15' y2='65' stroke='%23FF5C1A' stroke-width='0.7' opacity='0.06'/%3E%3C/svg%3E");


  /* Typography */
  --font-display:      'Space Grotesk', system-ui, sans-serif;
  --font-body:         'Inter', system-ui, sans-serif;
  --font-mono:         'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --hero-headline:     clamp(52px, 7vw, 96px);
  --section-headline:  clamp(36px, 4vw, 58px);
  --radius-card:       6px;
  --spacing-section:   clamp(3rem, 6vw, 5rem);
  --max-width:         1280px;

  /* Transitions */
  --transition-base:   0.25s ease;
  --transition-slow:   0.6s ease;
}

/* ─────────────────────────────────────────────
   PART 1-B: Reset & Global Base
   ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #0A0A0F;
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
  color: #F0F0F0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
.main-content,
article,
.page-content,
.content-wrapper,
section:not([class*="light"]) {
  background-color: #0A0A0F;
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
  color: #F0F0F0;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ─────────────────────────────────────────────
   PART 1-C: Typography System
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h2 { font-size: var(--section-headline); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

.hero-section h1,
.hero h1,
#hero h1,
.v2-hero h1 {
  font-size: clamp(38px, 4.5vw, 68px);
}

/* Inner page h1 — page titles */
main h1 {
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.15;
  margin-bottom: 16px;
}

/* Section headings */
main h2 {
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Sub-headings */
main h3 {
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Body text */
main p {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  color: #C0C0D0;
  max-width: 680px;
  margin-bottom: 16px;
}

p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--text-primary);
}

/* Monospace: stats, labels, numbers */
.mono,
.stat-number,
.card-number,
.overline-mono {
  font-family: var(--font-mono) !important;
}

/* Section overline label */
.v2-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────
   PART 1-D: Layout Utilities
   ───────────────────────────────────────────── */
.v2-container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Inner page wrappers (legacy utility class bridge) */
.main-content,
.content-wrapper,
.page-content,
.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl,
.max-w-3xl,
.max-w-2xl {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1023px) {
  .main-content,
  .content-wrapper,
  .page-content,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .max-w-4xl,
  .max-w-3xl,
  .max-w-2xl {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.v2-section {
  padding-block: var(--spacing-section);
}

/* ─────────────────────────────────────────────
   PART 1-E: Navbar
   ───────────────────────────────────────────── */
.v2-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.v2-nav.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.v2-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.v2-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.v2-nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.v2-nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.v2-nav__link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 240, 0.75);
  text-decoration: none;
  transition: color var(--transition-base);
}

.v2-nav__link:hover {
  color: var(--text-primary);
}

/* Dropdown */
.v2-nav__dropdown {
  position: relative;
}

.v2-nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 240, 0.75);
  transition: color var(--transition-base);
  padding: 0;
}

.v2-nav__dropdown-toggle:hover {
  color: var(--text-primary);
}

.v2-nav__dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.v2-nav__dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.v2-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 0.5rem 0;
  z-index: 1001;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.v2-nav__dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base), background var(--transition-base);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.v2-nav__dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.v2-nav__dropdown-menu .v2-nav__divider {
  border-top: 1px solid var(--border-subtle);
  margin: 0.25rem 0;
}

/* CTA Button — nav */
.v2-btn-nav {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.v2-btn-nav:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ─────────────────────────────────────────────
   PART 1-F: Buttons
   ───────────────────────────────────────────── */
.v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.875rem;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

/* Primary: outlined */
.v2-btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.v2-btn--outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* Secondary: ghost */
.v2-btn--ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.v2-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* ─────────────────────────────────────────────
   PART 1-G: Hero Section
   ───────────────────────────────────────────── */
.v2-hero {
  min-height: 60svh;
  background: var(--bg-primary);
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px; /* nav height */
}

.v2-hero__inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3rem;
  align-items: center;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 48px;
  width: 100%;
}

@media (max-width: 900px) {
  .v2-hero__inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .v2-hero__graphic {
    display: none;
  }
}

.v2-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.v2-hero__headline {
  font-size: clamp(38px, 4.5vw, 68px);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.v2-hero__headline .word {
  display: inline-block;
  overflow: hidden;
}

.v2-hero__headline .accent-word {
  color: var(--accent);
}

.v2-hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 480px;
}

.v2-hero__sub .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.v2-hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

/* Tighten button padding to keep them compact */
.v2-hero__actions .v2-btn {
  padding: 14px 28px;
}

.v2-hero__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-top: 0;
  margin-bottom: 0;
}

/* Blueprint graphic */
.v2-hero__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.v2-hero__blueprint {
  width: 100%;
  max-width: 480px;
  color: var(--accent);
  opacity: 0.75;
  animation: blueprint-spin 60s linear infinite;
  transform-origin: center center;
}

@keyframes blueprint-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .v2-hero__blueprint {
    animation: none;
  }
}

/* ─────────────────────────────────────────────
   PART 1-H: Marquee / Ticker Strip
   ───────────────────────────────────────────── */
.v2-ticker {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  padding-block: 0.875rem;
  margin-block: 3rem;
  position: relative;
}

.v2-ticker::before,
.v2-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.v2-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.v2-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.v2-ticker__track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.v2-ticker__item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  padding-inline: 2.5rem;
}

.v2-ticker__item span {
  color: var(--accent);
  margin-inline: 0.5rem;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .v2-ticker__track {
    animation: none;
  }
}

/* ─────────────────────────────────────────────
   PART 1-I: Bento / Services Grid
   ───────────────────────────────────────────── */
.v2-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.v2-card {
  background: var(--bg-surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}

.v2-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-4px);
  z-index: 1;
}

/* Span sizes within 12-col bento */
.v2-card--wide {
  grid-column: span 8;
}

.v2-card--half {
  grid-column: span 6;
}

.v2-card--narrow {
  grid-column: span 4;
}

@media (max-width: 1024px) {
  .v2-card--wide,
  .v2-card--half,
  .v2-card--narrow {
    grid-column: span 12;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .v2-card--half {
    grid-column: span 6;
  }
  .v2-card--narrow {
    grid-column: span 6;
  }
}

/* Card number badge */
.v2-card__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.v2-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.v2-card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 0 0 auto;
  margin-bottom: 1.25rem;
}

/* Arrow CTA at bottom of card */
.v2-card__arrow {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--accent);
  display: inline-block;
  transition: transform var(--transition-base);
  margin-top: auto;
  align-self: flex-start;
}

.v2-card:hover .v2-card__arrow {
  transform: translateX(6px);
}

/* ─────────────────────────────────────────────
   PART 1-J: Stats Bar
   ───────────────────────────────────────────── */
.v2-stats {
  background: var(--bg-secondary);
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.v2-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

.v2-stat {
  padding: 1.5rem 2.5rem;
  text-align: center;
  position: relative;
}

.v2-stat + .v2-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

@media (max-width: 640px) {
  .v2-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .v2-stat:nth-child(odd)::before {
    display: none;
  }
}

.v2-stat__number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.v2-stat__number .accent-val {
  color: var(--accent);
}

.v2-stat__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   PART 1-K: Section Divider Lines (SVG draw)
   ───────────────────────────────────────────── */
.v2-divider {
  width: 100%;
  height: 1px;
  overflow: visible;
  display: block;
  margin-block: 0;
}

.v2-divider line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.35;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.8s ease;
}

.v2-divider.is-drawn line {
  stroke-dashoffset: 0;
}

/* ─────────────────────────────────────────────
   PART 1-L: Testimonials / General Cards
   ───────────────────────────────────────────── */
.v2-tcard {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.v2-tcard:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-4px);
}

.v2-tcard__quote {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
  opacity: 0.9;
}

.v2-tcard__author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   PART 1-M: Section Heading Block
   ───────────────────────────────────────────── */
.v2-section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.v2-section-head h2 {
  margin-bottom: 1rem;
}

.v2-section-head p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 600px;
  line-height: 1.7;
}

.v2-section-head--center {
  text-align: center;
}

.v2-section-head--center p {
  margin-inline: auto;
}

/* ─────────────────────────────────────────────
   PART 1-N: Process Icons Row
   ───────────────────────────────────────────── */
.v2-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.v2-process__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.v2-process__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  flex-shrink: 0;
}

.v2-process__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.v2-process__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   PART 1-O: Footer
   ───────────────────────────────────────────── */
.v2-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.v2-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 900px) {
  .v2-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .v2-footer__grid {
    grid-template-columns: 1fr;
  }
}

.v2-footer__brand .v2-nav__logo-text {
  font-size: 1.375rem;
}

.v2-footer__tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 280px;
}

.v2-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.v2-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.v2-footer__col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.v2-footer__col a:hover {
  color: var(--text-primary);
}

.v2-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.v2-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────
   PART 1-P: Blog Post Cards
   ───────────────────────────────────────────── */
.v2-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .v2-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .v2-blog-grid {
    grid-template-columns: 1fr;
  }
}

.v2-blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.v2-blog-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-4px);
}

.v2-blog-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.v2-blog-card__badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.v2-blog-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.v2-blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.v2-blog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 1rem;
}

/* ─────────────────────────────────────────────
   PART 1-Q: Custom Cursor (desktop only)
   ───────────────────────────────────────────── */
#cursor-dot,
#cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 92, 26, 0.6);
  background: transparent;
  will-change: transform;
}

/* Hide on touch devices */
@media (pointer: coarse) {
  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }
}

/* Hide default cursor on desktop when custom cursor is active */
@media (pointer: fine) {
  body.custom-cursor-active {
    cursor: none;
  }

  body.custom-cursor-active a,
  body.custom-cursor-active button {
    cursor: none;
  }
}

/* ─────────────────────────────────────────────
   PART 1-R: AOS overrides (opacity init)
   ───────────────────────────────────────────── */
[data-aos] {
  /* AOS library handles opacity/transform — just ensure no flash */
}

/* ─────────────────────────────────────────────
   PART 1-S: Grid overlay background texture
   ───────────────────────────────────────────── */
.v2-grid-bg {
  position: relative;
}

.v2-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.v2-grid-bg > * {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────
   PART 1-T: Announcement Banner
   ───────────────────────────────────────────── */
.v2-banner {
  background: var(--accent);
  padding-block: 0.625rem;
  text-align: center;
}

.v2-banner p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bg-primary);
  letter-spacing: 0.06em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.v2-banner a {
  color: var(--bg-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─────────────────────────────────────────────
   PART 1-U: Mobile nav
   ───────────────────────────────────────────── */
.v2-mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  z-index: 999;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.v2-mobile-nav.is-open {
  display: block;
}

.v2-mobile-nav a {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: color var(--transition-base);
}

.v2-mobile-nav a:hover {
  color: var(--text-primary);
}

.v2-mobile-nav .v2-btn-nav {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  width: 100%;
  padding-block: 0.875rem;
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────
   PART 1-V: Utility classes
   ───────────────────────────────────────────── */
.v2-text-accent { color: var(--accent); }
.v2-text-muted  { color: var(--text-secondary); }
.v2-text-primary { color: var(--text-primary); }
.v2-bg-surface  { background: var(--bg-surface); }
.v2-bg-secondary { 
  background: var(--bg-secondary);
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
}

.v2-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.v2-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.v2-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 900px) {
  .v2-grid-3, .v2-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .v2-grid-2, .v2-grid-3, .v2-grid-4 { grid-template-columns: 1fr; }
}

.v2-mb-xs { margin-bottom: 0.5rem; }
.v2-mb-sm { margin-bottom: 1rem; }
.v2-mb-md { margin-bottom: 1.75rem; }
.v2-mb-lg { margin-bottom: 3rem; }

/* Tailwind reset bridge — ensure v2 dark bg overrides Tailwind white */
.bg-white { background-color: var(--bg-surface) !important; }
.text-gray-600, .text-gray-700, .text-gray-800 { color: var(--text-secondary) !important; }
.text-primary, .text-navy { color: var(--text-primary) !important; }

/* ─────────────────────────────────────────────
   PART 1-W: Reduced motion blanket
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── DARK THEME NUCLEAR RESET ── */
html, body {
  background-color: #0A0A0F !important;
  color: #F0F0F0 !important;
}

* {
  background-color: transparent;
  box-sizing: border-box;
}

/* Re-apply backgrounds only to elements that need them */
nav, header, .nav, .header, .site-header {
  background-color: rgba(10,10,15,0.95) !important;
}

.card, .service-card, .bento-card,
.blog-card, .post-card {
  background-color: #16161F !important;
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
}

footer, .footer, .site-footer {
  background-color: #111118 !important;
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
}

.stats-bar, .ticker-bar {
  background-color: #111118 !important;
  background-image: var(--network-pattern);
  background-size: 280px 280px;
  background-attachment: fixed;
}

/* Ensure all text inherits correctly */
h1, h2, h3, h4, h5, h6 {
  color: #F0F0F0;
}

p, li, td, th, span, label {
  color: #C0C0D0;
}

a {
  color: #FF5C1A;
}

a:hover {
  color: #FF7A3D;
}

/* ── END NUCLEAR RESET ── */

/* Inline style normalization for legacy templates */
*[style*="background: #f8f7f4"],
*[style*="background:#f8f7f4"],
*[style*="background: #f2f1ee"],
*[style*="background:#f2f1ee"],
*[style*="background: #fff6e8"],
*[style*="background:#fff6e8"],
*[style*="background-color: #f8f7f4"],
*[style*="background-color:#f8f7f4"] {
  background-color: #0A0A0F !important;
  background-image: none !important;
}

*[style*="background: white"],
*[style*="background:white"],
*[style*="background: #fff"],
*[style*="background:#fff"],
*[style*="background: #ffffff"],
*[style*="background:#ffffff"],
*[style*="background-color: white"],
*[style*="background-color: #fff"],
*[style*="background-color:#fff"],
*[style*="background-color: #ffffff"],
*[style*="background-color:#ffffff"] {
  background-color: #16161F !important;
  background-image: none !important;
}

*[style*="background: #f"],
*[style*="background:#f"],
*[style*="background-color: #f"],
*[style*="background-color:#f"] {
  background-color: #16161F !important;
  background-image: none !important;
}

*[style*="border: 1px solid #e8e4dc"],
*[style*="border-top: 1px solid #e8e4dc"],
*[style*="border-bottom: 1px solid #e8e4dc"] {
  border-color: rgba(255,255,255,0.06) !important;
}

*[style*="color: #1a1a1a"],
*[style*="color:#1a1a1a"],
*[style*="color: #0f1923"],
*[style*="color:#0f1923"] {
  color: #F0F0F0 !important;
}

*[style*="color: #3c4654"],
*[style*="color:#3c4654"],
*[style*="color: #5a6472"],
*[style*="color:#5a6472"] {
  color: #C0C0D0 !important;
}

.blog-content p {
  background-color: transparent !important;
}

article.bg-gray-50,
article.dark\:bg-gray-900,
.blog-card,
.post-card {
  background-color: #16161F !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

/* ═══════════════════════════════
   INNER PAGE SYSTEM — CLEAN BUILD
   ═══════════════════════════════ */

.inner-page {
  min-height: 100vh;
  background: #0A0A0F;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Hero band */
.inner-hero {
  background: #0A0A0F;
  padding: 80px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}

.post-hero {
  background: #0A0A0F;
  padding: 100px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.post-hero > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
}

.inner-hero h1,
.inner-hero p,
.inner-hero span {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
  display: block;
  box-sizing: border-box;
}

.eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FF5C1A;
  margin-bottom: 20px;
}

.post-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  color: #F0F0F0;
  margin: 0 0 20px 0;
  max-width: 760px;
}

.inner-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  color: #F0F0F0;
  margin-top: 0;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: #8A8A9A;
  max-width: 580px;
  margin: 0;
}

/* Post meta */
.post-meta {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.post-date,
.post-read {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5A5A6A;
}

/* Content wrapper */
.inner-wrap {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
  box-sizing: border-box;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 80px;
}

/* Back link */
.back-link {
  display: inline-block;
  font-size: 13px;
  color: #5A5A6A;
  text-decoration: none;
  padding: 32px 0;
  transition: color 0.2s;
}

.back-link:hover { color: #FF5C1A; }

/* Inner content — markdown rendered HTML */
.inner-content {
  padding-top: 36px;
  padding-bottom: 80px;
}

.inner-content h2,
.post-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
  color: #F0F0F0;
  margin: 56px 0 16px;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.inner-content h2:first-child,
.post-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.inner-content h3,
.post-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #F0F0F0;
  margin: 36px 0 12px;
}

.inner-content p,
.post-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #C0C0D0;
  margin: 0 0 20px;
  max-width: 680px;
}

.inner-content ul,
.inner-content ol,
.post-body ul,
.post-body ol {
  padding-left: 20px;
  margin: 0 0 20px;
}

.inner-content li,
.post-body li {
  font-size: 15px;
  line-height: 1.75;
  color: #C0C0D0;
  margin-bottom: 8px;
}

.inner-content a,
.post-body a {
  color: #FF5C1A;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,92,26,0.25);
  transition: border-color 0.2s;
}

.inner-content a:hover,
.post-body a:hover {
  border-bottom-color: #FF5C1A;
}

.inner-content blockquote,
.post-body blockquote {
  border-left: 3px solid #FF5C1A;
  margin: 36px 0;
  padding: 20px 28px;
  background: rgba(255,92,26,0.05);
  border-radius: 0 4px 4px 0;
}

.inner-content blockquote p,
.post-body blockquote p {
  color: #F0F0F0;
  font-size: 17px;
  margin: 0;
}

/* Strong/bold in content */
.inner-content strong,
.post-body strong {
  color: #F0F0F0;
  font-weight: 600;
}

/* Service tag pills
   (used in sector pages via markdown) */
.inner-content .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.inner-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  counter-reset: none;
}

.inner-content ol li {
  font-size: 15px;
  line-height: 1.75;
  color: #C0C0D0;
  margin-bottom: 10px;
  list-style-type: decimal;
  background: transparent;
  display: list-item;
  padding: 0;
}

.inner-content ol li::before {
  display: none;
}

.blog-entry h2 a,
.blog-entry h2 {
  color: #F0F0F0 !important;
}

.blog-entry h2 a:hover {
  color: #FF5C1A !important;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 48px;
}

.resource-card {
  background: #16161F;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.resource-card:hover {
  border-color: rgba(255,92,26,0.4);
  background: #1C1C28;
}

.resource-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FF5C1A;
  display: block;
  margin-bottom: 14px;
}

.resource-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: #F0F0F0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.resource-card p {
  font-size: 14px;
  color: #8A8A9A;
  line-height: 1.6;
  margin-bottom: 20px;
}

.resource-link {
  font-size: 13px;
  color: #FF5C1A;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.resource-link:hover {
  text-decoration: underline;
}

.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #F0F0F0;
  display: block;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 13px;
  color: #5A5A6A;
  max-width: 280px;
  line-height: 1.6;
}

.footer-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5A5A6A;
  margin-bottom: 16px;
  display: block;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul li a {
  font-size: 13px;
  color: #5A5A6A;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s;
}

footer ul li a:hover {
  color: #FF5C1A;
}

.sector-body {
  padding: 0 0 80px;
}

.sector-services {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 56px;
}

.sector-services-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #F0F0F0;
  margin-bottom: 6px;
}

.sector-services-sub {
  font-size: 14px;
  color: #8A8A9A;
  margin-bottom: 20px;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sector-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FF5C1A;
  border: 1px solid rgba(255,92,26,0.35);
  background: rgba(255,92,26,0.06);
  padding: 8px 16px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.sector-tag:hover {
  background: rgba(255,92,26,0.12);
  border-color: rgba(255,92,26,0.6);
}

.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 80px;
}

@media (max-width: 900px) {
  .value-props { 
    grid-template-columns: 1fr; 
  }
}

.value-prop {
  background: #16161F;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s, background 0.2s;
}

.value-prop:hover {
  border-color: rgba(255,92,26,0.3);
  background: #1C1C28;
}

.value-prop h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #F0F0F0;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.value-prop p {
  font-size: 14px;
  line-height: 1.7;
  color: #8A8A9A;
  margin: 0;
  max-width: 100%;
}

.value-prop a {
  color: #FF5C1A;
  border-bottom: 1px solid rgba(255,92,26,0.3);
  text-decoration: none;
}

.sector-faq {
  margin-bottom: 80px;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sector-faq > h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  color: #F0F0F0;
  margin: 0 0 40px;
  border: none;
  padding: 0;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #F0F0F0;
  margin: 0 0 10px;
}

.faq-item p {
  font-size: 14px;
  line-height: 1.75;
  color: #8A8A9A;
  margin: 0;
  max-width: 680px;
}

.sector-cta {
  background: #16161F;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 56px;
  text-align: center;
  margin-bottom: 80px;
  border-radius: 2px;
}

.sector-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  color: #F0F0F0;
  margin: 0 0 16px;
  border: none;
  padding: 0;
}

.sector-cta p {
  font-size: 15px;
  color: #8A8A9A;
  margin: 0 0 28px;
  max-width: 100%;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #FF5C1A;
  color: #0A0A0F !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  border-bottom: none !important;
  border-radius: 2px;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: #FF7A3D;
  border-bottom: none;
}

.sector-related {
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sector-related-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FF5C1A;
  display: block;
  margin-bottom: 20px;
}

.sector-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.sector-related li a {
  font-size: 13px;
  color: #8A8A9A;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s;
}

.sector-related li a:hover {
  color: #FF5C1A;
}

/* Responsive */
@media (max-width: 768px) {
  .inner-hero,
  .post-hero {
    padding: 80px 0 48px;
  }

  .inner-hero > *,
  .post-hero > * {
    padding-left: 24px;
    padding-right: 24px;
  }

  .inner-wrap,
  .post-body {
    padding-left: 24px;
    padding-right: 24px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════
   LEGACY TAILWIND BRIDGE
   Gives basic usable layout to pages that still have Tailwind markup
   ═══════════════════════════════ */

/* Legacy header padding — Tailwind pt-24+ classes don't work; give breathing room */
.inner-content > header,
.inner-content > section:first-child {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* Legacy main/section vertical spacing */
.inner-content > main,
.inner-content > section {
  padding-top: 40px;
  padding-bottom: 48px;
}

/* Legacy background colour classes */
.bg-gray-50, .bg-gray-100 { background-color: #16161F !important; }
.bg-blue-50                { background-color: rgba(255,92,26,0.05) !important; }
.bg-yellow-50              { background-color: rgba(255,92,26,0.05) !important; }
.border-blue-600,
.border-l-4.border-blue-600 { border-color: #FF5C1A !important; }
.text-blue-900, .text-blue-800 { color: #F0F0F0 !important; }

/* Legacy Tailwind spacing utilities — minimal vertical padding/margin */
.py-16, .py-20, .py-24 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-24, .pt-28, .pt-32 { padding-top: 6rem; }
.pb-12, .pb-16, .pb-20 { padding-bottom: 3rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Legacy Tailwind grid — give columns basic layout */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.md\:grid-cols-2,
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.md\:grid-cols-3,
.grid-cols-3,
.lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lg\:col-span-2  { grid-column: span 2; }

@media (max-width: 900px) {
  .md\:grid-cols-2,
  .md\:grid-cols-3,
  .lg\:grid-cols-2,
  .lg\:grid-cols-3 { grid-template-columns: 1fr; }
  .lg\:col-span-2  { grid-column: span 1; }
}

/* Legacy card backgrounds */
.rounded-xl, .rounded-lg { border-radius: 6px; }
.shadow-sm, .shadow, .shadow-xl { box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.border.border-gray-200 { border: 1px solid rgba(255,255,255,0.06) !important; }
.border-gray-200 { border-color: rgba(255,255,255,0.06) !important; }

/* Legacy text utilities */
.text-accent    { color: #FF5C1A !important; }
.text-white     { color: #F0F0F0 !important; }
.bg-accent      { background-color: #FF5C1A !important; }
.text-primary   { color: #F0F0F0 !important; }
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.uppercase      { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.text-sm        { font-size: 0.875rem; }
.text-lg        { font-size: 1.125rem; }
.text-xl        { font-size: 1.25rem; }
.text-2xl       { font-size: 1.5rem; }
.text-3xl       { font-size: 1.875rem; }
.text-4xl       { font-size: 2.25rem; }
.text-center    { text-align: center; }
.leading-tight  { line-height: 1.25; }
.leading-relaxed { line-height: 1.75; }
.italic         { font-style: italic; }
.underline      { text-decoration: underline; }

/* Legacy flex utilities */
.flex                { display: flex; }
.flex-col            { flex-direction: column; }
.items-center        { align-items: center; }
.justify-center      { justify-content: center; }
.space-y-4 > * + *   { margin-top: 1rem; }
.space-y-6 > * + *   { margin-top: 1.5rem; }
.space-y-8 > * + *   { margin-top: 2rem; }
.flex-col.sm\:flex-row { flex-wrap: wrap; }
.sm\:flex-row         { flex-direction: row; }

/* Legacy width/max-width utilities */
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════
   END LEGACY TAILWIND BRIDGE
   ═══════════════════════════════ */

/* ═══════════════════════════════
   END INNER PAGE SYSTEM
   ═══════════════════════════════ */
