/* Theme Name: ZeroY Starter */

/* Base Primitives */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-graphite);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-navy-900);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout Primitives */
.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container-max));
  margin-inline: auto;
}

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

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

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

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

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

.bg-navy {
  background: var(--color-navy-900);
  color: var(--color-white);
}

.bg-navy-950 {
  background: var(--color-navy-950);
  color: var(--color-white);
}

.bg-navy h2, .bg-navy h3, .bg-navy-950 h2, .bg-navy-950 h3 {
  color: var(--color-white);
}

.on-dark .eyebrow {
  color: #9BC8E8;
}

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--color-blue-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  background: var(--color-orange-500);
}

/* Section Head */
.section-head {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.section-head > p {
  max-width: 540px;
  color: var(--color-steel);
  font-size: 17px;
  line-height: 1.7;
}

.on-dark .section-head > p {
  color: rgba(255, 255, 255, 0.58);
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease-brand), border-color 0.2s var(--ease-brand), color 0.2s var(--ease-brand), transform 0.2s var(--ease-brand);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--blue {
  background: var(--color-blue-600);
  color: #fff;
}

.btn--blue:hover {
  background: var(--color-blue-500);
}

.btn--orange {
  background: var(--color-orange-500);
  color: #fff;
}

.btn--orange:hover {
  filter: brightness(0.92);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-navy-900);
  border-color: var(--color-line);
}

.btn--outline:hover {
  border-color: var(--color-navy-900);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.btn--ghost:hover {
  border-color: var(--color-white);
}

.btn .arrow {
  font-size: 16px;
  line-height: 1;
  color: var(--color-orange-500);
}

.btn--orange .arrow, .btn--blue .arrow {
  color: #fff;
}

.mono {
  font-family: var(--font-mono);
}

/* Media Placeholder Slot */
.media-slot {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-900);
  isolation: isolate;
}

.media-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
}

.media-slot__label {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 22px;
  right: 28px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.media-slot--fill {
  position: absolute;
  inset: 0;
}

.media-slot--banner {
  min-height: clamp(320px, 35vw, 480px);
  border-radius: var(--radius-md);
}

@media (max-width: 1040px) {
  .section {
    padding-block: var(--space-24);
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .section {
    padding-block: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Global Call-to-Action (CTA) Section & Panel
   Provides unified breathing room, spacing, typography and responsive layout
   across all pages: Homepage, About Us, Systems, Books, Thank You, Products.
   ========================================================================== */
.cta-section {
  padding-block: clamp(80px, 9vw, 128px);
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 56px;
  align-items: center;
  padding: clamp(48px, 6vw, 76px) clamp(36px, 5vw, 68px);
  border-radius: var(--radius-lg);
  background: var(--color-navy-900);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.cta-panel::before {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.015), 0 0 0 140px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.cta-content h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.cta-content p {
  margin-top: 24px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  max-width: 620px;
}

.cta-action {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cta-action .btn {
  width: auto;
  min-height: 54px;
  padding: 0 32px;
  font-size: 13px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .cta-section {
    padding-block: var(--space-24);
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 32px;
    align-items: start;
  }

  .cta-action {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .cta-section {
    padding-block: 64px;
  }

  .cta-panel {
    padding: 36px 24px;
    gap: 28px;
  }

  .cta-content h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .cta-content p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .cta-action .btn {
    width: 100%;
  }
}
