/* 4your.business visual system: technical, editorial and quietly cinematic. */
:root {
  --y4b-bg: #050812;
  --y4b-panel: rgba(13, 21, 38, .72);
  --y4b-panel-strong: #0d1526;
  --y4b-line: rgba(177, 201, 232, .16);
  --y4b-text: #f3f7ff;
  --y4b-muted: #9aaac0;
  --y4b-cyan: #64e6ef;
  --y4b-blue: #5a8cff;
  --y4b-violet: #a28cff;
  --y4b-radius: 24px;
}

html { background: var(--y4b-bg); }

body {
  position: relative;
  isolation: isolate;
  background: var(--y4b-bg) !important;
  color: var(--y4b-text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -30% -10% auto;
  height: 72vh;
  pointer-events: none;
  z-index: -2;
  opacity: .85;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(100, 230, 239, .14), transparent 34%),
    radial-gradient(ellipse at 82% 5%, rgba(162, 140, 255, .15), transparent 34%),
    radial-gradient(ellipse at 52% 46%, rgba(90, 140, 255, .06), transparent 42%);
  filter: blur(12px);
  animation: y4b-aurora 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

@keyframes y4b-aurora { from { transform: translate3d(-1%, -1%, 0) scale(1); } to { transform: translate3d(1%, 2%, 0) scale(1.05); } }
@keyframes y4b-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes y4b-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(100,230,239,.18); } 50% { box-shadow: 0 0 0 10px rgba(100,230,239,0); } }

.navbar {
  position: sticky !important;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 18, .72) !important;
  border-bottom: 1px solid var(--y4b-line);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-container { width: min(1240px, calc(100% - 2rem)) !important; }
.nav-logo-link { transition: transform .25s ease, opacity .25s ease; }
.nav-logo-link:hover { transform: translateY(-2px); opacity: .9; }
.nav-logo-img { filter: drop-shadow(0 0 14px rgba(100,230,239,.22)); }
.nav-right-desktop > a,
.nav-link { transition: color .2s ease, background .2s ease, transform .2s ease !important; }
.nav-right-desktop > a:hover,
.nav-link:hover { transform: translateY(-2px); }

.hero, .hero-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: var(--y4b-line) !important;
  background: linear-gradient(135deg, rgba(17, 30, 52, .86), rgba(6, 12, 25, .82)) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.hero::before, .hero-wrap::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,230,239,.19), transparent 67%);
  z-index: -1;
  animation: y4b-float 8s ease-in-out infinite;
}

.hero-title, .hero h1 { letter-spacing: -.06em !important; line-height: .98 !important; }
.hero-title span, .hero h1 span { text-shadow: 0 0 34px rgba(100,230,239,.16); }
.hero-subtitle, .hero-solution, .hero-pain { color: var(--y4b-muted) !important; }

.btn-primary, .btn-secondary, .cta-primary, .product-card-cta {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.btn-primary:hover, .btn-secondary:hover, .cta-primary:hover, .product-card-cta:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 34px rgba(90,140,255,.22) !important;
}

.section, .value-prop, .pricing, .cta-box, .cta-final, .service-card, .product-card, .feature-card, .insight-card, .community-card, .resource-card {
  border-color: var(--y4b-line) !important;
}

.service-card, .product-card, .feature-card, .insight-card, .community-card, .resource-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(19,31,53,.74), rgba(8,14,27,.76)) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.045) !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease !important;
}

.service-card::before, .product-card::before, .feature-card::before, .insight-card::before, .resource-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--y4b-cyan), var(--y4b-violet), transparent);
  opacity: .45;
  transform: translateX(-35%);
  transition: transform .5s ease, opacity .5s ease;
}

.service-card:hover, .product-card:hover, .feature-card:hover, .insight-card:hover, .community-card:hover, .resource-card:hover {
  transform: translateY(-8px);
  border-color: rgba(100,230,239,.38) !important;
  box-shadow: 0 26px 62px rgba(0,0,0,.32), 0 0 0 1px rgba(100,230,239,.08) !important;
}
.service-card:hover::before, .product-card:hover::before, .feature-card:hover::before, .insight-card:hover::before, .resource-card:hover::before { transform: translateX(35%); opacity: 1; }

.section-title, .section-header h2 { letter-spacing: -.045em !important; }
.section-subtitle { color: var(--y4b-muted) !important; }
.hero-cta, .hero-cta-row { position: relative; z-index: 1; }
.hero-cta a:first-child, .hero-cta-row a:first-child { animation: y4b-pulse 3s ease-in-out infinite; }

.footer {
  border-top: 1px solid var(--y4b-line) !important;
  background: rgba(5,8,18,.72) !important;
}
.footer a { color: var(--y4b-cyan) !important; }

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .reveal:nth-child(2) { transition-delay: 70ms; }
.motion-ready .reveal:nth-child(3) { transition-delay: 140ms; }
.motion-ready .reveal:nth-child(4) { transition-delay: 210ms; }

:focus-visible { outline: 2px solid var(--y4b-cyan) !important; outline-offset: 4px; }

@media (max-width: 760px) {
  body::after { background-size: 34px 34px; }
  .nav-container { width: calc(100% - 1rem) !important; }
  .hero, .hero-wrap { border-radius: 20px !important; }
  .hero-title, .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}

/* Products page: editorial service architecture with a clear conversion finish. */
.products-relaunch { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; }
.products-hero { min-height: 58vh; display: flex; align-items: end; margin: 2rem 0 6rem; padding: clamp(2rem, 7vw, 7rem) !important; border-radius: 32px; }
.products-hero .page-hero-content { max-width: 900px; }
.products-hero-statement { margin: 1rem 0; max-width: 760px; font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.055em; color: var(--y4b-text); }
.products-hero .eyebrow, .products-relaunch .section-kicker { color: var(--y4b-cyan); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; }
.products-hero .hero-subtitle { max-width: 760px; line-height: 1.75; }
.products-solution-section { padding: 0 0 7rem; }
.products-solution-section .section-header { margin-bottom: 2rem; }
.products-solution-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.product-solution-card { grid-column: span 4; min-height: 250px; padding: 2rem !important; }
.product-solution-card:nth-child(4), .product-solution-card:nth-child(5) { grid-column: span 6; }
.product-solution-card h2 { margin: 1.4rem 0 .8rem; font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.03em; }
.product-solution-card p { color: var(--y4b-muted); line-height: 1.75; }
.solution-index { color: var(--y4b-cyan); font-size: .75rem; letter-spacing: .14em; font-weight: 800; }
.products-outcome-section { padding: 0 0 7rem; }
.products-outcome-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--y4b-line); border-radius: var(--y4b-radius); background: linear-gradient(120deg, rgba(90,140,255,.13), rgba(162,140,255,.08) 45%, rgba(100,230,239,.09)); }
.products-outcome-panel .section-title { margin-top: .8rem; }
.products-outcome-copy { color: var(--y4b-muted); font-size: 1.1rem; line-height: 1.85; }
.products-cta-section { text-align: center; padding: 0 1rem 8rem; }
.products-cta-section .section-title { max-width: 780px; margin: .8rem auto 2rem; }
.products-cta-section .btn-primary { display: inline-flex; }
@media (max-width: 820px) {
  .products-hero { min-height: 0; margin-bottom: 4rem; }
  .product-solution-card, .product-solution-card:nth-child(4), .product-solution-card:nth-child(5) { grid-column: span 6; }
  .products-outcome-panel { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 560px) {
  .products-relaunch { width: min(100% - 1rem, 1240px); }
  .products-hero { padding: 2rem 1.25rem !important; border-radius: 22px; }
  .product-solution-card, .product-solution-card:nth-child(4), .product-solution-card:nth-child(5) { grid-column: span 12; }
}
