/* ==========================================================================
   Custom CSS Styles
   ========================================================================== */

/* Font Faces */
@font-face {
  font-family: PPNeueMontreal;
  src: url(../assets/fonts/PPNeueMontreal-Book.woff2) format("woff2"),
       url(../assets/fonts/PPNeueMontreal-Book.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: PPNeueMontreal;
  src: url(../assets/fonts/PPNeueMontreal-Medium.woff2) format("woff2"),
       url(../assets/fonts/PPNeueMontreal-Medium.woff) format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: PPNeueMontrealMono;
  src: url(../assets/fonts/PPNeueMontrealMono-Book.woff2) format("woff2"),
       url(../assets/fonts/PPNeueMontrealMono-Book.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base Typography */
html {
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.03em;
}

div, li, p, span {
  letter-spacing: 0.02em;
}

/* Selection Styles */
::selection {
  background-color: #e0e4e5 !important;
  color: #000 !important;
}

::-moz-selection {
  background-color: #e0e4e5 !important;
  color: #000 !important;
}

::-webkit-selection {
  background-color: #e0e4e5 !important;
  color: #000 !important;
}

/* Header and Navigation */
header {
  position: relative !important;
  z-index: 1000 !important;
  display: block !important;
}

.nav-item, .nav-link, nav {
  position: relative;
  z-index: 10;
}

/* Utility Classes */
.text-eyebrow {
  font-family: PPNeueMontrealMono, monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.3;
}

.pill {
  font-family: PPNeueMontrealMono, monospace;
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* Cursor Circle */
.cursor-circle {
  position: fixed;
  width: 20px;
  height: 20px;
  background: #e0e4e5;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-circle.active {
  opacity: 1;
}

/* Original Grainy Gradients - Properly Configured */
.grainy-gradient {
  position: relative;
  background: linear-gradient(135deg, #1444E4 0%, #4C74EC 50%, #5C94E8 100%);
}

.grainy-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  filter: contrast(200%) brightness(1500%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.grainy-button-blue {
  background: linear-gradient(45deg, #1444E4, #4C74EC) !important;
  color: white !important;
  border: none !important;
  position: relative;
  transition: none;
  border-radius: 9999px !important;
  font-family: 'PPNeueMontrealMono', monospace;
  font-weight: 400;
}

.grainy-button-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  filter: contrast(200%) brightness(1500%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.grainy-button-blue > * {
  position: relative;
  z-index: 2;
}

.grainy-button-blue:hover {
  background: linear-gradient(45deg, #1444E4, #4C74EC) !important;
}

.grainy-button-blue:hover::before {
  opacity: 0;
}

.grainy-button-green {
  background: linear-gradient(45deg, #C8F230, #A8D220) !important;
  color: black !important;
  border: none !important;
  position: relative;
  transition: none;
  font-family: 'PPNeueMontrealMono', monospace;
  font-weight: 400;
}

.grainy-button-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  filter: contrast(300%) brightness(2000%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.grainy-button-green > * {
  position: relative;
  z-index: 2;
}

.grainy-button-green:hover {
  background: linear-gradient(45deg, #C8F230, #A8D220) !important;
}

.grainy-button-green:hover::before {
  opacity: 0;
}

.grainy-button-black {
  background: linear-gradient(45deg, #191919, #404040) !important;
  color: white !important;
  border: none !important;
  position: relative;
  transition: none;
  font-family: 'PPNeueMontrealMono', monospace;
  font-weight: 400;
}

.grainy-button-black::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  filter: contrast(300%) brightness(2000%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.grainy-button-black > * {
  position: relative;
  z-index: 2;
}

.grainy-button-black:hover {
  background: linear-gradient(45deg, #191919, #404040) !important;
}

.grainy-button-black:hover::before {
  opacity: 0;
}

/* Grainy Card Styles - 10% Primary Blue Opaque */
.grainy-card-blue-dark {
  background-color: rgba(20, 68, 228, 0.1) !important;
  position: relative;
  overflow: hidden;
}

.grainy-card-blue-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  filter: contrast(200%) brightness(1500%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.grainy-card-blue-medium {
  background-color: rgba(20, 68, 228, 0.1) !important;
  position: relative;
  overflow: hidden;
}

.grainy-card-blue-medium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  filter: contrast(200%) brightness(1500%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.grainy-card-blue-light {
  background-color: rgba(20, 68, 228, 0.1) !important;
  position: relative;
  overflow: hidden;
}

.grainy-card-blue-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  filter: contrast(200%) brightness(1500%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Clean Card Styles - No Grainy Effect */
.card-blue-dark {
  background-color: rgba(20, 68, 228, 0.1);
}

.card-blue-medium {
  background-color: rgba(76, 116, 236, 0.1);
}

.card-blue-light {
  background-color: rgba(92, 148, 232, 0.1);
}

/* Sliding/Parallax Panes Structure */
.start {
  position: relative;
  z-index: 1;
  background-color: white;
}

.start-bg {
  background-color: white;
  transition: background-color 0.3s ease;
}

.hero-100vh {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.bodyScroll {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 2;
}

/* Block Defaults */
.block-defaults {
  border-bottom-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .block-defaults {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}

/* Hero Blocks */
.hero-block {
  border-bottom-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .hero-block {
    padding-top: 18rem;
    padding-bottom: 9rem;
  }
}

.hero-block-lg {
  height: 5rem;
  border-bottom-width: 1px;
  border-color: rgb(229 231 235);
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  max-width: 80rem;
  margin: 0 auto;
}

.text-oversized {
  font-size: 10rem;
  line-height: 1;
  color: #1444E4;
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 400;
}

/* Content Sections */
.content {
  position: relative;
  z-index: 1;
}

#main-content {
  background-color: white;
}

/* Typography Scale */
h1 {
  margin-bottom: 4rem;
  font-size: 3.75rem;
  line-height: 1.25;
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 400;
}

h2 {
  margin-bottom: 1.5rem;
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.5;
}

h3 {
  margin-bottom: 1rem;
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.5;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 400;
}

h5 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 400;
}

h6 {
  font-size: 1rem;
  line-height: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 400;
}

/* Responsive Typography */
@media (max-width: 1024px) {
  h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1;
  }
  

  
  h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

/* Navigation Links */
.nav-link {
  position: relative;
  cursor: pointer;
  z-index: 10;
  font-family: PPNeueMontreal, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.nav-link.active {
  color: #1444E4 !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #1444E4;
  border-radius: 1px;
}

