/* P-3 Apps marketing site — additions on top of the shared p3.css brand tokens. */

/* Marketing navbar tweaks: uppercase, letter-spaced links + filled CTA button */
.p3-navbar .nav-link {
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding-left: .9rem;
  padding-right: .9rem;
}
/* Full icon+wordmark+tagline lockup — sized so the "P-3 APPS" wordmark and
   tagline baked into the image stay legible. Navbar vertical padding is
   trimmed slightly (see base.html) so the bar doesn't grow more than needed. */
.p3-navbar img.brand-logo {
  height: 58px;
  width: auto;
}

/* Full-page watermark: fixed behind all page content, only added on pages that opt in via the
   {% block watermark %} override (currently just the homepage). */
.p3-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 75vw);
  height: auto;
  opacity: .09;
  z-index: 0;
  pointer-events: none;
}
.page-content {
  position: relative;
  z-index: 1;
}

/* Aurora background: subtle blurred color blobs, site-wide, fixed behind
   .page-content. One element + filter:blur() rather than 3 positioned divs —
   cheaper (single blur pass) and the blobs are static, so independent
   per-blob transforms aren't needed. */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, var(--p3-aurora-teal) 0%, transparent 60%),
    radial-gradient(circle at 85% 15%, var(--p3-aurora-cyan) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, var(--p3-aurora-violet) 0%, transparent 60%);
  opacity: .12;
  filter: blur(140px);
  -webkit-filter: blur(140px);
}

/* Hero */
.p3-hero {
  position: relative;
  overflow: hidden;
  /* No background of its own — left transparent (over the body's --p3-bg) so the
     full-page watermark shows through the hero band too. */
  background: none;
}
.hero-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76,147,217,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,147,217,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.p3-hero .hero-content {
  position: relative;
  z-index: 1;
}
.p3-hero h1 {
  color: var(--p3-navy-bright);
  letter-spacing: .01em;
}
.p3-hero .lead {
  color: var(--p3-dark-text-secondary);
}

/* Hexagonal "Learn More" CTA */
.btn-hex {
  display: inline-block;
  padding: .75rem 2.5rem;
  background: var(--p3-aurora-gradient);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  transition: background .15s ease, box-shadow .15s ease;
}
.btn-hex:hover {
  background: linear-gradient(90deg, var(--p3-aurora-cyan) 0%, var(--p3-aurora-teal) 100%);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 242, 254, .35);
}

/* Pillar cards */
.pillar-card {
  background: rgba(25, 32, 50, .4);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 100%;
}
.pillar-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
}
.pillar-icon.bg-navy { background: var(--p3-navy); }
.pillar-icon.bg-green { background: var(--p3-green); }
.pillar-icon.bg-split {
  background: linear-gradient(135deg, var(--p3-navy) 0%, var(--p3-green) 100%);
}
.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--p3-dark-text);
}
.pillar-card h3 em {
  font-style: italic;
  font-weight: 400;
  font-size: .85rem;
  color: var(--p3-slate);
}

/* Generic section CTA */
.section-cta {
  background: rgba(25, 32, 50, .4);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Product/solution cards (Solutions page, incl. Reconciler card) */
.product-card {
  background: rgba(25, 32, 50, .4);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.product-card .product-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p3-navy-light);
  color: var(--p3-navy-bright);
  font-size: 1.3rem;
}

/* Footer */
.p3-footer {
  background: rgba(11, 15, 25, .6);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.p3-footer a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.p3-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.p3-footer .footer-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  margin-bottom: .9rem;
}
.p3-footer .brand-logo-footer {
  height: 58px;
  width: auto;
}
.p3-footer .legal-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
}
.p3-footer .ecosystem-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .9rem;
}
.p3-footer .ecosystem-item i {
  font-size: 1.1rem;
  color: var(--p3-green);
  margin-top: .15rem;
}
.p3-footer .ecosystem-item .product-name {
  font-weight: 600;
  color: #fff;
  font-size: .92rem;
}
.p3-footer .ecosystem-item .product-tagline {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
}
.p3-footer .ecosystem-item .product-link {
  font-size: .78rem;
  color: var(--p3-green-light);
}
.p3-footer .global-reach i {
  font-size: 2.5rem;
  color: rgba(255,255,255,.35);
}
.p3-footer hr {
  border-color: rgba(255,255,255,.15);
}
