/* ===================================
   BASE — Reset, Typography, Layout
   =================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===================================
   CONTAINER
   =================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ===================================
   SECTION
   =================================== */

.section {
  padding-block: var(--space-20);
}

.section--sm {
  padding-block: var(--space-12);
}

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

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

.section__header {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section__tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section__tag--light {
  color: rgba(255,255,255,0.7);
}

.section__tag--light::before {
  background: rgba(255,255,255,0.5);
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section__title--white {
  color: var(--color-white);
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.section__subtitle--light {
  color: rgba(255,255,255,0.65);
}

/* ===================================
   PAGE HERO (inner pages)
   =================================== */

.page-hero {
  background: var(--color-dark);
  padding: calc(var(--navbar-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero__bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero__accent {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(26,110,181,0.12);
  border-radius: 50%;
  filter: blur(80px);
  top: -100px;
  right: -80px;
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.page-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.8;
}

/* ===================================
   BREADCRUMB
   =================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-5);
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: var(--t-base);
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb__sep { color: rgba(255,255,255,0.3); font-size: 0.625rem; }

/* ===================================
   UTILITIES
   =================================== */

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .section { padding-block: var(--space-12); }
  .section__header { margin-bottom: var(--space-8); }
}
