/* ==========================================================================
   AMZCompliance Solutions — Gateway / Hub Page
   Interactive particle hero. Extends css/style.css tokens.
   ========================================================================== */

.gateway-page .site-header .nav-inner { justify-content: space-between; gap: 12px; }

/* style.css hides .header-cta .btn-outline below 980px for the hamburger-menu
   pages; the gateway page has no hamburger, so its one header button must
   always stay visible. */
.gateway-page .header-cta .btn-outline { display: inline-flex; }
.gateway-page .header-cta { min-width: 0; flex-shrink: 1; }
.gateway-page .header-cta .btn-sm { min-width: 0; }
.gateway-page .brand { min-width: 0; flex-shrink: 1; }

@media (max-width: 560px) {
  .gateway-page .brand span { font-size: 0.95rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.gw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding: 160px 0 100px;
}

#gw-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  cursor: crosshair;
}

.gw-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 8%, rgba(47,128,255,0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 85%, rgba(232,70,12,0.14), transparent 60%);
}

.gw-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  pointer-events: none;
}
.gw-hero-content > * { pointer-events: auto; }

.gw-title {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--text);
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.gw-title .line { display: block; overflow: hidden; }
.gw-title .line > span {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  animation: hero-line-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.gw-title .line:nth-of-type(1) > span { animation-delay: 0.2s; }
.gw-title .line:nth-of-type(2) > span { animation-delay: 0.38s; }

/* ==========================================================================
   Portal buttons (the 2 CTAs)
   ========================================================================== */

.gw-portals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}
.gw-portals--no-subtitle { margin-top: 48px; }

.gw-portal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  padding: 30px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}
.gw-portal::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gw-portal:hover { transform: translateY(-6px); }
.gw-portal:hover::before { opacity: 1; }

.gw-portal--partners::before { background: radial-gradient(circle at 20% 0%, rgba(232,70,12,0.16), transparent 65%); }
.gw-portal--partners:hover { border-color: rgba(232,70,12,0.45); box-shadow: 0 20px 50px -18px var(--accent-glow); }
.gw-portal--partners .gw-portal-icon { color: var(--accent-light); background: linear-gradient(135deg, rgba(232,70,12,0.2), rgba(232,70,12,0.05)); }
.gw-portal--partners .gw-portal-eyebrow { color: var(--accent-light); }

.gw-portal--sellers::before { background: radial-gradient(circle at 20% 0%, rgba(47,128,255,0.16), transparent 65%); }
.gw-portal--sellers:hover { border-color: rgba(47,128,255,0.45); box-shadow: 0 20px 50px -18px var(--blue-glow); }
.gw-portal--sellers .gw-portal-icon { color: var(--blue-light); background: linear-gradient(135deg, rgba(47,128,255,0.2), rgba(47,128,255,0.05)); }
.gw-portal--sellers .gw-portal-eyebrow { color: var(--blue-light); }

.gw-portal-icon {
  position: relative; z-index: 1;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.gw-portal-icon svg { width: 24px; height: 24px; }

.gw-portal-body { position: relative; z-index: 1; }
.gw-portal-eyebrow {
  display: block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 6px;
}
.gw-portal-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.gw-portal-body p { font-size: 0.92rem; color: var(--text-muted); }

.gw-portal-arrow {
  position: absolute;
  top: 30px; right: 28px;
  z-index: 1;
  width: 20px; height: 20px;
  color: var(--text-faint);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), color 0.35s ease;
}
.gw-portal:hover .gw-portal-arrow { transform: translate(4px, -4px); }
.gw-portal--partners:hover .gw-portal-arrow { color: var(--accent-light); }
.gw-portal--sellers:hover .gw-portal-arrow { color: var(--blue-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
  .gw-hero { min-height: auto; padding: 130px 0 72px; }
  .gw-portals { grid-template-columns: 1fr; }
  .gw-portal-arrow { top: 26px; right: 24px; }
}
