/* ==========================================================================
   VELOCITY AI // EDITORIAL DESIGN & POSTER ARCHITECTURE
   Palette: White · Ocean Depth (#1D3557) · Gold (#EFC142) · Dark Grey (#121316)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
  background-color: var(--color-dark-grey);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-gold);
  color: var(--color-dark-grey);
}

/* ==========================================================================
   1. EDITORIAL POSTER WRAPPER (Direct inspiration from reference frame)
   ========================================================================== */
.poster-frame {
  max-width: var(--poster-max-width);
  margin: var(--space-md) auto;
  background: var(--color-paper);
  color: var(--color-dark-grey);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-radius: var(--poster-border-radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 768px) {
  .poster-frame {
    margin: var(--space-xl) auto;
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
  }
}

@media (max-width: 767px) {
  .poster-frame {
    margin: 8px auto;
    padding: 10px 8px 16px;
    border-radius: 12px;
    width: calc(100% - 12px);
  }
  .poster-header-rail {
    font-size: 9px !important;
    letter-spacing: 0.06em !important;
  }
  .poster-footer-rail {
    font-size: 9px !important;
    letter-spacing: 0.06em !important;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* Header & Footer Metadata Rail (Swiss Precision Space Mono) */
.poster-header-rail,
.poster-footer-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-dark-grey);
  padding: var(--space-xs) 0;
  user-select: none;
}

.poster-header-rail {
  border-bottom: 2px solid var(--color-dark-grey);
  margin-bottom: var(--space-md);
}

.poster-footer-rail {
  border-top: 2px solid var(--color-dark-grey);
  margin-top: var(--space-xl);
  padding-top: var(--space-sm);
}

/* ==========================================================================
   2. TYPOGRAPHY HIERARCHY (Syne, Plus Jakarta Sans, Instrument Serif, Space Mono, Inter)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display-punch);
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1 {
  font-size: var(--text-poster);
}

h2 {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: inherit;
  line-height: 1.65;
}

/* Monumental Display (Syne: Avant-Garde High Contrast) */
.monumental-display {
  font-family: var(--font-display-monumental) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.numeral-display {
  font-family: var(--font-display-monumental) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.price-display {
  font-family: var(--font-display-monumental) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* High-Contrast Centered Signature Serif Badge Pill */
.serif-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-dark-grey);
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.8vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-dark-grey);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  white-space: normal;
  text-align: center;
  user-select: none;
  z-index: 25;
  max-width: 92%;
  line-height: 1.25;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .serif-badge-pill {
    font-size: 0.95rem;
    padding: 6px 14px;
    max-width: 95%;
  }
}

/* Tracked Technical Meta Tags (Space Mono) */
.meta-tag {
  font-family: var(--font-mono);
  font-size: var(--text-3xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
}

/* Vertical Rotated Technical Spine Text (Space Mono) */
.vertical-spine-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: var(--text-3xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
}

/* Barcode graphic simulation */
.barcode-strip {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  user-select: none;
}

.barcode-bar {
  background: currentColor;
  height: 100%;
}

/* ==========================================================================
   3. HIGH-IMPACT 4-QUADRANT POSTER GRID
   ========================================================================== */
.poster-grid-quadrants {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 3px solid var(--color-dark-grey);
  position: relative;
  background: var(--color-dark-grey);
}

@media (min-width: 840px) {
  .poster-grid-quadrants {
    grid-template-columns: 1fr 1fr;
  }
}

.poster-quadrant {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 840px) {
  .poster-quadrant:nth-child(1) {
    border-right: 3px solid var(--color-dark-grey);
    border-bottom: 3px solid var(--color-dark-grey);
  }
  .poster-quadrant:nth-child(2) {
    border-bottom: 3px solid var(--color-dark-grey);
  }
  .poster-quadrant:nth-child(3) {
    border-right: 3px solid var(--color-dark-grey);
  }
}

@media (max-width: 839px) {
  .poster-quadrant {
    border-bottom: 3px solid var(--color-dark-grey);
  }
}

/* Quadrant Specific Themes */
.quadrant-ocean {
  background-color: var(--color-ocean);
  color: var(--color-white);
}

.quadrant-gold {
  background-color: var(--color-gold);
  color: var(--color-dark-grey);
}

.quadrant-charcoal {
  background-color: var(--color-dark-grey);
  color: var(--color-white);
}

.quadrant-paper {
  background-color: var(--color-paper);
  color: var(--color-dark-grey);
}

/* Center Crossing Badge on the 4-Quadrant Intersection */
.center-quadrant-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  pointer-events: none;
}

@media (max-width: 839px) {
  .center-quadrant-badge {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    margin: var(--space-xs) auto;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   4. BUTTONS & DIRECT CONVERSION CHANNELS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sharp);
  border: 2px solid var(--color-dark-grey);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-damped);
  user-select: none;
}

.btn-primary-gold {
  background: var(--color-gold);
  color: var(--color-dark-grey);
  box-shadow: 4px 4px 0px var(--color-dark-grey);
}

.btn-primary-gold:hover {
  background: var(--color-gold-hover);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-dark-grey);
}

.btn-primary-gold:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--color-dark-grey);
}

.btn-solid-ocean {
  background: var(--color-ocean);
  color: var(--color-white);
  border-color: var(--color-white);
  box-shadow: 4px 4px 0px var(--color-white);
}

.btn-solid-ocean:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-dark-grey);
  border: 2px solid var(--color-dark-grey);
}

.btn-outline-dark:hover {
  background: var(--color-dark-grey);
  color: var(--color-white);
}

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

.btn-outline-white {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}

.btn-outline-white:hover {
  background: #FFFFFF !important;
  color: var(--color-dark-grey) !important;
}

@media (max-width: 768px) {
  .poster-quadrant {
    padding: var(--space-md) var(--space-sm);
    min-height: auto;
    gap: var(--space-md);
  }
  .poster-quadrant .btn {
    width: 100% !important;
    padding: 12px 14px;
    font-size: 11px;
    box-sizing: border-box;
    text-align: center;
  }
  .vertical-spine-text {
    display: none !important;
  }
}
