/* Layout */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container-sm { max-width: 820px; margin-inline: auto; padding-inline: var(--container-pad); }

/* Section */
.section { padding-block: var(--section-y); }
.section-sm { padding-block: var(--section-y-sm); }
.section-dark { background: var(--bg-secondary); }
.section-darker { background: var(--bg-tertiary); }

/* Section header */
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered p { max-width: 560px; margin-inline: auto; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: var(--text-lg); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Flex helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* Two-column with image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-60 { grid-template-columns: 1.4fr 1fr; }
.split-40 { grid-template-columns: 1fr 1.4fr; }

/* Page header (inner pages) */
.page-header {
  padding: 120px 0 64px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
}
.page-header .breadcrumb a { color: var(--text-muted); }
.page-header .breadcrumb a:hover { color: var(--indigo); }
.page-header .breadcrumb span { color: var(--text-muted); }
.page-header h1 { max-width: 700px; margin-bottom: 16px; }
.page-header p { font-size: var(--text-lg); max-width: 580px; }

/* Pillar accent bar */
.pillar-bar {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 24px;
  width: 48px;
}
.pillar-bar-cyber   { background: var(--gradient-primary); }
.pillar-bar-ai      { background: linear-gradient(90deg, var(--cyan), var(--emerald)); }
.pillar-bar-sec4ai  { background: linear-gradient(90deg, var(--purple), var(--indigo)); }
.pillar-bar-ai4sec  { background: linear-gradient(90deg, var(--emerald), var(--cyan)); }

/* Spacers */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  :root { --section-y: 72px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split  { gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-y: 56px; --section-y-sm: 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .split-60, .split-40 { grid-template-columns: 1fr; direction: ltr; }
  .split.reverse { direction: ltr; }
  .section-header { margin-bottom: 36px; }
}
